Sample vis – Crystal 30 Series Digital Pressure Calibrator User Manual

Page 9

Advertising
background image

Virtual Instruments

7

30 Series LabVIEW Drivers Manual

SAMPLE VIS

Two VIs are provided as examples of how to use the Model 30 library. They are

M30 and Test Panel.vi and M30 Collect Pressure Point.vi.

M30 Test Panel.vi

This top level VI demonstrates the use of each of the VIs within the library. It also demonstrates a sample data collecting loop, including the graphing of the
pressure or mA readings from the unit. As it is a top level VI, it has no inputs or outputs.

The COM Port numeric control should be set to the proper COM port prior to executing the VI. To stop executing, press the Stop button on the VI. Do not use
the LabVIEW stop command, as it will leave the serial port open until LabVIEW is exited, or the VI is rerun and its stop button is pressed.

M30 Collect Pressure Point.vi

This VI is a simple data collection VI that takes the M30 Cluster as an input and adds the appropriate sensor reading to the Data array. Time stamps are based
off of the Start time (tick count) input.

X

Inputs and Outputs

Sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . Use 1 for P1 or 2 for P2.

Data In . . . . . . . . . . . . . . . . . . . . . . . . . . Input 2xN array of data elements.

Data Out . . . . . . . . . . . . . . . . . . . . . . . . Output 2xN array of data elements. The appropriate sensor data is added to the end, with column one equal to the current

tick count minus the Start time (tick count) input, and column two equal to the sensor reading.

M30 Cluster . . . . . . . . . . . . . . . . . . . . . The data source for the array addition above.

Advertising