LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

using picture ring with multiple controls

I am using a picture ring with 21 pics in it.each pic represent a state, I am using a flat task structure to execute this states. the question is how can I increment the picture ring from inside every single state/task?
regards
Luis
0 Kudos
Message 1 of 10
(3,521 Views)
I have written an example for you that demonstrates how to use local variables and property nodes. these two are the easiest way I know how to do it. hope this helps. you may need to place pictures inside the ring. if you don't then enjoy the pics I had in there



Joe.
"NOTHING IS EVER EASY"
Message 2 of 10
(3,521 Views)
Here's a bit more elegant solution. Does not require locals, property nodes, or a sequence structure.
0 Kudos
Message 3 of 10
(3,521 Views)
yes you sre right this is a lot more elegant way. I just gave him what he asked for since he was already using a sequence structure. I really like you Idea it is much more efficient and uses less memory.I'm still new to labview but I'm trying.
Thanks for helping me out to dennis everytime I read something of yours I learn something new



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 4 of 10
(3,521 Views)
thanks JHoskins that is exactly what I require
many thanks
Luis
0 Kudos
Message 5 of 10
(3,521 Views)
Hi Dennis
I did not explain properly,I need to use the flat task structure for the state machine so JHoskins solution does the job
many thanks for your help
regards
Luis
0 Kudos
Message 6 of 10
(3,521 Views)
if you are already using a state machine you should not use a flat sequence structure. you can make your program more useful just by using the state machine itself and telling it which fram to go to when completed I have attached a VI that explains this eaxample



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 7 of 10
(3,521 Views)
Thanks mate,I was wondering how to implement the state machine and this example just did it for me.
two problems solved in one go.
Thank you very much
Luis
0 Kudos
Message 8 of 10
(3,521 Views)
E-mail me if you need any further assistance



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 9 of 10
(3,521 Views)
Luis,

Use a local of the picture control. In each sequence, write an increasing
number to the local.

regards,

Wiebe.

"LuisM" wrote in message
news:506500000008000000E2CA0000-1079395200000@exchange.ni.com...
> I am using a picture ring with 21 pics in it.each pic represent a
> state, I am using a flat task structure to execute this states. the
> question is how can I increment the picture ring from inside every
> single state/task?
> regards
> Luis
Message 10 of 10
(3,521 Views)