Dynamic Signal Acquisition

cancel
Showing results for 
Search instead for 
Did you mean: 

how to activate the speech in the labview when a signal is entering by Rs 232

i am doing an alert alarm system. in this a sensor is attache to a persons body. when the sensor is activated it sends the signal to the floor controller(bs2) which is placed at each level. from thr floor controller the bs2 sends the signal to the master(bs2). the master sends the signal to the labview. when the signal enters the labview by rs232 the led has to glow and has to talk. Now i can transmit the signal from all the rooms to the floor controler and from the floor controller to the master and from the master to the labview. the led is glowing when the sensor is activated. now the only problem i am facing is the speech part. i can able to make the labview to speak independently i.e if u type a text it wil speak.. but it has to talk when the signal enters the labview. can any one guide....
0 Kudos
Message 1 of 2
(7,507 Views)

You have two options to consider: event-driven or polling. Event-driven programming sets up and enables a VISA event, such as receiving a termination character from your serial device. You could set up a VISA event and wait for your rs-232 device to send information to your computer. When the event fires, you could have LabVIEW decide what to "say," and then do so.

The polling option involves having LabVIEW constantly check the number of bytes at port using a property node with a VISA refnum wired to it. Upon receiving data in your serial buffer, you can begin executing the commands to respond to it as desired.

Jarrod S.
National Instruments
0 Kudos
Message 2 of 2
(7,488 Views)