LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read RS232 to Excel

Solved!
Go to solution

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!

Download All
0 Kudos
Message 1 of 2
(992 Views)
Solution
Accepted by topic author jesusglzFELE

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 2
(979 Views)