Quantcast
Channel: LabVIEW topics
Viewing all 67273 articles
Browse latest View live

generate RFSG two tone

$
0
0

HI all.

 

Is there any body can help me to know how to generate RFSG two tone using arbitrary waveform. I have found an example bulti in NI examples. It uses arbitrary spacing and uniform spacing. 

 

What I am trying to do is how to generate two tone with different power and frequency? becasue in NI example they uses fixed spacing between freq. and I want to control the frequency input instead of using frequency spacing? any support? Thanks in advance

 

Regards

 


Efficiency of Cartesian to Spherical coordinate conversion

$
0
0

I am using a VI in the LV 2014 distribution called "NI_AALPro.lvlib:3D Coordinate Conversion (Scalar).vi". This uses DBL inputs and outputs, and has several Build Array functions in it as well as a Call Library Function. I need to perform a massive number of Cartesian to Spherical conversions with SGL values, and so I would like to re-write this VI using LV primitives in the most efficiant manner possible.

 

The math appears to be quite simple, and I have attached a VI that does this. However, there is an issue with calculating the polar angle. From what I read online, it is just arctan (y/x), yet I get incorrect values when x is negative (but not when y is negative).

 

From what I read on the Wolfram site, "the inverse tangent must be suitably defined to take the correct quadrant of (x/y) into account". I have searched online for more detail on the calculation, but I am lost. Any trig whizzes out there who can help me?

 

 

cDAQ 9132 RT not available in Device Browser

$
0
0

Hello,

 

I have installed

* LabView 2015

* RealTime Module 2015 (eval)

* FPGA Module 2015 (eval)

 

The cDAQ Advisor tells me, that the 913x (e.g. 9132) controllers have Real Time OS (RTOS or WES7).

So I should be able to select the controller controller when creating new project.

But I cannot see the controller:

(see attached screenshot).

 

Does anybody know why it is missing?

 

I have also attached my MAX Configuration.

 

Thank you in advance.

BR

EWiebe

 

using stdout with labview

$
0
0

I am having a LabVIEW application which runs a dll. Is there a way to see the messages outouted through the stdout?

Internal DLL for a VI with CAN bus comm(NI-XNET). How do I create a refer for the CAN interface?

$
0
0

Hello,

I am using cDAQ-9188 chassis with a NI 9862 CAN module.

 

I am trying to use a set of VIs that are interfacing with this CAN hardware into a managed Interop DLL (built by LabView) to export the functionality to managed applications (there is no managed libraries for NI-XNET yet, as far as I know).

I could create the DLL easily following Labview instructions.  It's a bit more difficult to use it.

 

The very first issue comes with access to the CAN interface.

In LabView, the can interface looks on the LV UI like a combo box, and allows to select with CAN board we are using (CAN1, CAN2, etc...).

In the managed interop DLL, I create a function

        void CANOpen(LVBaseRefnum interface, bool, out LVBaseRefnumsessionRead, out LVBaseRefnum sessionWrite);

So, I need to create a Renum that designates the CAN interface I plan to use. HOW DO I DO THAT? a Refnum is basically just a 32-bits cookie, how can I get to the actual interface?

 

Appreciate your help, NI!!

 

Sam Dahan

ni vision assistant calibration

$
0
0

Hello to all.
I'm using Labview NI Vision Assistant to calibrate a square image (1024x1024) of a circular grid.
I use the command "Image Calibration" and I choose "Distortion Model" as the calibration type.
I do the steps, when I arrive at the "Step 6: Specify Axis Calibration" change the image size, but still the output calibrated image has size of 1024x1024.
Then I use the "Image Correction" command but the output image has different size from the original.
Can anyone tell me how can I solve this problem please?
I'd be grateful!
thank you!

help on Event Data Node

$
0
0

How do you find help on the various members of the Event Data Node in an Event Structure.  For example, 'Time' seems to be a number of seconds past some reference, but I can't find any help on it.  Thanks in advance.

SEH, Structured Error Handler, Still working in LV2014?

$
0
0

I'm using the SEH or trying to use I should say. The communication to the Central Error Handler works fine but I can't get the Retry or Call VI options to work even using the example code in the pallete. I'm in LabVIEW 2014 and I have just a very small test VI to try out the options. The problems are in the Specific Error Handler. I set the options to Retry 5 times and un-check the Clear Error. Call VI is unchecked for this test. The loop runs with the error appearing at the output on the first call and the loop exits. Do I have the wrong combination of options?


Compile window prevents code from deploying

$
0
0

Has anyone else seen this issue?  sbRIO RT code builds fine using LabVIEW 2015. When I select, Rujn as Startup it gets about half way complete then displays a compliling dialog box that just hangs.  My deploy dialog says sucessfully completed but can't click on close because the hung complie window.  In the end it doesn't finish deploying my code to the sbRIO.

 

I have worked around this before by using Mass Comile but not helping this time.  Any suggestions?

 

Matt

 

error 7 at constructor node in ULx create channel vi

$
0
0

I got some easy help last time, hoping for a repeat today.

 

Here's my situation:

 

I'm working on a simple loop that measures some thermocouples and an analog voltage for pressure. Unfortubately this unit does not have a NiRio, but instead it has 2 measurement computing USB daqs. So I am using the measurement computing vi's to read from it, one creates a virtual channel, the other reads it. When testing it looks like the read vi works fine however I get an error from the createvirtual channel vi which is:

 

                 Error 7 occurred at Constructor Node in ULx Create IOTask.vi->ULx Create Channel (AI-Temperature).vi:1->DS4-Labview Reactor dP_Revs.vi (The last part just  being my                          main vi's name)

 

And the diologue box reads:

 

                 LabVIEW: File not found. The file might have been moved or deleted, or the file path might be incorrectly formatted for the operating system. For example, use \ as path                                  separators on Windows, : on Mac OS X, and / on Linux. Verify that the path is correct using the command prompt or file explorer.
                 =========================
                 NI-488: Nonexistent GPIB interface.

 

Now I've tried to check the path and it looks like everything is there but I may be wrong. I also added the actual vi library folder to the options>paths>vi section, to see if that would help but it wouldn't....

 

Based on the message it sounds to me like the constructor node is what it can't find but I have no idea how to alter that path. I know I have all the vi's and software installed from MC for this so I'm not sure what else to do.

 

 

Any help is apreciated.

 

~Scott

 

 

 

Code Not Working Across Different Project Templates

$
0
0

On a traditional blank project, the code below works... I am able to get readings from my joystick. However, when I try to run the same code on a myRIO template, the code never gets to run because of error -363031 (from Highlight Execution).

 

How can I fix this?

Output specific DAQ channel to database

$
0
0

Hi,

 

I have a DAQ with 64 inputs, run in a loop, combine data in the loop so that I can calculate the max, min, avg, std, var, and I want to write data of specific channels to the database.  Currently, I am using split signals to accomplish this but it makes the VI so crowded and very messy.  I was wondering if anyone has any suggestions to make this simpler and better.

 

See image below for my current configuration:

daq.png

trial period

$
0
0

Hello,

 

I am using the sbRIO evaluation kit with a 90 day software evaluation and I had 60 days left.  It keeps asking me if I want to extend my trial so I thought it would be a good idea to extend it before it expired and so I got an extension code.  After a few tries where it said I had no matching products, the extension went through, however instead of having 100 days to go now I have exactly 45!  Is there something I can do to get the full time back??  Thanks, Jesse

Joystick Stopped Working

$
0
0

I was able to get readings from my joystick earlier today but all of a sudden it has stopped working. There is nothing wrong with the joystick (tested it from the control panel).

 

When I query the joystick and create an indicator, I see that there are two 'joysticks' on my computer. It looks like labview is recognizing the 'other' joystick, which isn't actually a joystick. Is there a way to specify which joystick I want to use (Logitech Attack 3)?

 

Attached is a screenshot of my interface.

 

Thanks!

Vi Scripting: inconsistent behaviour of terms[] of a wire / owner

$
0
0

Let us assume I have the following vi:

 

a.png

 

I am looking for the wire, and acquiring the terminals of that wire.

The result I get is twice a terminal, and once a control terminal (for the indicator).

Like this:

b.PNG

So, the typical process for getting from the wire to the node is using the owner function.

 

This works with the regular terminals, you just get the node-referenec (as a General-reference) - according to this:

http://zone.ni.com/reference/en-XX/help/371361K-01/lvhowto/scripting_nav_wire_to_node/

 
However, for the ControlTerminal, you get the Diagram/TopLevelDiagram or whatever place you have put in that indicator.

I consider this behaviour inconsistent (even if it is easy to work around.. it's a simple case-structure).

What is the rationale behind this?

 

In fact, what exactly is the difference between a ControlTerminal and a Control? Does it have something to do with the fact that I always have to typecast my nodes when I traverse through a tree like this?

typecast.PNG

 


multiple cDAQ Chassis

$
0
0

I will be using multiple cDAQ chassis across a network. Is it better to create a separate DAQmx task for each chassis or combine into 1 large task?

How can I set an event structure up so that it only recognizes a boolean value change from false to true?

$
0
0

I am attempting to design a program with multiple buttons that displays the time elapsed since the program began that the button was pressed. I need the buttons to be set so that they switch until released however I only want it to register the initial button press (from false to true), not when it returns back to false. I have attached a sample of what I am working with thus far.

Positionfeedback controll for a DC motor (e.g. Heidenhain linear encoders)

$
0
0

Hello,

 

currently i try to find a solution for the following problem:

 

A DC motor should be attached directly to threaded rod. The rod is connected to a part (endwall)  in a research apparatus, moving it forwad or backward.

This means that the whole unit of Endwall/rod and engine will move forwards and backwards. The total displacement is only 25 mm.

 

We now want to use LabView and move the endwall by 1 mm for each experiment, the accuracy should be at least +-0.25 mm.

 

My idea is,that the dc motor is mounted on a sled, allowing it to move forward and backwards.

On the side of the dc motor a linear encoder (for example by Heidenhain) should be mounted (e.g. http://www.heidenhain.de/de_EN/products/linear-encoders/exposed-linear-encoders/selection-guide-for-lida/ the LIDA 479 )

 

my general question here is:

Are there better solution then mine

and if not

which parts would i need to let the linear encoder and labview be able to communicate?

 

proper shielding/grounding of NI 9209

$
0
0

Just a very basic / noob electronics question about proper grounding/shielding method of signal wires.

 

I will use a NI 9209 16 CH module with D-SUB37 connector (in a cDAQ slot), i am going to use two wires shielded cables (so I will use differential AI pins, and there is a "third wire" which is the shield around the two internal wires). These shielded cables and the NI9209 D-sub connector will be connected by a Phoenix Contact cable (female-male D-SUB37) and a distributor screw terminal ( https://www.phoenixcontact.com/online/portal/us?uri=pxc-oc-itemdetailSmiley Tongueid=2315191&library=usen&tab=1#drawings ).

 

The question is, should I connect the shielding wires of my signal cables (the shielding of the signal cables are connected to the metal housings of pressure sensors, so not to a COM pin!) to the Ground pin of the screw terminal, thus to the shielding of the D-SUB37 cable? Also, should I connect this overall shielding network to one of the COM pins of the NI9209?

So in this way the sensor housings, the sensor cables' shieldings and the D-SUB37 cable's shielding would be common, and also connected to the COM pin of the NI9209...

 

Is this the proper cabling, or I should only "common" the shieldings of the different cables, but not connecting them to the COM pin of the DAQ hardware?

Usually before I just used simple BNC cables (single lead wire and shield wire as reference, so it was obvious how to connect them). But now I have to deal with signal cables with two internal signal wires + shielding.

 

Thanks!

how can i get the different values at output of same variable using mathscript node..

$
0
0

i want to make the time management of leds in which i set each led on or off for the specific time i want..... it would be better if someone help me by using a mathscript node.....

Viewing all 67273 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>