07-28-2005 02:28 AM
07-29-2005 01:22 PM
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.