Phidget Bridge Control: Manually request/schedule measurement event?
Posted: Wed Nov 17, 2021 3:01 am
Hi, I am working on a project with load cells for a scale where I need to do a measurement at a certain point of time. I build a scale which works as a user interface and recognizes if something is put on the scale and identifies the item based on it weight. I am using the JavaScript API with a PhidgetBridge 4-Input and the PhidgeControl Server.
Ideally it should register the exact weight of the item(s) put on the scale. I raised the ev threshold so that it fires only if an item of a certain minimum weight is placed on the scale. This works so far. The problem is, that the scale creates false positives due to the vibration of the scale construction, when putting an item onto the scale or removing it or moving items on the scale. To double check if a measurement is valid I would like to request a new measurement on demand to compare/validate.
In the API description I found a way to get the last measurement. But in case of a false positive, the last measurement would be the false positive, so I can not use it to validate it. Is there a way to request a measurement on demand so that I can wait a few milliseconds after each event and request a new one for a validation? Many thanks, C.
Ideally it should register the exact weight of the item(s) put on the scale. I raised the ev threshold so that it fires only if an item of a certain minimum weight is placed on the scale. This works so far. The problem is, that the scale creates false positives due to the vibration of the scale construction, when putting an item onto the scale or removing it or moving items on the scale. To double check if a measurement is valid I would like to request a new measurement on demand to compare/validate.
In the API description I found a way to get the last measurement. But in case of a false positive, the last measurement would be the false positive, so I can not use it to validate it. Is there a way to request a measurement on demand so that I can wait a few milliseconds after each event and request a new one for a validation? Many thanks, C.