A question about data delay

Recently, some customers reported to us that there was a delay in the data when using Kunwei force sensors. The main performance is that the sensor performed normally when the software provided by us was used, but if they use the code built by themselevs or use the parsing code examples provided by us, the data output by the force sensor would be delayed, and this delay would continue to expand as the program runned longer.

Reason Analysis

After communicating with these customers, we learned that the reason for this phenomenon is from the analysis of data. Some customers directly place the parsing code provided by us in the position of reading sensor data in their own code., and do not care about the execution timing of this code; there are also customers who have added drawing operations to their own programs. The function of drawing greatly occupies computer resources, resulting in the data by the sensor being accumulated and not processed in time.

Solutions

Actually, the 6 axis force sensor will always send out the force and torque data, we recommend that the customer make the data analysis function of the sensor into an independent thread, so that the thread keeps receiving data and analyzing data. Then the customer uses other threads to call the latest data results parsed by the parsing thread, instead of inserting the parsing part into a function segment and the parsing function is executed circularly with some other functions, so that the sensor’s data will be affected by other functions. As a result, the data is stacked together and cannot be parsed in time.

Under the normal situation, whether you use our software or build your own parsing code, the data of the force torque sensor will change rapidly with the tapping when you tap the sensor gently.

1 1

If you have any problems in use, please communicate with our technical engineers in time, and we will provide you with technical support.

Search

Subscribe to our newsletter