LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

flow of the program

Hi

 

I have a vi program that read data from a serial port. It's a extension of advanced serial example.

 

Now I want to add 4 buttons to control the serial connection. A connect button to connect to the serial port, a Start button that write to serial port a command to start transmit data and a Stop button that write to serial port a command to stop transmitting. 

 

Can someone guide me to a easy way to control the serial connection ?

 

Thank you

0 Kudos
Message 1 of 4
(2,772 Views)
You can do this quite easily with a simple state machine.
0 Kudos
Message 2 of 4
(2,756 Views)

It looks like your're already confident with serial IO, and you just need to implement a good front panel and a control structure.

You may design your front panel first, then manage controls by an event structure. If you don't know how to use it, you may start here:

 

http://zone.ni.com/reference/en-XX/help/371361F-01/glang/event_structure/

 

Regards

0 Kudos
Message 3 of 4
(2,752 Views)
...looks like someone has anticipated me Smiley Happy
0 Kudos
Message 4 of 4
(2,745 Views)