LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Waveform Acquisition with DAQ mxBase and USB-6008

I am trying to collect an analog input waveform using the USB-6008. I know that you have to do this with mxBase, but cannot find a command for an analog waveform in my software. When I try to copy and paste a mxBase waveform out of sample code, I get an invalid command error. This is for my senior project, and it used to be so easy...what happened? Any help would be greatly appreciated.
0 Kudos
Message 1 of 6
(3,331 Views)
I am using Labview 7.0
0 Kudos
Message 2 of 6
(3,328 Views)
The NI-DAQmx Base driver does not have "Read Waveform" functionality. NI-DAQmx certainly does, but not Base. Take a look at the attached example in LabVIEW 7.0. It shows how you might create a waveform from the data read in using NI-DAQmx Base VIs. Right now, it is hardcoded to take 2 analog input channels, but could easily be modified to work for more or less channels.
-Alan A.
0 Kudos
Message 3 of 6
(3,314 Views)
Thanks for the help, do you know of anyway to pass the data out of the while loop in real time. This is needed to run a sensor that tells a robotic arm where it is so it crucial that I be able to pass the data onto the rest of the control system.
0 Kudos
Message 4 of 6
(3,303 Views)
Could I just pass the data to a global variable to get data out of the while loop in real time?
0 Kudos
Message 5 of 6
(3,300 Views)
Technically, you could use a local variable to pass the data to a parallel loop, but that isn't recommended. I recommend putting your processing code inside the same while loop as your Daq read.
0 Kudos
Message 6 of 6
(3,270 Views)