03-09-2021 05:41 PM
Hi everyone!
I am reading an analog signal using a NI myDAQ. I programmed a PID to control the output voltage of a generator.
It is working very well and I can plot the signal on the front panel....but, i would like it to refresh quicklier! It seems that it is refreshing every second.
How can I improve this? Any suggestions please
Thank you so much!
03-09-2021 06:33 PM
@navarro08 wrote:
How can I improve this? Any suggestions please
Thank you so much!
First, read (and study, and experiment with what you) "Learn 10 Functions in NI-DAQmx and Handle 80% of your Data Acquisition Applications" (I think that's the correct name). It is an NI White Paper, part of its discussion of DAQmx and how to use it.
Once you have done that, get rid of all the Dreaded DAQ Assistants (DDAs) and replace them with a few DAQmx functions. It is impossiblle (well, extremely difficult) to figure out what your code is trying to do, and the timing and synchronization is thoroughly hidden inside those DDAs.
Bob Schor