03-24-2018 08:32 PM
Hey everyone so I'm working with labview on a simple circuit with an LED in series on a bread board connected to a DC power supply as well as a digital multimeter.
I have attached my labview file so far, and I think my setup should work, but I need to be able to change the voltage on the DC supply based on a user input as a starting point and essentially add in the stepsize until it reached the voltage maximum. The code in my file for the Agilent power supply is to set it to 6 volts currently. I need to be able to change that number and I don't see how to do that if it will only input into the machine that line of code. How do I put in a variable for the 6 in my line that I have so it can change?
03-25-2018 02:02 AM
What you need is a way to transform the VWanted value into the string used by the power supply.
Use for this the function format into string. Just replace the 6 by %f
I don't know if this format is valid but probably it is.
Also look into real drivers on internet for the specific HP/Agilent/Keysight (all the same vendor but changing names) power supply
You probably learn a lot and start faster in programming.
attached a start.