30 Series LabVIEW Driver Library ™ Instruction Manual
Contents Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Data collection and the Model 30. . . . . . . . . . . . . . . . . . . . . . . .
—— —— Overview 1 Overview INTRODUCTION The Model 30 LabVIEW Driver Library is a set of VIs that implements the serial commands of the Model 30. The library also provides parsing of the streaming data output, placing it into a simple cluster for easy access. A sample test panel is also provided to demonstrate the use of each of the VIs, as well as a simple data plotting example.
—— —— Overview 2 WAITING FOR A SPECIFIC MEASUREMENT In order to store data for a specific measurement (for example, the pressure measurement of the low pressure port), there are two approaches that can be taken: one, simply wait long enough to allow the unit to update all of the measurements within the cluster, which is typically less than 400 milliseconds; or two, look for a value change of the cluster variable that contains the measurement.
—— —— Virtual Instruments 3 Virtual Instruments LIBRARY VIS The Model 30 LabVIEW library contains all the VIs that control and collect data from the instrument. Each of the library’s VIs are documented below. Each of the VIs has VISA handles or error clusters as inputs and outputs, and more information on these elements can be found in the LabVIEW documentation. Inputs or outputs specific to this library are documented below.
—— Virtual Instruments 4 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. XX Inputs and Outputs M30 Cluster ����������������������������������������� Cluster of data values that are updated by M30 Collect Data.vi. M30 Collect Data.
Virtual Instruments 5 M30 Start Streaming Command.vi Starts streaming data over the serial interface. Streaming must be enabled before any data collection can occur. XX Inputs and Outputs Only standard VISA handles and error clusters. M30 Stop Streaming Command.vi Stops streaming data over the serial interface. XX Inputs and Outputs Only standard VISA handles and error clusters. M30 Change Units Command.
Virtual Instruments 6 M30 mA Command.vi The mA Command VI will cause the mA readings to be displayed on the front panel or change the units of the mA reading, if it’s already displayed. Has the same effect as pressing the mA button on the Model 30. XX Inputs and Outputs Only standard VISA handles and error clusters. M30 Zero Command.vi This VI will zero (or tare) the pressure reading by subtracting the current value from future readings.
—— Virtual Instruments 7 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.
—— —— Support 8 Support SERVICE AND SUPPORT How to contact us: Phone ��������������������������������������������������� (805) 595-5477 Toll-Free ����������������������������������������������� (800) 444-1850 Fax ����������������������������������������������������������� (805) 595-5466 Email ����������������������������������������������������� service@crystalengineering.net Web ��������������������������������������������������������� www.crystalengineering.
© 2013 Crystal Engineering Corporation 708 Fiero Lane, Suite 9, San Luis Obispo, California 93401-8701 3349.