09-28-2024 10:15 PM
I want to return to the setup state when any dial is pressed after the set color state but i dont really know how.
09-28-2024 11:38 PM
I cannot open your VI. Consider "save for previous" (2020 or below) before attaching.
Also give your VI a reasonable name. "Untitled 2.vi" is not a useful name.
09-28-2024 11:55 PM
Sorry im still learning to use it.
09-29-2024 01:16 AM
Your code has some basic flaws and it would be much simple to use an event structure.
Glaring race conditions:
There is no guarantee that the property nodes at B is read only after it has been written at A. Both occur in parallel.
Why not just branch the wire to the color code indicator and eliminate eh read property entirely?
A color code is a U32 (or colorbox). Wiring to a DBL indicator makes no sense.
Your color inputs should be U8, not I32.
You have absolutely no time control and your loop spins like crazy, millions of time per second. It need a wait.
You need to simplify! I doubt you even need a state machine for any of this. A simple toplevel loop with events for all possible buttons would be sufficient. All you need to do is change the color when one of the RGB controls changes. What exactly is the purpose of the "star colorize" state? What is it supposed to do?
I would nit micromanage the enabled states. Any button should be operational at all times.
09-29-2024 01:31 AM
See if this can give you some ideas.