LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Ignore first transmission from serial port

I am trying to send a command to the camera requesting its position.
However I have found out that the camera first sends out an echo of
what was sent to it and then again sends the actual values. Now it was
suggested to me that I shud ignore the first transmission and get the
second if I wanted to get the actual position values. I am not sure
how I go about doing this. Any general suggestions about this would
also be welcome.

Thanks!
Hema
0 Kudos
Message 1 of 2
(2,459 Views)
Hello Hema,

Thank you for contacting National Instruments.

This can be accomplished by using two reads back to back. Use the
first read to "extract" the echo from the camera. Specify the number
of bytes to read as the length (in bytes) of the echo information sent
by the camera. Use the second read to "extract" the camera position.

I hope this helps! If you have further questions, let me know!

Matthew C
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,459 Views)