LAVA Forums Buy cool LAVA gear Forums RSS Feed

Welcome Guest ( Log In | Register )

> Related links

Check out our General Code Repository Files. Also, before posting here, check to see if your post doesn't fit into another subforum by category.


Tags
(This content has not been tagged yet)
 
Reply to this topic Start new topic
> Resetting Boolean Values
Paul
post Jun 30 2004, 11:17 AM
Post #1


Active
*

Member
Posts: 22
Joined: 21-May 04
From: Fort Belvoir, VA
Member No.: 423
LV:7.0


I have a program that executes a case structure several times. The case structure contains several indicators that need to be reset at the end of each run. In other words, set back to the off value. I tried creating another frame that re-sent false values back to them, but that appeared to do nothing.

Does anyone have any ideas?

Thanks

Paul

--------------------
Thank You
Paul F.


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Ad
post Jun 30 2004, 11:17 AM
Post #















Tags
(This content has not been tagged yet)
Go to the top of the page
Quote Post
Bryan
post Jun 30 2004, 02:59 PM
Post #2


Very Active
***

Member
Posts: 197
Joined: 12-May 04
From: Charlottesville, VA
Member No.: 404
Using LabVIEW Since:1999
LV:7.1 ,8.0 ,8.20
us_pennsylvania us_california us_virginia


Can you provide an image or example of your code for us to see? I have a couple of ideas of what you're doing in my head, but don't know which one you're using.


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
regisphilbin
post Jun 30 2004, 05:18 PM
Post #3


Very Active
***

Member
Posts: 81
Joined: 27-June 03
From: San Diego, CA
Member No.: 127
LV:7.1.1
United States Nothing Selected Nothing Selected


might be kinda clunky but you can always set the controls property node "value" to FALSE.

--------------------
Certified LV Associate Developer


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Michael_Aivaliot...
post Jun 30 2004, 06:54 PM
Post #4


Confucius say: Crowded elevator always smell different to midget
Group Icon
*****

Admin
Posts: 2402
Joined: 13-October 02
From: Planet Earth
Member No.: 2
Using LabVIEW Since:1994
LV:8.5 ,8.2.1 ,7.1.1
Greece Canada United States My Blog My Gallery


QUOTE (Paul @ Jun 30 2004, 07:17 AM)
I tried creating another frame that re-sent false values back to them, but that appeared to do nothing.

Are you using locals to achieve this? I don't see any reason that this doesn't work.

--------------------


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Bryan
post Jun 30 2004, 08:04 PM
Post #5


Very Active
***

Member
Posts: 197
Joined: 12-May 04
From: Charlottesville, VA
Member No.: 404
Using LabVIEW Since:1999
LV:7.1 ,8.0 ,8.20
us_pennsylvania us_california us_virginia


It could be possible if he's using locals or property nodes, that he's resetting the values before his processes have completed execution, so they're reset while they're being written to, but not at the end.

I would say to check your execution, ensure that you're resetting the values AFTER your processes have completed.

Like I said, it would probably be easy to figure out if we could see the code itself.


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Paul
post Jul 1 2004, 11:05 AM
Post #6


Active
*

Member
Posts: 22
Joined: 21-May 04
From: Fort Belvoir, VA
Member No.: 423
LV:7.0


My labview programming is not that extensive but I believe that the commands are global. In the last frame I wire a false signal back to the boolean values that joins together with the signal sent in the beginning to activate them. For some reason that does nothing at all. I merge the two signals and nothing. I do realize that the signal is traveling back to the orginal frame that is sending info out and at the same time sending info in. I guess what I am looking for is somehting equivalent to a text command that I can call in certain places. Like a Visual Basic equivalent of

visible.value = true
//in the frame that references it

visible.value = false
//later in the other cases.

Is something like that possible in labview? I haven't been able to find it yet.

Thank You

Paul

--------------------
Thank You
Paul F.


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Bryan
post Jul 1 2004, 02:25 PM
Post #7


Very Active
***

Member
Posts: 197
Joined: 12-May 04
From: Charlottesville, VA
Member No.: 404
Using LabVIEW Since:1999
LV:7.1 ,8.0 ,8.20
us_pennsylvania us_california us_virginia


There aren't any text commands in labview for setting control properties.

If you right click on a control, and select CREATE >> PROPERTY NODE. You can use the property node to change any property of that control from visibility to value to color, etc. You'll have to "CHANGE ALL TO READ" to set property values.

If you're using the property node in the same scope as your control terminal, you don't have to feed it a refnum. If it's in a different scope (i.e. a different subVI) then you will have to pass control reference from the desired control to the subroutine that will change the property. To create a control reference simply right click on the control, and CREATE >> REFERENCE.

I've attached an image with both methods using flat sequence nodes just as an example and changing the value of the control. As I said before, there are many other control properties you can control with these methods as well.

This post has been edited by Bryan: Jul 1 2004, 02:36 PM


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
didierj
post Jul 2 2004, 07:50 AM
Post #8


Extremely Active
****

Member
Posts: 391
Joined: 6-February 04
From: switzerland
Member No.: 253
Using LabVIEW Since:1997
LV:7.1.1 ,6.1 ,.
Switzerland France Nothing Selected


Paul,

Here is a total different approach:
If your case structure is inside an event structure and one of these "indicators" is in reality the control (happened also to me) from which you're servicing the event, then your can get problems. Check the elements that they are indicators. But if on is intended to be a control then make sure to read the control (put the control itself, not a local variable from it, into the event structure) bevore you wire a local variable and property node.
Getting an event from an frontpanel-element does NOT mean reading the element.

Didier
Attached image(s)
Attached Image
 


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Paul
post Jul 2 2004, 02:06 PM
Post #9


Active
*

Member
Posts: 22
Joined: 21-May 04
From: Fort Belvoir, VA
Member No.: 423
LV:7.0


Thanks to all for your help. I got it working by creating a property node. Thanks for your patience and help. I appreciate it.

--------------------
Thank You
Paul F.


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

 




Time is now: 8th January 2009 - 07:13 PM