ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

property node to control multiple cursors

I want multiple cursors on a waveform graph. and i want to control their visibility by buttons, i.e, If i click on cursor 1 it should show me only cursor 1, all the other cursors should be hidden. Also, when the VI is loaded none of the cursors should be visible . How do i use property node of the waveform graph to achieve this. I dont know how to use property node.
0 Kudos
Message 1 of 7
(4,909 Views)
One way is that once you have the graph set up w/ the proper number of cursors, you can use a sequence of the Property Nodes Active Cursor -> Visble? for the total number of cursors to affect visability.

See attached LV 6.1 example.


2006 Ultimate LabVIEW G-eek.

Message 2 of 7
(4,909 Views)
hi Jonnie,
 
thnx for this nice example , I have a question on it,  Can I change the beginning time of each plot? e.g  button one should start with 12:30:18
button two 10:10:30 etc ? if possible how ?
0 Kudos
Message 3 of 7
(4,613 Views)
Hi,

You could try using the VIs under the Timing Palette, such as "Get Date/Time in Seconds" or "Get Date/Time String". You could use logic and case structures to allow the time to determine the action of the VI, such as which cursor will be shown. Here is a KnowledgeBase article about converting a date/time string into a timestamp constant. (There are many ways to accomplish this; this article is a good resource.)

Happy coding!


Amanda Howard
Americas Services and Support Recruiting Manager
National Instruments
0 Kudos
Message 4 of 7
(4,586 Views)

thx for you example , my problem is to make the begin of X chart, which also reads samples/sec from a string.

regards

john

0 Kudos
Message 5 of 7
(4,582 Views)
Yes, you can simply change the values in the first column of the cursors listbox. This will place the x-value of the cursor at the point at which you determine. Hope this helps!
Amanda Howard
Americas Services and Support Recruiting Manager
National Instruments
0 Kudos
Message 6 of 7
(4,561 Views)

I am aware that Jonnie 5's example is over three years old, but changing the visibility of three cursors certainly does not need a 6 frame stacked sequence containing six property nodes. All you need is a FOR loop. 🙂

(And of course we only need to write these properties only when one of the booleans change, and not every 100ms.)

Keep it simple!



Message Edited by altenbach on 12-05-2007 09:03 AM
Message 7 of 7
(4,548 Views)