LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Change range or sampling rate whilst generating a voltage waveform continuously

   Dear Sir/Madam,
 
I would like to be able to change the sampling rate and range "on-the-fly" (whilst generating a continuous analogue waveform with a DAQmx). How to do this?
 
Thank you.
Regards
Albert
0 Kudos
Message 1 of 4
(3,383 Views)
Hey Albert,

It is possible to perform a simultaneous AI and AO in DAQmx. You simply have to set up the AI task in parallel with the AO task. Since you are doing continuous, this will probably work best in two parallel loops.

To change the sampling rate "on-the-fly", please see the forum post below.

Possible to change sample rate dynamically?
http://forums.ni.com/ni/board/message?board.id=250&message.id=35581&requireLogin=False
Regards,

Chris Delvizis
National Instruments
Message 2 of 4
(3,358 Views)

  Dear Chris

 

Thank you for the link answering the sampling quesiton. The proposed solutions are as simple as it may get.

 

I am still however wondering about being able to change the maximum voltage (range) without interrupting the data acquisition process. On one hand, I understand that I should then expect some ripples or even invalid data at the time of the switching. On the other hand, if I nevertheless want the real-time switching, is it at all possible?

 

Thank you.

 

Regards

Albert

0 Kudos
Message 3 of 4
(3,245 Views)
Albert,

You won't be able to change the voltage range without interrupting the task, meaning stopping and restarting the task. When you change the voltage range you are actually changing the amplification of your signal. The signal is amplified so you can take advantage of the full resolution of your device. Unfortunately, this setting cannot be changed in the middle of an acquisition.
Regards,

Chris Delvizis
National Instruments
Message 4 of 4
(3,228 Views)