LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

License CW with CVI ?

Hello,
how can I make a distribution kit for an application that use a CW ActiveX ?. What about the license of the ActiveX ?. It seems that the application works but the ActiveX is in evaluation mode.
0 Kudos
Message 1 of 6
(3,551 Views)
Hello

You should be able to add the ocx as a support file when you create the distribution kit. Is there a specific reason why you would want to use a CW activex control with CVI. Because if you are using the User Interface componenets, CVI has all of these already built in. Using these built in controls is alot easier that the CW conrols with CVI, since they use native C data types, and are part of the CVI run time, hence no extra dependencies( like the OCX file ).

The activex control licence information is installed when you install Measurement Studio on the machine. When you build the executable, the license information is embedded inside in the exe.

I hope this helps

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 2 of 6
(3,551 Views)
Yes there are specific reasons to use CW with CVI. For example, I want to have one axis per plot, and use date time axis. The VW graph is more powerfull than the stripchart....annotations, cursor (unavailable with a stripchart) ....
Just a little troubel:when using a CW Num Edit in date format ( mm/dd/aa), with my dte format ( dd/mm/aaaa ), the display is good but when you enter data the format is mm/dd/aa !!!
0 Kudos
Message 3 of 6
(3,551 Views)
You can actaully draw annotations on a graph by using functions like PlotLine().
How were you entering the data for the date? I tried using the format you mentioned above with the control in VB, and it seemed to work ok.
Bilal Durrani
NI
0 Kudos
Message 4 of 6
(3,551 Views)
I have used a CWNumEdit and changed the date format from "mm/dd/aa" to the format "dd/mm/yyyy hh:mm:ss" that is not predefined. When I put data from my application the display is ok. But when I click on it and want to enter data with the keyboard the format changes in "mm/dd/aa hh:mm:ss" . Today I can read "3/19/03 7:12:00" instead of "19/03/2003 07:12:00".
0 Kudos
Message 5 of 6
(3,551 Views)
You're right, it seems to switch between the two formats. I have filed a CAR about this issue, the developers will look into correcting this for future releases.

For a workaround though, you might try using the CVI String control for entering in the date information.
This KB might help too.

Bilal
Bilal Durrani
NI
0 Kudos
Message 6 of 6
(3,551 Views)