06-16-2022 12:15 PM
Hi Everyone!
I have a issue with my code
I have a Power Supply PWS4323, and I want to read the current just one time
But when I select the step Measure Current the code read a lot of measure
Could you help me?
I attached the code and the file
Regads!
Solved! Go to Solution.
06-16-2022 12:54 PM
Your loop is running at about 100ms. So unless you can change that value in that time, of course the control will be read multiple times and the command performed several times.
1. You should move the serial port initialization to before the loop and the closing of the port to after the loop.
2. Have a button for performing your action. You can then use an Event Structure to react to the button's value change and therefore perform a single action.