Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with the cwgraph in the release of our application.

The x-axis of the cwgraph is working well in the developer studio but not in the release. The x-axis should have values from 0 up to
60 seconds initaly, but in the release both the lowest value and the highest value seems to have the value 0. The x-axis is set to the format 0:00 (minutes:seconds). Is this a known problem, that the graph is acting different in releases? I have included ssa3d30.ocx when I build the release. Do I need to include some other files to get this graph to work?
0 Kudos
Message 1 of 3
(3,039 Views)
Are you setting the axis limits programatically or is this using the property pages? I was unable to reproduce the problem. I used MS 6.0 with VB 6.0 on Win 2k,and things seemed to work fine.
If this is using the property pages and this effect occurs, try setting the maximum values programmatically
so, if you need to set it to 60 minutes to the max, in the form load, the following statement would set it to 60 min

CWGraph1.Axes.Item(1).Maximum = 0.04166

Let me know if there is anything I missed or if you have more information for me

Thanks

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 2 of 3
(3,039 Views)
You should not need to include any additional files to get the graph to work. One thing that could be causing the problem is the persistence of the settings of the ActiveX control properties, but this would only be an issue if you're setting the properties in the property pages. As Bilal mentioned above, are you setting the properties in code or in the property pages? If the former, could you please post the code that you use to set the properties? If the latter, which version of cwui.ocx are you using? What happens if you save the project, close Visual Basic, and re-open the project? Do you still see the correct settings in the property pages?

- Elton
0 Kudos
Message 3 of 3
(3,039 Views)