LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

control more cursors in XY graph

Im currently working on somthing that requires me to control the locations of many/unknown number of cursors on an xy graph. I can control up to 9 so far (0-8), but in the block diagram when I unbundle the CrsList Property of the XY graph, I can only go as far as 08.Location, and then just stops and wont even start listing cursor 09. I have LabView 6.1 right now, if this has changed in 7, please let me know, or if not, if there is a way around this problem.

Thanks,
Mark
0 Kudos
Message 1 of 5
(2,933 Views)
Hi Mark,

you can have as many cursors you want. Look at my example which will generate a new cursor each time you go through the loop. I clicked 23 Times on the "Next Cursor" and got 23 cursors.

Waldemar
Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
0 Kudos
Message 2 of 5
(2,933 Views)
Creating many cursors doesnt seem to be as much of a problem as being able to tell the cursors where to go once they have been created... thats really the problem that im running into.

Thanks,
Mark
0 Kudos
Message 3 of 5
(2,933 Views)
> Im currently working on somthing that requires me to control the
> locations of many/unknown number of cursors on an xy graph. I can
> control up to 9 so far (0-8), but in the block diagram when I unbundle
> the CrsList Property of the XY graph, I can only go as far as
> 08.Location, and then just stops and wont even start listing cursor
> 09. I have LabView 6.1 right now, if this has changed in 7, please let
> me know, or if not, if there is a way around this problem.
>

It sounds like you are casting the LV array of cursors to a cluster and
using unbundle by name to access them. Problem is that the array to
cluster convertor has to create the same size cluster each time and
defaults to nine elements.

If you want to change this to a larger number,
right click on the
convertor and change it to a larger constant. If you want it to be
completely dynamic, don't convert and work on the array instead.

Greg McKaskle
Message 4 of 5
(2,933 Views)
That is what i was doing. Thanks a lot, that really helped me out 🙂

-Mark
0 Kudos
Message 5 of 5
(2,933 Views)