Example Code

Example of niVB_MSO_ForceTrigger Virtual Bench CVI programming

Code and Documents

Attachment

Overview

 

The proper circumstance where a call to Force Trigger would be effective will be when you have your system waiting for an Analog Trigger, however, somehow this trigger does not come along. Using the Force Trigger function, you can simulate the Analog Trigger and start your task.

The Auto Trigger must be disabled to ensure that the Force Trigger functionality is set correctly.

 

Description

 This code shows how to properly use the Force Trigger function and get as a result a "Forced" as Trigger Reason.

 

Hardware and Software Requirements

 

LabWindows/CVI

Virtual Bench

 

Steps to Implement or Execute Code

 - Connect the Virtual Bench 

 - Make sure that the device name is declared properly

 

 

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

Comments
A-Guz-Man
NI Employee (retired)
on

Great example!

azp7
Member
Member
on

Great work!

Contributors