Installing the LabIML Serial DriverHome
Newsletters
Catalogue
Search
|
LabIML is the Windmill 4.3 serial driver which is
free to our newsletter subscribers.
Once you have unpacked and installed your Windmill
programs, follow these steps. You only need to do this
the first time you use Windmill. From then on you can
simply load the Logging and Charting programs.
- Run Windmill ConfIML.
This detects the device drivers on your computer
(such as LabIML for serial devices) and lets you
select the appropriate settings for these drivers.
- In ConfIML press the Add button and select the
LabIML RS232 ASCII Instrument Handler.
- Type the name of your instrument and the number
of channels of data you want to collect. If you
were collecting latitude, longitude and depth
readings for example, you would need 3 channels.
- Choose the Reading Protocol of your instrument.
- If your instrument automatically sends data at
regular intervals choose Continuous flow.
- If your instrument needs a command before
supplying data choose Request/Response.
- You can often leave the other instrument
settings at the defaults, but here is what they mean.
- Initialisation String
-
An Initialisation message is sent when LabIML loads, and only then. It should contain any data you need to send just once to the instrument to configure it for use.
- Timeout (ms)
-
The timeout is the number of milliseconds that the instrument driver will wait between sending out a prompt string and obtaining a reply. A reading error will be declared if this is exceeded. To avoid spurious timeouts set to between five and ten times the normal response time.
- Data persistence time
-
Once data has been read from an instrument it is stored and returned as a valid reading until the persistence time has expired. Thereafter, with Request/Response instruments, an attempt to read it directly will cause a new reading to be taken. If you set the persistence time to 0, every channel reading will cause a complete message to be executed. With a longer persistence time the message need only be executed once and all channels can be obtained from the stored data. When reading in the background the persistence time should be longer than the instrument idle time. For continuous flow instruments the data persistence should be longer than the sampling rate.
- Instrument idle time: 100 ms
-
Some instruments do not like being read from at too high a rate. This setting ensures a minimum time between messages. This is important in Background mode as it is used by the driver to determine the rate at which it reads the instrument.
- You now need to define how to extract data.
(Windmill doesn't just store the entire message:
it extracts the relevant data from each message,
directing each data item to a channel.)
Press the Channels buttons and enter a Reply
Parse string. You need to first locate the data and then extract it.
When you are logging several types (channels) of data from an instrument that continually sends data, the parsing proceeds along the string for each channel. For a request/response instrument, the parser goes back to the beginning of the string each time for each channel. See "Parsing Data" for more information.
- Enter your communication
settings: baud rate, com port, etc. These should match those used by your instrument.
- Save your settings and close ConfIML.
- Run the SetupIML program. This lets you specify
how you want to use your instrument. Select
LabIML from the Device menu and double-click
your channels to choose names, units, ranges and
alarm levels.
You are now ready to use the Windmill logging,
charting, display and control programs. In future you can go straight to using these Windmill programs without going through the setup procedure.
We have guides to configuring the software with
specific instruments, including Mettler Toledo balance,
Parallax BASIC Stamp and Transcell Digital Indicator.
These are listed at
http://www.windmill.co.uk/software.html#technicalsupport
If you are not getting data with Windmill, right-click the LabIML icon and choose "Debug Options" and select all checkboxes.
- No data is shown in the window.
You may have a communications problem. See "Trouble-Shooting Serial Port Communications".
- Data is there but the window says "Parsing Failed"?
When your instument sends a message it
doesn't just send one data reading. Its string of
characters may contain many different values, commas,
time stamps, identifiers and so on. You need to "parse"
the message to extract just the data items in which you
are interested.
- Close all Windmill programs and IML Device icons.
- In ConfIML select your instrument.
- Press the Settings button.
- Press the Channels button and enter the Reply Parse
String. Note that when parsing data you need to:
- Locate the position of the data in the message
string
- Extract the data to be logged.
For more information see our Parsing Help page.
- Characters are being extracted but it is not the data you want.
Proceed as above and edit your data extraction instructions. See the Parsing Help page for more details.
You might also find our Technical Support FAQ and
Installation Guide useful.
If you are still having problems get in touch. Please give as much information as possible, including what steps you have taken so far.
Home | Windmill Programs | Monitor | On-Line Shop | Free Literature and Software Demos | Contents | Search
|