Measurement Computing   Easy to Use | Easy to Integrate | Easy to Support catalog banner

Finite length AO with different waveform data each time - ULx for...

Expand / Collapse
 

Finite length AO with different waveform data each time - ULx for LabVIEW o


Attached is an example written with LabVIEW 2012 and ULx 2.06.   It can work with any hardware paced D/A devices from MCC, such as USB-3101FS and USB-1608GX-2AO.  The goal of this example is to send a voltage array out once and, without clearing the task, have it send out a different data array (of the same length) the next time around.  i.e. it demonstrates that you do not have to kill (clear) a task, and then create a new task (create channel VI), just to send out a different data array.

In this example we do not use the stand-alone Start VI, since we set the Write VI to autostart.  We do use the Stop VI each time.  But we do not use the Clear VI until the very end (at program closure), demonstrating that we can reuse the existing task.

Two different output waveforms will alternate back an forth, following each other after a slight delay.  The delay is software overhead.  Holding off the start of each output until the arrival of an external digital start trigger is not demonstrated, but could be added by the user.   The USB-3101FS hardware does not have an external start trigger, but the USB-1608GX-2AO does.






Rate this Article:

Attachments



Add Your Comments


For comments email TechSupport@mccdaq.com.

Details
Article ID: 50565

Last Modified:10/10/2014 2:40:25 PM

Article has been viewed 6,269 times.

Options