ni.com is currently undergoing scheduled maintenance.
Some services may be unavailable at this time. Please contact us for help or try again later.
07-20-2006 09:07 AM
07-20-2006 09:20 AM
Hello Estelle,
tabPanelHandle is the handle for the first tab page on your tab control. If the stripchart is located on another tab page, you should get also a handle for this other tab page, using the function GetPanelHandleFromTabPage. If the control EOM_VOLTAGE is located on the tab page with index 1 (2nd page), use the following code:
GetPanelHandleFromTabPage (panelHandle, PANEL_TAB_WEAK, 0, &tabpanelHandle); // First page on the tab control.
PlotStripChart (tabpanelHandle, TABPANEL_CHARTX, dataX, NUM_VALUES*4, 0, 0, VAL_DOUBLE);
PlotStripChart (tabpanelHandle, TABPANEL_CHARTY, dataY,NUM_VALUES*4, 0, 0, VAL_DOUBLE);
GetPanelHandleFromTabPage (panelHandle, PANEL_TAB_WEAK, 1, &tabpanelHandle); // Second page on the tab control.
PlotStripChart (tabpanelHandle, TABPANEL_0_EOM_VOLTAGE, dataX,NUM_VALUES*4, 0, 0, VAL_DOUBLE);
Success,
Wim
07-20-2006 09:25 AM
Thanks,
I think it will help ......
estelle