LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Generate finite samples of analog output with DAQ.mx

Hi, 

I am using MathScript Node to generate an array of values that are transmitted via DAQ.mx with a USB-6216.

My array contains 58,000 samples, and my sampling frequency is 50 kHz, therefore my array will take 1.16 seconds to transmit.

The problem is that my DAQ.mx is doing this continuously, and I just need to transmit these 58,000 samples once. In other words, I should get a finite signal, which will end with 0, and not a continuous signal.

How can I stop the continuous generation of my analog signal?

I have tried using Case Loops, and While Loops, but the condition always depends on the MathScript Node, and so, I haven't find the way to transmit my 58000 samples array just once.

Thanking in advance for any suggestion,

Laura   

0 Kudos
Message 1 of 2
(2,663 Views)

I think that this example can help you:

 

 NI example Finder--HardWare Input and Output--- DAQ.mx---Analog output--- Voltage-Finite Output.vi

 

0 Kudos
Message 2 of 2
(2,640 Views)