Vi descriptions – Crystal 30 Series Digital Pressure Calibrator User Manual

Page 6

Advertising
background image

Virtual Instruments

4

30 Series LabVIEW Drivers Manual

VI DESCRIPTIONS

M30 Initialize.vi

The M30 Initialize VI opens the serial open and correctly initializes it for operation with the Model 30. It also passes an initialized M30 Cluster, which can then
be used as inputs to other M30 VIs.

X

Inputs and Outputs

M30 Cluster . . . . . . . . . . . . . . . . . . . . . Cluster of data values that are updated by M30 Collect Data.vi.

M30 Collect Data.vi

M30 Collect Data handles the reception and parsing of the serial data being streamed from the Model 30. The serial port must be opened using the

M30

Initialize.vi, and streaming must be enabled by calling M30 Start Streaming.vi before this VI is used. It only processes data already sent, and will not wait for the
next data packet, so it is possible that none of the elements in the M30 Cluster will be updated within the execution of a single call.

It is expected that this VI is called within a While Loop, as it must be continuously called to parse the streaming data from the Model 30. For performance im-
provement reasons, it is recommended that a 25 to 50 millisecond delay be added to the While Loop, but is not required. Adding this delay will lower the CPU
load the program places on the computer but will not adversely affect throughput.

To detect a new reading, simply look for changes between the input cluster and the output cluster. As stated above, it is possible no values will change, de-
pending on where the Model 30 is in its streaming output.

X

Inputs and Outputs

M30 Cluster . . . . . . . . . . . . . . . . . . . . . Copied to M30 Cluster (out). Any new readings will supercede the input values.

M30 Cluster (out) . . . . . . . . . . . . . . . . Output cluster, contains the values from the M30 Cluster plus any new readings parsed during the call.

Advertising