Example Code

FlexLogger Mixed Measurement Template

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Hardware

  • cDAQ-9171
  • cDAQ-9174
  • cDAQ-9178
  • NI-9205
  • NI-9213
  • NI-9253
  • NI-9401

    Software

  • FlexLogger

Code and Documents

Attachment

Note: The Flexlogger project attached has been created using the FlexLogger 2021 R2 version. You'll need the same or a later version to open it. It won't load for any previous versions.

 

Description

Description-Separate-1

This example contains an NI FlexLogger project, configuration file for simulated hardware, examples to control NI FlexLogger via Python, and getting started documentation.

 

The Mixed Measurement Project (Mixed Measurement Project.flxproject) is a FlexLogger project that provides a reference for taking voltage, current, temperature, and digital measurements through NI FlexLogger and contains the following predefined FlexLogger documents and files: 

  • Channel Specification (.flxio
  • Logging Specification (.flxcfg
  • Screen (.flxscr
  • Test Specification (.flxtest) — A default FlexLogger file that is unchanged for this project. 

photo.jpg 

FlexLogger Channel Specification 

 
photo.jpg

FlexLogger Screen

 

Note: The Mixed Measurement Project has been configured to acquire data from specific voltage transducers, pressure sensors, thermocouples, and digital lines. If different sensors are present, the configuration will need to be modified to reflect the correct sensor configuration.

 

Description-Separate-2

How to Use

How-Separate-1
  1. Download the example and corresponding files. 
  2. Unzip the folder. 
  3. To simulate hardware, double click the Simulated Device Configuration.nce file. If you already have hardware connected, go to step 5. 
  4. Navigate through the Configuration Import Wizard in NI MAX until the simulated device is imported correctly.
  5. Double click on the Mixed Measurement Project.flxproject file.
  6. Run the Project by clicking the Run button on the middle top portion of the window. 

 photo.jpgphoto.jpg

Project Execution Buttons

 

Note: For additional information on the components, configuration, and how to customize the template, open the Getting Started file located inside the Mixed Measurement Template.zip file.

 

How-Separate-2

Related Links

Related-Separate-1 Related-Separate-2

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.