LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programatically customize cursor movement control

Hi to all,
I need to progamatically customize cursor legend, and I found the thread
very, very helpful (especially the message posted by Ben - thanks a lot Smiley Happy)
 
Now I need to do the same thing with the cursor movement control, but I'm not able to obtain a reference to it
(if I rigth click on it, I have a reference to the waveform graph)
 
I can customize this control "off line" using Edit --> Customize control,
but I hope I can do it also programatically.
 
Can someone help me?
 
Thanks and Best Regards.
Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
Message 1 of 12
(6,282 Views)
Do not click on the graph. First display teh cursor legend, Then right-click the cursor legend...
Chilly Charly    (aka CC)
0 Kudos
Message 2 of 12
(6,267 Views)

I did so, and I obtained a reference to Cursor Legend.

Now I want a reference to Cursor Movement Control (see attached image)

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 3 of 12
(6,259 Views)

Well I never tried that one before.

 

See attached LV 6.1 example.

1) Create a cluster with four booleans.

2) Save it as a control (.ctl).

3) Cusomize you graph and switch to "tweezer" mode.

4) Right click on cursor movement and choose replace and navigate to the cluster from step #2 above.

Done!

 

Please post a "better" example when you are done. You will probably have to play with the latch action etc.

Please post what you end up devloping!

Please!

Ben

 

Message Edited by Ben on 07-15-2005 02:55 PM

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 4 of 12
(6,244 Views)
looking back at this example I realized that after replacing the original cursor movement cluster with mine, I can now create a reference for the cursor movement control.
 
Here is an example (in LV 7.1) where I spent a little time on the graphics and demo manipulating the properties of the cursor control.
 
Vix,
 
What do you plan to do with this?
 
Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 5 of 12
(6,209 Views)

Thank you very much Ben.... your help has been great!

Could yuo post a LV 7.0 vi (instead of LV 7.1), please?

Here is a simple explanation of what I want to do... not so complicated:
- I have a graph with 1 or more plots, and only 1 cursor
- I want to hide Up & Down arrows, because I think they're a little confusing for the user (Left&Rigth can be used to move the cursor without problems). But I can't exclude that in a particular situation (although now I can't imagine exactly when) I want to make them visible again
 
Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 6 of 12
(6,188 Views)

I thougth about a possibility:

I could programatically change color of the arrows, matching the color of the plot I attach the cursor to....

I'm sure there are more interesting uses, and someone could find them Smiley Wink

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 7 of 12
(6,184 Views)
Well, Ben already gave you the tip - you can now get a reference to the cluster and use that to control this. Here's a modification of his 6.1 VI which shows that.

___________________
Try to take over the world!
0 Kudos
Message 8 of 12
(6,180 Views)

Version 2 is better.

 

here it is as LV 7.0 and LV 6.1

 

Ben

 

1st = 7.0

2nd = 6.1

Message Edited by Ben on 07-18-2005 07:31 AM

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Download All
0 Kudos
Message 9 of 12
(6,167 Views)

When this is run does anyone else see the arrow ends of the cursor control blinking on and off around the control? That is what I'm seeing, haven't looked into it yet to see if I can determine the cause.

P.M.

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



Message 10 of 12
(6,149 Views)