LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Variable not always updated from a local

Does the cluster in LV2 Global still have eight booleans?
0 Kudos
Message 11 of 21
(1,976 Views)
No 18 Booleans.

Ron
0 Kudos
Message 12 of 21
(1,972 Views)
Hi Ron,
 
Sorry about the confusion, let's see if the attached helps clear this up a bit.
 
What you really need is an "Action Engine".
 
Down load all of the attached the open the demo.
 
An action engine is a LV2 with code INSIDE it that manipulates the data structure.
 
 
By putting the the code INSIDE the action engine the other VI have to wait until the previous operation is done before it reads the data to do something else.
 
My explanation of what was going in your code yesterday still applies to your modified version.
 
Take a look at this example (in LV 6.1) and ask more if I am still falling short.
 
Trying to help,
 
Ben
 
PS: See next post for last file

Message Edited by Ben on 09-06-2006 02:24 PM

Message Edited by Ben on 09-06-2006 02:26 PM

Message Edited by Ben on 09-06-2006 02:27 PM

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 13 of 21
(1,973 Views)
the other file
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 14 of 21
(1,960 Views)


@Rhayes wrote:
From these two pictures you can see ....


OK, this is getting too silly for me! I am not clairvoyant! The only thing you offer us is some stamp size to postcard size pictures of code portions. No code, no real details.

Unless you post some real code, we can only guess!

Can you at least attach the LV2global subVI?

Message 15 of 21
(1,954 Views)
Thanks for the help Ben I got it working today and I started to change all of the rest of my Locals as well.

btw the LV2 VI is the one that Ben pointed to earlier (just modified to use my cluster), I didn't feel that it was neccessary to duplicate it in the same thread since it was easily accessable. Also those two (Postage stamp) pictures were the only parts of the program that were relevant, they both used the same variable, do I need to show the whole program and just lose everyone in it?

Ron
0 Kudos
Message 16 of 21
(1,904 Views)
I can't believe this, yesterday everythgin was working well but today it is not.

I have two buttons to swap drums, one for line #1 and one for line #2, line #2 swaps perfectly yet line #1 won't do anything (but it did yesterday!)

I noticed though that when I place a breakpoint inside my LV2 global and step thgouh the code then it does swap so I'm wondeing if there is still a race condition somewhere, I'm attaching the LV2 vi. If you need any other info that I have left out then let me know and I'll give it to you.

The Bool logic VI just lets me run the case once only then turn if off from within the case.

Ron


Message Edited by Rhayes on 09-08-2006 01:15 PM

Download All
0 Kudos
Message 17 of 21
(1,858 Views)
One Last pic

Ron
0 Kudos
Message 18 of 21
(1,856 Views)
Well, I can say that if you are using the Value property to read/write indicators or controls just to avoid using local variables, you're better off using the local variables. At least, that's my understanding. (Using the Value property is substanitally slower.)
0 Kudos
Message 19 of 21
(1,832 Views)
I noticed this right after I changed a few of them, so I put them back.

Ron
0 Kudos
Message 20 of 21
(1,826 Views)