04-02-2022 11:57 AM
Hello! I'm new to LabVIEW, and I'm having trouble using enums and accessing the data afterwards. More specific, I'm trying to make a subVI to read information from a cluster, and then unbundle it by name and display it on a simple numeric display.
On Untitled 3 I've done a state machine, that has 3 options: "Initialize" (where the cluster and the information is being stored), then it's respective cases "price" (which it's a simple index array and an unbundle by name) and "count" (same things as in price). My problem is it won't display the data, I've tried executing by step several times and it doesn't exit the loop, I'm trying to make sense out of it with no success.
On Untitled 4 it's a simple for loop that executes the subVI (untitled 3), I place a probe right after the subVI and it's never executed ...
I am aware it's a simple problem but a little bit of help would be very useful.
Kind Regards!
Solved! Go to Solution.
04-02-2022 12:14 PM
Two quick words of advice:
04-04-2022 02:04 AM
Oki, I saved for LabVIEW 2019 and they are renamed.
04-04-2022 02:38 AM
Your SubVI loop is running forever instead of only once. You have to change 'false' constant to 'true'.
04-04-2022 02:51 AM
That was the whole issue, thank you!
Now I'm able to read what's in the cluster.
04-04-2022 10:48 AM - edited 04-04-2022 11:02 AM
If you would replace your shift register with a feedback node, you would not even need a loop!
In any case, the architecture is questionable and not really scalable.
04-04-2022 12:44 PM
You're right, I hadn't thought of doing it with a case structure.
I'm new to it so I'm a bit limited in the different ways of approaching it, but you've been very helpful, thank you so much 😁