LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Graph Palette from LabView

Is there any way to get a graph to behave the same way as in LabView? Specifically I'm looking for the palette that appears underneath the graph, with a zoom tool, cursor location, etc.
0 Kudos
Message 1 of 6
(3,950 Views)
If you have version 6.0 of CVI, look for the graphcursors.fp instrument driver in cvi\toolslib\custctrl.

You can get started by taking a look at the graphcursorctrl.prj example program in cvi\samples\userint\custctrl\graphcursors.

Luis Gomes
0 Kudos
Message 2 of 6
(3,947 Views)

But there are too little features on this graphcursors.fp. It seems there are not zoom functions and snap function to the data points on a plot pointed. Could you tell me how to come true these features on graphcursors.fp? Thanks

joey

0 Kudos
Message 3 of 6
(3,769 Views)
Joey,

Have you checked out this document. It has some instructions on how you can zoom and pan the graph.

Song D
Regards,

Song Du
Systems Software
National Instruments R&D
0 Kudos
Message 4 of 6
(3,752 Views)
Hello Joey,

In addition to the graph's built-in zooming that Song is referring to, you can also do a different kind of zooming using the graph cursor palette. This is how it works:

1. Select two cursors in the palette (the selection buttons are indicated by the blue circle in the attached image)
2. Use the zoom-in or zoom-out buttons (indicated by the red circle).

As for snapping, this is something that you configure in the cursors themselves. Each cursor can be set to snap mode, or free mode. You can change this in the Edit Graph dialog in the UI editor, or programmatically, using the SetCursorAttribute function (with the ATTR_CURSOR_MODE attribute).

Luis
Message 5 of 6
(3,745 Views)

Song and Luis,

   You are all right. I knew these features in CVI. But it is not more convenient than ones in Labview. You know labview's control can zoom a selected areabe by mouse draging. Now, I have to use CVI, no else choice.  Wish your company can improve the feature on Graph in CVI in future.

   Thank you anyway.

Best Regards

joey

0 Kudos
Message 6 of 6
(3,722 Views)