User manual
47
© 2007, Elektro-Automatik GmbH & Co. KG
EN
- set_mode.vi
Sets the device mode regarding external control and standby
of the device’s output/input. There are two bits, „Standby“
and „Remote“. Standby switches the power output (or input)
of the device on or off. „Remote“ sets the device into remote
mode. The remote mode is required to control the device,
i.e. to set values or transfer data. Without the remote mode
activated the device can only be requested to send actual
values or status data.
The remote mode can only be activated if the device „allows“
it. This depends on the current mode it is in. The local mode
or another, special state or operation mode the device may
inhibit the activation.
- wr_set_values.vi
Writes the set values for U/I/P/R, according to the device type
and if remote mode is enabled. It does not send and set all
four values at once, it sends every value with its own object. If
a set value isn’t given or does not change, the corresponding
object is not sent. The input values are automatically limited
to the device properties. Too high values are set down to the
nominal value of the device. This VI sends simple message
and thus no answer is generated.
- actual_values.vi
Requests the actual values for U, I and P. These are ans-
wered all at once, so it’s very fast. Those values always lie
within the limits of the device and should be identical to the
values displayed on the device itself.
LabView support
8.1.1 Short info Communication VIs
The communication VIs serve as a sort of drivers for the
various bys systems, respectively interface types. These VIs
are the basis of the standard VIs. Without the communicati-
on running in the background no device can be addressed.
Hence you must use the communication VIs and start them
before any standard VI is used. Every type of interface uses
its own VI. This is just an overview about the communication
VIs, detailed information about every VI can be found in the
user instruction manual of the VI set.
- CAN.vi
Read/write communication objects with the CAN protocol
with card IF-C1.
- RS232.vi
Read/write communication objects over RS232 (serial COM
port) with card IF-R1.
- USB.vi
Read/write communication objects over USB with card IF-
U1.
- Communication_layer.vi
Core VI of the communication, uses the other three VIs
alternatively, single or combined.
With the VIs „RS232“ and „USB“ you can control up to 29
further devices if the device, which is connected to the PC,
is configured as gateway to the CAN bus (see „4.3 CAN card
IF-C1“). The gateway feature is only recommended with low
bus traffic. The direct communication with the CAN bus from
a master device (PC) is much more efficient and faster. This
but requires an extra CAN master card in the PC.
8.1.2 Short info Standard VIs
The standard VIs are the most used VIs and are adapted to
every different type of device to suit all of its features. You
can control and configure nearly any feature of the particular
device. You can use (place) them as often as you want, but it
is only allowed to run multiple VIs at once if they all address
a different device.
These VIs require the communication VIs to be set up and
running.
This is just an overview about the communication VIs, de-
tailed information about every VI can be found in the user
instruction manual of the VI set.
- init.vi
It is run once at the start of the whole application, but after the
communication VIs (which it requires to run), and initialises
the device which can be „found“. It reads out all necessary
data that is required for the whole system to work correctly
and handles them over to the other VIs.