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);