LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I change cursor format in xy graph (LabVIEW 6.1)

I created a XY Graph where the format on the X-axis can be either the number of the data record or the Date/Time at which it was collected (selectable by the user).

Now I can set the format of the X-scale (0 or 7 respectively) but the cursor format will not change, i.e. it will show a large decimal number and no Date/Time if X-scale is switched to Date/Time format via 7.

Any ideas how to achieve it?

I also tried using 2 cursors but apparently both have to have the same format, i.e. one cannot be decimal while the other is Date/Time.

Thanks in advance,
Juergen
0 Kudos
Message 1 of 7
(3,362 Views)
In situations where you can't do what you want with a property node, you might want to place one item on top of the other, and just use the visible property to get the behaviour you want
0 Kudos
Message 2 of 7
(3,362 Views)
> I created a XY Graph where the format on the X-axis can be either the
> number of the data record or the Date/Time at which it was collected
> (selectable by the user).
>
> Now I can set the format of the X-scale (0 or 7 respectively) but the
> cursor format will not change, i.e. it will show a large decimal
> number and no Date/Time if X-scale is switched to Date/Time format via
> 7.
>

The properties of the scale do not affect the cursor. The cursor's
format can also be set programmatically using the property node. Right
click on the item in the cursor legend that you wish to control and
choose Create >> Property Node. From there you set the format same as
with the scale.

Greg McKaskle
Message 3 of 7
(3,362 Views)
Which Version of LV? V6.02 doesn't seem to have that property...

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 4 of 7
(3,362 Views)
> Which Version of LV? V6.02 doesn't seem to have that property...
>

The property is the standard digital numeric properties. I don't think
it is version dependent, but I was looking at LV6.1.

Show the graph cursor legend. Popup on the numeric readout you want to
change. In 6.1, you can Create>> Property Node and it will be the
numeric property node. Ditto for the other elements in the cursor
legend. If you can't do this directly, and I know that some earlier
version put the graph's popup up when right clicking on the legend,
then you should be able to get the array's popup when you click on the
edge of the legend, and from there you can dig down to the numeric.

Greg McKaskle
0 Kudos
Message 5 of 7
(3,362 Views)
Just to confirm that it works also on LV6.
0 Kudos
Message 6 of 7
(3,362 Views)
Ah, you have to go in that way. I was looking for something under the Cursors property for the control. Though, I can see why it's not there. Thise are all parameters that you can individually set for each cursor.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 7 of 7
(3,362 Views)