LJME_SYNCHRONIZATION_TIMEOUT | LabJack
 

LJME_SYNCHRONIZATION_TIMEOUT

2 posts / 0 new
Last post
engamor
engamor's picture
LJME_SYNCHRONIZATION_TIMEOUT

In the documentation the LJME_SYNCHRONIZATION_TIMEOUT is explained with the following words: LJM did not receive data from the stream for long enough that reading from the LJM buffer timed out.

I am using the system triggered by an external clock , divide by 1, ALL_OR_NONE, in a windows environment, Visual Studio 2012 Visual basic .  .Net framework 3.5

Firmware of the T7 is 1.0242 version and LJM version is 1.17

1) I do not understand well the meaning of the error . Is the T7 not sending data ( streaming data ) to the library code fast enough or is the host program late in reading the buffer ? 

2) If I catch the error and simply overlook to it it seems that the system can re-sync and that no data is lost anyhow. Is such behaviour reasonable ? What is possibly happening?

Thanks.

LJME_SYNCHRONIZATION_TIMEOUT 1306

LJM did not receive data from the stream for long enough that reading form the LJM buffer timed out

LabJack Support
labjack support's picture
It sounds like you need to

It sounds like you need to increase the LJM_STREAM_RECEIVE_TIMEOUT_MS configuration in LJM to accommodate for slower stream data retrieval between LJM and the T7. A 0 for LJM_STREAM_RECEIVE_TIMEOUT_MS is infinite.

For more information, see the Externally Clocked Stream section of the LJM user's guide.

1. It sounds like neither. (LJM expects to receive data faster, but your applications probably just sends data slower.) Of course, you need to make sure externally clocked stream is set up correctly so that data will eventually arrive.

2. It's probably best for you to increase LJM_STREAM_RECEIVE_TIMEOUT_MS.