LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI 6.0 installed in OS XP issue?

Dear Sir/Madam:

I used Labwindow CVI 6.0 develope my program under Window2000 OS. Some strange and terrible things will happens When I disturbed it and installed in Window XP OS. There's no such thing when installed in OS2k.

1) The UIR display diagram sometime will display a wrong format when I installed in the instrument that using the WinXP embedded system, pls see the attached file. How can I solve this problem?

tabCtrl = EasyTab_ConvertFromCanvas(panelHandle, MAIN_CANVAS);
EasyTab_LoadPanels (panelHandle, tabCtrl, 1, "RecordPlaydemo.uir", __CVIUserHInst, FREQSPEC, &panelSpectrum,SPECTGRAH, &panelSpecGrap, 0);

2) My SW application is plot the spectrum trace data intensity in the panelSpecGrap, first defined the g_ColorBar[201],

for (i = 0; i< 201; i++)
{
PlotPoint (panelSpectrumGrapConf, COLORCONF_GRAPH, i, 0.0,
VAL_SOLID_SQUARE, g_ColorBar[i]);
PlotPoint (panelSpectrumGrapConf, COLORCONF_GRAPH, i, 0.05,
VAL_SOLID_SQUARE, g_ColorBar[i]);
PlotPoint (panelSpectrumGrapConf, COLORCONF_GRAPH, i, 0.1,
VAL_SOLID_SQUARE, g_ColorBar[i]);
PlotPoint (panelSpectrumGrapConf, COLORCONF_GRAPH, i, 0.15,
VAL_SOLID_SQUARE, g_ColorBar[i]);
PlotPoint (panelSpectrumGrapConf, COLORCONF_GRAPH, i, 0.2,
VAL_SOLID_SQUARE, g_ColorBar[i]);

/*History Spectrum Diagram*/
PlotPoint (panelSpecGrap, SPECTGRAH_GRAPH_2, i, 0.0,
VAL_SOLID_SQUARE, g_ColorBar[i]);
PlotPoint (panelSpecGrap, SPECTGRAH_GRAPH_2, i, 0.05,
VAL_SOLID_SQUARE, g_ColorBar[i]);
PlotPoint (panelSpecGrap, SPECTGRAH_GRAPH_2, i, 0.1,
VAL_SOLID_SQUARE, g_ColorBar[i]);
PlotPoint (panelSpecGrap, SPECTGRAH_GRAPH_2, i, 0.15,
VAL_SOLID_SQUARE, g_ColorBar[i]);
PlotPoint (panelSpecGrap, SPECTGRAH_GRAPH_2, i, 0.2,
VAL_SOLID_SQUARE, g_ColorBar[i]);
ProcessDrawEvents();
}

Under Win2000, the speed is quite OK, however, when the SW run in WinXP, the speed become very very slow, I don't know what the problem is? PlotPoint??

3) When I used the PlotPoint using different color, I would like to use the cursor to get back the every point color info, however, there's no function to get back the trace point data's color? any recommend?

4) When I used the following to save the diagram, it only can save the *bmp format, is there any way in LabCVI 6.0 to save it as other format, e.g wmf, pcx, gif??
GetPanelDisplayBitmap (panelSpectrum, VAL_FULL_PANEL, VAL_ENTIRE_OBJECT,&BmpId);
SaveBitmapToFile (PathName, BmpId);
0 Kudos
Message 1 of 3
(3,276 Views)
Hello Mike,

First, CVI 6 is officially supported in Windows XP. Having said that, let's try to figure out the source of the behavior you are seeing. I would suggest installing the latest version of the runtime engine. The runtime engine is backwards compatible, so you will still be able to run your application in CVI 6 after installation.

1) In the screenshot you included, is the incorrect behavior in the upper left corner where the title bar is not colored? Were you able to reproduce the behavior on another machine? Also, when does this behavior occur, at runtime, or when opening the UIR in CVI?

2) Were you able to reproduce the slow plotting on another Windows XP machine?

3) My first thoughts on how to get the point color, would be to:
/* Figure out which plot and which point the Cursor is over */
GetGraphCursorIndex (panel, PANEL_GRAPH, 1, &plothandle, &index);
/* Get the plot color associated with the plothandle returned above */
GetPlotAttribute (panel, PANEL_GRAPH, plothandle, ATTR_TRACE_COLOR, &color);
Let me know how that works.

4) In CVI 6, saving panel images to png or jpeg was not supported. So, I would suggest taking a look at the following post where customers have posted interesting libraries to save to these formats.

Thanks.
Wendy L
LabWindows/CVI Developer Newsletter
Message 2 of 3
(3,238 Views)
Hi Wendy,

Thanks very much for your reply!
1) Yes! That's some thine the runtime engine issue, I installed the new one and now it work well.

2) The color index also can work well!

3) I will tried the jpg format later!

Regards

Mike cheong
0 Kudos
Message 3 of 3
(3,232 Views)