LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Ramping Input Current/Voltage

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.

0 Kudos
Message 1 of 3
(2,374 Views)

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!

Xavier
Message 2 of 3
(2,295 Views)
Why don't you try the ramp pattern function wired to a for loop?
0 Kudos
Message 3 of 3
(2,287 Views)