LabVIEW Driver Library ™ Instruction Manual
Contents Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Data Collection and the XP2i. . . . . . . . . . . . . . . . . . . . . . . .
—— —— —— Overview 3 Overview Introduction The XP2i LabVIEW Driver Library is a set of VIs (Virtual Instruments) that implements the serial commands of the XP2i. A sample test panel is also provided to demonstrate the use of each of the VIs, as well as a simple data plotting example.
—— Virtual Instruments 4 Virtual Instruments Library VIs The XP2i LabVIEW library contains all the VIs that control and collect data from the instrument. Each of the library’s VIs is documented in the following section. Most of the VIs have 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 5 XP2i Convert to PSI.vi A useful function to convert any reading to PSI. Uses the units field as returned by the XP2i Pressure Query.vi as the source units. XX Inputs and Outputs Pressure ������������������������������������������������� Input pressure Units ������������������������������������������������������� Units of input pressure, case insensitive. Valid values are: PSI, inH2O, inHg, kpa, mmHg, Bar, mBar, and kg/cm2.
Virtual Instruments 6 XP2i No Auto Off Command.vi Issues a No Auto Off command to the XP2i to prevent the unit from shutting down after 20 minutes of no activity. This is useful when sampling data from the XP2i and the samples are made more than 20 minutes apart. XX Inputs and Outputs Only standard VISA handles and error clusters. XP2i Peak High Query.vi This VI returns the high peak value in the currently selected units.
Virtual Instruments 7 XP2i Pressure Query.vi This VI returns the indicated pressure. XX Inputs and Outputs Pressure ������������������������������������������������� Pressure reading, as displayed on the XP2i. Units ������������������������������������������������������� Units of output pressure. Valid values are: PSI, inH2O, inHg, kpa, mmHg, Bar, mBar, and kg/cm2. Pressure (in PSI) ����������������������������������� Pressure reading, converted to PSI XP2i Reset Command.vi Resets the XP2i.
Virtual Instruments 8 XP2i Version Query.vi Returns the version of firmware that is loaded into the unit. Not all XP2is support this command. XX Inputs and Outputs Version �������������������������������������������������� The version number of the firmware, usually in a Ryyxx format, where yy represents the hardware version and xx represents the firmware version. XP2i Zero Command.
—— Virtual Instruments 9 Sample VIs Two VIs are provided as examples of how to use the XP2i library. They are XP2i Test Panel.vi and XP2i Collect Pressure Point.vi. XP2i 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 10 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 3083.