LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Config

Hey, Kalyanramu Vemishetty

Everything seems to be working ok. My VI communicates
with the DAQ device and all is good with Labview 7. I
have attached a VI which I intend to use for further
experiments, but I am a bit lost. In the VI I need 2
things
1. I need to create a second channel, since I will be
acquiring two signals from my detector. That way I
have a channel for one signal and another channel for
another signal.
2. I need to make the graph a 2-D graph (or something
like) that so that one signal (wired to one of the
channels) is plotted on the x-axis and the other
signal (wired to the other channel) is plotted on the
y-axis.

So please take a look at the VI and let me know what
steps I need to take to achieve my objective.

Thanks,
Leye.
0 Kudos
Message 1 of 19
(4,357 Views)

You didn't attach any VI.

Adding a channel is simple. With DAQmx, all you have to do is add it to the physical channel list. If you want continuous channels (i.e. 0 and 1), it would be Dev1/ai0:1. If you want noncontinuous channels (i.e. 1 and 2), it would be Dev1/ai1,Dev1/ai3. You would also need to change the DAQmx Read for a multi-channel read.

It sounds like what you want is an XY graph. You bundle the x array data together with the y array. Check the user manual, on-line help, and the shipping examples for information on how the XY graph is used.

0 Kudos
Message 2 of 19
(4,339 Views)

Hi Leye,

Can you please the post VI you are using. Are you using any example program.

What scope card are you using. To use second channel, you have to configure channel settings for the second channel.

Then when reading the data, use NI-Scope MultiFetch WDT to fetch data from multiple channels. For this VI, give channel list as 0,1.

To simply configure scope card, you can use NI-SCOPE Express VI. Once you read the data you can plot data on XY graph as dennis explained or use build Express XY Graph.

Thanks,

Kalyan

 

Kalyanramu Vemishetty
Automated Test Systems Engineer
National Instruments
0 Kudos
Message 3 of 19
(4,315 Views)
how do i attach a VI, there is only an icon to browse, but none to attach
0 Kudos
Message 4 of 19
(4,292 Views)

Hi Leye,

Just browse to the specific file using browse button and click OK. Clicking "Submit Post" after finishing with your message will attach the file to this post. If you want to attach multiples, just zip them

 

Kalyanramu Vemishetty
Automated Test Systems Engineer
National Instruments
0 Kudos
Message 5 of 19
(4,266 Views)
Ok I have attached it to this message hopefully you can see it now.
 
thanks.
 
0 Kudos
Message 6 of 19
(4,253 Views)

Hello Leye,

Using NI-DAQ is not the recommended method for controlling this device. NI-SCOPE provides a more intuitive programming interface. It also includes more digitizer-specific documentation and application examples.

With your current application, to acquire data from other channel, in the channel list on the front panel specify 0,1. In the while once you acquire data from 2 channels, use "Index Array Function" to separate data from two channels. The output of the Index array function should be two 1-D Arrays. Feed these two arrays as input to the Build XY Graph Express VI (place this inside while loop).

Hope this helps

Kalyan

 

Applications Engineer
National Instruments
0 Kudos
Message 7 of 19
(4,227 Views)
Do you know of a way to implement Z Blanking using labview?
Thanks,
 
0 Kudos
Message 8 of 19
(4,212 Views)

Hi Leye,

I am not sure about how to do Z-blanking in LabVIEW. It looks specific to your application. Did you get the data plotted in XY Graph?

Kalyan

Kalyanramu Vemishetty
Automated Test Systems Engineer
National Instruments
0 Kudos
Message 9 of 19
(4,186 Views)
Hey,
How exactly do i wire the BUild XY graph to the two channels. If you look at the VI i sent you I already have a graph in it. So how  (exactly) do i wire the Build to it because i seem to be getting a lot of broken wires. Also instead of the Z blanking, I was thinking I could just add a filter which labview has and which will be much easier. Such that when the VI collects data above 2.5V it filters it out. Just like an "If statement." So how do I wire this filter and which type of filter will be much more appropriate to use.

Thanks,
Leye


0 Kudos
Message 10 of 19
(4,174 Views)