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.
| ||||||
![]() |
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.
|