Example Programs

cancel
Showing results for 
Search instead for 
Did you mean: 

Flexible DAQmx State Machine for Automated Tests

Overview

This VI shows how to use a State Machine with an array of steps to run throguh a pre configured list of steps.

 

Description

This Example shows a process where we turn a heater on, then measure a finite numer of samples then tunr the heater off.

 

Requirements

Software

  • LabVIEW 2012 or compatible
  • NI-DAQmx 9.5.5 or compatible

Hardware

  • NI Multifunction DAQ Device

 

Steps to Implement or Execute Code

  1. Set the Physical Channels for a digital output and analog input.
  2. Configure the Steps from a list of States dropdown.(to add new states right-click the dropdown and select Open Type Def and Edit the Elements)
  3. Set the Numer of Samples thenrun the VI

 

Additional Information or References

 

 

DAQmx State FP.PNG

 

DAQmx State Machine FP.PNG

 **This document has been updated to meet the current required format for the NI Code Exchange.**

Comments
Member Philip1
Member

This looks like exactly what I need.

I am using LabVIEW 2010 base. Is the base package enough to run this VI??   I am informed (while loading) that "State Type def .ctl" is missing (or isn't where its should be).

Thank you-

Member Tiger3D
Member

Please add "State Type def .ctl". Otherwise it looks great. Thank you.

Member JTShaw
Member

Please add "State Type def.ctl"

Thanks

Member SpaceHunter
Member

I added the type def, should be good to go now.