LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CWUI Graphing ActiveX Component

To all,

I am new to LabWindows/CVI & and I having trouble finding examples
using the CWUI Graphing component. There is no documentation on how to
plot data that I can find. Or the order in which we use the functions
that
come from the function tree (fp). Does anyone have any sample code
that can illustrate how to plot across the y axis? Any help would be
appreciated

thanks
zaki
0 Kudos
Message 1 of 5
(3,126 Views)
Hello Zaki

LV/CVI has its own set of user interface functions that you can use to plot data. CWUI is the activex control that you can use to plot data in VB (since VB 6.0 doesnt have this function already built in)

To find examples on using graphs and other user interface functions in CVI, you can refer to the help in CVI.
if you open up CVI and press F1, the Help window will pop up. You can then go under the Contents tab, then go to Examples >> Fundamentals >> User Interface Examples

So this way, if plotting data is all you need to do,these examples will point you in the right direction.

hope this helps
Bilal Durrani
NI
0 Kudos
Message 2 of 5
(3,126 Views)
bilalD wrote in message news:<506500000005000000DE670000-1012609683000@exchange.ni.com>...
> Hello Zaki
>
> LV/CVI has its own set of user interface functions that you can use to
> plot data. CWUI is the activex control that you can use to plot data
> in VB (since VB 6.0 doesnt have this function already built in)
>
> To find examples on using graphs and other user interface functions in
> CVI, you can refer to the help in CVI.
> if you open up CVI and press F1, the Help window will pop up. You can
> then go under the Contents tab, then go to Examples >>
> Fundamentals >> User Interface Examples

>
> So this way, if plotting data is all you need to do,these examples
> will point you in the right direction.
>
> hope this helps



I know about how ActiveX works. It is very easy in VB. I also know
about the CVI help, however I could not find any examples for that
ActiveX control. It is very complex in CVI, I believe one first has to
obtain a handle for the graph, then in conjunction with the graph
handle one has to obtain a handle for the plot, ... and so on. My
question is, how do i figure out which sequence to go about?

I know that CVI has some basic functions such as PlotX, PlotY,etc..
but are you saying that those can be used with the ActiveX controls?

Thanks,
Zaki
0 Kudos
Message 3 of 5
(3,126 Views)
The Developer Exchange has a forum specifically for Measurement Studio (with separate forums for CVI, VB, and VC++) that you might get have better luck getting an answer but since I use CVI occasionally, I'll try to answer.

CVI has it's own native graph controls and functions. The CVI examples are all geared to using those and not any of the Component Works ActiveX functions. I believe that the CW functions were created to give users of VB and VC++ the same functionality that CVI had and I don't think the CVI functions are more basic than the ActiveX one. If you would rather use the ActiveX function, you might find an appropriate example in the VC++ examples.
0 Kudos
Message 4 of 5
(3,126 Views)

There are some examples included in CVI 6.0 that show you how to use activex components in CVI.
They should be under the CVI >> Samples >> UserInt >> Activex. There is an example included for the CW3dgraph (which might be a bit more complicated than what you are looking for). But essentaily in CVI 6.0, once you add that activex control on the user interface, you can right click on that control (in your case CWGraph) and select "Generate ActiveX Control Driver." This will generate the functions that are essentially wrappers for the activex controls that you used in VB. So it will generate the plotX and PlotY functions for that activex control.
From then on, it should be similar to how you would use the function in VB. Check out the following link f
or more information on the Activex Controller Wizard:


https://www.ni.com/docs/en-US/bundle/labwindows-cvi/page/cvi/usermanual/prjcreateactivexcontroller.h...

Best of luck with your application

Bilal Durrani
NI
0 Kudos
Message 5 of 5
(3,126 Views)