2.3 Input ports of the V-Mon 4000

The inputs and of the VMonDrv driver can be accessed as shown in Fig. 2.2.


PIC


Figure 2.2: Example of input and output flags of the VMonDrv driver

One block of the From type allowing the user to read one input has the Goto tag set to VMON__N1S1, while the other has this tag set to VMON__N1S2. The number in the flag following the N letter corresponds with the node identification number (ID) - where to find node ID is described in the chapter 3 and the S letter is followed by the signal number. For some of the signals, there is a possibility to use an alias. Complete list of the signals and aliases may be found in the table 2.1. The blocks always have the VMON prefix right at the beginning of the tag followed by two _ characters (underscore).





Signal number Function Alias






S1 Analogue input 1



S2 Analogue input 2



S3 Analogue input 3



S4 Analogue input 4



S6 Accelerometer x ax



S7 Accelerometer y ay



S8 Accelerometer z az



S10 Compass x cx



S11 Compass y cy



S12 Compass z cz



S14 Gyroscope x gx



S15 Gyroscope y gy



S16 Gyroscope z gz



S18 Battery bat



S19 Temperature temp



S20 External power supply extI



S22 Time delay between last two samples tDelay



S23 Time stamp of the last sample tsLast



S24 Last sequence number seqNo




Table 2.1: List of input signals

The connection string in the From flag thus consist of the driver name , two underscores __, (N) letter and node identification number, (S) letter and signal number (or alias).

For the signals may be separated into groups (analogue inputs, accelerometer, status) there is a possibility to use multi-input blocks (INQUAD). The advantages of such blocks are increased processing speed and better readability of the algorithm. The signal numbers and corresponding aliases are listed in the table 2.2. Detailed description of the multiple-input blocks may be found in the function block reference manual[3].





Signal number Function Alias






S5 All analogue inputs S



S9 Accelerometer signals A



S13 Compass signals C



S17 Gyroscope signals G



S21 Status information stat




Table 2.2: List of quad-inputs

All supported input blocks are listed in the example in the installation folder
\EXAMPLES\IODRV\VMON_Example

Status information (signals S18 - S21) are available only when using a version for Windows in combination with the Boost library (configuration number 4 in the chapter 3).