Loadstar Sensors Login

Writing Your Own Software to Communicate with iLoad Digital USB Load cells

Since the iLoad Digital USB Load cells present themselves to Windows as COM ports, it is very easy to write your own program to read the loads. Simply open the COM port from your application and send the string O0W1. Then read the returned string back in millipounds. We recommend the following steps:

  1. Open the port at 9600, N, 8, 1, no hardware flow control.
  2. Write a [CR] to the port.
  3. Wait for a few milliseconds (say, 100 to 1000, this depends on your hardware, try a longer wait first then shorten it to see what works. (An alternative is to wait until there is a required number of characters in the input buffer, in this way the wait time is reduced to a minimum).
  4. Read the input buffer and discard till there are no characters to read. (You can check if you get an 'A' back)
  5. Write CT0[CR] to the port to TARE(zero load condition) the sensor,
  6. Wait for the 'A' for acknowledgment.
  7. Write O0W1[CR] to the port.
  8. Wait again for a few milliseconds.
  9. Read the input buffer and process. This will contain the load in millipounds.
  10. Repeat Steps 5 to 7 as needed.
  11. Discard any bytes left in the input buffer before you close the port.
  12. Close the port.
  13. If you want maximum throughput use the 'O0W0' command for continuous output of load in millipounds. The sensor will output the load as fast as the communications channel with the PC will allow. Typically 150 Hz on standard products and over 500 Hz with the optional high speed upgrade.


If callbacks (or events) are available, it is preferable to use them instead of polling the load cells in step 7 above. This way Windows will inform the application that there is data to be read.

Examples for Labview and Matlab are available on our support pages.




If you cannot find what you're looking for or have any other questions please call or email us and we will be glad to be of further assistance.