Une question sur le retard des données

Récemment, certains clients nous ont signalé qu'il y avait un retard dans les données lors de l'utilisation des capteurs de force Kunwei. Le principal problème est que le capteur fonctionne normalement lorsque le logiciel fourni par nous est utilisé, mais s'ils utilisent le code construit par eux ou les exemples de code d'analyse fournis par nous, les données produites par le capteur de force sont retardées, et ce retard continue de s'accroître au fur et à mesure que le programme s'exécute plus longtemps.

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.

Recherche

Abonnez-vous à notre newsletter