12-26-2014 01:49 AM
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
12-26-2014 11:22 PM
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
12-27-2014 08:25 PM
Do you have your current VI to share, so we can help better?
12-29-2014 02:02 AM
Thank you for reply. How is created the closing code?
12-29-2014 12:43 PM
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/