LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simultaneously generate digital and aquire analog with DAQmx

Hi,

 

My goal is to generate already recorded digital data on 22 channels and simultanously aquire data from 11 analog channels with Daqmx. 

 

(Digital channels: 11 channels with 100kHz sampled data, and 11 with static 1 or 0)

 

I want the analog data to be aquired as long as the digital recorded data is being generated or alternatively continously until the user stops the process.

 

I started looking at some example with correlated DIO, however in the examples the digital and analog is of the same type. ie. output or input only. But since Im interested in the digital out and analog input case I'm confused on how to correlate these.

 

Im also confused how to use the 100kHz timebase clock built into the DAQ for the timing. Right now I can only select analog timing sources.

 

Im using USB DAQ 6229.

 

I would be very grateful for any help. Plz see attached VI or image. 

0 Kudos
Message 1 of 7
(3,217 Views)

For DAQmx it doesn't matter if the kind of data (input vs. output).

I am not sure if the first port of the 6229 has 8 or 24 channels (only the first port can do correlated/timed IO) and if you can sample analog with 1.1 MS/s

Just try the shipped examples, changing things little by little.

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 2 of 7
(3,200 Views)

Does these look like something that would work?

 

The thing is I'm not sure on how to "connect" the three different tasks for the daq. When does the output for the digital data start and is the loop correctly placed for analog to be continious?

 

Regards

 Carl Zandén 

0 Kudos
Message 3 of 7
(3,195 Views)
For some reason I can't upload the VI.
Message Edited by Carlz on 05-01-2009 04:45 PM
0 Kudos
Message 4 of 7
(3,194 Views)

Does this mean I can't do correlated measurements with two digital ports (11 channels on port 0 for 100kHz data and 11 channels on port 1 for digital data)?

 

Regards

Carl 

0 Kudos
Message 5 of 7
(3,138 Views)

You should check your manual to see how many correlated IO lines are available.

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 6 of 7
(3,125 Views)

The USB 6229 has 32 lines on port 0 which I assume can do correlated I/O.

 

The simple problem is:

 

Aquire digital data, store in tdms, generate the same digital data.

 

But I can't make it work!

 

Please help me

 

Regards

Carl Zandén 

0 Kudos
Message 7 of 7
(3,106 Views)