Configure the Express VI:

 

Select your hardware from the Device Selection tree control. The configuration options for the hardware will appear. Set these appropriately. The configuration controls may or may not also be available as input terminals to the Express VI in your LabVIEW block diagram (allowing you to dynamically change the configuration options as your program runs).

 

Test the Digital Hardware:

 

When the Express VI is open, press the Run button to test your hardware before integrating the Express VI into the LabVIEW block diagram.

 

Placing the Express VI in LabVIEW:

 

After configuring the Express VI click on the OK button. Closing the Express popup will send you back to the Block Diagram of LabVIEW for developing your program.

 

It is important to understand that if the Express VI shows an input terminal called “stop (F)” and an output terminal called “stopped”, this means that the Express VI should be placed within a loop, and that the Express VI should be terminated prior to terminating the loop.

 

To accomplish this, wire a Boolean control (such as a front panel stop button) into the stop (F) terminal and wire the stopped terminal output into the While Loops’ conditional terminal. Note that an easy way to create the Front Panel stop control is to right click on the stop (F) terminal and select Create>Control from the menu.

 

 

LabVIEW Program for Motion Detector and Analog Sensor:

 

Check the control labeled “My program will also be using the Analog Express VI’ if you are creating a program that simultaneously collects data from the Analog Express VI and the Motion Express VI. If the two Express VIs are being used together, the Motion Express VI must pause for 1.5 seconds prior to starting to insure that the analog channels are configured and started first. Marking this control adds the pause. When not marked, there is no pause prior to starting the Motion detector.

 

In addition, the Analog Express VI should be configured to start collecting from a digital trigger from screw terminal PFI0. This is the digital line that sends a digital pulse to the Motion Detector to create the clicking noise. If not configure for a digital trigger, the Analog collection will begin 1.5 seconds prior to the Motion collection. If configured, the Analog collection will start at the same time as the very first click of the Motion Detector. This helps to synchronize the start times.