VI High 58 - How to Make Your State Machine Event-Based

  Рет қаралды 19,200

Sixclear

Sixclear

Күн бұрын

Пікірлер: 3
@AndySoukup
@AndySoukup 10 жыл бұрын
If the status display is always equal to the state enumeration text, it'd be much more future-proof to go before the case structure and use "format into string" to convert the enum into a string and write it to the Status indicator. This would take care of all cases with one instance of code. when more cases are added, the new status will be taken care of when you edit the enumeration. oh, and it also would force you to write legible state names (-:
@Sixclear
@Sixclear 10 жыл бұрын
Great point Andy! It's sometimes tricky to write strings that are meaningful to the user as a status while being useful to the programmer as a state. In the state machine in this video, that would be pretty easy. I've found that as my state machines get more complicated, it gets harder to do both. However, if you can be disciplined enough to do it as you said, that could also save some time. Great comment!
@mectigran
@mectigran 9 жыл бұрын
Andy Soukup Why not just create an indicator no need to bother converting it to display the status. A follow up question is how to display these states with a delay when your loop runs very fast and jumps through the states. Is there an easy way to do this?
VI High 50 - How to Implement a State Machine in LabVIEW
9:44
LabVIEW Tips&Tricks Episode 3: Event driven state machine
13:10
National Instruments Eastern Europe
Рет қаралды 59 М.
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 9 МЛН
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 37 МЛН
How Many Balloons To Make A Store Fly?
00:22
MrBeast
Рет қаралды 195 МЛН
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 16 МЛН
Google unveils 'mind-boggling' quantum computing chip | BBC News
5:53
How to Code a Simple State Machine (Unity Tutorial)
19:22
Infallible Code
Рет қаралды 164 М.
Are AI advancements already slowing down?
13:29
CNBC
Рет қаралды 325 М.
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 9 МЛН