LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

state chart without NI state chart module

I have read the design article on state machines in Labview in http://zone.ni.com/devzone/cda/tut/p/id/3024 and gone through the cannon and coin machine examples. I am attempting to build my own state machine (have the state machine diagram as well as the states of my i/o laid out, which will be attached later) without the state chart module b/c I don't think my model is complex enough to justify the purchase. However, after reading the design article, I still don't quite understand how to use the digital logic function palettes to link between each state of my state machine using the status of the inputs. Does anyone have any insight on how to get started on this as I'm still confused after going through the examples?
0 Kudos
Message 1 of 8
(3,544 Views)

Duplicate post !

http://forums.ni.com/ni/board/message?board.id=170&message.id=272675

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 2 of 8
(3,535 Views)
Duplicate post has been tagged in the other thread already. Which one will people respond to.
0 Kudos
Message 3 of 8
(3,534 Views)
Ha! we have a race condition! 😮
 
Let's answer here in this thread because the other thread was flagged first. 🙂
0 Kudos
Message 4 of 8
(3,526 Views)

Sorry, didnt mean to hurt you...

Just seeing the titles to be the same in the main LabVIEW messages page, I just replied it as a duplicate post.

Moreover your genuine reply about internet connection problems were there in that post. So, I thought people will respond in that only.

No bad intention anyhow...

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 5 of 8
(3,520 Views)
What I'm currently planning to do with my state machine is to have arithmetic comparisons of the input to trigger on the right "Next State" vi to output the appropriate state transition. What I'm currently having trouble now is converting the attached vi into a template/icon for the state machine to use as a tool for state transition. I have made several similar vi's that would output a constant selected state whenever the boolean input is triggered to be true.
0 Kudos
Message 6 of 8
(3,472 Views)

Where exactly are you having trouble?  I think the coke machine example does a pretty good job of showing how states are changed based on inputs.  If you're not sure how this is happening, turn on highlight execution and use probes to see the flow of data through the VI.

Regards,

Craig D
Applications Engineer
National Instruments

0 Kudos
Message 7 of 8
(3,470 Views)
 

Sorry, looks like we had another race condition!  When you say "What I'm currently having trouble now is converting the attached vi into a template/icon for the state machine to use as a tool for state transition" are you referring to creating a subVI as the states were handled in the coke machine example? 

If this is the case, I noticed you don't have anything attached in your connector pane.  In order for a subVI to have inputs and outputs available when you place it, you will need to connect controls and indicators to your connector pane as shown in the LabVIEW help.

The links below are great resources if you're just getting started with LabVIEW:

https://learn.ni.com/learn/article/labview-tutorial 

Getting Started with DAQmx
https://www.ni.com/en/support/documentation/supplemental/06/getting-started-with-ni-daqmx--main-page...

National Instruments Training:
https://www.ni.com/en/shop/services/education-services.html

Regards,

Craig D
Applications Engineer
National Instruments

0 Kudos
Message 8 of 8
(3,455 Views)