Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

how can i stop prorgamm which use serial port ?

i want to stop manually....how ?

..............................................
" Science is came....not come "
I study Mechatronics Engineer
..............................................
skype : t_alhowaiti
0 Kudos
Message 11 of 14
(1,411 Views)
You've got the stop button. What else do you want? The function I mentioned will display elapsed time.
0 Kudos
Message 12 of 14
(1,406 Views)

As you don't post your vi, I won't check this thread anymore.

good luck.

Real programmers try to learn from their mistakes, others keep on asking.

greetings from the Netherlands
0 Kudos
Message 13 of 14
(1,389 Views)

As was said before, move the Configure Serial Port to before the loop and the Close VISA Session after the loop.  Leave the timeout unwired.  10 seconds is just fine.

 

Another thing that could help you is the fact that the case structure will accept strings.  Just wire your read data straight into the case selector.  You can then have a case for each of your possible values.  Do this instead of having cascading case structures.  It makes life a lot easier.


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
0 Kudos
Message 14 of 14
(1,384 Views)