Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

PCI 6259 analog input/output with trigger

Great Information was very useful for me.

 

online electrical design course

0 Kudos
Message 11 of 12
(357 Views)

The very slight tweaks I applied to your code back in msg #2 were only focused on establishing hardware sync between the AO and AI tasks so that you could get *consistent* behavior.

 

In your present situation you describe running continuously or else putting "my code" into a While Loop.  So of course there will be idle times between runs as the tasks get cleared and then reconfigured.

 

To change the output signal without those idle times, you need to let the task keep running continuously but write new waveform data to it.  If your waveforms are always full periods of a sine wave, 0 phase (so they start and end at 0 output), the transitions should be pretty seamless.

 

The earlier code sets up continuous tasks, but limits the # loops over which AI data is read.  You could make that a while loop and, at appropriate iterations, write new data to the AO task.

 

 

-Kevin P

 

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 12 of 12
(340 Views)