INTEGRATION: CWS sw30bf10 (1.9.92); FILE MERGED 2008/07/25 13:17:26 od 1.9.92.1: exclude api test sw.PageStyle because it is broken. Issue number: Submitted by: Reviewed by:

-o sw.CharacterStyle
-o sw.ConditionalParagraphStyle
#i92136 -o sw.PageStyle
-o sw.ParagraphStyle
-o sw.SwAccessibleDocumentPageView
#i86751 -o sw.SwAccessibleDocumentView
-o sw.SwAccessibleEndnoteView
-o sw.SwAccessibleFooterView
-o sw.SwAccessibleFootnoteView
-o sw.SwAccessibleHeaderView
#i89022 -o sw.SwAccessiblePageView
-o sw.SwAccessibleParagraphView
-o sw.SwAccessibleTableCellView
#i85634 -o sw.SwAccessibleTableView
-o sw.SwAccessibleTextEmbeddedObject
-o sw.SwAccessibleTextFrameView
-o sw.SwAccessibleTextGraphicObject
-o sw.SwXAutoTextContainer
-o sw.SwXAutoTextEntry
-o sw.SwXAutoTextGroup
-o sw.SwXBodyText
-o sw.SwXBookmark
-o sw.SwXBookmarks
-o sw.SwXCell
-o sw.SwXCellRange
-o sw.SwXChapterNumbering
-o sw.SwXDocumentIndex
-o sw.SwXDocumentIndexMark
-o sw.SwXDocumentIndexes
-o sw.SwXDrawPage
-o sw.SwXEndnoteProperties
-o sw.SwXFieldEnumeration
-o sw.SwXFieldMaster
-o sw.SwXFootnote
-o sw.SwXFootnoteProperties
-o sw.SwXFootnoteText
-o sw.SwXFootnotes
-o sw.SwXFrames
-o sw.SwXHeadFootText
-o sw.SwXLineNumberingProperties
#i85640 -o sw.SwXMailMerge
-o sw.SwXModule
-o sw.SwXNumberingRules
-o sw.SwXParagraph
-o sw.SwXParagraphEnumeration
-o sw.SwXPrintSettings
-o sw.SwXPropertySet
-o sw.SwXPropertySetInfo
-o sw.SwXReferenceMark
-o sw.SwXReferenceMarks
-o sw.SwXShape
-o sw.SwXStyleFamilies
-o sw.SwXStyleFamily
-o sw.SwXTableCellText
-o sw.SwXTableColumns
-o sw.SwXTableRows
-o sw.SwXTextColumns
-o sw.SwXTextCursor
#i89021 -o sw.SwXTextDefaults
-o sw.SwXTextDocument
-o sw.SwXTextEmbeddedObject
-o sw.SwXTextEmbeddedObjects
-o sw.SwXTextField
-o sw.SwXTextFieldMasters
-o sw.SwXTextFieldTypes
-o sw.SwXTextFrame
-o sw.SwXTextFrameText
-o sw.SwXTextGraphicObject
-o sw.SwXTextGraphicObjects
-o sw.SwXTextPortion
-o sw.SwXTextPortionEnumeration
-o sw.SwXTextRange
-o sw.SwXTextRanges
-o sw.SwXTextSearch
-o sw.SwXTextSection
-o sw.SwXTextSections
-o sw.SwXTextTable
-o sw.SwXTextTableCursor
-o sw.SwXTextTableRow
-o sw.SwXTextTables
#i85580 -o sw.SwXTextView
-o sw.SwXTextViewCursor
-o sw.SwXViewSettings
-o sw.XMLContentExporter
#i23394 -o sw.XMLContentImporter
-o sw.XMLExporter
-o sw.XMLImporter
#i23394 -o sw.XMLMetaExporter
-o sw.XMLMetaImporter
-o sw.XMLSettingsExporter
-o sw.XMLSettingsImporter
-o sw.XMLStylesExporter
#i23394 -o sw.XMLStylesImporter
-o sw.DocumentSettings

-o sw.CharacterStyle
-o sw.ConditionalParagraphStyle
-o sw.PageStyle
-o sw.ParagraphStyle
-o sw.SwAccessibleDocumentPageView
#i86751 -o sw.SwAccessibleDocumentView
-o sw.SwAccessibleEndnoteView
-o sw.SwAccessibleFooterView
-o sw.SwAccessibleFootnoteView
-o sw.SwAccessibleHeaderView
#i89022 -o sw.SwAccessiblePageView
-o sw.SwAccessibleParagraphView
-o sw.SwAccessibleTableCellView
#i85634 -o sw.SwAccessibleTableView
-o sw.SwAccessibleTextEmbeddedObject
-o sw.SwAccessibleTextFrameView
-o sw.SwAccessibleTextGraphicObject
-o sw.SwXAutoTextContainer
-o sw.SwXAutoTextEntry
-o sw.SwXAutoTextGroup
-o sw.SwXBodyText
-o sw.SwXBookmark
-o sw.SwXBookmarks
-o sw.SwXCell
-o sw.SwXCellRange
-o sw.SwXChapterNumbering
-o sw.SwXDocumentIndex
-o sw.SwXDocumentIndexMark
-o sw.SwXDocumentIndexes
-o sw.SwXDrawPage
-o sw.SwXEndnoteProperties
-o sw.SwXFieldEnumeration
-o sw.SwXFieldMaster
-o sw.SwXFootnote
-o sw.SwXFootnoteProperties
-o sw.SwXFootnoteText
-o sw.SwXFootnotes
-o sw.SwXFrames
-o sw.SwXHeadFootText
-o sw.SwXLineNumberingProperties
#i85640 -o sw.SwXMailMerge
-o sw.SwXModule
-o sw.SwXNumberingRules
-o sw.SwXParagraph
-o sw.SwXParagraphEnumeration
-o sw.SwXPrintSettings
-o sw.SwXPropertySet
-o sw.SwXPropertySetInfo
-o sw.SwXReferenceMark
-o sw.SwXReferenceMarks
-o sw.SwXShape
-o sw.SwXStyleFamilies
-o sw.SwXStyleFamily
-o sw.SwXTableCellText
-o sw.SwXTableColumns
-o sw.SwXTableRows
-o sw.SwXTextColumns
-o sw.SwXTextCursor
#i89021 -o sw.SwXTextDefaults
-o sw.SwXTextDocument
-o sw.SwXTextEmbeddedObject
-o sw.SwXTextEmbeddedObjects
-o sw.SwXTextField
-o sw.SwXTextFieldMasters
-o sw.SwXTextFieldTypes
-o sw.SwXTextFrame
-o sw.SwXTextFrameText
-o sw.SwXTextGraphicObject
-o sw.SwXTextGraphicObjects
-o sw.SwXTextPortion
-o sw.SwXTextPortionEnumeration
-o sw.SwXTextRange
-o sw.SwXTextRanges
-o sw.SwXTextSearch
-o sw.SwXTextSection
-o sw.SwXTextSections
-o sw.SwXTextTable
-o sw.SwXTextTableCursor
-o sw.SwXTextTableRow
-o sw.SwXTextTables
#i85580 -o sw.SwXTextView
-o sw.SwXTextViewCursor
-o sw.SwXViewSettings
-o sw.XMLContentExporter
#i23394 -o sw.XMLContentImporter
-o sw.XMLExporter
-o sw.XMLImporter
#i23394 -o sw.XMLMetaExporter
-o sw.XMLMetaImporter
-o sw.XMLSettingsExporter
-o sw.XMLSettingsImporter
-o sw.XMLStylesExporter
#i23394 -o sw.XMLStylesImporter
-o sw.DocumentSettings


fix v0.4

fix v0.4

- Fixed the filepath issue

//Scilab code generated by Scilab GUI Designer
//Do not modify this file
//Undertake any modifications in the corresponding .sgd file via the Designer

//mode(0);
//lines(0);
pathname = get_absolute_file_path('ControlPanel.sce');
chdir(pathname);
exec ("commands.sce", -1);

function form = new_form()
	form = figure( "visible", "off", "menubar_visible", "off", "toolbar_visible", "off", "infobar_visible", "off");
	form.figure_position = [ 805 , 222];
	form.axes_size = [ 684 , 438];
	form.figure_name = "MDX-15/20 Control Panel - Craftweeks";
	form.tag = "form";
	form.background = color(240 , 240 , 240);
//	form.event_handler = "form_callback";
	//form.event_handler_enable = "on";
	form.resize = "off";
endfunction

handles.dummy = 0;
handles.form = new_form();

function textfieldobj = new_textfield_X()
	textfieldobj = uicontrol(findobj("tag" , "form"),"Style","text");
	textfieldobj.Position = "320|160|20|22";
	textfieldobj.Tag = "textfieldX";
	textfieldobj.String = "X";
	textfieldobj.BackgroundColor = "-1|-1|-1";
	textfieldobj.Callback = "textfield1_Form_callback";
endfunction

handles.textfield_X = new_textfield_X()

function editfieldobj = new_editboxX()
	editfieldobj = uicontrol(findobj("tag" , "form"),"Style","edit");
	editfieldobj.Position = "340|160|81|22";
	editfieldobj.Tag = "XPosition";
	editfieldobj.String = "NaN";
	editfieldobj.BackgroundColor = "-1|-1|-1";
	editfieldobj.Callback = "editboxX_callback";
endfunction

handles.editboxX = new_editboxX();

function textfieldobj = new_textfield_Y()
	textfieldobj = uicontrol(findobj("tag" , "form"),"Style","text");
	textfieldobj.Position = "320|135|20|22";
	textfieldobj.Tag = "textfieldY";
	textfieldobj.String = "Y";
	textfieldobj.BackgroundColor = "-1|-1|-1";
	textfieldobj.Callback = "textfield1_Form_callback";
endfunction

handles.textfield_Y = new_textfield_Y()

function editfieldobj = new_editboxY()
	editfieldobj = uicontrol(findobj("tag" , "form"),"Style","edit");
	editfieldobj.Position = "340|135|81|22";
	editfieldobj.Tag = "YPosition";
	editfieldobj.String = "NaN";
	editfieldobj.BackgroundColor = "-1|-1|-1";
	editfieldobj.Callback = "editboxY_callback";
endfunction

handles.editboxY = new_editboxY();

function textfieldobj = new_textfield_Z()
	textfieldobj = uicontrol(findobj("tag" , "form"),"Style","text");
	textfieldobj.Position = "320|110|20|22";
	textfieldobj.Tag = "textfieldZ";
	textfieldobj.String = "Z";
	textfieldobj.BackgroundColor = "-1|-1|-1";
	textfieldobj.Callback = "textfield1_Form_callback";
endfunction

handles.textfield_Z = new_textfield_Z()

function editfieldobj = new_editboxZ()
	editfieldobj = uicontrol(findobj("tag" , "form"),"Style","edit");
	editfieldobj.Position = "340|110|81|22";
	editfieldobj.Tag = "ZPosition";
	editfieldobj.String = "NaN";
	editfieldobj.BackgroundColor = "-1|-1|-1";
	editfieldobj.Callback = "editboxZ_callback";
endfunction

handles.editboxZ = new_editboxZ();

function textfieldobj = new_TextZO()
	textfieldobj = uicontrol(findobj("tag" , "form"),"Style","text");
	textfieldobj.Position = "452|110|81|22";
	textfieldobj.Tag = "textfield1_RolandMODELAMDX20ControlPanel";
	textfieldobj.String = "";
	textfieldobj.BackgroundColor = "-1|-1|-1";
	//textfieldobj.Callback = "textfield1_RolandMODELAMDX20ControlPanel_callback";
endfunction

handles.TextZO = new_TextZO();

function pushbuttonobj = new_pushbutton1()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "540|110|91|25";
	pushbuttonobj.Tag = "pushbutton1";
	pushbuttonobj.String = "Printer";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "printer_callback";
endfunction

handles.pushbutton1 = new_pushbutton1();

function pushbuttonobj = new_pushbuttonSpooler()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "540|85|91|25";
	pushbuttonobj.Tag = "pushbuttonSpooler";
	pushbuttonobj.String = "Stop Spool";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "spooler_callback";
endfunction

handles.pushbuttonSpooler = new_pushbuttonSpooler();

function pushbuttonobj = new_pushbuttonGO()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "340|35|81|25";
	pushbuttonobj.Tag = "pushbuttonGO";
	pushbuttonobj.String = "Go";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "go_callback";
	pushbuttonobj.Enable = "off";
endfunction

handles.pushbuttonGO = new_pushbuttonGO();

function pushbuttonobj = new_pushbutton4()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "117|397|81|25";
	pushbuttonobj.Tag = "pushbutton4";
	pushbuttonobj.String = "Reset";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "reset_callback";
endfunction

handles.pushbutton4 = new_pushbutton4();

function pushbuttonobj = new_pushbutton5()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "200|325|55|25";
	pushbuttonobj.Tag = "pushbuttonY_10";
	pushbuttonobj.String = "-10";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "in10mm_callback";
endfunction

handles.pushbutton5 = new_pushbutton5();

function pushbuttonobj = new_pushbutton6()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "200|300|55|25";
	pushbuttonobj.Tag = "pushbuttonY_1";
	pushbuttonobj.String = "-1";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "in1mm_callback";
endfunction

handles.pushbutton6 = new_pushbutton6();

function pushbuttonobj = new_pushbutton7()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "200|275|55|25";
	pushbuttonobj.Tag = "pushbuttonY_01";
	pushbuttonobj.String = "-0.1";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "in01mm_callback";
endfunction

handles.pushbutton7 = new_pushbutton7();

function pushbuttonobj = new_pushbutton8()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "200|175|55|25";
	pushbuttonobj.Tag = "pushbuttonY01";
	pushbuttonobj.String = "+0.1";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "out01mm_callback";
endfunction

handles.pushbutton8 = new_pushbutton8();

function pushbuttonobj = new_pushbutton9()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "200|150|55|25";
	pushbuttonobj.Tag = "pushbuttonY1";
	pushbuttonobj.String = "+1";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "out1mm_callback";
endfunction

handles.pushbutton9 = new_pushbutton9();

function pushbuttonobj = new_pushbutton10()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "200|125|55|25";
	pushbuttonobj.Tag = "pushbuttonY10";
	pushbuttonobj.String = "+10";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "out10mm_callback";
endfunction

handles.pushbutton10 = new_pushbutton10();

function pushbuttonobj = new_pushbutton11()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "25|225|55|25";
	pushbuttonobj.Tag = "pushbuttonX_10";
	pushbuttonobj.String = "-10";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "left10mm_callback";
endfunction

handles.pushbutton11 = new_pushbutton11();

function pushbuttonobj = new_pushbutton12()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "80|225|55|25";
	pushbuttonobj.Tag = "pushbuttonX_1";
	pushbuttonobj.String = "-1";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "left1mm_callback";
endfunction

handles.pushbutton12 = new_pushbutton12();

function pushbuttonobj = new_pushbutton13()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "135|225|55|25";
	pushbuttonobj.Tag = "pushbuttonX_01";
	pushbuttonobj.String = "-0.1";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "left01mm_callback";
endfunction

handles.pushbutton13 = new_pushbutton13();

function pushbuttonobj = new_pushbutton14()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "265|225|55|25";
	pushbuttonobj.Tag = "pushbuttonX01";
	pushbuttonobj.String = "+0.1";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "right01mm_callback";
endfunction

handles.pushbutton14 = new_pushbutton14();

function pushbuttonobj = new_pushbutton15()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "320|225|55|25";
	pushbuttonobj.Tag = "pushbuttonX1";
	pushbuttonobj.String = "+1";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "right1mm_callback";
endfunction

handles.pushbutton15 = new_pushbutton15();

function pushbuttonobj = new_pushbutton16()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "375|225|55|25";
	pushbuttonobj.Tag = "pushbuttonX10";
	pushbuttonobj.String = "+10";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "right10mm_callback";
endfunction

handles.pushbutton16 = new_pushbutton16();

function pushbuttonobj = new_pushbutton17()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "322|335|60|25";
	pushbuttonobj.Tag = "pushbutton17";
	pushbuttonobj.String = "Y0";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "yminhome_callback";
endfunction

handles.pushbutton17 = new_pushbutton17();

function pushbuttonobj = new_pushbutton18()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "290|310|60|25";
	pushbuttonobj.Tag = "pushbutton18";
	pushbuttonobj.String = "X0";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "xminhome_callback";
endfunction

handles.pushbutton18 = new_pushbutton18();

function pushbuttonobj = new_pushbutton19()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "350|310|60|25";
	pushbuttonobj.Tag = "pushbutton19";
	pushbuttonobj.String = "Xmax";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "xmaxhome_callback";
endfunction

handles.pushbutton19 = new_pushbutton19();

function pushbuttonobj = new_pushbutton20()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "322|285|60|25";
	pushbuttonobj.Tag = "pushbutton20";
	pushbuttonobj.String = "Ymax";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "ymaxhome_callback";
endfunction

handles.pushbutton20 = new_pushbutton20();

function pushbuttonobj = new_pushbutton21()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "462|310|55|25";
	pushbuttonobj.Tag = "pushbuttonZ10";
	pushbuttonobj.String = "+10";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "up10mm_callback";
endfunction

handles.pushbutton21 = new_pushbutton21();

function pushbuttonobj = new_pushbutton22()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "462|285|55|25";
	pushbuttonobj.Tag = "pushbuttonZ1";
	pushbuttonobj.String = "+1";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "up1mm_callback";
endfunction

handles.pushbutton22 = new_pushbutton22();

function pushbuttonobj = new_pushbutton23()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "462|260|55|25";
	pushbuttonobj.Tag = "pushbuttonZ01";
	pushbuttonobj.String = "+0.1";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "up01mm_callback";
endfunction

handles.pushbutton23 = new_pushbutton23();

function pushbuttonobj = new_pushbutton24()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "470|235|40|25";
	pushbuttonobj.Tag = "pushbutton24";
	pushbuttonobj.String = "+";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "up1step_callback";
endfunction

handles.pushbutton24 = new_pushbutton24();

function pushbuttonobj = new_pushbutton25()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "470|210|40|25";
	pushbuttonobj.Tag = "pushbutton25";
	pushbuttonobj.String = "-";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "down1step_callback";
endfunction

handles.pushbutton25 = new_pushbutton25();

function pushbuttonobj = new_pushbutton26()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "462|185|55|25";
	pushbuttonobj.Tag = "pushbuttonZ01";
	pushbuttonobj.String = "-0.1";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "down01mm_callback";
endfunction

handles.pushbutton26 = new_pushbutton26();

function pushbuttonobj = new_pushbutton27()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "462|160|55|25";
	pushbuttonobj.Tag = "pushbuttonZ_1";
	pushbuttonobj.String = "-1";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "down1mm_callback";
endfunction

handles.pushbutton27 = new_pushbutton27();

function pushbuttonobj = new_pushbutton28()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "462|135|55|25";
	pushbuttonobj.Tag = "pushbuttonZ_10";
	pushbuttonobj.String = "-10";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "down10mm_callback";
endfunction

handles.pushbutton28 = new_pushbutton28();

function pushbuttonobj = new_pushbutton29()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "450|85|81|25";
	pushbuttonobj.Tag = "pushbutton29";
	pushbuttonobj.String = "Set ZO";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "setZO_callback";
endfunction

handles.pushbutton29 = new_pushbutton29();

function pushbuttonobj = new_pushbutton30()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "208|250|40|25";
	pushbuttonobj.Tag = "pushbutton30";
	pushbuttonobj.String = "^";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "in1step_callback";
endfunction

handles.pushbutton30 = new_pushbutton30();

function pushbuttonobj = new_pushbutton31()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "208|200|40|25";
	pushbuttonobj.Tag = "pushbutton31";
	pushbuttonobj.String = "v";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "out1step_callback";
endfunction

handles.pushbutton31 = new_pushbutton31();

function pushbuttonobj = new_pushbutton32()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "190|225|38|25";
	pushbuttonobj.Tag = "pushbutton32";
	pushbuttonobj.String = "<";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "left1step_callback";
endfunction

handles.pushbutton32 = new_pushbutton32();

function pushbuttonobj = new_pushbutton33()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "228|225|38|25";
	pushbuttonobj.Tag = "pushbutton33";
	pushbuttonobj.String = ">";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "right1step_callback";
endfunction

handles.pushbutton33 = new_pushbutton33();

function pushbuttonobj = new_pushbutton34()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "75|335|81|25";
	pushbuttonobj.Tag = "pushbutton34";
	pushbuttonobj.String = "Home";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "home_callback";
endfunction

handles.pushbutton34 = new_pushbutton34();

function pushbuttonobj = new_pushbutton35()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "540|35|91|25";
	pushbuttonobj.Tag = "pushbutton35";
	pushbuttonobj.String = "Help";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "help_callback";
endfunction

handles.pushbutton35 = new_pushbutton35();

function popupmenuobj = new_popupmenu1()
	popupmenuobj = uicontrol(findobj("tag" , "form"),"Style","popupmenu");
	popupmenuobj.Position = "28|400|81|20";
	popupmenuobj.Tag = "popupmenu1";
	popupmenuobj.String = "COM 1|COM 2|COM 3";
	popupmenuobj.BackgroundColor = "1|1|1";
	popupmenuobj.Value = 1;
	popupmenuobj.Callback = "changeport_callback";
endfunction

handles.popupmenu1 = new_popupmenu1();

function checkboxobj = new_checkbox1()
	checkboxobj = uicontrol(findobj("tag" , "form"),"Style","checkbox");
	checkboxobj.Position = "280|65|55|22";
	checkboxobj.Tag = "checkbox1";
	checkboxobj.String = "Direct";
	checkboxobj.BackgroundColor = "-1|-1|-1";
	checkboxobj.Value = checkboxobj.Max;
	checkboxobj.Callback = "directgo_callback";
endfunction

handles.checkbox1 = new_checkbox1();

function radiobuttonobj = new_radiobuttonMDX15()
	radiobuttonobj = uicontrol(findobj("tag" , "form"),"Style","radiobutton");
	radiobuttonobj.Position = "200|397|70|25";
	radiobuttonobj.Tag = "radiobuttonMDX15";
	radiobuttonobj.String = "MDX-15";
	radiobuttonobj.Groupname = "machine_model";
	radiobuttonobj.BackgroundColor = "-1|-1|-1";
	radiobuttonobj.Value = radiobuttonobj.Min;
	radiobuttonobj.Callback = "setAsMDX15_callback";
endfunction

handles.radiobuttonMDX15 = new_radiobuttonMDX15();

function radiobuttonobj = new_radiobuttonMDX20()
	radiobuttonobj = uicontrol(findobj("tag" , "form"),"Style","radiobutton");
	radiobuttonobj.Position = "270|397|81|25";
	radiobuttonobj.Tag = "radiobuttonMDX20";
	radiobuttonobj.String = "MDX-20";
	radiobuttonobj.Groupname = "machine_model";
	radiobuttonobj.BackgroundColor = "-1|-1|-1";
	radiobuttonobj.Value = radiobuttonobj.Max;
	radiobuttonobj.Callback = "setAsMDX20_callback";

endfunction

handles.radiobuttonMDX20 = new_radiobuttonMDX20();

function textfieldobj = new_textfield_V()
	textfieldobj = uicontrol(findobj("tag" , "form"),"Style","text");
	textfieldobj.Position = "300|85|40|22";
	textfieldobj.Tag = "textfieldV_Form";
	textfieldobj.String = "Velocity";
	textfieldobj.BackgroundColor = "-1|-1|-1";
	textfieldobj.Callback = "textfieldV_Form_callback";
endfunction

handles.textfield_V = new_textfield_V()

function sliderobj = new_hsliderV()
	sliderobj = uicontrol(findobj("tag" , "form"),"Style","slider");
	sliderobj.Position = "340|85|81|22";
	sliderobj.Tag = "hsliderV_Form";
	sliderobj.String = "Velocity";
	sliderobj.BackgroundColor = "-1|-1|-1";
	sliderobj.Max = 15;
	sliderobj.Min = 0;
	sliderobj.SliderStep = [1,10];
	sliderobj.Value = 15;
	sliderobj.Callback = "velocity_callback";
endfunction

handles.hsliderV = new_hsliderV();

function checkboxobj = new_checkboxSON()
	checkboxobj = uicontrol(findobj("tag" , "form"),"Style","checkbox");
	checkboxobj.Position = "340|65|81|22";
	checkboxobj.Tag = "checkboxSON";
	checkboxobj.String = "Spindle On";
	checkboxobj.BackgroundColor = "-1|-1|-1";
	checkboxobj.Value = checkboxobj.Max;
	checkboxobj.Callback = "checkboxSON_callback";
endfunction

handles.checkboxSON = new_checkboxSON();

function imageobj = new_imageLogo()
	imageobj =  uicontrol(findobj("tag" , "form"),"Style","image");
	imageobj.Position = "540|328|100|100";
	imageobj.Tag = "imageLogo";
	imageobj.String = "craftweeks_logo.png"
	imageobj.BackgroundColor = "-1|-1|-1";
	imageobj.Value = [1 1 0 0 0];
endfunction

function frameobj = new_frameXY()
	frameobj =  uicontrol(findobj("tag" , "form"),"Style","frame");
	frameobj.Position = "0|80|198|132";
	frameobj.Tag = "frameXY";
	frameobj.String = "frameXY"
	frameobj.BackgroundColor = "1|1|1";
endfunction

handles.frameXY = new_frameXY()
handles.axisXY = newaxes(handles.frameXY)
handles.axisXY.auto_clear = 'on';
plot(handles.axisXY, 0,0);
isoview(0,XMAX, 0, YMAX);

handles.imageLogo = new_imageLogo();

set(handles.form, "visible", "on");

//Scilab code generated by Scilab GUI Designer
//Do not modify this file
//Undertake any modifications in the corresponding .sgd file via the Designer

//mode(0);
//lines(0);

exec ("commands.sce", -1);

function form = new_form()
	form = figure( "visible", "off", "menubar_visible", "off", "toolbar_visible", "off", "infobar_visible", "off");
	form.figure_position = [ 805 , 222];
	form.axes_size = [ 684 , 438];
	form.figure_name = "MDX-15/20 Control Panel - Craftweeks";
	form.tag = "form";
	form.background = color(240 , 240 , 240);
//	form.event_handler = "form_callback";
	//form.event_handler_enable = "on";
	form.resize = "off";
endfunction

handles.dummy = 0;
handles.form = new_form();

function textfieldobj = new_textfield_X()
	textfieldobj = uicontrol(findobj("tag" , "form"),"Style","text");
	textfieldobj.Position = "320|160|20|22";
	textfieldobj.Tag = "textfieldX";
	textfieldobj.String = "X";
	textfieldobj.BackgroundColor = "-1|-1|-1";
	textfieldobj.Callback = "textfield1_Form_callback";
endfunction

handles.textfield_X = new_textfield_X()

function editfieldobj = new_editboxX()
	editfieldobj = uicontrol(findobj("tag" , "form"),"Style","edit");
	editfieldobj.Position = "340|160|81|22";
	editfieldobj.Tag = "XPosition";
	editfieldobj.String = "NaN";
	editfieldobj.BackgroundColor = "-1|-1|-1";
	editfieldobj.Callback = "editboxX_callback";
endfunction

handles.editboxX = new_editboxX();

function textfieldobj = new_textfield_Y()
	textfieldobj = uicontrol(findobj("tag" , "form"),"Style","text");
	textfieldobj.Position = "320|135|20|22";
	textfieldobj.Tag = "textfieldY";
	textfieldobj.String = "Y";
	textfieldobj.BackgroundColor = "-1|-1|-1";
	textfieldobj.Callback = "textfield1_Form_callback";
endfunction

handles.textfield_Y = new_textfield_Y()

function editfieldobj = new_editboxY()
	editfieldobj = uicontrol(findobj("tag" , "form"),"Style","edit");
	editfieldobj.Position = "340|135|81|22";
	editfieldobj.Tag = "YPosition";
	editfieldobj.String = "NaN";
	editfieldobj.BackgroundColor = "-1|-1|-1";
	editfieldobj.Callback = "editboxY_callback";
endfunction

handles.editboxY = new_editboxY();

function textfieldobj = new_textfield_Z()
	textfieldobj = uicontrol(findobj("tag" , "form"),"Style","text");
	textfieldobj.Position = "320|110|20|22";
	textfieldobj.Tag = "textfieldZ";
	textfieldobj.String = "Z";
	textfieldobj.BackgroundColor = "-1|-1|-1";
	textfieldobj.Callback = "textfield1_Form_callback";
endfunction

handles.textfield_Z = new_textfield_Z()

function editfieldobj = new_editboxZ()
	editfieldobj = uicontrol(findobj("tag" , "form"),"Style","edit");
	editfieldobj.Position = "340|110|81|22";
	editfieldobj.Tag = "ZPosition";
	editfieldobj.String = "NaN";
	editfieldobj.BackgroundColor = "-1|-1|-1";
	editfieldobj.Callback = "editboxZ_callback";
endfunction

handles.editboxZ = new_editboxZ();

function textfieldobj = new_TextZO()
	textfieldobj = uicontrol(findobj("tag" , "form"),"Style","text");
	textfieldobj.Position = "452|110|81|22";
	textfieldobj.Tag = "textfield1_RolandMODELAMDX20ControlPanel";
	textfieldobj.String = "";
	textfieldobj.BackgroundColor = "-1|-1|-1";
	//textfieldobj.Callback = "textfield1_RolandMODELAMDX20ControlPanel_callback";
endfunction

handles.TextZO = new_TextZO();

function pushbuttonobj = new_pushbutton1()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "540|110|91|25";
	pushbuttonobj.Tag = "pushbutton1";
	pushbuttonobj.String = "Printer";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "printer_callback";
endfunction

handles.pushbutton1 = new_pushbutton1();

function pushbuttonobj = new_pushbuttonSpooler()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "540|85|91|25";
	pushbuttonobj.Tag = "pushbuttonSpooler";
	pushbuttonobj.String = "Stop Spool";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "spooler_callback";
endfunction

handles.pushbuttonSpooler = new_pushbuttonSpooler();

function pushbuttonobj = new_pushbuttonGO()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "340|35|81|25";
	pushbuttonobj.Tag = "pushbuttonGO";
	pushbuttonobj.String = "Go";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "go_callback";
	pushbuttonobj.Enable = "off";
endfunction

handles.pushbuttonGO = new_pushbuttonGO();

function pushbuttonobj = new_pushbutton4()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "117|397|81|25";
	pushbuttonobj.Tag = "pushbutton4";
	pushbuttonobj.String = "Reset";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "reset_callback";
endfunction

handles.pushbutton4 = new_pushbutton4();

function pushbuttonobj = new_pushbutton5()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "200|325|55|25";
	pushbuttonobj.Tag = "pushbuttonY_10";
	pushbuttonobj.String = "-10";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "in10mm_callback";
endfunction

handles.pushbutton5 = new_pushbutton5();

function pushbuttonobj = new_pushbutton6()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "200|300|55|25";
	pushbuttonobj.Tag = "pushbuttonY_1";
	pushbuttonobj.String = "-1";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "in1mm_callback";
endfunction

handles.pushbutton6 = new_pushbutton6();

function pushbuttonobj = new_pushbutton7()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "200|275|55|25";
	pushbuttonobj.Tag = "pushbuttonY_01";
	pushbuttonobj.String = "-0.1";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "in01mm_callback";
endfunction

handles.pushbutton7 = new_pushbutton7();

function pushbuttonobj = new_pushbutton8()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "200|175|55|25";
	pushbuttonobj.Tag = "pushbuttonY01";
	pushbuttonobj.String = "+0.1";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "out01mm_callback";
endfunction

handles.pushbutton8 = new_pushbutton8();

function pushbuttonobj = new_pushbutton9()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "200|150|55|25";
	pushbuttonobj.Tag = "pushbuttonY1";
	pushbuttonobj.String = "+1";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "out1mm_callback";
endfunction

handles.pushbutton9 = new_pushbutton9();

function pushbuttonobj = new_pushbutton10()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "200|125|55|25";
	pushbuttonobj.Tag = "pushbuttonY10";
	pushbuttonobj.String = "+10";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "out10mm_callback";
endfunction

handles.pushbutton10 = new_pushbutton10();

function pushbuttonobj = new_pushbutton11()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "25|225|55|25";
	pushbuttonobj.Tag = "pushbuttonX_10";
	pushbuttonobj.String = "-10";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "left10mm_callback";
endfunction

handles.pushbutton11 = new_pushbutton11();

function pushbuttonobj = new_pushbutton12()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "80|225|55|25";
	pushbuttonobj.Tag = "pushbuttonX_1";
	pushbuttonobj.String = "-1";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "left1mm_callback";
endfunction

handles.pushbutton12 = new_pushbutton12();

function pushbuttonobj = new_pushbutton13()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "135|225|55|25";
	pushbuttonobj.Tag = "pushbuttonX_01";
	pushbuttonobj.String = "-0.1";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "left01mm_callback";
endfunction

handles.pushbutton13 = new_pushbutton13();

function pushbuttonobj = new_pushbutton14()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "265|225|55|25";
	pushbuttonobj.Tag = "pushbuttonX01";
	pushbuttonobj.String = "+0.1";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "right01mm_callback";
endfunction

handles.pushbutton14 = new_pushbutton14();

function pushbuttonobj = new_pushbutton15()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "320|225|55|25";
	pushbuttonobj.Tag = "pushbuttonX1";
	pushbuttonobj.String = "+1";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "right1mm_callback";
endfunction

handles.pushbutton15 = new_pushbutton15();

function pushbuttonobj = new_pushbutton16()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "375|225|55|25";
	pushbuttonobj.Tag = "pushbuttonX10";
	pushbuttonobj.String = "+10";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "right10mm_callback";
endfunction

handles.pushbutton16 = new_pushbutton16();

function pushbuttonobj = new_pushbutton17()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "322|335|60|25";
	pushbuttonobj.Tag = "pushbutton17";
	pushbuttonobj.String = "Y0";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "yminhome_callback";
endfunction

handles.pushbutton17 = new_pushbutton17();

function pushbuttonobj = new_pushbutton18()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "290|310|60|25";
	pushbuttonobj.Tag = "pushbutton18";
	pushbuttonobj.String = "X0";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "xminhome_callback";
endfunction

handles.pushbutton18 = new_pushbutton18();

function pushbuttonobj = new_pushbutton19()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "350|310|60|25";
	pushbuttonobj.Tag = "pushbutton19";
	pushbuttonobj.String = "Xmax";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "xmaxhome_callback";
endfunction

handles.pushbutton19 = new_pushbutton19();

function pushbuttonobj = new_pushbutton20()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "322|285|60|25";
	pushbuttonobj.Tag = "pushbutton20";
	pushbuttonobj.String = "Ymax";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "ymaxhome_callback";
endfunction

handles.pushbutton20 = new_pushbutton20();

function pushbuttonobj = new_pushbutton21()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "462|310|55|25";
	pushbuttonobj.Tag = "pushbuttonZ10";
	pushbuttonobj.String = "+10";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "up10mm_callback";
endfunction

handles.pushbutton21 = new_pushbutton21();

function pushbuttonobj = new_pushbutton22()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "462|285|55|25";
	pushbuttonobj.Tag = "pushbuttonZ1";
	pushbuttonobj.String = "+1";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "up1mm_callback";
endfunction

handles.pushbutton22 = new_pushbutton22();

function pushbuttonobj = new_pushbutton23()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "462|260|55|25";
	pushbuttonobj.Tag = "pushbuttonZ01";
	pushbuttonobj.String = "+0.1";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "up01mm_callback";
endfunction

handles.pushbutton23 = new_pushbutton23();

function pushbuttonobj = new_pushbutton24()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "470|235|40|25";
	pushbuttonobj.Tag = "pushbutton24";
	pushbuttonobj.String = "+";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "up1step_callback";
endfunction

handles.pushbutton24 = new_pushbutton24();

function pushbuttonobj = new_pushbutton25()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "470|210|40|25";
	pushbuttonobj.Tag = "pushbutton25";
	pushbuttonobj.String = "-";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "down1step_callback";
endfunction

handles.pushbutton25 = new_pushbutton25();

function pushbuttonobj = new_pushbutton26()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "462|185|55|25";
	pushbuttonobj.Tag = "pushbuttonZ01";
	pushbuttonobj.String = "-0.1";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "down01mm_callback";
endfunction

handles.pushbutton26 = new_pushbutton26();

function pushbuttonobj = new_pushbutton27()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "462|160|55|25";
	pushbuttonobj.Tag = "pushbuttonZ_1";
	pushbuttonobj.String = "-1";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "down1mm_callback";
endfunction

handles.pushbutton27 = new_pushbutton27();

function pushbuttonobj = new_pushbutton28()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "462|135|55|25";
	pushbuttonobj.Tag = "pushbuttonZ_10";
	pushbuttonobj.String = "-10";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "down10mm_callback";
endfunction

handles.pushbutton28 = new_pushbutton28();

function pushbuttonobj = new_pushbutton29()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "450|85|81|25";
	pushbuttonobj.Tag = "pushbutton29";
	pushbuttonobj.String = "Set ZO";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "setZO_callback";
endfunction

handles.pushbutton29 = new_pushbutton29();

function pushbuttonobj = new_pushbutton30()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "208|250|40|25";
	pushbuttonobj.Tag = "pushbutton30";
	pushbuttonobj.String = "^";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "in1step_callback";
endfunction

handles.pushbutton30 = new_pushbutton30();

function pushbuttonobj = new_pushbutton31()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "208|200|40|25";
	pushbuttonobj.Tag = "pushbutton31";
	pushbuttonobj.String = "v";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "out1step_callback";
endfunction

handles.pushbutton31 = new_pushbutton31();

function pushbuttonobj = new_pushbutton32()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "190|225|38|25";
	pushbuttonobj.Tag = "pushbutton32";
	pushbuttonobj.String = "<";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "left1step_callback";
endfunction

handles.pushbutton32 = new_pushbutton32();

function pushbuttonobj = new_pushbutton33()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "228|225|38|25";
	pushbuttonobj.Tag = "pushbutton33";
	pushbuttonobj.String = ">";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "right1step_callback";
endfunction

handles.pushbutton33 = new_pushbutton33();

function pushbuttonobj = new_pushbutton34()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "75|335|81|25";
	pushbuttonobj.Tag = "pushbutton34";
	pushbuttonobj.String = "Home";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "home_callback";
endfunction

handles.pushbutton34 = new_pushbutton34();

function pushbuttonobj = new_pushbutton35()
	pushbuttonobj = uicontrol(findobj("tag" , "form"),"Style","pushbutton");
	pushbuttonobj.Position = "540|35|91|25";
	pushbuttonobj.Tag = "pushbutton35";
	pushbuttonobj.String = "Help";
	pushbuttonobj.BackgroundColor = "-1|-1|-1";
	pushbuttonobj.Callback = "help_callback";
endfunction

handles.pushbutton35 = new_pushbutton35();

function popupmenuobj = new_popupmenu1()
	popupmenuobj = uicontrol(findobj("tag" , "form"),"Style","popupmenu");
	popupmenuobj.Position = "28|400|81|20";
	popupmenuobj.Tag = "popupmenu1";
	popupmenuobj.String = "COM 1|COM 2|COM 3";
	popupmenuobj.BackgroundColor = "1|1|1";
	popupmenuobj.Value = 1;
	popupmenuobj.Callback = "changeport_callback";
endfunction

handles.popupmenu1 = new_popupmenu1();

function checkboxobj = new_checkbox1()
	checkboxobj = uicontrol(findobj("tag" , "form"),"Style","checkbox");
	checkboxobj.Position = "280|65|55|22";
	checkboxobj.Tag = "checkbox1";
	checkboxobj.String = "Direct";
	checkboxobj.BackgroundColor = "-1|-1|-1";
	checkboxobj.Value = checkboxobj.Max;
	checkboxobj.Callback = "directgo_callback";
endfunction

handles.checkbox1 = new_checkbox1();

function radiobuttonobj = new_radiobuttonMDX15()
	radiobuttonobj = uicontrol(findobj("tag" , "form"),"Style","radiobutton");
	radiobuttonobj.Position = "200|397|70|25";
	radiobuttonobj.Tag = "radiobuttonMDX15";
	radiobuttonobj.String = "MDX-15";
	radiobuttonobj.Groupname = "machine_model";
	radiobuttonobj.BackgroundColor = "-1|-1|-1";
	radiobuttonobj.Value = radiobuttonobj.Min;
	radiobuttonobj.Callback = "setAsMDX15_callback";
endfunction

handles.radiobuttonMDX15 = new_radiobuttonMDX15();

function radiobuttonobj = new_radiobuttonMDX20()
	radiobuttonobj = uicontrol(findobj("tag" , "form"),"Style","radiobutton");
	radiobuttonobj.Position = "270|397|81|25";
	radiobuttonobj.Tag = "radiobuttonMDX20";
	radiobuttonobj.String = "MDX-20";
	radiobuttonobj.Groupname = "machine_model";
	radiobuttonobj.BackgroundColor = "-1|-1|-1";
	radiobuttonobj.Value = radiobuttonobj.Max;
	radiobuttonobj.Callback = "setAsMDX20_callback";

endfunction

handles.radiobuttonMDX20 = new_radiobuttonMDX20();

function textfieldobj = new_textfield_V()
	textfieldobj = uicontrol(findobj("tag" , "form"),"Style","text");
	textfieldobj.Position = "300|85|40|22";
	textfieldobj.Tag = "textfieldV_Form";
	textfieldobj.String = "Velocity";
	textfieldobj.BackgroundColor = "-1|-1|-1";
	textfieldobj.Callback = "textfieldV_Form_callback";
endfunction

handles.textfield_V = new_textfield_V()

function sliderobj = new_hsliderV()
	sliderobj = uicontrol(findobj("tag" , "form"),"Style","slider");
	sliderobj.Position = "340|85|81|22";
	sliderobj.Tag = "hsliderV_Form";
	sliderobj.String = "Velocity";
	sliderobj.BackgroundColor = "-1|-1|-1";
	sliderobj.Max = 15;
	sliderobj.Min = 0;
	sliderobj.SliderStep = [1,10];
	sliderobj.Value = 15;
	sliderobj.Callback = "velocity_callback";
endfunction

handles.hsliderV = new_hsliderV();

function checkboxobj = new_checkboxSON()
	checkboxobj = uicontrol(findobj("tag" , "form"),"Style","checkbox");
	checkboxobj.Position = "340|65|81|22";
	checkboxobj.Tag = "checkboxSON";
	checkboxobj.String = "Spindle On";
	checkboxobj.BackgroundColor = "-1|-1|-1";
	checkboxobj.Value = checkboxobj.Max;
	checkboxobj.Callback = "checkboxSON_callback";
endfunction

handles.checkboxSON = new_checkboxSON();

function imageobj = new_imageLogo()
	imageobj =  uicontrol(findobj("tag" , "form"),"Style","image");
	imageobj.Position = "540|328|100|100";
	imageobj.Tag = "imageLogo";
	imageobj.String = "craftweeks_logo.png"
	imageobj.BackgroundColor = "-1|-1|-1";
	imageobj.Value = [1 1 0 0 0];
endfunction

function frameobj = new_frameXY()
	frameobj =  uicontrol(findobj("tag" , "form"),"Style","frame");
	frameobj.Position = "0|80|198|132";
	frameobj.Tag = "frameXY";
	frameobj.String = "frameXY"
	frameobj.BackgroundColor = "1|1|1";
endfunction

handles.frameXY = new_frameXY()
handles.axisXY = newaxes(handles.frameXY)
handles.axisXY.auto_clear = 'on';
plot(handles.axisXY, 0,0);
isoview(0,XMAX, 0, YMAX);

handles.imageLogo = new_imageLogo();

set(handles.form, "visible", "on");


INTEGRATION: CWS qadev32 (1.9.10); FILE MERGED 2008/04/16 18:05:05 cn 1.9.10.1: #i87216# update lists

-o sd.AccessibleDrawDocumentView
-o sd.AccessibleOutlineView
#i35935# -o sd.AccessibleSlideView
-o sd.DrawController_DrawView
-o sd.DrawController_HandoutView
-o sd.DrawController_NotesView
-o sd.DrawController_OutlineView
-o sd.DrawController_PresentationView
-o sd.SdDocLinkTargets
-o sd.SdDrawPage
-o sd.SdDrawPagesAccess
-o sd.SdGenericDrawPage
-o sd.SdLayer
-o sd.SdLayerManager
-o sd.SdMasterPage
-o sd.SdMasterPagesAccess
-o sd.SdPageLinkTargets
-o sd.SdXCustomPresentation
-o sd.SdXCustomPresentationAccess
#i84994# -o sd.SdXImpressDocument
-o sd.SdXPresentation
#i87746 -o sd.SdXShape

-o sd.AccessibleDrawDocumentView
-o sd.AccessibleOutlineView
#i35935# -o sd.AccessibleSlideView
-o sd.DrawController_DrawView
-o sd.DrawController_HandoutView
-o sd.DrawController_NotesView
-o sd.DrawController_OutlineView
-o sd.DrawController_PresentationView
-o sd.SdDocLinkTargets
-o sd.SdDrawPage
-o sd.SdDrawPagesAccess
-o sd.SdGenericDrawPage
-o sd.SdLayer
-o sd.SdLayerManager
-o sd.SdMasterPage
-o sd.SdMasterPagesAccess
-o sd.SdPageLinkTargets
-o sd.SdXCustomPresentation
-o sd.SdXCustomPresentationAccess
#i84994# -o sd.SdXImpressDocument
-o sd.SdXPresentation
-o sd.SdXShape


INTEGRATION: CWS qiq (1.2.216); FILE MERGED 2006/06/26 21:12:36 fs 1.2.216.1: #i51143# additional scnearios

-o complex.dbaccess.SingleSelectQueryComposer
-o complex.dbaccess.RowSet
-o complex.dbaccess.Query
-o complex.dbaccess.QueryInQuery


Revert "sb140: #i114669# appears be duplicate of fixed i114718, so re-enabling test"

This reverts commit 52b32f617521fd160b043754f77f3a549fddc926.

-o forms.OButtonControl
#i111285 -o forms.OButtonModel
-o forms.OCheckBoxControl
-o forms.OCheckBoxModel
-o forms.OComboBoxControl
-o forms.OComboBoxModel
-o forms.OCurrencyControl
-o forms.OCurrencyModel
#-o forms.ODatabaseForm
-o forms.ODateControl
-o forms.ODateModel
-o forms.OEditControl
-o forms.OEditModel
#i109939 -o forms.OFileControlModel
-o forms.OFixedTextModel
-o forms.OFormattedControl
#i109939 -o forms.OFormattedFieldWrapper
# LSST EIN DOKUMENT OFFEN -o forms.OFormsCollection
-o forms.OGridControlModel
-o forms.OGroupBoxControl
-o forms.OGroupBoxModel
-o forms.OHiddenModel
-o forms.OImageButtonControl
-o forms.OImageButtonModel
-o forms.OImageControlControl
-o forms.OImageControlModel
#i114669 -o forms.OListBoxControl
-o forms.OListBoxModel
-o forms.ONavigationBarControl
-o forms.ONavigationBarModel
-o forms.ONumericControl
-o forms.ONumericModel
-o forms.OPatternControl
-o forms.OPatternModel
-o forms.ORadioButtonControl
-o forms.ORadioButtonModel
-o forms.OScrollBarModel
-o forms.OSpinButtonModel
-o forms.OTimeControl
-o forms.OTimeModel

-o forms.OButtonControl
#i111285 -o forms.OButtonModel
-o forms.OCheckBoxControl
-o forms.OCheckBoxModel
-o forms.OComboBoxControl
-o forms.OComboBoxModel
-o forms.OCurrencyControl
-o forms.OCurrencyModel
#-o forms.ODatabaseForm
-o forms.ODateControl
-o forms.ODateModel
-o forms.OEditControl
-o forms.OEditModel
#i109939 -o forms.OFileControlModel
-o forms.OFixedTextModel
-o forms.OFormattedControl
#i109939 -o forms.OFormattedFieldWrapper
# LSST EIN DOKUMENT OFFEN -o forms.OFormsCollection
-o forms.OGridControlModel
-o forms.OGroupBoxControl
-o forms.OGroupBoxModel
-o forms.OHiddenModel
-o forms.OImageButtonControl
-o forms.OImageButtonModel
-o forms.OImageControlControl
-o forms.OImageControlModel
-o forms.OListBoxControl
-o forms.OListBoxModel
-o forms.ONavigationBarControl
-o forms.ONavigationBarModel
-o forms.ONumericControl
-o forms.ONumericModel
-o forms.OPatternControl
-o forms.OPatternModel
-o forms.ORadioButtonControl
-o forms.ORadioButtonModel
-o forms.OScrollBarModel
-o forms.OSpinButtonModel
-o forms.OTimeControl
-o forms.OTimeModel


Don't rebuild the help for the toolbox use precompiled one

// Copyright (c) 2015, Embedded Solutions
// All rights reserved.

// This file is released under the 3-clause BSD license. See COPYING-BSD.

mode(-1);
lines(0);

function main_builder()

  TOOLBOX_NAME  = "microdaq";
  TOOLBOX_TITLE = "MicroDAQ toolbox";
  toolbox_dir   = get_absolute_file_path("builder.sce");

// Check Scilab's version
// =============================================================================

  // check minimal version (xcosPal required)
  if ~isdef('xcosPal') then
    // and xcos features required
    error(gettext('Scilab 5.3.2 or more is required.'));
  end

// Check modules_manager module availability
// =============================================================================

  if ~isdef('tbx_build_loader') then
    error(msprintf(gettext('%s module not installed.'), 'modules_manager'));
  end

  if ~isdir(toolbox_dir+filesep()+"images"+filesep()+"h5")
      [status, msg] = mkdir(toolbox_dir+filesep()+"images"+filesep()+"h5");
      if and(status <> [1 2])
          error(msg);
      end
  end

// Action
// =============================================================================

  tbx_builder_macros(toolbox_dir);
//  tbx_builder_help(toolbox_dir);
  tbx_build_loader(TOOLBOX_NAME, toolbox_dir);
  tbx_build_cleaner(TOOLBOX_NAME, toolbox_dir);
endfunction

if with_module('xcos') then
  main_builder();
  clear main_builder; // remove main_builder on stack
end

// Copyright (c) 2015, Embedded Solutions
// All rights reserved.

// This file is released under the 3-clause BSD license. See COPYING-BSD.

mode(-1);
lines(0);

function main_builder()

  TOOLBOX_NAME  = "microdaq";
  TOOLBOX_TITLE = "MicroDAQ toolbox";
  toolbox_dir   = get_absolute_file_path("builder.sce");

// Check Scilab's version
// =============================================================================

  // check minimal version (xcosPal required)
  if ~isdef('xcosPal') then
    // and xcos features required
    error(gettext('Scilab 5.3.2 or more is required.'));
  end

// Check modules_manager module availability
// =============================================================================

  if ~isdef('tbx_build_loader') then
    error(msprintf(gettext('%s module not installed.'), 'modules_manager'));
  end

  if ~isdir(toolbox_dir+filesep()+"images"+filesep()+"h5")
      [status, msg] = mkdir(toolbox_dir+filesep()+"images"+filesep()+"h5");
      if and(status <> [1 2])
          error(msg);
      end
  end

// Action
// =============================================================================

  tbx_builder_macros(toolbox_dir);
  tbx_builder_help(toolbox_dir);
  tbx_build_loader(TOOLBOX_NAME, toolbox_dir);
  tbx_build_cleaner(TOOLBOX_NAME, toolbox_dir);
endfunction

if with_module('xcos') then
  main_builder();
  clear main_builder; // remove main_builder on stack
end


Added Nightcore sketch

Added Nightcore sketch


INTEGRATION: CWS unoapi2 (1.6.580); FILE MERGED 2007/12/20 07:59:18 cn 1.6.580.1: #i83871# update lists

### i84653 -o sc.ScPageObj
### i84554 -o sc.AccessibleEditableTextPara_PreviewNote
-o sc.AccessibleEditableTextPara_HeaderFooter
-o sc.AccessibleEditableTextPara_PreviewCell
-o sc.ScAccessibleCell
-o sc.ScAccessibleCsvCell
### i84726 -o sc.ScAccessibleCsvGrid
### i84641 -o sc.ScAccessibleCsvRuler
-o sc.ScAccessibleDocument
-o sc.ScAccessiblePageHeader
-o sc.ScAccessiblePageHeaderArea
-o sc.ScAccessiblePreviewCell
-o sc.ScAccessiblePreviewHeaderCell
-o sc.ScAccessiblePreviewTable
-o sc.ScAccessibleSpreadsheet
-o sc.ScAnnotationObj
-o sc.ScAnnotationShapeObj
-o sc.ScAnnotationsObj
-o sc.ScAreaLinkObj
-o sc.ScAreaLinksObj
-o sc.ScAutoFormatFieldObj
-o sc.ScAutoFormatObj
-o sc.ScAutoFormatsObj
-o sc.ScCellCursorObj
-o sc.ScCellFieldObj
-o sc.ScCellFieldsObj
-o sc.ScCellFormatsEnumeration
-o sc.ScCellFormatsObj
-o sc.ScCellObj
-o sc.ScCellRangeObj
-o sc.ScCellRangesObj
-o sc.ScCellSearchObj
-o sc.ScCellTextCursor
-o sc.ScCellsEnumeration
-o sc.ScCellsObj
-o sc.ScChartObj
-o sc.ScChartsObj
-o sc.ScConsolidationDescriptor
-o sc.ScDDELinkObj
-o sc.ScDDELinksObj
-o sc.ScDataPilotFieldGroupItemObj
-o sc.ScDataPilotFieldGroupObj
-o sc.ScDataPilotFieldGroupsObj
-o sc.ScDataPilotFieldObj
-o sc.ScDataPilotFieldsObj
-o sc.ScDataPilotItemObj
-o sc.ScDataPilotItemsObj
-o sc.ScDataPilotTableObj
-o sc.ScDataPilotTablesObj
-o sc.ScDatabaseRangeObj
-o sc.ScDatabaseRangesObj
-o sc.ScDocumentConfiguration
-o sc.ScDrawPageObj
-o sc.ScDrawPagesObj
-o sc.ScFilterDescriptorBase
-o sc.ScFunctionListObj
-o sc.ScHeaderFieldObj
-o sc.ScHeaderFieldsObj
-o sc.ScHeaderFooterContentObj
-o sc.ScHeaderFooterTextCursor
-o sc.ScHeaderFooterTextObj
-o sc.ScIndexEnumeration_CellAnnotationsEnumeration
-o sc.ScIndexEnumeration_CellAreaLinksEnumeration
-o sc.ScIndexEnumeration_DDELinksEnumeration
-o sc.ScIndexEnumeration_DataPilotFieldsEnumeration
-o sc.ScIndexEnumeration_DataPilotItemsEnumeration
-o sc.ScIndexEnumeration_DataPilotTablesEnumeration
-o sc.ScIndexEnumeration_DatabaseRangesEnumeration
-o sc.ScIndexEnumeration_FunctionDescriptionEnumeration
-o sc.ScIndexEnumeration_LabelRangesEnumeration
-o sc.ScIndexEnumeration_NamedRangesEnumeration
-o sc.ScIndexEnumeration_ScenariosEnumeration
-o sc.ScIndexEnumeration_SheetCellRangesEnumeration
-o sc.ScIndexEnumeration_SheetLinksEnumeration
-o sc.ScIndexEnumeration_SpreadsheetViewPanesEnumeration
-o sc.ScIndexEnumeration_SpreadsheetsEnumeration
-o sc.ScIndexEnumeration_SubTotalFieldsEnumeration
-o sc.ScIndexEnumeration_TableAutoFormatEnumeration
-o sc.ScIndexEnumeration_TableChartsEnumeration
-o sc.ScIndexEnumeration_TableColumnsEnumeration
-o sc.ScIndexEnumeration_TableConditionalEntryEnumeration
-o sc.ScIndexEnumeration_TableRowsEnumeration
-o sc.ScIndexEnumeration_TextFieldEnumeration
-o sc.ScLabelRangeObj
-o sc.ScLabelRangesObj
-o sc.ScModelObj
-o sc.ScNamedRangeObj
-o sc.ScNamedRangesObj
-o sc.ScRecentFunctionsObj
-o sc.ScScenariosObj
-o sc.ScShapeObj
-o sc.ScSheetLinkObj
-o sc.ScSheetLinksObj
-o sc.ScSpreadsheetSettings
-o sc.ScSpreadsheetSettingsObj
-o sc.ScStyleFamiliesObj
-o sc.ScStyleFamilyObj
-o sc.ScStyleObj
-o sc.ScSubTotalDescriptorBase
-o sc.ScSubTotalFieldObj
### i84656 -o sc.ScTabViewObj
-o sc.ScTableColumnObj
-o sc.ScTableColumnsObj
-o sc.ScTableConditionalEntry
-o sc.ScTableConditionalFormat
-o sc.ScTableRowObj
-o sc.ScTableRowsObj
-o sc.ScTableSheetObj
-o sc.ScUniqueCellFormatsEnumeration
-o sc.ScUniqueCellFormatsObj
-o sc.ScTableSheetsObj
-o sc.ScTableValidationObj
-o sc.ScViewPaneObj
-o sc.XMLContentExporter
-o sc.XMLContentImporter
-o sc.XMLExporter
-o sc.XMLImporter
-o sc.XMLMetaExporter
-o sc.XMLMetaImporter
-o sc.XMLSettingsExporter
-o sc.XMLSettingsImporter
-o sc.XMLStylesExporter
-o sc.XMLStylesImporter
-o sc.ScAccessibleDocumentPagePreview
-o sc.XMLExporter

### 114242 -o sc.ScPageObj
## 111147 -o sc.AccessibleEditableTextPara_PreviewNote
-o sc.AccessibleEditableTextPara_HeaderFooter
-o sc.AccessibleEditableTextPara_PreviewCell
-o sc.ScAccessibleCell
### i54260 -o sc.ScAccessibleCsvCell
### i54260 -o sc.ScAccessibleCsvGrid
### i54260 -o sc.ScAccessibleCsvRuler
### i54271 -o sc.ScAccessibleDocument
-o sc.ScAccessiblePageHeader
-o sc.ScAccessiblePageHeaderArea
-o sc.ScAccessiblePreviewCell
-o sc.ScAccessiblePreviewHeaderCell
-o sc.ScAccessiblePreviewTable
-o sc.ScAccessibleSpreadsheet
-o sc.ScAnnotationObj
-o sc.ScAnnotationShapeObj
-o sc.ScAnnotationsObj
-o sc.ScAreaLinkObj
-o sc.ScAreaLinksObj
-o sc.ScAutoFormatFieldObj
-o sc.ScAutoFormatObj
-o sc.ScAutoFormatsObj
-o sc.ScCellCursorObj
-o sc.ScCellFieldObj
-o sc.ScCellFieldsObj
-o sc.ScCellFormatsEnumeration
-o sc.ScCellFormatsObj
-o sc.ScCellObj
-o sc.ScCellRangeObj
-o sc.ScCellRangesObj
-o sc.ScCellSearchObj
-o sc.ScCellTextCursor
-o sc.ScCellsEnumeration
-o sc.ScCellsObj
-o sc.ScChartObj
-o sc.ScChartsObj
-o sc.ScConsolidationDescriptor
-o sc.ScDDELinkObj
-o sc.ScDDELinksObj
-o sc.ScDataPilotFieldGroupItemObj
-o sc.ScDataPilotFieldGroupObj
-o sc.ScDataPilotFieldGroupsObj
-o sc.ScDataPilotFieldObj
-o sc.ScDataPilotFieldsObj
-o sc.ScDataPilotItemObj
-o sc.ScDataPilotItemsObj
-o sc.ScDataPilotTableObj
-o sc.ScDataPilotTablesObj
-o sc.ScDatabaseRangeObj
-o sc.ScDatabaseRangesObj
-o sc.ScDocumentConfiguration
-o sc.ScDrawPageObj
-o sc.ScDrawPagesObj
-o sc.ScFilterDescriptorBase
-o sc.ScFunctionListObj
-o sc.ScHeaderFieldObj
-o sc.ScHeaderFieldsObj
-o sc.ScHeaderFooterContentObj
-o sc.ScHeaderFooterTextCursor
-o sc.ScHeaderFooterTextObj
-o sc.ScIndexEnumeration_CellAnnotationsEnumeration
-o sc.ScIndexEnumeration_CellAreaLinksEnumeration
-o sc.ScIndexEnumeration_DDELinksEnumeration
-o sc.ScIndexEnumeration_DataPilotFieldsEnumeration
-o sc.ScIndexEnumeration_DataPilotItemsEnumeration
-o sc.ScIndexEnumeration_DataPilotTablesEnumeration
-o sc.ScIndexEnumeration_DatabaseRangesEnumeration
-o sc.ScIndexEnumeration_FunctionDescriptionEnumeration
-o sc.ScIndexEnumeration_LabelRangesEnumeration
-o sc.ScIndexEnumeration_NamedRangesEnumeration
-o sc.ScIndexEnumeration_ScenariosEnumeration
-o sc.ScIndexEnumeration_SheetCellRangesEnumeration
-o sc.ScIndexEnumeration_SheetLinksEnumeration
-o sc.ScIndexEnumeration_SpreadsheetViewPanesEnumeration
-o sc.ScIndexEnumeration_SpreadsheetsEnumeration
-o sc.ScIndexEnumeration_SubTotalFieldsEnumeration
-o sc.ScIndexEnumeration_TableAutoFormatEnumeration
-o sc.ScIndexEnumeration_TableChartsEnumeration
-o sc.ScIndexEnumeration_TableColumnsEnumeration
-o sc.ScIndexEnumeration_TableConditionalEntryEnumeration
-o sc.ScIndexEnumeration_TableRowsEnumeration
-o sc.ScIndexEnumeration_TextFieldEnumeration
-o sc.ScLabelRangeObj
-o sc.ScLabelRangesObj
-o sc.ScModelObj
-o sc.ScNamedRangeObj
-o sc.ScNamedRangesObj
-o sc.ScRecentFunctionsObj
-o sc.ScScenariosObj
-o sc.ScShapeObj
-o sc.ScSheetLinkObj
-o sc.ScSheetLinksObj
-o sc.ScSpreadsheetSettings
-o sc.ScSpreadsheetSettingsObj
-o sc.ScStyleFamiliesObj
-o sc.ScStyleFamilyObj
-o sc.ScStyleObj
-o sc.ScSubTotalDescriptorBase
-o sc.ScSubTotalFieldObj
### 114209 -o sc.ScTabViewObj
-o sc.ScTableColumnObj
-o sc.ScTableColumnsObj
-o sc.ScTableConditionalEntry
-o sc.ScTableConditionalFormat
-o sc.ScTableRowObj
-o sc.ScTableRowsObj
-o sc.ScTableSheetObj
-o sc.ScUniqueCellFormatsEnumeration
-o sc.ScUniqueCellFormatsObj
-o sc.ScTableSheetsObj
-o sc.ScTableValidationObj
-o sc.ScViewPaneObj
-o sc.XMLContentExporter
-o sc.XMLContentImporter
-o sc.XMLExporter
-o sc.XMLImporter
-o sc.XMLMetaExporter
-o sc.XMLMetaImporter
-o sc.XMLSettingsExporter
-o sc.XMLSettingsImporter
-o sc.XMLStylesExporter
-o sc.XMLStylesImporter
-o sc.ScAccessibleDocumentPagePreview
-o sc.XMLExporter


fix for SCHEDULING-1300

fix for SCHEDULING-1300

git-svn-id: 27916816d6cfa57849e9a885196bf7392b80e1ac@20287 28e8926c-6b08-0410-baaa-805c5e19b8d6

function [ok, msg]=TestPATask(timeout)
    mode(-1);
    funcprot(0);
    rand("seed", 1);

    if ~exists('timeout')
    if (getos() == "Windows")
        timeout = 500000;
    else
        timeout = 200000;
    end
end

    // Evaluate bias and variance for these lambdas
    //lambdas=[0.1:0.1:0.5 1:10 100:100:1000 1000:1000:10000];
    lambdas=[0.1:0.1:0.5 1:10 100:100:1000 1000:1000:10000];
    //lambdas=[0.1];
    //lambdas=['a' 'a' 'a'];

    b_bias = []; b_variance = []; // Store results here

    fs = filesep();

    // Loading source file
    srcName = 'estimate.sci';
    //src = strcat([tstdir, fs, srcName]);

    tic();
    sz=size(lambdas,2);
    tsk = PATask(1,sz);
    tsk(1,1:sz).Func = 'myestimate';
    tsk(1,1:sz).Sources = srcName;

    for i=1:size(lambdas,2) // For each lambda
        lambda = lambdas(i);
        // Input file for each task
        inputfileName = 'input_'+string(i)+'.dat';
        save(inputfileName, lambda);
        //inputfile = tstdir + fs + inputfileName;
        tsk(1,i).InputFiles = inputfileName;

        tsk(1,i).Description = 'estimate('+string(lambda)+')';
        // Output file for each task
        outputfileName =  'output_'+string(i)+'.dat';
        //outputfile = tstdir+fs+outputfileName;
        tsk(1,i).OutputFiles = outputfileName;
        tsk(1,i).Params = list(inputfileName, outputfileName);
    end
    resl = PAsolve(tsk);

    val = PAwaitFor(resl,timeout);
    for i=1:length(val) // For each lambda
        load( 'output_'+ string(i)+ '.dat');
        b_bias($+1) = res(1);
        b_variance($+1) = res(2);
    end

    printf("\n Time: %f\n", toc());

    [ok,msg]=checkValuesEst(b_bias,b_variance);
    if ~ok error(msg); end

endfunction

function [ok,msg]=checkValuesEst(b_bias,b_variance)
    ok_bias = [0.0045490 0.0126257 0.0200381 0.0269282 0.0333926 0.0612466 0.1042142 0.1381027 0.1666017 0.1914026 0.2134579 0.2333707 0.2515521 0.2682983 0.2838306 0.6953426 0.8033789 0.8537557 0.8833246 0.9028600 0.9167554 0.9271556 0.9352365 0.9416984 0.9469846 0.9469846 0.9721750 0.9811320 0.9857258 0.9885205 0.9903999 0.9917505 0.9927679 0.9935619 0.9941988];
    ok_var =  [0.0953152 0.0970627 0.1008779 0.1055931 0.1106495 0.1348885 0.1702436 0.1936701 0.2103328 0.2227736 0.2323662 0.2399276 0.2459802 0.2508765 0.2548648 0.2085607 0.1525602 0.1199462 0.0987936 0.0839817 0.0730335 0.0646118 0.0579326 0.0525055 0.0480085 0.0480085 0.0258637 0.0177006 0.0134544 0.0108514 0.0090923 0.0078240 0.0068662 0.0061174 0.0055158];
    if length(b_bias) ~= length(ok_bias)
        ok = %f;
        msg = 'Wrong number of outputs in bias';
        return;
    elseif length(b_variance) ~= length(ok_var)
        ok = %f;
        msg = 'Wrong number of outputs in var';
        return;
    end
    ok=%t; msg=[];

endfunction

function resf=myestimate(filein,fileout)
    load(filein);
    [bias,var]=estimate(lambda);
    res = list(bias,var);
    save(fileout, res);
    resf=%t;
endfunction

function [ok, msg]=TestPATask(timeout)
    mode(-1);
    funcprot(0);
    rand("seed", 1);

    if ~exists('timeout')
    if (getos() == "Windows")
        timeout = 500000;
    else
        timeout = 200000;
    end
end

    // Evaluate bias and variance for these lambdas
    //lambdas=[0.1:0.1:0.5 1:10 100:100:1000 1000:1000:10000];
    lambdas=[0.1:0.1:0.5 1:10 100:100:1000 1000:1000:10000];
    //lambdas=[0.1];
    //lambdas=['a' 'a' 'a'];

    b_bias = []; b_variance = []; // Store results here

    fs = filesep();

    // Loading source file
    srcName = 'estimate.sci';
    //src = strcat([tstdir, fs, srcName]);

    tic();
    sz=size(lambdas,2);
    tsk = PATask(1,sz);
    tsk(1,1:sz).Func = 'myestimate';
    tsk(1,1:sz).Sources = srcName;

    for i=1:size(lambdas,2) // For each lambda
        lambda = lambdas(i);
        // Input file for each task
        inputfileName = 'input_'+string(i)+'.dat';
        save(inputfileName, lambda);
        //inputfile = tstdir + fs + inputfileName;
        tsk(1,i).InputFiles = inputfileName;

        tsk(1,i).Description = 'estimate('+string(lambda)+')';
        // Output file for each task
        outputfileName =  'output_'+string(i)+'.dat';
        //outputfile = tstdir+fs+outputfileName;
        tsk(1,i).OutputFiles = outputfileName;
        tsk(1,i).Params = list(inputfileName, outputfileName);
    end
    resl = PAsolve(tsk);

    val = PAwaitFor(resl,timeout);
    for i=1:length(val) // For each lambda
        load( 'output'+ string(i)+ '.dat');
        b_bias($+1) = res(1);
        b_variance($+1) = res(2);
    end

    printf("\n Time: %f\n", toc());

    [ok,msg]=checkValuesEst(b_bias,b_variance);
    if ~ok error(msg); end

endfunction

function [ok,msg]=checkValuesEst(b_bias,b_variance)
    ok_bias = [0.0045490 0.0126257 0.0200381 0.0269282 0.0333926 0.0612466 0.1042142 0.1381027 0.1666017 0.1914026 0.2134579 0.2333707 0.2515521 0.2682983 0.2838306 0.6953426 0.8033789 0.8537557 0.8833246 0.9028600 0.9167554 0.9271556 0.9352365 0.9416984 0.9469846 0.9469846 0.9721750 0.9811320 0.9857258 0.9885205 0.9903999 0.9917505 0.9927679 0.9935619 0.9941988];
    ok_var =  [0.0953152 0.0970627 0.1008779 0.1055931 0.1106495 0.1348885 0.1702436 0.1936701 0.2103328 0.2227736 0.2323662 0.2399276 0.2459802 0.2508765 0.2548648 0.2085607 0.1525602 0.1199462 0.0987936 0.0839817 0.0730335 0.0646118 0.0579326 0.0525055 0.0480085 0.0480085 0.0258637 0.0177006 0.0134544 0.0108514 0.0090923 0.0078240 0.0068662 0.0061174 0.0055158];
    if length(b_bias) ~= length(ok_bias)
        ok = %f;
        msg = 'Wrong number of outputs in bias';
        return;
    elseif length(b_variance) ~= length(ok_var)
        ok = %f;
        msg = 'Wrong number of outputs in var';
        return;
    end
    ok=%t; msg=[];

endfunction

function resf=myestimate(filein,fileout)
    load(filein);
    [bias,var]=estimate(lambda);
    res = list(bias,var);
    save(fileout, res);
    resf=%t;
endfunction


sb120: #i11043# disabled failing tests for now

-o sd.AccessibleDrawDocumentView
-o sd.AccessibleOutlineView
#i35935# -o sd.AccessibleSlideView
#i111042# -o sd.DrawController_DrawView
#i111042# -o sd.DrawController_HandoutView
#i111042# -o sd.DrawController_NotesView
#i111043# -o sd.DrawController_OutlineView
#i111042# -o sd.DrawController_PresentationView
-o sd.SdDocLinkTargets
-o sd.SdDrawPage
-o sd.SdDrawPagesAccess
-o sd.SdGenericDrawPage
-o sd.SdLayer
-o sd.SdLayerManager
-o sd.SdMasterPage
-o sd.SdMasterPagesAccess
-o sd.SdPageLinkTargets
-o sd.SdXCustomPresentation
-o sd.SdXCustomPresentationAccess
#i84994# -o sd.SdXImpressDocument
-o sd.SdXPresentation
#i87746 -o sd.SdXShape

-o sd.AccessibleDrawDocumentView
-o sd.AccessibleOutlineView
#i35935# -o sd.AccessibleSlideView
#i111042# -o sd.DrawController_DrawView
#i111042# -o sd.DrawController_HandoutView
#i111042# -o sd.DrawController_NotesView
-o sd.DrawController_OutlineView
#i111042# -o sd.DrawController_PresentationView
-o sd.SdDocLinkTargets
-o sd.SdDrawPage
-o sd.SdDrawPagesAccess
-o sd.SdGenericDrawPage
-o sd.SdLayer
-o sd.SdLayerManager
-o sd.SdMasterPage
-o sd.SdMasterPagesAccess
-o sd.SdPageLinkTargets
-o sd.SdXCustomPresentation
-o sd.SdXCustomPresentationAccess
#i84994# -o sd.SdXImpressDocument
-o sd.SdXPresentation
#i87746 -o sd.SdXShape


Change wrong dio dir description (again...)

function mdaq_dio_dir(arg1, arg2, arg3)

    global %microdaq;
    if %microdaq.private.mdaq_hwid(1) <> 1100 then
        disp("ERROR: This function is not supported.")
        return;
    end

    if argn(2) == 2 then
        bank = arg1;
        direction = arg2;
    end

    if argn(2) == 3 then
        link_id = arg1;
        bank = arg2;
        direction = arg3;

        if link_id < 0 then
            disp("ERROR: Invalid link ID!")
            return;
        end
    end

    if argn(2) > 3 | argn(2) < 2 then
        mprintf("Description:\n");
        mprintf("\tSets MicroDAQ DIO bank direction\n");
        mprintf("Usage:\n");
        mprintf("\tmdaq_dio_dir(link_id, bank, direction);\n")
        mprintf("\tlink_id - connection id returned by mdaq_open() (OPTIONAL)\n");
        mprintf("\tbank - bank number (1-4)\n");
        mprintf("\tdirection - bank direction (0 - input, 1 - output)\n");
        return;
    end

    if bank < 1 | bank > 4 then
        disp("ERROR: Wrong bank number!")
        return;
    end

    if direction <> 0 then
        direction = 1;
    end

    if argn(2) == 2 then
        link_id = mdaq_open();
        if link_id < 0 then
            disp("ERROR: Unable to connect to MicroDAQ device!");
            return;
        end
    end

    result = call("sci_mlink_dio_set_dir",..
            link_id, 1, "i",..
            bank, 2, "i",..
            direction, 3, "i",..
            0, 4, "i",..
        "out",..
            [1, 1], 5, "i");

    if result < 0 then
        mdaq_error(result);
    end

    if argn(2) == 2 then
        mdaq_close(link_id);
    end

endfunction

function mdaq_dio_dir(arg1, arg2, arg3)

    global %microdaq;
    if %microdaq.private.mdaq_hwid(1) <> 1100 then
        disp("ERROR: This function is not supported.")
        return;
    end

    if argn(2) == 2 then
        bank = arg1;
        direction = arg2;
    end

    if argn(2) == 3 then
        link_id = arg1;
        bank = arg2;
        direction = arg3;

        if link_id < 0 then
            disp("ERROR: Invalid link ID!")
            return;
        end
    end

    if argn(2) > 3 | argn(2) < 2 then
        mprintf("Description:\n");
        mprintf("\tSets MicroDAQ DIO bank direction\n");
        mprintf("Usage:\n");
        mprintf("\tmdaq_dio_dir(link_id, bank, direction);\n")
        mprintf("\tlink_id - connection id returned by mdaq_open() (OPTIONAL)\n");
        mprintf("\tbank - bank number (1-4)\n");
        mprintf("\tdirection - bank direction (1 - input, 0 - output)\n");
        return;
    end

    if bank < 1 | bank > 4 then
        disp("ERROR: Wrong bank number!")
        return;
    end

    if direction <> 0 then
        direction = 1;
    end

    if argn(2) == 2 then
        link_id = mdaq_open();
        if link_id < 0 then
            disp("ERROR: Unable to connect to MicroDAQ device!");
            return;
        end
    end

    result = call("sci_mlink_dio_set_dir",..
            link_id, 1, "i",..
            bank, 2, "i",..
            direction, 3, "i",..
            0, 4, "i",..
        "out",..
            [1, 1], 5, "i");

    if result < 0 then
        mdaq_error(result);
    end

    if argn(2) == 2 then
        mdaq_close(link_id);
    end

endfunction


INTEGRATION: CWS frmcontrols02 (1.2.30); FILE MERGED 2004/04/08 09:52:16 sw 1.2.30.1: #i24414#

-o forms.ONavigationBarControl
-o forms.ONavigationBarModel
-o forms.OButtonControl
-o forms.OButtonModel
-o forms.OCheckBoxControl
-o forms.OCheckBoxModel
-o forms.OComboBoxControl
-o forms.OComboBoxModel
-o forms.OCurrencyControl
-o forms.OCurrencyModel
-o forms.ODatabaseForm
-o forms.ODateControl
-o forms.ODateModel
-o forms.OEditControl
-o forms.OEditModel
-o forms.OFileControlModel
-o forms.OFixedTextModel
-o forms.OFormattedControl
-o forms.OFormattedFieldWrapper
-o forms.OFormsCollection
-o forms.OGridControlModel
-o forms.OGroupBoxControl
-o forms.OGroupBoxModel
-o forms.OHiddenModel
-o forms.OImageButtonControl
-o forms.OImageButtonModel
-o forms.OImageControlControl
-o forms.OImageControlModel
-o forms.OListBoxControl
-o forms.OListBoxModel
-o forms.ONumericControl
-o forms.ONumericModel
-o forms.OPatternControl
-o forms.OPatternModel
-o forms.ORadioButtonControl
-o forms.ORadioButtonModel
-o forms.OTimeControl
-o forms.OTimeModel
-o forms.OSpinButtonModel
-o forms.OScrollBarModel


chart47: #i87138# enable test again

chart47: #i87138# enable test again

-o sch.ChXChartDocument
#i79073 -o sch.AccArea
#i79073 -o sch.AccAxis
#i79073 -o sch.AccDataPoint
#i79073 -o sch.AccDataSeries
#i79073 -o sch.AccDiagram
#i79073 -o sch.AccFloor
#i79073 -o sch.AccGrid
#i79073 -o sch.AccLegend
#i79073 -o sch.AccLegendEntry
#i79073 -o sch.AccStatisticsObject
#i79073 -o sch.AccTitle
#i79073 -o sch.AccWall
#i79073 -o sch.AccessibleDocumentView
-o sch.ChXChartAxis
-o sch.ChXChartData
-o sch.ChXChartDataArray
-o sch.ChXChartView
-o sch.ChXDataPoint
#i83868 -o sch.ChXDataRow
-o sch.ChXDiagram
-o sch.ChartArea
-o sch.ChartGrid
-o sch.ChartLegend
-o sch.ChartLine
-o sch.ChartTitle

-o sch.ChXChartDocument
#i79073 -o sch.AccArea
#i79073 -o sch.AccAxis
#i79073 -o sch.AccDataPoint
#i79073 -o sch.AccDataSeries
#i79073 -o sch.AccDiagram
#i79073 -o sch.AccFloor
#i79073 -o sch.AccGrid
#i79073 -o sch.AccLegend
#i79073 -o sch.AccLegendEntry
#i79073 -o sch.AccStatisticsObject
#i79073 -o sch.AccTitle
#i79073 -o sch.AccWall
#i79073 -o sch.AccessibleDocumentView
-o sch.ChXChartAxis
-o sch.ChXChartData
-o sch.ChXChartDataArray
-o sch.ChXChartView
-o sch.ChXDataPoint
#i83868 -o sch.ChXDataRow
#i87138 -o sch.ChXDiagram
-o sch.ChartArea
-o sch.ChartGrid
-o sch.ChartLegend
-o sch.ChartLine
-o sch.ChartTitle