Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Send External Trigger (Statechart Module)

LabVIEW Statechart Module 1.0 Help
August 2007

NI Part Number:
372103A-01

»View Product Info

Sends a trigger to the external queue of an instance of the linked statechart. You can use this function in the caller VI or in a VI that runs parallel to the caller VI.

You can use this function with only asynchronous statecharts.

You must link this function to a statechart before configuring the parameters. To link this function to a statechart, right-click this function and select Link to Statechart. You must link to a statechart for which you have generated LabVIEW code. You also must link a Run Statechart function to the same statechart.

Tip  Instead of linking this function to a statechart manually, you can right-click an asynchronous Run Statechart function and select Create Send External Trigger Function. This action creates a Send External Trigger function that is linked to the statechart.

Instance Name specifies the instance of the statechart to which this function sends triggers. The value of this parameter must match the value of the Instance Name parameter of the Run Statechart function to which you want to send triggers.
Trigger specifies the trigger to send to the statechart. To specify a trigger, right-click this input and select Create»Control or Create»Constant. This action creates an enumerated type control/constant that contains the list of available triggers.

You can send only triggers that you define by using the Edit Triggers and Groups dialog box.
error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.
code is the error or warning code. The default is 0. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.
source specifies the origin of the error or warning and is, in most cases, the name of the VI or function that produced the error or warning. The default is an empty string.
Timed out? returns TRUE if this function did not send the Trigger in time. Timed out? returns FALSE if this function sent the Trigger in time.

Configure the timeout length by using the Statechart Code Generation dialog box.
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces. Right-click the error out front panel indicator and select Explain Error from the shortcut menu for more information about the error.
status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.
code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.
source describes the origin of the error or warning and is, in most cases, the name of the VI or function that produced the error or warning.

Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit