LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

6008 two channel measurement

Hello,

 

I am using NI USB 6008 to measure a voltage and a strain signal and analysing them in real time. I am using channel 2 and 3.

I have two VI's. One for analysing the strain signal and other for anlaysing the voltage. I want to merge these into one vi so that I can compare two graphs from analysis of both these signals in real time.

Labview gives an error if I run both VI's separately or have the code pasted in 1 VI.

 

Is there a separate way to achieve what I am doing.

I am using DAQ assistant to measure these signals.

 

Thanks

 

 

0 Kudos
Message 1 of 4
(2,771 Views)
What is the error that you get? Are you actually using two DAQ Assistants? If so, then you need to have a single DAQ Assistant with multiple channels. In one of the DAQ Assistants, just click the 'Add Channels'.
0 Kudos
Message 2 of 4
(2,765 Views)

Hi Dennis,

Originally I was using 2 DAQ assistants. Then I used just 1 to acquire both signals.

Although it works, both signals are acquired at same sampling rate.

I want to acquire one at 1khz and the other at 100hz. Although I can acquire both at 1khz, my VI si designed around 100hz sampling rate.

Looks like my only choice is to acquire both signals at the higher sampling rate.

Does that make sense?

 

Thanks

Jas

0 Kudos
Message 3 of 4
(2,749 Views)
Yes, that is your only choice. You can easily decimate the data array to reduce the number of samples.
0 Kudos
Message 4 of 4
(2,747 Views)