LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Compare Traditional DAQ with DAQmx (Analog Input)

Hello

If assume the AI Acquire Waveforms VI same as DAQ Assistant, How we should specify an acquisition mode to N sample or continuous sample.

 

Thank you for helping,

0 Kudos
Message 1 of 4
(2,845 Views)

Hi Pattra,

 

you should replace AIAcquireWaveforms by DAQmxRead function!

 

How we should specify an acquisition mode to N sample or continuous sample.

There are other DAQmx functions where you define those settings, like DAQmxTiming. You need to specify those parameters as was done in that very old original software you are trying to upgrade!

See this for more detailed information!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(2,819 Views)

Thank you again for your advice.

But I am still confused about that. I attach pictures of tradition  code. Could you change for me to DAQmx code that I am not sure about specification to N sample or Continuous sample. 

0 Kudos
Message 3 of 4
(2,805 Views)

Hi Pattra,

 

Could you change for me to DAQmx code

How should I do this? Should I use GIMP to paint in the image?

When you want to have code you should attach code (aka VI)!

 

I am not sure about specification to N sample or Continuous sample

The sample reads just 1000 samples at 1kHz samplerate: why do you want to read "continuously"?

 

Btw. LabVIEW comes with a huge library of example VIs, explaining how to use all those functions. There are a lot of VIs explaining how to use DAQmx functions. Just examine and try them!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(2,800 Views)