Crystal nVision Lab Reference User Manual
Page 11

Programming Tips
9
nVision Programming Instructions
—
ProGrammInG tIPS
The nVision is a very straightforward device to communicate with, provided you follow these tips. This advice is derived from our own experiences automating
systems based on the nVision, as well as the experiences of our users; following these tips will help save you some time.
Anytime you establish (or re-establish) communications with the unit, you should use the following initialization sequence, which will help you deal with
possible noise due to reset, etc.:
Note:
Replace # with either 1, 2, or 3 when module query/commands are used.
1
Send a carriage return to clear any unprocessed characters in the nVision’s input buffer.
2
An error code like
|80100102
will be returned; this is normal.
3
Use the
MOD:UNIT?
#
and
MOD:UNIT!
#
query and command to select the unit you want to use.
4
If appropriate, zero the nVision by sending the
MOD:ZER!
#
command, since the zero value may need resetting.
5
If you are logging data, you should log the serial number of the unit for traceability purposes by using the
SN?
or
MOD:SN?
#
query. You should also log
the product code, hardware revision, and firmware version with the
VER?
#
or
MOD:VER?
#
query.