01-15-2007 04:58 PM
01-15-2007 05:44 PM - edited 01-15-2007 05:44 PM
It would just be a while loop with a VISA Read as in the attachment. You probably also want that if the timeout occured by whatever time you use with the elapsed time function, an error would be set.
Message Edited by Dennis Knutson on 01-15-2007 04:45 PM
01-15-2007 06:23 PM
01-15-2007 06:38 PM
01-15-2007 07:09 PM
VISA Wait on Event will only wait for any serial character - not a specific one like you asked for.
The function you ask about is the compound arithmetic set to OR mode.
01-16-2007 10:49 AM
I want to do the following protocol
I am establishing a communication link between the PC and an external device using the serial port , PC has a LabVIEW program ( that is capable of serial port communication ) , the external device has its own program that can do serial port communication .
I want sort of hand shake protocol between the Pc and the external device using ASCII character notification from the serial port, I will power up the external device and execute its program, THEN I will execute the LabVIEW program, the external device program will wait until a serial port character "A" is received then it will send a "B", THEN I will execute the PC program (LabVIEW), both The PC and the External device have RS232 connections in it and both are joined together with the RS232 serial port.
I want this program to start by sending an "A" to the external device (which is waiting until it receives an "A"), when it receives it will send a "B" in return to the PC (the LabVIEW program of the PC must wait until it receives the "B" character), when it receives the "B" character it starts doing some operations, these operations are only started when the PC is notified that it has Received a "B"
I want a LabVIEW program that will always check the serial port or "READ" it and see if it has recived a "B" and when the "B" has been received it will do the operations .
Dennis Thanks a lot for you help , how can I do a program in LabVIEW that waits until not for a certain period of time and when the certain serial character is recived say "B" an certain operation will be performed
Thanks
maple
01-16-2007 11:11 AM
01-16-2007 11:53 AM
Thanks alot Dennis,
My question is How could I make the wait for an unlimted period of time ? is this dobale in LabVIEW program
Thanks
01-16-2007 12:05 PM
sorry I mean doable
Wadah
01-16-2007 12:41 PM