Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

ESP300 Empty String Filter

I'm using LV 8.0.1 and attempting to record position data from a Newport ESP 300 Controller.  I have a position query looping and a serial read in place to capture data.  My problem centers around the frequent empty strings I receive while pairing the position data with laser data.  The laser data outputs every 5ms and never fails to write.  Is there a way to avoid an empty string using a filter or buffer to delay writing to an array after reading from the port?  Is anyone familiar enough with this controller to tell me how fast and accurate I can expect to record data?


0 Kudos
Message 1 of 2
(3,130 Views)
Hi solamente,

You could try using a VISA property node and query the number of bytes available at the port before reading.  You could use this to create some logic which would prevent a read from ocurring if no data was available.
Wes Pierce
Principal Engineer
Pierce Controls
0 Kudos
Message 2 of 2
(3,109 Views)