LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

sychronizing AI Acquire Waveforms.vi and AO Generate Waveforms.vi

I am trying to generate waveforms to control various things (mostly actuators) and acquire data from transducers simultaneously. The update rates do not have to be in synch, but I need the Acquire to start at or before (and last through) the generation. I can pare off extraneous data later. I have included my current VI, but it's sort of convoluted so I'm not sure how much help it will be. Thanks.

I am using 2 6713 boards and 2 6071E Boards. Running Labview 7.1 on Windows 2000. I have a RTSI cable if that helps.

--Rick
0 Kudos
Message 1 of 2
(2,586 Views)
Hello,


There is already an example program posted that should help get you headed in the right direction. Here is a link to the program.

In order for this program to work properly, there are a couple of things that we will need to get set up. First, we need to go into MAX and right click on the DAQmx folder and select Create New DAQmx Device>>RTSI Cable. Then we want to right click on the RTSI Cable and add each of our devices to the cable. This operation is just going to let DAQmx know that the devices are available to be routed, and that there is a cable connected.

Now in the program, we simply need to sele
ct the appropriate input and output channels on the front panel. Lastly, we need to change the constant on the block diagram for the analog output start trigger, so that it now selects the appropriate ai/StartTrigger. This is the action that causes the two operations to happen at the same time. DAQmx will automatically route the ai/StartTrigger from another board over the registered RTSI cable, and the analog output will start at the same time that the analog input starts.

This is a large subject, and a lot of new information. Just let us know if you have any follow up questions.


Best regards,

Justin T.
National Instruments
Message 2 of 2
(2,586 Views)