Interfacing a Sartorius BalanceHome
Newsletters
Catalogue
Search
|
Windmill software lets you interface Sarorius balances, and other instruments with an RS232 serial port, to a PC running Windows. Our new Windmill 6 software is very easy to use and you can try before you buy. Alternatively, subscribers to the Monitor newsletter (ISSN 1472-0221) can download an earlier version for free.
This page helps you get started with the free Windmill 4.3 and LabIML software. (Configuration is similar but easier with Windmill 6.) There are three basic steps.
- Run the Windmill ConfIML program and enter your balance's communication settings.
- Run the Windmill SetupIML program and choose names and units for your balance's data.
- Run the Windmill DDE Panel, Logger or Chart program to save or display data from your balance.
After you have entered your configuration settings with ConfIML and SetupIML, you don't need to use these again and can go straight to the logging and display programs. More details on entering the configuration settings are below.
Note: Sartorius's RS-232 cable has a unique pin out: it is not a standard cable. You need to either purchase the correct cable from Sartorius, or re-wire the connections. See below for more details.
Run the Windmill ConfIML program
This detects and saves a record of the hardware you want to use. You need to add the LabIML ASCII instrument handler and enter your balances's communication settings. To do this
- Press the Add button.
- Select LabIML RS232 ASCII Instrument Handler.
- Type a name for the balance, a description and enter how many channels of data you will be collecting. The name and description can be anything you like. You will generally enter 1 as the number of channels. (Each channel holds one type of data item: in this case weight is the only value being measured.) Press OK.
- Enter your instrument's settings. These should work for Sarorius balances:
- Reading Protocol: Request/Response On Demand
- Timeout: 5000
- Instrument Idle Time: 0
- Returned Message Length: Count how many characters are in the balance's message - you should find this information in the balance's Manual. If not set to 60.
- Instrument Initialisation String: Leave blank.

- You now need to define how to extract data. To do this press the Channels button. Enter a command or prompt string to send to the balance to ask for data, then enter parsing instructions to extract the data value from the balance's reply. Check your balance's Manual for details of the command to send, and the format of the balance's reply. If you can't find this information, try these settings.
- Prompt String: Escape followed by P. This looks like:
\C027P
- Parse String: The data string may be 12 characters long and look like this + 32.157 g (the missing characters are spaces). To extract the data you could search for the + and extract the characters after that until g. This looks like:
\S"+"\E"g"
- The next step is to enter your communications settings, again check your Manual for details of baud rate, flow control, etc. These settings should match those currently in use by the balance. If in doubt press the Help button for suggestions or start with these
- Save your settings and close ConfIML. You may receive a message asking you to restart Windows. Ignore this but close any IML or Windmill icons on the Taskbar.
Now Run the Windmill SetupIML program
Here you can name your channel, set its units, any alarms and so on.
- From the Device menu select LabIML.
- Your data channel will be shown as a number like 10000. Double click this channel.
- Type name for your channel and make sure Enable for Input is checked. If you want to change the units enter an appropriate scale and offset. For example, if you wanted to convert grams to milligrams you'd enter 0.001 as the scale and 0 as the offset.
- Save your settings in a *.ims file and close SetupIML.
Now open Windmill DDE Panel
- From the File menu select Load Hardware Setup and choose the *.ims file you just saved.
- Connect your weight channel. You should see the correct weight in DDE Panel.
- Proceed similarly for the Logger and Chart programs.
Getting the data into Excel
You can use the Windmill Logger program to collect data, and after collection has finished import it into Excel. Alternatively, you can collect data with Excel in real-time by writing an Excel macro to read data from the Windmill DDE Panel. For more details see our Excel page.
If you are having problems receiving data from your Sartorius balance, right-click the LabIML icon on the tool bar and select "Debug Options".
|