03-20-2007 03:54 AM - edited 03-20-2007 03:54 AM
Message Edited by Slyfer on 03-20-2007 04:01 AM
03-20-2007 04:40 AM
03-20-2007 08:52 AM
Ok, another question.
I set in the VISA Configure Serial Port vi:
Termination_char = carriage return (0xD)
End_Read_On_Termination_Char=True
Timeout=10sec
then i use the VISA write to buffer function to send a string to my FlashRunner device (I send also a CR at the end of the string).
Now after some ms, there will be an answer in the receive buffer of the serial port.
Is it useless to program a timeout error??? I mean acquiring the clock every cycle (50ms) and verifing that "(actual_clock) - (start_clock) > timeout" ?? In the Advance serial port (Labview example), i notice that this "error-event" happens without program anything.
Am I wrong?
Is it OK to simply use the VISA Read, granted its termination upon CR (as declared in initialization) and the integrated timeout error??
Thanks
03-20-2007 10:10 AM
03-23-2007 10:47 AM - edited 03-23-2007 10:47 AM
Wiebe,
You are right. In the Init VISA, I set timeout, 0xD (carriage return) termination char and enable termination char.
Then I placed a Instr. Property node exactly like in the "Advance serial example" (included in labview 8), that automatically queues the termination char.
So I don't need to explicitly send the "0xD" char to the VISA Write 🙂
Also I receive the string before the termination char, so I don't need extra string computing.
It's so damn simple!!!! there must be something wrong!!!
Message Edited by Slyfer on 03-23-2007 10:49 AM