How to Read CI Data Files in Labview

Introduction
The CI Data File Reader API C# DLL files can be used in three supported coding languages: Python, Matlab and LabVIEW. LabVIEW offers visual scripting with node blocks in a block diagram to construct various testing scripts. It also provides a built-in feature for importing C# DLL files to construct .NET nodes and access the constructor, properties and more.

For more detailed information on how to implement the following code sections and properties in a class, please refer to the CI Data File Reader manual and the provided LabVIEW Demo diagram. The package can be downloaded from our Programming Corner.

Import C# dll Files through Nodes
For LabVIEW, there is an additional C# DLL file called LabViewDotNetAPI that is used to open ATFX files in the same manner as a C# Demo program. It has specific constructors and properties to open ATFX files and access its properties that LabVIEW can use in its block diagram.

The LabVIEWDotNetAPI DLL file is an encapsulated file for LabVIEW that provides functions and properties to read and open ATFX files. For any additional data or functions to use in LabVIEW, users submit requests to the Crystal Instruments software team.

To import these C# DLL files, right click the empty space in a block diagram -> Connectivity -> .NET -> Constructor Node.

 
 

Upon placing the node onto the diagram, another window should appear to allow selection of a .NET constructor. If the LabVIEWDotNetAPI does not appear in the drop-down list, browse for it within the ATFX API package\LabVIEW ATFX API Demo\Private folder.

Block Diagrams
The following are two important block diagrams displaying the relationships between the constructor and property nodes for LabVIEW CI Data File Reader.

The diagram below shows what happens when an ATFX file is opened.

The diagram below illustrates when a specific property of a signal in an ATFX file is displayed.

GUI
The following screenshots display the LabVIEW CI Data File Reader GUI interface and an example of an opened CI Measurement Data file.

(click to enlarge)

(click to enlarge)