From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

sample rate

Hi friends,

 

Sample rate of a digitizer is adjusted and the signal is created in VI. After  the digitizer is stopped, I would like that sample rate of signal is changed in VI. for this, sample rate value is change by the function. But, the digitizer take a new data and the former signal is changed.  The digitizer is not  started again,can I change the sample rate?

 

Have a nice work

0 Kudos
Message 1 of 5
(2,844 Views)

Use a control to feed the sample rate.  At the end of your VI, set up some closing code that uses your function to set the control to the value you want.  If you want it to persist through closing the VI, use the invoke node to save the value as a default.

 

I think that's what you're trying to do

0 Kudos
Message 2 of 5
(2,804 Views)

Do you have your current VI to share, so we can help better?


Kudos are the best way to say thanks 🙂
0 Kudos
Message 3 of 5
(2,776 Views)

Thank you for reply. How is created the closing code?

0 Kudos
Message 4 of 5
(2,742 Views)

You should post your code so we know what you are using. Typically you use something like "Stop Task" to close your connection to the device.

http://zone.ni.com/reference/en-XX/help/370469AA-01/lvdaqmx/mxstop/

0 Kudos
Message 5 of 5
(2,711 Views)