06-20-2014 07:43 AM
Hey people of the world,
I have a question regarding input values. I am looking to automate the program I have attached, and the main function I'm trying to implement is to increase the voltage and/or current inputs after each data collection. For instance the first values of 12V and 0A are set and run is pressed, data streams for 5 seconds and then is paused and the data is recorded. After it unpauses I would like for the current to have a 5% increase for the next data collection cycle and then increase again after that. Thank you for any feedback or suggestions, much appreciated.
06-23-2014 01:42 PM
Hi Zzimmha,
One approach you might want to investigate is to use some sort of shift register in the Analog Output Loop that multiplies itself by 1.05 every time you call the "Set PS Output" or "Pause" states in your output loop.
Another option would be to use a functional global variable and have an additional part in your "Set PS Output" state in the Analog Output Loop that sets the output values by calling into the FGV with a "increment" enum state. You could then pull the FGV data when you are ready to use the DAQmx Write function. This would be a little more modular implementation of the first suggestion, as you could programmatically change the increase % when you call the FGV.
Hope this helps!
06-23-2014 02:15 PM