Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Can I Call a LabVIEW Statechart from C?

Primary Software: LabVIEW Modules>>Statechart Module
Primary Software Version: 1.0
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
The current information about the LabVIEW Statechart Module is that after developing your state machine you should repeatedly call the subVI it creates (in a loop for instance) so it will continuously update its internal state.

Now provided I have several outputs I wish to examine would it be possible to compile such a VI into a DLL that I could call from C?

Solution:
Yes, this works like any other LabVIEW VI.  You can place Run Statechart.vi in a wrapper VI and use the Build Specification to build a DLL from the wrapper VI.
 
Attached you will find a Statechart DLL and a VI that calls the DLL back into LabVIEW.  This runs as expected and should run the same when called from C.


Related Links:
Learn about the LabVIEW Statechart Module

Attachments:
SampleVI.jpg
DLLOut.zip
UseDLLNode.vi




Report Date: 10/28/2007
Last Updated: 12/18/2007
Document ID: 4ERDKKK2

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit