LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

method to continuosly write a DBL value on DAQ?

I am trying to build a VI capable of writing continuosly on an output channel of my DAQ.
What I want to write, sample by sample, is a DBL value I generate inside a while loop (which is refreshed continuosly).

I use Labview 7.1.

Does somebody know how to do it or how to adapt any example?

Thank you,
Roberto Rodio
0 Kudos
Message 1 of 6
(2,848 Views)
Generally with Help->Find Examples you can find an example about your specific hardware. Also, you can search about Analog Output.
Given the example, is often immediate to copy the code into your own vi and get it it work.
Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 2 of 6
(2,844 Views)
The best example for your problem is probably "Gen Voltage Update.vi", if the DAQmx Write VI is sorrounded by a while loop, this should solve your problem.
greets, Dave
Greets, Dave
0 Kudos
Message 3 of 6
(2,840 Views)
Thanks Dave, Thanks Paolo.

What I really need to solve now is the limit of the execution time of the while loop (which is too long).


Best regards,
Roberto
0 Kudos
Message 4 of 6
(2,835 Views)
I don't know what example you found and how you are using it, but beware that the Create Channel and the Clear Task vi's should be located outside the write loop.
Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 5 of 6
(2,831 Views)

Dear Roberto,

If you would like to continously generate different waveforms you should give a look to the example.
Harwdare Input & Output>>DAQmx>>Analog Generation>>Voltage>>Cont Gen Voltage Wfm-Int Clk-Non Regeneration.vi

As long as you provide enough samples for each iteration of the loop you should be able to get around the software timing limitation.

Best Regards

 

 

 

 

FiloP
It doesn't matter how beautiful your theory is, it doesn't matter how smart you are. If it doesn't agree with experiment, it's wrong.
Richard P. Feynman
0 Kudos
Message 6 of 6
(2,813 Views)