LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to detect autoscale?

I would like to detect when the user is using the autoscale tool of the graph palette. I tried to do it with the property node "ActPaletteTool" but it never gives me the code of the autoscale tool when it's active. For exemple if the hand tool is active and then you use the autoscale tool, the property node returns the code of the hand tool... Is there any other way to detect the use of that autscale tool??

Thanks.
CLA, CTA, LV Champion
View Cyril Gambini's profile on LinkedIn
This post is made under CC BY 4.0 DEED licensing
0 Kudos
Message 1 of 18
(5,498 Views)

Are you polling the tool property like this?

This is works when I try it on LV8

David

Message Edited by David Crawford on 07-13-2006 10:24 AM

Message Edited by David Crawford on 07-13-2006 10:25 AM

Message 2 of 18
(5,496 Views)
No, i'm not using a while loop... The structure of my software oblige me to use an event structure which detects when the scale range is changing. Inside that structure, i use the ActPaletteTool property node... And in that case it doesn't work...

CLA, CTA, LV Champion
View Cyril Gambini's profile on LinkedIn
This post is made under CC BY 4.0 DEED licensing
0 Kudos
Message 3 of 18
(5,484 Views)
OK. Can you post a simple VI that demonstrates your issue?
 
thanks
 
David
Message 4 of 18
(5,485 Views)
Here is a simple that i implemented following your VI. The graph is the one used in my application. In the indicator never appears the code 5, which the code for the autoscale function...
CLA, CTA, LV Champion
View Cyril Gambini's profile on LinkedIn
This post is made under CC BY 4.0 DEED licensing
0 Kudos
Message 5 of 18
(5,478 Views)
I don't know for sure but it makes sense to me to avoid property nodes inside events that share the same control or indicator. Intuitively you could either have a race condtion on your hands or you can't use the propery node until the event has been serviced.
 
I would either create a user event to read the property node after the autoscale event or pass reading the propery node to a consumer loop via a queue.
 
Just a thought
 
David
Message 6 of 18
(5,476 Views)
This is to give you an idea on how the software works...
Thank you for your attention!
CLA, CTA, LV Champion
View Cyril Gambini's profile on LinkedIn
This post is made under CC BY 4.0 DEED licensing
0 Kudos
Message 7 of 18
(5,473 Views)
I agree with you concerning the time delay caused by the event structure. But even when i put the property node in the while loop, i cannot see the code of the autosacle (5).
CLA, CTA, LV Champion
View Cyril Gambini's profile on LinkedIn
This post is made under CC BY 4.0 DEED licensing
0 Kudos
Message 8 of 18
(5,469 Views)

You are absolutely right I have just confirmed that tool that should give you 5 does not when you click on it. You get tools 2, 3, 4,6 and 7.

I even tried writing 5 into the property and it doesn't change it either.

Thats weird!

David

 

Message 9 of 18
(5,467 Views)
Looks like a bug, since the number 5 is missing and since the button makes no change to the number.

___________________
Try to take over the world!
Message 10 of 18
(5,457 Views)