Merge lp:~jil26/fabathome-model1/FabInterpreter2 into lp:~jil26/fabathome-model1/FabInterpreter

Proposed by Jeffrey Lipton
Status: Needs review
Proposed branch: lp:~jil26/fabathome-model1/FabInterpreter2
Merge into: lp:~jil26/fabathome-model1/FabInterpreter
Diff against target: 2862 lines (+1391/-1252)
4 files modified
software/projects/FabInterpreter v0/FabAtHomePrinter.cpp (+39/-6)
software/projects/FabInterpreter v0/FabAtHomePrinter.h (+9/-0)
software/projects/FabInterpreter v0/Form1.cpp (+60/-5)
software/projects/FabInterpreter v0/Form1.h (+1283/-1241)
To merge this branch: bzr merge lp:~jil26/fabathome-model1/FabInterpreter2
Reviewer Review Type Date Requested Status
CTI_Brazil (community) Approve
Review via email: mp+23631@code.launchpad.net
To post a comment you must log in.
Revision history for this message
CTI_Brazil (ctibrazil) wrote :

Merge fix some important issues and i approve!

review: Approve

Unmerged revisions

10. By Jeffrey Lipton

Fixed crashes related to loading config files.
Added reloading of previous config files

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'software/projects/FabInterpreter v0/FabAtHomePrinter.cpp'
--- software/projects/FabInterpreter v0/FabAtHomePrinter.cpp 2010-03-17 08:58:21 +0000
+++ software/projects/FabInterpreter v0/FabAtHomePrinter.cpp 2010-04-18 18:41:19 +0000
@@ -172,7 +172,9 @@
172 {172 {
173 return "Axis "+name+" references motor "+motorName+" which has not been loaded.";173 return "Axis "+name+" references motor "+motorName+" which has not been loaded.";
174 }174 }
175 if(name.compare("Y") == 0 || name.compare("Z") == 0)175
176 //THIS IS WHERE YOU REVERSE THE AXIS
177 if(name.compare("Y") == 0 /*|| name.compare("Z") == 0 */) //CHANGE MADE in v0.1 z should now be pos for down neg for up
176 {178 {
177 motor->second.setReversed(true);179 motor->second.setReversed(true);
178 }180 }
@@ -388,7 +390,7 @@
388 //Move the platform down.390 //Move the platform down.
389 pausePathPoints.clear();391 pausePathPoints.clear();
390 pausePathPoints.push_back(start);392 pausePathPoints.push_back(start);
391 pausePathPoints.push_back(Point(start.x, start.y, start.z - PLATFORM_DELTA));393 pausePathPoints.push_back(Point(start.x, start.y, start.z + PLATFORM_DELTA));
392 executePath(Path(NULL,pausePathPoints),NULL,false);394 executePath(Path(NULL,pausePathPoints),NULL,false);
393 paused = true;395 paused = true;
394 printing = false;396 printing = false;
@@ -397,7 +399,7 @@
397 paused = false;399 paused = false;
398 //Move the platform up.400 //Move the platform up.
399 pausePathPoints.clear();401 pausePathPoints.clear();
400 pausePathPoints.push_back(Point(start.x, start.y, start.z - PLATFORM_DELTA));402 pausePathPoints.push_back(Point(start.x, start.y, start.z + PLATFORM_DELTA));
401 pausePathPoints.push_back(start);403 pausePathPoints.push_back(start);
402 executePath(Path(NULL,pausePathPoints),NULL,false);404 executePath(Path(NULL,pausePathPoints),NULL,false);
403}405}
@@ -407,8 +409,8 @@
407 vector<Point> setupPathPoints(4);409 vector<Point> setupPathPoints(4);
408 setupPathPoints.clear();410 setupPathPoints.clear();
409 setupPathPoints.push_back(start);411 setupPathPoints.push_back(start);
410 setupPathPoints.push_back(Point(start.x, start.y, start.z - clearance));412 setupPathPoints.push_back(Point(start.x, start.y, start.z + clearance));
411 setupPathPoints.push_back(Point(end.x, end.y, start.z - clearance));413 setupPathPoints.push_back(Point(end.x, end.y, start.z + clearance));
412 setupPathPoints.push_back(end);414 setupPathPoints.push_back(end);
413 executePath(Path(NULL,setupPathPoints),NULL,false);415 executePath(Path(NULL,setupPathPoints),NULL,false);
414}416}
@@ -519,7 +521,7 @@
519 fabricationThread->ReportProgress(i);521 fabricationThread->ReportProgress(i);
520 //Execution has stopped. Move the platform down.522 //Execution has stopped. Move the platform down.
521 Point start(axes["X"].motor->getPosition(), axes["Y"].motor->getPosition(), axes["Z"].motor->getPosition()); //The current position.523 Point start(axes["X"].motor->getPosition(), axes["Y"].motor->getPosition(), axes["Z"].motor->getPosition()); //The current position.
522 Point end(start.x, start.y, start.z - PLATFORM_DELTA);524 Point end(start.x, start.y, start.z + PLATFORM_DELTA);
523 executeSetupPath(start,end,0);525 executeSetupPath(start,end,0);
524 printing = false;526 printing = false;
525}527}
@@ -680,6 +682,37 @@
680 }682 }
681 }683 }
682}684}
685
686////////////////////////////////////////////////////////////////////////////////////////////////////////////////
687void FabAtHomePrinter::savePreviousConfigName(string name) {
688
689 ofstream myfile;
690 myfile.open ("PreviousConfigFilePath.txt");
691 myfile << "\\\\Previous File Config Path.\n";
692
693 myfile <<name;
694 myfile.close();
695}
696////////////////////////////////////////////////////////////////////////////////////////////////////////////////
697string FabAtHomePrinter::loadPreviousConfigName() {
698 ifstream myfile;
699 myfile.open("PreviousConfigFilePath.txt");
700 if (myfile.is_open())
701 {
702 string header;
703
704 string path;
705
706 std::getline(myfile,header);
707 std::getline(myfile,path);
708
709 return(path);
710 }
711
712 return("ERROR");
713}
714
715
683////////////////////////////////////////////////////////////////////////////////////////////////////////////////716////////////////////////////////////////////////////////////////////////////////////////////////////////////////
684bool FabAtHomePrinter::cleanUp()717bool FabAtHomePrinter::cleanUp()
685{718{
686719
=== modified file 'software/projects/FabInterpreter v0/FabAtHomePrinter.h'
--- software/projects/FabInterpreter v0/FabAtHomePrinter.h 2010-03-17 08:58:21 +0000
+++ software/projects/FabInterpreter v0/FabAtHomePrinter.h 2010-04-18 18:41:19 +0000
@@ -98,6 +98,14 @@
98 //Returns: "" iff successful or an error message.98 //Returns: "" iff successful or an error message.
99 string loadFabFile(string filePath);99 string loadFabFile(string filePath);
100100
101 //save config filePath
102 static void savePreviousConfigName(string name);
103
104 //load config filePath
105 static string loadPreviousConfigName();
106
107
108
101 //Initialize the printer.109 //Initialize the printer.
102 //Returns: "" if successful or an error message if failed.110 //Returns: "" if successful or an error message if failed.
103 string initialize(const string& configFilePath);111 string initialize(const string& configFilePath);
@@ -106,6 +114,7 @@
106 //Requires: !isPrinting() || isPaused() and the bay and material calibration have been loaded.114 //Requires: !isPrinting() || isPaused() and the bay and material calibration have been loaded.
107 void equipBay(const string& bayName, const string& materialCalibrationName);115 void equipBay(const string& bayName, const string& materialCalibrationName);
108116
117
109 //Execute all paths which are currently loaded.118 //Execute all paths which are currently loaded.
110 //A call to this function returns when the print has finished.119 //A call to this function returns when the print has finished.
111 //If fabricationThread != NULL, messages will periodically be stored in displayText120 //If fabricationThread != NULL, messages will periodically be stored in displayText
112121
=== modified file 'software/projects/FabInterpreter v0/FabInterpreter.suo'
113Binary files software/projects/FabInterpreter v0/FabInterpreter.suo 2010-03-17 19:51:28 +0000 and software/projects/FabInterpreter v0/FabInterpreter.suo 2010-04-18 18:41:19 +0000 differ122Binary files software/projects/FabInterpreter v0/FabInterpreter.suo 2010-03-17 19:51:28 +0000 and software/projects/FabInterpreter v0/FabInterpreter.suo 2010-04-18 18:41:19 +0000 differ
=== modified file 'software/projects/FabInterpreter v0/Form1.cpp'
--- software/projects/FabInterpreter v0/Form1.cpp 2010-03-17 08:58:21 +0000
+++ software/projects/FabInterpreter v0/Form1.cpp 2010-04-18 18:41:19 +0000
@@ -1,15 +1,70 @@
1#include "stdafx.h"1#include "stdafx.h"
2#include "Form1.h"2#include "Form1.h"
33
4#include <map>
5#include <utility>
6
7static map<string, string, LessThanString> commandMap; //A map from the commands to their paramters
8
4[STAThread]9[STAThread]
510
6int APIENTRY _tWinMain(HINSTANCE hInstance,11int APIENTRY _tWinMain(HINSTANCE hInstance,
7 HINSTANCE hPrevInstance,12 HINSTANCE hPrevInstance,
8 LPTSTR lpCmdLine,13 LPTSTR lpCmdLine,
9 int nCmdShow)14 int nCmdShow)
10{15{
11 System::Threading::Thread::CurrentThread->ApartmentState = System::Threading::ApartmentState::STA;16 System::Threading::Thread::CurrentThread->ApartmentState = System::Threading::ApartmentState::STA;
12 Util::runTestCases(); //Test helper functions for bugs.17 Util::runTestCases(); //Test helper functions for bugs.
18
19 //store the commands into a string
20 string commands = lpCmdLine;
21
22 //parse the string into a map of parmaters
23 //--config "C:\thisisthefilepath"
24 //--fabfile "C:\thisisthefilepath"
25
26 //outputs commands to file (debugging retuine)
27
28
29 std::stringstream os(commands); //a standard stringstream which parses 's'
30 std::string temp; //a temporary string
31 //std::cout <<"s is: " <<s <<std::endl;
32
33
34 string counter = "command#";
35 while (os >> temp) { //the stringstream makes temp a token
36 string commandName = temp;
37 if (os >> temp) {
38 string commandParam = temp;
39 commandMap[commandName] = commandParam;
40 }
41 //std::cout <<temp <<std::endl; //and deletes that token from itself
42 counter = counter + "#";
43 }
44
45 ofstream myfile;
46 myfile.open ("commands.txt");
47 myfile << "Commands with paramters.\n";
48
49 for( map<string,string,LessThanString>::iterator i = commandMap.begin(); i != commandMap.end(); ++i)
50 {
51 myfile << (*i).first << ": " << (*i).second << endl;
52 }
53 myfile.close();
54
55 //opens Form1 (main interface)
13 Application::Run(new Form1());56 Application::Run(new Form1());
57
58
14 return 0;59 return 0;
15}60}
61
62class LessThanString
63{
64public:
65 //Returns: true iff a comes before b lexicographically.
66 bool operator()(const string& a, const string& b) const
67 {
68 return (a.compare(b) < 0);
69 }
70};
1671
=== modified file 'software/projects/FabInterpreter v0/Form1.h'
--- software/projects/FabInterpreter v0/Form1.h 2010-03-17 09:07:33 +0000
+++ software/projects/FabInterpreter v0/Form1.h 2010-04-18 18:41:19 +0000
@@ -3,6 +3,10 @@
33
44
5#include "FabAtHomePrinter.h"5#include "FabAtHomePrinter.h"
6
7#include <iostream>
8#include <fstream>
9
6using namespace System;10using namespace System;
7using namespace System::ComponentModel;11using namespace System::ComponentModel;
8using namespace System::Collections;12using namespace System::Collections;
@@ -47,9 +51,12 @@
47{ 51{
4852
49public:53public:
50 Form1(void)54 Form1()
51 {55 {
52 InitializeComponent();56 InitializeComponent();
57
58 //execute any command line commands
59 //Form1::loadConfigHelper(commandMap.find("--config"));
53 }60 }
5461
55protected:62protected:
@@ -90,28 +97,6 @@
90public: 97public:
9198
9299
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115private: System::ComponentModel::BackgroundWorker* FabricationThread;100private: System::ComponentModel::BackgroundWorker* FabricationThread;
116private: System::Windows::Forms::TextBox* bayVelocity1;101private: System::Windows::Forms::TextBox* bayVelocity1;
117102
@@ -159,25 +144,12 @@
159private: System::Windows::Forms::TextBox* bayCommandedPosition0;144private: System::Windows::Forms::TextBox* bayCommandedPosition0;
160145
161146
162
163
164
165
166
167
168
169private: System::Windows::Forms::Label* bayLabel0;147private: System::Windows::Forms::Label* bayLabel0;
170private: System::Windows::Forms::Label* bayLabel1;148private: System::Windows::Forms::Label* bayLabel1;
171private: System::Windows::Forms::VScrollBar* bayScroll1;149private: System::Windows::Forms::VScrollBar* bayScroll1;
172150
173151
174152
175
176
177
178
179
180
181private: System::Windows::Forms::VScrollBar* bayScroll0;153private: System::Windows::Forms::VScrollBar* bayScroll0;
182154
183155
@@ -228,6 +200,8 @@
228private: System::Windows::Forms::Label* bayLabel2;200private: System::Windows::Forms::Label* bayLabel2;
229private: System::Windows::Forms::Panel* fs;201private: System::Windows::Forms::Panel* fs;
230private: System::Windows::Forms::OpenFileDialog* openFileDialog1;202private: System::Windows::Forms::OpenFileDialog* openFileDialog1;
203private: System::Windows::Forms::Button* LoadPreviousConfig;
204
231205
232206
233207
@@ -266,909 +240,924 @@
266 /// Required method for Designer support - do not modify240 /// Required method for Designer support - do not modify
267 /// the contents of this method with the code editor.241 /// the contents of this method with the code editor.
268 /// </summary>242 /// </summary>
269 void InitializeComponent(void)243 void InitializeComponent()
270 {244 {
271 this->components = (new System::ComponentModel::Container());245 this->components = (new System::ComponentModel::Container());
272 this->InitButton = (new System::Windows::Forms::Button());246 this->InitButton = (new System::Windows::Forms::Button());
273 this->MoveButton = (new System::Windows::Forms::Button());247 this->MoveButton = (new System::Windows::Forms::Button());
274 this->ExitButton = (new System::Windows::Forms::Button());248 this->ExitButton = (new System::Windows::Forms::Button());
275 this->XLabel = (new System::Windows::Forms::Label());249 this->XLabel = (new System::Windows::Forms::Label());
276 this->YLabel = (new System::Windows::Forms::Label());250 this->YLabel = (new System::Windows::Forms::Label());
277 this->ZLabel = (new System::Windows::Forms::Label());251 this->ZLabel = (new System::Windows::Forms::Label());
278 this->XDisplay = (new System::Windows::Forms::TextBox());252 this->XDisplay = (new System::Windows::Forms::TextBox());
279 this->YDisplay = (new System::Windows::Forms::TextBox());253 this->YDisplay = (new System::Windows::Forms::TextBox());
280 this->ZDisplay = (new System::Windows::Forms::TextBox());254 this->ZDisplay = (new System::Windows::Forms::TextBox());
281 this->ExecuteButton = (new System::Windows::Forms::Button());255 this->ExecuteButton = (new System::Windows::Forms::Button());
282 this->ResetPosButton = (new System::Windows::Forms::Button());256 this->ResetPosButton = (new System::Windows::Forms::Button());
283 this->LoadFileButton = (new System::Windows::Forms::Button());257 this->LoadFileButton = (new System::Windows::Forms::Button());
284 this->ExecutePathLabel = (new System::Windows::Forms::TextBox());258 this->ExecutePathLabel = (new System::Windows::Forms::TextBox());
285 this->bayVelocity0 = (new System::Windows::Forms::TextBox());259 this->bayVelocity0 = (new System::Windows::Forms::TextBox());
286 this->label4 = (new System::Windows::Forms::Label());260 this->label4 = (new System::Windows::Forms::Label());
287 this->bayVelocity1 = (new System::Windows::Forms::TextBox());261 this->bayVelocity1 = (new System::Windows::Forms::TextBox());
288 this->bayScroll1 = (new System::Windows::Forms::VScrollBar());262 this->bayScroll1 = (new System::Windows::Forms::VScrollBar());
289 this->bayScroll0 = (new System::Windows::Forms::VScrollBar());263 this->bayScroll0 = (new System::Windows::Forms::VScrollBar());
290 this->bayLabel1 = (new System::Windows::Forms::Label());264 this->bayLabel1 = (new System::Windows::Forms::Label());
291 this->bayLabel0 = (new System::Windows::Forms::Label());265 this->bayLabel0 = (new System::Windows::Forms::Label());
292 this->bayCommandedPosition1 = (new System::Windows::Forms::TextBox());266 this->bayCommandedPosition1 = (new System::Windows::Forms::TextBox());
293 this->bayCommandedPosition0 = (new System::Windows::Forms::TextBox());267 this->bayCommandedPosition0 = (new System::Windows::Forms::TextBox());
294 this->FabricationThread = (new System::ComponentModel::BackgroundWorker());268 this->FabricationThread = (new System::ComponentModel::BackgroundWorker());
295 this->ForceStopButton = (new System::Windows::Forms::Button());269 this->ForceStopButton = (new System::Windows::Forms::Button());
296 this->panel1 = (new System::Windows::Forms::Panel());270 this->panel1 = (new System::Windows::Forms::Panel());
297 this->PathProgressBar = (new System::Windows::Forms::ProgressBar());271 this->PathProgressBar = (new System::Windows::Forms::ProgressBar());
298 this->CancelFabButton = (new System::Windows::Forms::Button());272 this->CancelFabButton = (new System::Windows::Forms::Button());
299 this->PauseFabButton = (new System::Windows::Forms::Button());273 this->PauseFabButton = (new System::Windows::Forms::Button());
300 this->RedoPathButton = (new System::Windows::Forms::Button());274 this->RedoPathButton = (new System::Windows::Forms::Button());
301 this->Timer = (new System::Windows::Forms::Timer(this->components));275 this->Timer = (new System::Windows::Forms::Timer(this->components));
302 this->panel2 = (new System::Windows::Forms::Panel());276 this->panel2 = (new System::Windows::Forms::Panel());
303 this->bayMaterialCalibration2 = (new System::Windows::Forms::ComboBox());277 this->bayMaterialCalibration2 = (new System::Windows::Forms::ComboBox());
304 this->bayAcceleration2 = (new System::Windows::Forms::TextBox());278 this->bayAcceleration2 = (new System::Windows::Forms::TextBox());
305 this->bayVelocity2 = (new System::Windows::Forms::TextBox());279 this->bayVelocity2 = (new System::Windows::Forms::TextBox());
306 this->bayMotorPosition2 = (new System::Windows::Forms::TextBox());280 this->bayMotorPosition2 = (new System::Windows::Forms::TextBox());
307 this->bayPositionIncrement2 = (new System::Windows::Forms::TextBox());281 this->bayPositionIncrement2 = (new System::Windows::Forms::TextBox());
308 this->bayScroll2 = (new System::Windows::Forms::VScrollBar());282 this->bayScroll2 = (new System::Windows::Forms::VScrollBar());
309 this->bayCommandedPosition2 = (new System::Windows::Forms::TextBox());283 this->bayCommandedPosition2 = (new System::Windows::Forms::TextBox());
310 this->bayLabel2 = (new System::Windows::Forms::Label());284 this->bayLabel2 = (new System::Windows::Forms::Label());
311 this->label5 = (new System::Windows::Forms::Label());285 this->label5 = (new System::Windows::Forms::Label());
312 this->bayMaterialCalibration1 = (new System::Windows::Forms::ComboBox());286 this->bayMaterialCalibration1 = (new System::Windows::Forms::ComboBox());
313 this->bayMaterialCalibration0 = (new System::Windows::Forms::ComboBox());287 this->bayMaterialCalibration0 = (new System::Windows::Forms::ComboBox());
314 this->XAccelerationField = (new System::Windows::Forms::TextBox());288 this->XAccelerationField = (new System::Windows::Forms::TextBox());
315 this->YAccelerationField = (new System::Windows::Forms::TextBox());289 this->YAccelerationField = (new System::Windows::Forms::TextBox());
316 this->ZAccelerationField = (new System::Windows::Forms::TextBox());290 this->ZAccelerationField = (new System::Windows::Forms::TextBox());
317 this->bayAcceleration1 = (new System::Windows::Forms::TextBox());291 this->bayAcceleration1 = (new System::Windows::Forms::TextBox());
318 this->bayAcceleration0 = (new System::Windows::Forms::TextBox());292 this->bayAcceleration0 = (new System::Windows::Forms::TextBox());
319 this->label1 = (new System::Windows::Forms::Label());293 this->label1 = (new System::Windows::Forms::Label());
320 this->XVelocityField = (new System::Windows::Forms::TextBox());294 this->XVelocityField = (new System::Windows::Forms::TextBox());
321 this->YVelocityField = (new System::Windows::Forms::TextBox());295 this->YVelocityField = (new System::Windows::Forms::TextBox());
322 this->ZVelocityField = (new System::Windows::Forms::TextBox());296 this->ZVelocityField = (new System::Windows::Forms::TextBox());
323 this->bayMotorPosition1 = (new System::Windows::Forms::TextBox());297 this->bayMotorPosition1 = (new System::Windows::Forms::TextBox());
324 this->bayMotorPosition0 = (new System::Windows::Forms::TextBox());298 this->bayMotorPosition0 = (new System::Windows::Forms::TextBox());
325 this->bayPositionIncrement1 = (new System::Windows::Forms::TextBox());299 this->bayPositionIncrement1 = (new System::Windows::Forms::TextBox());
326 this->bayPositionIncrement0 = (new System::Windows::Forms::TextBox());300 this->bayPositionIncrement0 = (new System::Windows::Forms::TextBox());
327 this->zScroll = (new System::Windows::Forms::VScrollBar());301 this->zScroll = (new System::Windows::Forms::VScrollBar());
328 this->yScroll = (new System::Windows::Forms::VScrollBar());302 this->yScroll = (new System::Windows::Forms::VScrollBar());
329 this->xScroll = (new System::Windows::Forms::VScrollBar());303 this->xScroll = (new System::Windows::Forms::VScrollBar());
330 this->CommandedLabel = (new System::Windows::Forms::Label());304 this->CommandedLabel = (new System::Windows::Forms::Label());
331 this->RealTimeLabel = (new System::Windows::Forms::Label());305 this->RealTimeLabel = (new System::Windows::Forms::Label());
332 this->ZIncrementField = (new System::Windows::Forms::TextBox());306 this->ZIncrementField = (new System::Windows::Forms::TextBox());
333 this->YIncrementField = (new System::Windows::Forms::TextBox());307 this->YIncrementField = (new System::Windows::Forms::TextBox());
334 this->XIncrementField = (new System::Windows::Forms::TextBox());308 this->XIncrementField = (new System::Windows::Forms::TextBox());
335 this->label2 = (new System::Windows::Forms::Label());309 this->label2 = (new System::Windows::Forms::Label());
336 this->IncrementLabel = (new System::Windows::Forms::Label());310 this->IncrementLabel = (new System::Windows::Forms::Label());
337 this->ZCommandedField = (new System::Windows::Forms::TextBox());311 this->ZCommandedField = (new System::Windows::Forms::TextBox());
338 this->YCommandedField = (new System::Windows::Forms::TextBox());312 this->YCommandedField = (new System::Windows::Forms::TextBox());
339 this->XCommandedField = (new System::Windows::Forms::TextBox());313 this->XCommandedField = (new System::Windows::Forms::TextBox());
340 this->PosDisplayThread = (new System::ComponentModel::BackgroundWorker());314 this->PosDisplayThread = (new System::ComponentModel::BackgroundWorker());
341 this->panel3 = (new System::Windows::Forms::Panel());315 this->panel3 = (new System::Windows::Forms::Panel());
342 this->panel4 = (new System::Windows::Forms::Panel());316 this->LoadPreviousConfig = (new System::Windows::Forms::Button());
343 this->fs = (new System::Windows::Forms::Panel());317 this->panel4 = (new System::Windows::Forms::Panel());
344 this->openFileDialog1 = (new System::Windows::Forms::OpenFileDialog());318 this->fs = (new System::Windows::Forms::Panel());
345 this->panel1->SuspendLayout();319 this->openFileDialog1 = (new System::Windows::Forms::OpenFileDialog());
346 this->panel2->SuspendLayout();320 this->panel1->SuspendLayout();
347 this->panel3->SuspendLayout();321 this->panel2->SuspendLayout();
348 this->panel4->SuspendLayout();322 this->panel3->SuspendLayout();
349 this->fs->SuspendLayout();323 this->panel4->SuspendLayout();
350 this->SuspendLayout();324 this->fs->SuspendLayout();
351 // 325 this->SuspendLayout();
352 // InitButton326 //
353 // 327 // InitButton
354 this->InitButton->Font = (new System::Drawing::Font(S"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 328 //
355 (System::Byte)0));329 this->InitButton->Font = (new System::Drawing::Font(S"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
356 this->InitButton->Location = System::Drawing::Point(0, 0);330 (System::Byte)0));
357 this->InitButton->Name = S"InitButton";331 this->InitButton->Location = System::Drawing::Point(229, 1);
358 this->InitButton->Size = System::Drawing::Size(115, 50);332 this->InitButton->Name = S"InitButton";
359 this->InitButton->TabIndex = 0;333 this->InitButton->Size = System::Drawing::Size(218, 50);
360 this->InitButton->Text = S"Initialize";334 this->InitButton->TabIndex = 0;
361 this->InitButton->Click += new System::EventHandler(this, &Form1::InitButton_Click);335 this->InitButton->Text = S"Load New Config";
362 // 336 this->InitButton->Click += new System::EventHandler(this, &Form1::InitButton_Click);
363 // MoveButton337 //
364 // 338 // MoveButton
365 this->MoveButton->Enabled = false;339 //
366 this->MoveButton->Font = (new System::Drawing::Font(S"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 340 this->MoveButton->Enabled = false;
367 (System::Byte)0));341 this->MoveButton->Font = (new System::Drawing::Font(S"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
368 this->MoveButton->Location = System::Drawing::Point(307, 184);342 (System::Byte)0));
369 this->MoveButton->Name = S"MoveButton";343 this->MoveButton->Location = System::Drawing::Point(307, 184);
370 this->MoveButton->Size = System::Drawing::Size(201, 48);344 this->MoveButton->Name = S"MoveButton";
371 this->MoveButton->TabIndex = 3;345 this->MoveButton->Size = System::Drawing::Size(201, 48);
372 this->MoveButton->Text = S"Move To Position ";346 this->MoveButton->TabIndex = 3;
373 this->MoveButton->Click += new System::EventHandler(this, &Form1::MoveButton_Click);347 this->MoveButton->Text = S"Move To Position ";
374 // 348 this->MoveButton->Click += new System::EventHandler(this, &Form1::MoveButton_Click);
375 // ExitButton349 //
376 // 350 // ExitButton
377 this->ExitButton->Font = (new System::Drawing::Font(S"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 351 //
378 (System::Byte)0));352 this->ExitButton->Font = (new System::Drawing::Font(S"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
379 this->ExitButton->Location = System::Drawing::Point(0, 69);353 (System::Byte)0));
380 this->ExitButton->Name = S"ExitButton";354 this->ExitButton->Location = System::Drawing::Point(0, 69);
381 this->ExitButton->Size = System::Drawing::Size(164, 70);355 this->ExitButton->Name = S"ExitButton";
382 this->ExitButton->TabIndex = 5;356 this->ExitButton->Size = System::Drawing::Size(164, 70);
383 this->ExitButton->Text = S"Exit";357 this->ExitButton->TabIndex = 5;
384 this->ExitButton->Click += new System::EventHandler(this, &Form1::ExitButton_Click);358 this->ExitButton->Text = S"Exit";
385 // 359 this->ExitButton->Click += new System::EventHandler(this, &Form1::ExitButton_Click);
386 // XLabel360 //
387 // 361 // XLabel
388 this->XLabel->Location = System::Drawing::Point(8, 31);362 //
389 this->XLabel->Name = S"XLabel";363 this->XLabel->Location = System::Drawing::Point(8, 31);
390 this->XLabel->Size = System::Drawing::Size(63, 16);364 this->XLabel->Name = S"XLabel";
391 this->XLabel->TabIndex = 7;365 this->XLabel->Size = System::Drawing::Size(63, 16);
392 this->XLabel->Text = S"Not Loaded";366 this->XLabel->TabIndex = 7;
393 this->XLabel->TextAlign = System::Drawing::ContentAlignment::MiddleRight;367 this->XLabel->Text = S"Not Loaded";
394 // 368 this->XLabel->TextAlign = System::Drawing::ContentAlignment::MiddleRight;
395 // YLabel369 //
396 // 370 // YLabel
397 this->YLabel->Location = System::Drawing::Point(8, 57);371 //
398 this->YLabel->Name = S"YLabel";372 this->YLabel->Location = System::Drawing::Point(8, 57);
399 this->YLabel->Size = System::Drawing::Size(63, 16);373 this->YLabel->Name = S"YLabel";
400 this->YLabel->TabIndex = 8;374 this->YLabel->Size = System::Drawing::Size(63, 16);
401 this->YLabel->Text = S"Not Loaded";375 this->YLabel->TabIndex = 8;
402 this->YLabel->TextAlign = System::Drawing::ContentAlignment::MiddleRight;376 this->YLabel->Text = S"Not Loaded";
403 // 377 this->YLabel->TextAlign = System::Drawing::ContentAlignment::MiddleRight;
404 // ZLabel378 //
405 // 379 // ZLabel
406 this->ZLabel->Location = System::Drawing::Point(8, 82);380 //
407 this->ZLabel->Name = S"ZLabel";381 this->ZLabel->Location = System::Drawing::Point(8, 82);
408 this->ZLabel->Size = System::Drawing::Size(63, 16);382 this->ZLabel->Name = S"ZLabel";
409 this->ZLabel->TabIndex = 11;383 this->ZLabel->Size = System::Drawing::Size(63, 16);
410 this->ZLabel->Text = S"Not Loaded";384 this->ZLabel->TabIndex = 11;
411 this->ZLabel->TextAlign = System::Drawing::ContentAlignment::MiddleRight;385 this->ZLabel->Text = S"Not Loaded";
412 // 386 this->ZLabel->TextAlign = System::Drawing::ContentAlignment::MiddleRight;
413 // XDisplay387 //
414 // 388 // XDisplay
415 this->XDisplay->Enabled = false;389 //
416 this->XDisplay->Location = System::Drawing::Point(429, 30);390 this->XDisplay->Enabled = false;
417 this->XDisplay->Name = S"XDisplay";391 this->XDisplay->Location = System::Drawing::Point(429, 30);
418 this->XDisplay->ReadOnly = true;392 this->XDisplay->Name = S"XDisplay";
419 this->XDisplay->Size = System::Drawing::Size(100, 20);393 this->XDisplay->ReadOnly = true;
420 this->XDisplay->TabIndex = 13;394 this->XDisplay->Size = System::Drawing::Size(100, 20);
421 this->XDisplay->Text = S"0.000000";395 this->XDisplay->TabIndex = 13;
422 this->XDisplay->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;396 this->XDisplay->Text = S"0.000000";
423 // 397 this->XDisplay->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
424 // YDisplay398 //
425 // 399 // YDisplay
426 this->YDisplay->Enabled = false;400 //
427 this->YDisplay->Location = System::Drawing::Point(429, 56);401 this->YDisplay->Enabled = false;
428 this->YDisplay->Name = S"YDisplay";402 this->YDisplay->Location = System::Drawing::Point(429, 56);
429 this->YDisplay->ReadOnly = true;403 this->YDisplay->Name = S"YDisplay";
430 this->YDisplay->Size = System::Drawing::Size(100, 20);404 this->YDisplay->ReadOnly = true;
431 this->YDisplay->TabIndex = 14;405 this->YDisplay->Size = System::Drawing::Size(100, 20);
432 this->YDisplay->Text = S"0.000000";406 this->YDisplay->TabIndex = 14;
433 this->YDisplay->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;407 this->YDisplay->Text = S"0.000000";
434 // 408 this->YDisplay->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
435 // ZDisplay409 //
436 // 410 // ZDisplay
437 this->ZDisplay->Enabled = false;411 //
438 this->ZDisplay->Location = System::Drawing::Point(429, 83);412 this->ZDisplay->Enabled = false;
439 this->ZDisplay->Name = S"ZDisplay";413 this->ZDisplay->Location = System::Drawing::Point(429, 83);
440 this->ZDisplay->ReadOnly = true;414 this->ZDisplay->Name = S"ZDisplay";
441 this->ZDisplay->Size = System::Drawing::Size(100, 20);415 this->ZDisplay->ReadOnly = true;
442 this->ZDisplay->TabIndex = 17;416 this->ZDisplay->Size = System::Drawing::Size(100, 20);
443 this->ZDisplay->Text = S"0.000000";417 this->ZDisplay->TabIndex = 17;
444 this->ZDisplay->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;418 this->ZDisplay->Text = S"0.000000";
445 // 419 this->ZDisplay->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
446 // ExecuteButton420 //
447 // 421 // ExecuteButton
448 this->ExecuteButton->Enabled = false;422 //
449 this->ExecuteButton->Font = (new System::Drawing::Font(S"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 423 this->ExecuteButton->Enabled = false;
450 (System::Byte)0));424 this->ExecuteButton->Font = (new System::Drawing::Font(S"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
451 this->ExecuteButton->Location = System::Drawing::Point(123, 0);425 (System::Byte)0));
452 this->ExecuteButton->Name = S"ExecuteButton";426 this->ExecuteButton->Location = System::Drawing::Point(123, 0);
453 this->ExecuteButton->Size = System::Drawing::Size(117, 40);427 this->ExecuteButton->Name = S"ExecuteButton";
454 this->ExecuteButton->TabIndex = 19;428 this->ExecuteButton->Size = System::Drawing::Size(117, 40);
455 this->ExecuteButton->Text = S"Execute";429 this->ExecuteButton->TabIndex = 19;
456 this->ExecuteButton->Click += new System::EventHandler(this, &Form1::ExecuteButton_Click);430 this->ExecuteButton->Text = S"Execute";
457 // 431 this->ExecuteButton->Click += new System::EventHandler(this, &Form1::ExecuteButton_Click);
458 // ResetPosButton432 //
459 // 433 // ResetPosButton
460 this->ResetPosButton->Enabled = false;434 //
461 this->ResetPosButton->Font = (new System::Drawing::Font(S"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 435 this->ResetPosButton->Enabled = false;
462 (System::Byte)0));436 this->ResetPosButton->Font = (new System::Drawing::Font(S"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
463 this->ResetPosButton->Location = System::Drawing::Point(514, 184);437 (System::Byte)0));
464 this->ResetPosButton->Name = S"ResetPosButton";438 this->ResetPosButton->Location = System::Drawing::Point(514, 184);
465 this->ResetPosButton->Size = System::Drawing::Size(168, 48);439 this->ResetPosButton->Name = S"ResetPosButton";
466 this->ResetPosButton->TabIndex = 20;440 this->ResetPosButton->Size = System::Drawing::Size(168, 48);
467 this->ResetPosButton->Text = S"Reset Position";441 this->ResetPosButton->TabIndex = 20;
468 this->ResetPosButton->Click += new System::EventHandler(this, &Form1::ResetPosButton_Click);442 this->ResetPosButton->Text = S"Reset Position";
469 // 443 this->ResetPosButton->Click += new System::EventHandler(this, &Form1::ResetPosButton_Click);
470 // LoadFileButton444 //
471 // 445 // LoadFileButton
472 this->LoadFileButton->Enabled = false;446 //
473 this->LoadFileButton->Font = (new System::Drawing::Font(S"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 447 this->LoadFileButton->Enabled = false;
474 (System::Byte)0));448 this->LoadFileButton->Font = (new System::Drawing::Font(S"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
475 this->LoadFileButton->Location = System::Drawing::Point(0, 0);449 (System::Byte)0));
476 this->LoadFileButton->Name = S"LoadFileButton";450 this->LoadFileButton->Location = System::Drawing::Point(0, 0);
477 this->LoadFileButton->Size = System::Drawing::Size(117, 41);451 this->LoadFileButton->Name = S"LoadFileButton";
478 this->LoadFileButton->TabIndex = 21;452 this->LoadFileButton->Size = System::Drawing::Size(117, 41);
479 this->LoadFileButton->Text = S"Load";453 this->LoadFileButton->TabIndex = 21;
480 this->LoadFileButton->Click += new System::EventHandler(this, &Form1::LoadFileButton_Click);454 this->LoadFileButton->Text = S"Load";
481 // 455 this->LoadFileButton->Click += new System::EventHandler(this, &Form1::LoadFileButton_Click);
482 // ExecutePathLabel456 //
483 // 457 // ExecutePathLabel
484 this->ExecutePathLabel->Location = System::Drawing::Point(247, 10);458 //
485 this->ExecutePathLabel->Name = S"ExecutePathLabel";459 this->ExecutePathLabel->Location = System::Drawing::Point(247, 10);
486 this->ExecutePathLabel->ReadOnly = true;460 this->ExecutePathLabel->Name = S"ExecutePathLabel";
487 this->ExecutePathLabel->Size = System::Drawing::Size(458, 20);461 this->ExecutePathLabel->ReadOnly = true;
488 this->ExecutePathLabel->TabIndex = 24;462 this->ExecutePathLabel->Size = System::Drawing::Size(458, 20);
489 // 463 this->ExecutePathLabel->TabIndex = 24;
490 // bayVelocity0464 //
491 // 465 // bayVelocity0
492 this->bayVelocity0->Enabled = false;466 //
493 this->bayVelocity0->Location = System::Drawing::Point(77, 106);467 this->bayVelocity0->Enabled = false;
494 this->bayVelocity0->Name = S"bayVelocity0";468 this->bayVelocity0->Location = System::Drawing::Point(77, 106);
495 this->bayVelocity0->Size = System::Drawing::Size(100, 20);469 this->bayVelocity0->Name = S"bayVelocity0";
496 this->bayVelocity0->TabIndex = 28;470 this->bayVelocity0->Size = System::Drawing::Size(100, 20);
497 this->bayVelocity0->Text = S"1.000000";471 this->bayVelocity0->TabIndex = 28;
498 this->bayVelocity0->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;472 this->bayVelocity0->Text = S"1.000000";
499 // 473 this->bayVelocity0->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
500 // label4474 //
501 // 475 // label4
502 this->label4->AutoSize = true;476 //
503 this->label4->Location = System::Drawing::Point(74, 12);477 this->label4->AutoSize = true;
504 this->label4->Name = S"label4";478 this->label4->Location = System::Drawing::Point(74, 12);
505 this->label4->Size = System::Drawing::Size(79, 13);479 this->label4->Name = S"label4";
506 this->label4->TabIndex = 47;480 this->label4->Size = System::Drawing::Size(79, 13);
507 this->label4->Text = S"Velocity (mm/s)";481 this->label4->TabIndex = 47;
508 // 482 this->label4->Text = S"Velocity (mm/s)";
509 // bayVelocity1483 //
510 // 484 // bayVelocity1
511 this->bayVelocity1->Enabled = false;485 //
512 this->bayVelocity1->Location = System::Drawing::Point(77, 132);486 this->bayVelocity1->Enabled = false;
513 this->bayVelocity1->Name = S"bayVelocity1";487 this->bayVelocity1->Location = System::Drawing::Point(77, 132);
514 this->bayVelocity1->Size = System::Drawing::Size(100, 20);488 this->bayVelocity1->Name = S"bayVelocity1";
515 this->bayVelocity1->TabIndex = 32;489 this->bayVelocity1->Size = System::Drawing::Size(100, 20);
516 this->bayVelocity1->Text = S"1.000000";490 this->bayVelocity1->TabIndex = 32;
517 this->bayVelocity1->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;491 this->bayVelocity1->Text = S"1.000000";
518 // 492 this->bayVelocity1->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
519 // bayScroll1493 //
520 // 494 // bayScroll1
521 this->bayScroll1->AccessibleRole = System::Windows::Forms::AccessibleRole::ScrollBar;495 //
522 this->bayScroll1->Enabled = false;496 this->bayScroll1->AccessibleRole = System::Windows::Forms::AccessibleRole::ScrollBar;
523 this->bayScroll1->LargeChange = 1;497 this->bayScroll1->Enabled = false;
524 this->bayScroll1->Location = System::Drawing::Point(663, 132);498 this->bayScroll1->LargeChange = 1;
525 this->bayScroll1->Maximum = 100000000;499 this->bayScroll1->Location = System::Drawing::Point(663, 132);
526 this->bayScroll1->Minimum = -100000000;500 this->bayScroll1->Maximum = 100000000;
527 this->bayScroll1->Name = S"bayScroll1";501 this->bayScroll1->Minimum = -100000000;
528 this->bayScroll1->Size = System::Drawing::Size(19, 20);502 this->bayScroll1->Name = S"bayScroll1";
529 this->bayScroll1->TabIndex = 46;503 this->bayScroll1->Size = System::Drawing::Size(19, 20);
530 this->bayScroll1->Scroll += new System::Windows::Forms::ScrollEventHandler(this, &Form1::Tool2Scroll_Scroll);504 this->bayScroll1->TabIndex = 46;
531 // 505 this->bayScroll1->Scroll += new System::Windows::Forms::ScrollEventHandler(this, &Form1::Tool2Scroll_Scroll);
532 // bayScroll0506 //
533 // 507 // bayScroll0
534 this->bayScroll0->AccessibleRole = System::Windows::Forms::AccessibleRole::ScrollBar;508 //
535 this->bayScroll0->Enabled = false;509 this->bayScroll0->AccessibleRole = System::Windows::Forms::AccessibleRole::ScrollBar;
536 this->bayScroll0->LargeChange = 1;510 this->bayScroll0->Enabled = false;
537 this->bayScroll0->Location = System::Drawing::Point(663, 106);511 this->bayScroll0->LargeChange = 1;
538 this->bayScroll0->Maximum = 100000000;512 this->bayScroll0->Location = System::Drawing::Point(663, 106);
539 this->bayScroll0->Minimum = -100000000;513 this->bayScroll0->Maximum = 100000000;
540 this->bayScroll0->Name = S"bayScroll0";514 this->bayScroll0->Minimum = -100000000;
541 this->bayScroll0->Size = System::Drawing::Size(19, 20);515 this->bayScroll0->Name = S"bayScroll0";
542 this->bayScroll0->TabIndex = 45;516 this->bayScroll0->Size = System::Drawing::Size(19, 20);
543 this->bayScroll0->Scroll += new System::Windows::Forms::ScrollEventHandler(this, &Form1::Tool1Scroll_Scroll);517 this->bayScroll0->TabIndex = 45;
544 // 518 this->bayScroll0->Scroll += new System::Windows::Forms::ScrollEventHandler(this, &Form1::Tool1Scroll_Scroll);
545 // bayLabel1519 //
546 // 520 // bayLabel1
547 this->bayLabel1->Anchor = System::Windows::Forms::AnchorStyles::Right;521 //
548 this->bayLabel1->Location = System::Drawing::Point(8, 133);522 this->bayLabel1->Anchor = System::Windows::Forms::AnchorStyles::Right;
549 this->bayLabel1->Name = S"bayLabel1";523 this->bayLabel1->Location = System::Drawing::Point(8, 133);
550 this->bayLabel1->Size = System::Drawing::Size(63, 16);524 this->bayLabel1->Name = S"bayLabel1";
551 this->bayLabel1->TabIndex = 36;525 this->bayLabel1->Size = System::Drawing::Size(63, 16);
552 this->bayLabel1->Text = S"Not Loaded";526 this->bayLabel1->TabIndex = 36;
553 this->bayLabel1->TextAlign = System::Drawing::ContentAlignment::MiddleRight;527 this->bayLabel1->Text = S"Not Loaded";
554 // 528 this->bayLabel1->TextAlign = System::Drawing::ContentAlignment::MiddleRight;
555 // bayLabel0529 //
556 // 530 // bayLabel0
557 this->bayLabel0->Anchor = System::Windows::Forms::AnchorStyles::Right;531 //
558 this->bayLabel0->Location = System::Drawing::Point(8, 107);532 this->bayLabel0->Anchor = System::Windows::Forms::AnchorStyles::Right;
559 this->bayLabel0->Name = S"bayLabel0";533 this->bayLabel0->Location = System::Drawing::Point(8, 107);
560 this->bayLabel0->Size = System::Drawing::Size(63, 16);534 this->bayLabel0->Name = S"bayLabel0";
561 this->bayLabel0->TabIndex = 35;535 this->bayLabel0->Size = System::Drawing::Size(63, 16);
562 this->bayLabel0->Text = S"Not Loaded";536 this->bayLabel0->TabIndex = 35;
563 this->bayLabel0->TextAlign = System::Drawing::ContentAlignment::MiddleRight;537 this->bayLabel0->Text = S"Not Loaded";
564 // 538 this->bayLabel0->TextAlign = System::Drawing::ContentAlignment::MiddleRight;
565 // bayCommandedPosition1539 //
566 // 540 // bayCommandedPosition1
567 this->bayCommandedPosition1->Enabled = false;541 //
568 this->bayCommandedPosition1->Location = System::Drawing::Point(535, 132);542 this->bayCommandedPosition1->Enabled = false;
569 this->bayCommandedPosition1->Name = S"bayCommandedPosition1";543 this->bayCommandedPosition1->Location = System::Drawing::Point(535, 132);
570 this->bayCommandedPosition1->Size = System::Drawing::Size(128, 20);544 this->bayCommandedPosition1->Name = S"bayCommandedPosition1";
571 this->bayCommandedPosition1->TabIndex = 34;545 this->bayCommandedPosition1->Size = System::Drawing::Size(128, 20);
572 this->bayCommandedPosition1->Text = S"0.000000";546 this->bayCommandedPosition1->TabIndex = 34;
573 this->bayCommandedPosition1->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;547 this->bayCommandedPosition1->Text = S"0.000000";
574 // 548 this->bayCommandedPosition1->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
575 // bayCommandedPosition0549 //
576 // 550 // bayCommandedPosition0
577 this->bayCommandedPosition0->Enabled = false;551 //
578 this->bayCommandedPosition0->Location = System::Drawing::Point(535, 106);552 this->bayCommandedPosition0->Enabled = false;
579 this->bayCommandedPosition0->Name = S"bayCommandedPosition0";553 this->bayCommandedPosition0->Location = System::Drawing::Point(535, 106);
580 this->bayCommandedPosition0->Size = System::Drawing::Size(128, 20);554 this->bayCommandedPosition0->Name = S"bayCommandedPosition0";
581 this->bayCommandedPosition0->TabIndex = 33;555 this->bayCommandedPosition0->Size = System::Drawing::Size(128, 20);
582 this->bayCommandedPosition0->Text = S"0.000000";556 this->bayCommandedPosition0->TabIndex = 33;
583 this->bayCommandedPosition0->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;557 this->bayCommandedPosition0->Text = S"0.000000";
584 // 558 this->bayCommandedPosition0->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
585 // FabricationThread559 //
586 // 560 // FabricationThread
587 this->FabricationThread->WorkerReportsProgress = true;561 //
588 this->FabricationThread->DoWork += new System::ComponentModel::DoWorkEventHandler(this, &Form1::FabricationThread_DoWork);562 this->FabricationThread->WorkerReportsProgress = true;
589 this->FabricationThread->RunWorkerCompleted += new System::ComponentModel::RunWorkerCompletedEventHandler(this, &Form1::FabricationThread_WorkerCompleted);563 this->FabricationThread->DoWork += new System::ComponentModel::DoWorkEventHandler(this, &Form1::FabricationThread_DoWork);
590 this->FabricationThread->ProgressChanged += new System::ComponentModel::ProgressChangedEventHandler(this, &Form1::FabricationThread_ProgressChanged);564 this->FabricationThread->RunWorkerCompleted += new System::ComponentModel::RunWorkerCompletedEventHandler(this, &Form1::FabricationThread_WorkerCompleted);
591 // 565 this->FabricationThread->ProgressChanged += new System::ComponentModel::ProgressChangedEventHandler(this, &Form1::FabricationThread_ProgressChanged);
592 // ForceStopButton566 //
593 // 567 // ForceStopButton
594 this->ForceStopButton->Enabled = false;568 //
595 this->ForceStopButton->Font = (new System::Drawing::Font(S"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 569 this->ForceStopButton->Enabled = false;
596 (System::Byte)0));570 this->ForceStopButton->Font = (new System::Drawing::Font(S"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
597 this->ForceStopButton->Location = System::Drawing::Point(473, 3);571 (System::Byte)0));
598 this->ForceStopButton->Name = S"ForceStopButton";572 this->ForceStopButton->Location = System::Drawing::Point(473, 3);
599 this->ForceStopButton->Size = System::Drawing::Size(231, 46);573 this->ForceStopButton->Name = S"ForceStopButton";
600 this->ForceStopButton->TabIndex = 34;574 this->ForceStopButton->Size = System::Drawing::Size(231, 46);
601 this->ForceStopButton->Text = S"Force Stop";575 this->ForceStopButton->TabIndex = 34;
602 this->ForceStopButton->UseVisualStyleBackColor = true;576 this->ForceStopButton->Text = S"Force Stop";
603 this->ForceStopButton->Click += new System::EventHandler(this, &Form1::ForceStopButton_Click);577 this->ForceStopButton->UseVisualStyleBackColor = true;
604 // 578 this->ForceStopButton->Click += new System::EventHandler(this, &Form1::ForceStopButton_Click);
605 // panel1579 //
606 // 580 // panel1
607 this->panel1->Controls->Add(this->PathProgressBar);581 //
608 this->panel1->Controls->Add(this->CancelFabButton);582 this->panel1->Controls->Add(this->PathProgressBar);
609 this->panel1->Controls->Add(this->PauseFabButton);583 this->panel1->Controls->Add(this->CancelFabButton);
610 this->panel1->Controls->Add(this->ForceStopButton);584 this->panel1->Controls->Add(this->PauseFabButton);
611 this->panel1->Location = System::Drawing::Point(9, 364);585 this->panel1->Controls->Add(this->ForceStopButton);
612 this->panel1->Name = S"panel1";586 this->panel1->Location = System::Drawing::Point(9, 364);
613 this->panel1->Size = System::Drawing::Size(717, 92);587 this->panel1->Name = S"panel1";
614 this->panel1->TabIndex = 37;588 this->panel1->Size = System::Drawing::Size(717, 92);
615 // 589 this->panel1->TabIndex = 37;
616 // PathProgressBar590 //
617 // 591 // PathProgressBar
618 this->PathProgressBar->Location = System::Drawing::Point(5, 55);592 //
619 this->PathProgressBar->Maximum = 1000;593 this->PathProgressBar->Location = System::Drawing::Point(5, 55);
620 this->PathProgressBar->Name = S"PathProgressBar";594 this->PathProgressBar->Maximum = 1000;
621 this->PathProgressBar->Size = System::Drawing::Size(697, 23);595 this->PathProgressBar->Name = S"PathProgressBar";
622 this->PathProgressBar->Style = System::Windows::Forms::ProgressBarStyle::Continuous;596 this->PathProgressBar->Size = System::Drawing::Size(697, 23);
623 this->PathProgressBar->TabIndex = 39;597 this->PathProgressBar->Style = System::Windows::Forms::ProgressBarStyle::Continuous;
624 // 598 this->PathProgressBar->TabIndex = 39;
625 // CancelFabButton599 //
626 // 600 // CancelFabButton
627 this->CancelFabButton->Enabled = false;601 //
628 this->CancelFabButton->Font = (new System::Drawing::Font(S"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 602 this->CancelFabButton->Enabled = false;
629 (System::Byte)0));603 this->CancelFabButton->Font = (new System::Drawing::Font(S"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
630 this->CancelFabButton->Location = System::Drawing::Point(246, 3);604 (System::Byte)0));
631 this->CancelFabButton->Name = S"CancelFabButton";605 this->CancelFabButton->Location = System::Drawing::Point(246, 3);
632 this->CancelFabButton->Size = System::Drawing::Size(219, 46);606 this->CancelFabButton->Name = S"CancelFabButton";
633 this->CancelFabButton->TabIndex = 39;607 this->CancelFabButton->Size = System::Drawing::Size(219, 46);
634 this->CancelFabButton->Text = S"Cancel";608 this->CancelFabButton->TabIndex = 39;
635 this->CancelFabButton->UseVisualStyleBackColor = true;609 this->CancelFabButton->Text = S"Cancel";
636 this->CancelFabButton->Click += new System::EventHandler(this, &Form1::CancelFabButton_Click);610 this->CancelFabButton->UseVisualStyleBackColor = true;
637 // 611 this->CancelFabButton->Click += new System::EventHandler(this, &Form1::CancelFabButton_Click);
638 // PauseFabButton612 //
639 // 613 // PauseFabButton
640 this->PauseFabButton->Enabled = false;614 //
641 this->PauseFabButton->Font = (new System::Drawing::Font(S"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 615 this->PauseFabButton->Enabled = false;
642 (System::Byte)0));616 this->PauseFabButton->Font = (new System::Drawing::Font(S"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
643 this->PauseFabButton->Location = System::Drawing::Point(5, 3);617 (System::Byte)0));
644 this->PauseFabButton->Name = S"PauseFabButton";618 this->PauseFabButton->Location = System::Drawing::Point(5, 3);
645 this->PauseFabButton->Size = System::Drawing::Size(235, 46);619 this->PauseFabButton->Name = S"PauseFabButton";
646 this->PauseFabButton->TabIndex = 38;620 this->PauseFabButton->Size = System::Drawing::Size(235, 46);
647 this->PauseFabButton->Text = S"Pause";621 this->PauseFabButton->TabIndex = 38;
648 this->PauseFabButton->UseVisualStyleBackColor = true;622 this->PauseFabButton->Text = S"Pause";
649 this->PauseFabButton->Click += new System::EventHandler(this, &Form1::PauseFabButton_Click);623 this->PauseFabButton->UseVisualStyleBackColor = true;
650 // 624 this->PauseFabButton->Click += new System::EventHandler(this, &Form1::PauseFabButton_Click);
651 // RedoPathButton625 //
652 // 626 // RedoPathButton
653 this->RedoPathButton->Enabled = false;627 //
654 this->RedoPathButton->Font = (new System::Drawing::Font(S"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 628 this->RedoPathButton->Enabled = false;
655 (System::Byte)0));629 this->RedoPathButton->Font = (new System::Drawing::Font(S"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
656 this->RedoPathButton->Location = System::Drawing::Point(0, 0);630 (System::Byte)0));
657 this->RedoPathButton->Name = S"RedoPathButton";631 this->RedoPathButton->Location = System::Drawing::Point(0, 0);
658 this->RedoPathButton->Size = System::Drawing::Size(164, 63);632 this->RedoPathButton->Name = S"RedoPathButton";
659 this->RedoPathButton->TabIndex = 38;633 this->RedoPathButton->Size = System::Drawing::Size(164, 63);
660 this->RedoPathButton->Text = S"Redo Path";634 this->RedoPathButton->TabIndex = 38;
661 this->RedoPathButton->UseVisualStyleBackColor = true;635 this->RedoPathButton->Text = S"Redo Path";
662 this->RedoPathButton->Click += new System::EventHandler(this, &Form1::RedoPathButton_Click);636 this->RedoPathButton->UseVisualStyleBackColor = true;
663 // 637 this->RedoPathButton->Click += new System::EventHandler(this, &Form1::RedoPathButton_Click);
664 // Timer638 //
665 // 639 // Timer
666 this->Timer->Tick += new System::EventHandler(this, &Form1::Timer_Tick);640 //
667 // 641 this->Timer->Tick += new System::EventHandler(this, &Form1::Timer_Tick);
668 // panel2642 //
669 // 643 // panel2
670 this->panel2->Controls->Add(this->bayMaterialCalibration2);644 //
671 this->panel2->Controls->Add(this->bayAcceleration2);645 this->panel2->Controls->Add(this->bayMaterialCalibration2);
672 this->panel2->Controls->Add(this->bayVelocity2);646 this->panel2->Controls->Add(this->bayAcceleration2);
673 this->panel2->Controls->Add(this->bayMotorPosition2);647 this->panel2->Controls->Add(this->bayVelocity2);
674 this->panel2->Controls->Add(this->bayPositionIncrement2);648 this->panel2->Controls->Add(this->bayMotorPosition2);
675 this->panel2->Controls->Add(this->ResetPosButton);649 this->panel2->Controls->Add(this->bayPositionIncrement2);
676 this->panel2->Controls->Add(this->MoveButton);650 this->panel2->Controls->Add(this->ResetPosButton);
677 this->panel2->Controls->Add(this->bayScroll2);651 this->panel2->Controls->Add(this->MoveButton);
678 this->panel2->Controls->Add(this->bayCommandedPosition2);652 this->panel2->Controls->Add(this->bayScroll2);
679 this->panel2->Controls->Add(this->bayLabel2);653 this->panel2->Controls->Add(this->bayCommandedPosition2);
680 this->panel2->Controls->Add(this->label5);654 this->panel2->Controls->Add(this->bayLabel2);
681 this->panel2->Controls->Add(this->bayMaterialCalibration1);655 this->panel2->Controls->Add(this->label5);
682 this->panel2->Controls->Add(this->bayMaterialCalibration0);656 this->panel2->Controls->Add(this->bayMaterialCalibration1);
683 this->panel2->Controls->Add(this->XAccelerationField);657 this->panel2->Controls->Add(this->bayMaterialCalibration0);
684 this->panel2->Controls->Add(this->YAccelerationField);658 this->panel2->Controls->Add(this->XAccelerationField);
685 this->panel2->Controls->Add(this->ZAccelerationField);659 this->panel2->Controls->Add(this->YAccelerationField);
686 this->panel2->Controls->Add(this->bayAcceleration1);660 this->panel2->Controls->Add(this->ZAccelerationField);
687 this->panel2->Controls->Add(this->bayAcceleration0);661 this->panel2->Controls->Add(this->bayAcceleration1);
688 this->panel2->Controls->Add(this->label1);662 this->panel2->Controls->Add(this->bayAcceleration0);
689 this->panel2->Controls->Add(this->XVelocityField);663 this->panel2->Controls->Add(this->label1);
690 this->panel2->Controls->Add(this->YVelocityField);664 this->panel2->Controls->Add(this->XVelocityField);
691 this->panel2->Controls->Add(this->ZVelocityField);665 this->panel2->Controls->Add(this->YVelocityField);
692 this->panel2->Controls->Add(this->bayVelocity1);666 this->panel2->Controls->Add(this->ZVelocityField);
693 this->panel2->Controls->Add(this->label4);667 this->panel2->Controls->Add(this->bayVelocity1);
694 this->panel2->Controls->Add(this->bayVelocity0);668 this->panel2->Controls->Add(this->label4);
695 this->panel2->Controls->Add(this->bayMotorPosition1);669 this->panel2->Controls->Add(this->bayVelocity0);
696 this->panel2->Controls->Add(this->bayMotorPosition0);670 this->panel2->Controls->Add(this->bayMotorPosition1);
697 this->panel2->Controls->Add(this->bayPositionIncrement1);671 this->panel2->Controls->Add(this->bayMotorPosition0);
698 this->panel2->Controls->Add(this->bayPositionIncrement0);672 this->panel2->Controls->Add(this->bayPositionIncrement1);
699 this->panel2->Controls->Add(this->bayScroll1);673 this->panel2->Controls->Add(this->bayPositionIncrement0);
700 this->panel2->Controls->Add(this->zScroll);674 this->panel2->Controls->Add(this->bayScroll1);
701 this->panel2->Controls->Add(this->bayScroll0);675 this->panel2->Controls->Add(this->zScroll);
702 this->panel2->Controls->Add(this->yScroll);676 this->panel2->Controls->Add(this->bayScroll0);
703 this->panel2->Controls->Add(this->bayCommandedPosition1);677 this->panel2->Controls->Add(this->yScroll);
704 this->panel2->Controls->Add(this->xScroll);678 this->panel2->Controls->Add(this->bayCommandedPosition1);
705 this->panel2->Controls->Add(this->bayCommandedPosition0);679 this->panel2->Controls->Add(this->xScroll);
706 this->panel2->Controls->Add(this->bayLabel1);680 this->panel2->Controls->Add(this->bayCommandedPosition0);
707 this->panel2->Controls->Add(this->CommandedLabel);681 this->panel2->Controls->Add(this->bayLabel1);
708 this->panel2->Controls->Add(this->bayLabel0);682 this->panel2->Controls->Add(this->CommandedLabel);
709 this->panel2->Controls->Add(this->RealTimeLabel);683 this->panel2->Controls->Add(this->bayLabel0);
710 this->panel2->Controls->Add(this->ZIncrementField);684 this->panel2->Controls->Add(this->RealTimeLabel);
711 this->panel2->Controls->Add(this->YIncrementField);685 this->panel2->Controls->Add(this->ZIncrementField);
712 this->panel2->Controls->Add(this->XIncrementField);686 this->panel2->Controls->Add(this->YIncrementField);
713 this->panel2->Controls->Add(this->label2);687 this->panel2->Controls->Add(this->XIncrementField);
714 this->panel2->Controls->Add(this->IncrementLabel);688 this->panel2->Controls->Add(this->label2);
715 this->panel2->Controls->Add(this->ZCommandedField);689 this->panel2->Controls->Add(this->IncrementLabel);
716 this->panel2->Controls->Add(this->YCommandedField);690 this->panel2->Controls->Add(this->ZCommandedField);
717 this->panel2->Controls->Add(this->XCommandedField);691 this->panel2->Controls->Add(this->YCommandedField);
718 this->panel2->Controls->Add(this->XLabel);692 this->panel2->Controls->Add(this->XCommandedField);
719 this->panel2->Controls->Add(this->YLabel);693 this->panel2->Controls->Add(this->XLabel);
720 this->panel2->Controls->Add(this->ZLabel);694 this->panel2->Controls->Add(this->YLabel);
721 this->panel2->Controls->Add(this->XDisplay);695 this->panel2->Controls->Add(this->ZLabel);
722 this->panel2->Controls->Add(this->YDisplay);696 this->panel2->Controls->Add(this->XDisplay);
723 this->panel2->Controls->Add(this->ZDisplay);697 this->panel2->Controls->Add(this->YDisplay);
724 this->panel2->Location = System::Drawing::Point(9, 63);698 this->panel2->Controls->Add(this->ZDisplay);
725 this->panel2->Name = S"panel2";699 this->panel2->Location = System::Drawing::Point(9, 63);
726 this->panel2->Size = System::Drawing::Size(887, 248);700 this->panel2->Name = S"panel2";
727 this->panel2->TabIndex = 42;701 this->panel2->Size = System::Drawing::Size(887, 248);
728 // 702 this->panel2->TabIndex = 42;
729 // bayMaterialCalibration2703 //
730 // 704 // bayMaterialCalibration2
731 this->bayMaterialCalibration2->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;705 //
732 this->bayMaterialCalibration2->Enabled = false;706 this->bayMaterialCalibration2->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
733 this->bayMaterialCalibration2->FormattingEnabled = true;707 this->bayMaterialCalibration2->Enabled = false;
734 this->bayMaterialCalibration2->Location = System::Drawing::Point(700, 158);708 this->bayMaterialCalibration2->FormattingEnabled = true;
735 this->bayMaterialCalibration2->Name = S"bayMaterialCalibration2";709 this->bayMaterialCalibration2->Location = System::Drawing::Point(700, 158);
736 this->bayMaterialCalibration2->Size = System::Drawing::Size(182, 21);710 this->bayMaterialCalibration2->Name = S"bayMaterialCalibration2";
737 this->bayMaterialCalibration2->TabIndex = 68;711 this->bayMaterialCalibration2->Size = System::Drawing::Size(182, 21);
738 this->bayMaterialCalibration2->SelectedIndexChanged += new System::EventHandler(this, &Form1::bayMaterialCalibration2_SelectedIndexChanged);712 this->bayMaterialCalibration2->TabIndex = 68;
739 // 713 this->bayMaterialCalibration2->SelectedIndexChanged += new System::EventHandler(this, &Form1::bayMaterialCalibration2_SelectedIndexChanged);
740 // bayAcceleration2714 //
741 // 715 // bayAcceleration2
742 this->bayAcceleration2->Enabled = false;716 //
743 this->bayAcceleration2->Location = System::Drawing::Point(183, 158);717 this->bayAcceleration2->Enabled = false;
744 this->bayAcceleration2->Name = S"bayAcceleration2";718 this->bayAcceleration2->Location = System::Drawing::Point(183, 158);
745 this->bayAcceleration2->Size = System::Drawing::Size(108, 20);719 this->bayAcceleration2->Name = S"bayAcceleration2";
746 this->bayAcceleration2->TabIndex = 67;720 this->bayAcceleration2->Size = System::Drawing::Size(108, 20);
747 this->bayAcceleration2->Text = S"100.000000";721 this->bayAcceleration2->TabIndex = 67;
748 this->bayAcceleration2->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;722 this->bayAcceleration2->Text = S"100.000000";
749 // 723 this->bayAcceleration2->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
750 // bayVelocity2724 //
751 // 725 // bayVelocity2
752 this->bayVelocity2->Enabled = false;726 //
753 this->bayVelocity2->Location = System::Drawing::Point(77, 158);727 this->bayVelocity2->Enabled = false;
754 this->bayVelocity2->Name = S"bayVelocity2";728 this->bayVelocity2->Location = System::Drawing::Point(77, 158);
755 this->bayVelocity2->Size = System::Drawing::Size(100, 20);729 this->bayVelocity2->Name = S"bayVelocity2";
756 this->bayVelocity2->TabIndex = 61;730 this->bayVelocity2->Size = System::Drawing::Size(100, 20);
757 this->bayVelocity2->Text = S"1.000000";731 this->bayVelocity2->TabIndex = 61;
758 this->bayVelocity2->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;732 this->bayVelocity2->Text = S"1.000000";
759 // 733 this->bayVelocity2->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
760 // bayMotorPosition2734 //
761 // 735 // bayMotorPosition2
762 this->bayMotorPosition2->Enabled = false;736 //
763 this->bayMotorPosition2->Location = System::Drawing::Point(429, 158);737 this->bayMotorPosition2->Enabled = false;
764 this->bayMotorPosition2->Name = S"bayMotorPosition2";738 this->bayMotorPosition2->Location = System::Drawing::Point(429, 158);
765 this->bayMotorPosition2->ReadOnly = true;739 this->bayMotorPosition2->Name = S"bayMotorPosition2";
766 this->bayMotorPosition2->Size = System::Drawing::Size(100, 20);740 this->bayMotorPosition2->ReadOnly = true;
767 this->bayMotorPosition2->TabIndex = 65;741 this->bayMotorPosition2->Size = System::Drawing::Size(100, 20);
768 this->bayMotorPosition2->Text = S"0.000000";742 this->bayMotorPosition2->TabIndex = 65;
769 this->bayMotorPosition2->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;743 this->bayMotorPosition2->Text = S"0.000000";
770 // 744 this->bayMotorPosition2->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
771 // bayPositionIncrement2745 //
772 // 746 // bayPositionIncrement2
773 this->bayPositionIncrement2->Enabled = false;747 //
774 this->bayPositionIncrement2->Location = System::Drawing::Point(307, 158);748 this->bayPositionIncrement2->Enabled = false;
775 this->bayPositionIncrement2->Name = S"bayPositionIncrement2";749 this->bayPositionIncrement2->Location = System::Drawing::Point(307, 158);
776 this->bayPositionIncrement2->Size = System::Drawing::Size(116, 20);750 this->bayPositionIncrement2->Name = S"bayPositionIncrement2";
777 this->bayPositionIncrement2->TabIndex = 66;751 this->bayPositionIncrement2->Size = System::Drawing::Size(116, 20);
778 this->bayPositionIncrement2->Text = S"0.100000";752 this->bayPositionIncrement2->TabIndex = 66;
779 this->bayPositionIncrement2->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;753 this->bayPositionIncrement2->Text = S"0.100000";
780 // 754 this->bayPositionIncrement2->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
781 // bayScroll2755 //
782 // 756 // bayScroll2
783 this->bayScroll2->AccessibleRole = System::Windows::Forms::AccessibleRole::ScrollBar;757 //
784 this->bayScroll2->Enabled = false;758 this->bayScroll2->AccessibleRole = System::Windows::Forms::AccessibleRole::ScrollBar;
785 this->bayScroll2->LargeChange = 1;759 this->bayScroll2->Enabled = false;
786 this->bayScroll2->Location = System::Drawing::Point(663, 158);760 this->bayScroll2->LargeChange = 1;
787 this->bayScroll2->Maximum = 100000000;761 this->bayScroll2->Location = System::Drawing::Point(663, 158);
788 this->bayScroll2->Minimum = -100000000;762 this->bayScroll2->Maximum = 100000000;
789 this->bayScroll2->Name = S"bayScroll2";763 this->bayScroll2->Minimum = -100000000;
790 this->bayScroll2->Size = System::Drawing::Size(19, 20);764 this->bayScroll2->Name = S"bayScroll2";
791 this->bayScroll2->TabIndex = 64;765 this->bayScroll2->Size = System::Drawing::Size(19, 20);
792 this->bayScroll2->Scroll += new System::Windows::Forms::ScrollEventHandler(this, &Form1::bayScroll2_Scroll);766 this->bayScroll2->TabIndex = 64;
793 // 767 this->bayScroll2->Scroll += new System::Windows::Forms::ScrollEventHandler(this, &Form1::bayScroll2_Scroll);
794 // bayCommandedPosition2768 //
795 // 769 // bayCommandedPosition2
796 this->bayCommandedPosition2->Enabled = false;770 //
797 this->bayCommandedPosition2->Location = System::Drawing::Point(535, 158);771 this->bayCommandedPosition2->Enabled = false;
798 this->bayCommandedPosition2->Name = S"bayCommandedPosition2";772 this->bayCommandedPosition2->Location = System::Drawing::Point(535, 158);
799 this->bayCommandedPosition2->Size = System::Drawing::Size(128, 20);773 this->bayCommandedPosition2->Name = S"bayCommandedPosition2";
800 this->bayCommandedPosition2->TabIndex = 62;774 this->bayCommandedPosition2->Size = System::Drawing::Size(128, 20);
801 this->bayCommandedPosition2->Text = S"0.000000";775 this->bayCommandedPosition2->TabIndex = 62;
802 this->bayCommandedPosition2->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;776 this->bayCommandedPosition2->Text = S"0.000000";
803 // 777 this->bayCommandedPosition2->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
804 // bayLabel2778 //
805 // 779 // bayLabel2
806 this->bayLabel2->Anchor = System::Windows::Forms::AnchorStyles::Right;780 //
807 this->bayLabel2->Location = System::Drawing::Point(8, 159);781 this->bayLabel2->Anchor = System::Windows::Forms::AnchorStyles::Right;
808 this->bayLabel2->Name = S"bayLabel2";782 this->bayLabel2->Location = System::Drawing::Point(8, 159);
809 this->bayLabel2->Size = System::Drawing::Size(63, 16);783 this->bayLabel2->Name = S"bayLabel2";
810 this->bayLabel2->TabIndex = 63;784 this->bayLabel2->Size = System::Drawing::Size(63, 16);
811 this->bayLabel2->Text = S"Not Loaded";785 this->bayLabel2->TabIndex = 63;
812 this->bayLabel2->TextAlign = System::Drawing::ContentAlignment::MiddleRight;786 this->bayLabel2->Text = S"Not Loaded";
813 // 787 this->bayLabel2->TextAlign = System::Drawing::ContentAlignment::MiddleRight;
814 // label5788 //
815 // 789 // label5
816 this->label5->AutoSize = true;790 //
817 this->label5->Location = System::Drawing::Point(697, 12);791 this->label5->AutoSize = true;
818 this->label5->Name = S"label5";792 this->label5->Location = System::Drawing::Point(697, 12);
819 this->label5->Size = System::Drawing::Size(96, 13);793 this->label5->Name = S"label5";
820 this->label5->TabIndex = 60;794 this->label5->Size = System::Drawing::Size(96, 13);
821 this->label5->Text = S"Material Calibration";795 this->label5->TabIndex = 60;
822 // 796 this->label5->Text = S"Material Calibration";
823 // bayMaterialCalibration1797 //
824 // 798 // bayMaterialCalibration1
825 this->bayMaterialCalibration1->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;799 //
826 this->bayMaterialCalibration1->Enabled = false;800 this->bayMaterialCalibration1->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
827 this->bayMaterialCalibration1->FormattingEnabled = true;801 this->bayMaterialCalibration1->Enabled = false;
828 this->bayMaterialCalibration1->Location = System::Drawing::Point(700, 132);802 this->bayMaterialCalibration1->FormattingEnabled = true;
829 this->bayMaterialCalibration1->Name = S"bayMaterialCalibration1";803 this->bayMaterialCalibration1->Location = System::Drawing::Point(700, 132);
830 this->bayMaterialCalibration1->Size = System::Drawing::Size(182, 21);804 this->bayMaterialCalibration1->Name = S"bayMaterialCalibration1";
831 this->bayMaterialCalibration1->TabIndex = 59;805 this->bayMaterialCalibration1->Size = System::Drawing::Size(182, 21);
832 this->bayMaterialCalibration1->SelectedIndexChanged += new System::EventHandler(this, &Form1::bayMaterialCalibration1_SelectedIndexChanged);806 this->bayMaterialCalibration1->TabIndex = 59;
833 // 807 this->bayMaterialCalibration1->SelectedIndexChanged += new System::EventHandler(this, &Form1::bayMaterialCalibration1_SelectedIndexChanged);
834 // bayMaterialCalibration0808 //
835 // 809 // bayMaterialCalibration0
836 this->bayMaterialCalibration0->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;810 //
837 this->bayMaterialCalibration0->Enabled = false;811 this->bayMaterialCalibration0->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
838 this->bayMaterialCalibration0->FormattingEnabled = true;812 this->bayMaterialCalibration0->Enabled = false;
839 this->bayMaterialCalibration0->Location = System::Drawing::Point(700, 105);813 this->bayMaterialCalibration0->FormattingEnabled = true;
840 this->bayMaterialCalibration0->Name = S"bayMaterialCalibration0";814 this->bayMaterialCalibration0->Location = System::Drawing::Point(700, 105);
841 this->bayMaterialCalibration0->Size = System::Drawing::Size(182, 21);815 this->bayMaterialCalibration0->Name = S"bayMaterialCalibration0";
842 this->bayMaterialCalibration0->TabIndex = 58;816 this->bayMaterialCalibration0->Size = System::Drawing::Size(182, 21);
843 this->bayMaterialCalibration0->SelectedIndexChanged += new System::EventHandler(this, &Form1::bayMaterialCalibration0_SelectedIndexChanged);817 this->bayMaterialCalibration0->TabIndex = 58;
844 // 818 this->bayMaterialCalibration0->SelectedIndexChanged += new System::EventHandler(this, &Form1::bayMaterialCalibration0_SelectedIndexChanged);
845 // XAccelerationField819 //
846 // 820 // XAccelerationField
847 this->XAccelerationField->Enabled = false;821 //
848 this->XAccelerationField->Location = System::Drawing::Point(183, 30);822 this->XAccelerationField->Enabled = false;
849 this->XAccelerationField->Name = S"XAccelerationField";823 this->XAccelerationField->Location = System::Drawing::Point(183, 30);
850 this->XAccelerationField->Size = System::Drawing::Size(108, 20);824 this->XAccelerationField->Name = S"XAccelerationField";
851 this->XAccelerationField->TabIndex = 57;825 this->XAccelerationField->Size = System::Drawing::Size(108, 20);
852 this->XAccelerationField->Text = S"100.000000";826 this->XAccelerationField->TabIndex = 57;
853 this->XAccelerationField->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;827 this->XAccelerationField->Text = S"100.000000";
854 // 828 this->XAccelerationField->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
855 // YAccelerationField829 //
856 // 830 // YAccelerationField
857 this->YAccelerationField->Enabled = false;831 //
858 this->YAccelerationField->Location = System::Drawing::Point(183, 56);832 this->YAccelerationField->Enabled = false;
859 this->YAccelerationField->Name = S"YAccelerationField";833 this->YAccelerationField->Location = System::Drawing::Point(183, 56);
860 this->YAccelerationField->Size = System::Drawing::Size(108, 20);834 this->YAccelerationField->Name = S"YAccelerationField";
861 this->YAccelerationField->TabIndex = 56;835 this->YAccelerationField->Size = System::Drawing::Size(108, 20);
862 this->YAccelerationField->Text = S"100.000000";836 this->YAccelerationField->TabIndex = 56;
863 this->YAccelerationField->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;837 this->YAccelerationField->Text = S"100.000000";
864 // 838 this->YAccelerationField->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
865 // ZAccelerationField839 //
866 // 840 // ZAccelerationField
867 this->ZAccelerationField->Enabled = false;841 //
868 this->ZAccelerationField->Location = System::Drawing::Point(183, 81);842 this->ZAccelerationField->Enabled = false;
869 this->ZAccelerationField->Name = S"ZAccelerationField";843 this->ZAccelerationField->Location = System::Drawing::Point(183, 81);
870 this->ZAccelerationField->Size = System::Drawing::Size(108, 20);844 this->ZAccelerationField->Name = S"ZAccelerationField";
871 this->ZAccelerationField->TabIndex = 55;845 this->ZAccelerationField->Size = System::Drawing::Size(108, 20);
872 this->ZAccelerationField->Text = S"100.000000";846 this->ZAccelerationField->TabIndex = 55;
873 this->ZAccelerationField->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;847 this->ZAccelerationField->Text = S"100.000000";
874 // 848 this->ZAccelerationField->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
875 // bayAcceleration1849 //
876 // 850 // bayAcceleration1
877 this->bayAcceleration1->Enabled = false;851 //
878 this->bayAcceleration1->Location = System::Drawing::Point(183, 132);852 this->bayAcceleration1->Enabled = false;
879 this->bayAcceleration1->Name = S"bayAcceleration1";853 this->bayAcceleration1->Location = System::Drawing::Point(183, 132);
880 this->bayAcceleration1->Size = System::Drawing::Size(108, 20);854 this->bayAcceleration1->Name = S"bayAcceleration1";
881 this->bayAcceleration1->TabIndex = 54;855 this->bayAcceleration1->Size = System::Drawing::Size(108, 20);
882 this->bayAcceleration1->Text = S"100.000000";856 this->bayAcceleration1->TabIndex = 54;
883 this->bayAcceleration1->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;857 this->bayAcceleration1->Text = S"100.000000";
884 // 858 this->bayAcceleration1->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
885 // bayAcceleration0859 //
886 // 860 // bayAcceleration0
887 this->bayAcceleration0->Enabled = false;861 //
888 this->bayAcceleration0->Location = System::Drawing::Point(183, 106);862 this->bayAcceleration0->Enabled = false;
889 this->bayAcceleration0->Name = S"bayAcceleration0";863 this->bayAcceleration0->Location = System::Drawing::Point(183, 106);
890 this->bayAcceleration0->Size = System::Drawing::Size(108, 20);864 this->bayAcceleration0->Name = S"bayAcceleration0";
891 this->bayAcceleration0->TabIndex = 53;865 this->bayAcceleration0->Size = System::Drawing::Size(108, 20);
892 this->bayAcceleration0->Text = S"100.000000";866 this->bayAcceleration0->TabIndex = 53;
893 this->bayAcceleration0->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;867 this->bayAcceleration0->Text = S"100.000000";
894 // 868 this->bayAcceleration0->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
895 // label1869 //
896 // 870 // label1
897 this->label1->AutoSize = true;871 //
898 this->label1->Location = System::Drawing::Point(180, 12);872 this->label1->AutoSize = true;
899 this->label1->Name = S"label1";873 this->label1->Location = System::Drawing::Point(180, 12);
900 this->label1->Size = System::Drawing::Size(111, 13);874 this->label1->Name = S"label1";
901 this->label1->TabIndex = 52;875 this->label1->Size = System::Drawing::Size(111, 13);
902 this->label1->Text = S"Acceleration (mm/s/s)";876 this->label1->TabIndex = 52;
903 // 877 this->label1->Text = S"Acceleration (mm/s/s)";
904 // XVelocityField878 //
905 // 879 // XVelocityField
906 this->XVelocityField->Enabled = false;880 //
907 this->XVelocityField->Location = System::Drawing::Point(77, 30);881 this->XVelocityField->Enabled = false;
908 this->XVelocityField->Name = S"XVelocityField";882 this->XVelocityField->Location = System::Drawing::Point(77, 30);
909 this->XVelocityField->Size = System::Drawing::Size(100, 20);883 this->XVelocityField->Name = S"XVelocityField";
910 this->XVelocityField->TabIndex = 51;884 this->XVelocityField->Size = System::Drawing::Size(100, 20);
911 this->XVelocityField->Text = S"100.000000";885 this->XVelocityField->TabIndex = 51;
912 this->XVelocityField->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;886 this->XVelocityField->Text = S"100.000000";
913 // 887 this->XVelocityField->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
914 // YVelocityField888 //
915 // 889 // YVelocityField
916 this->YVelocityField->Enabled = false;890 //
917 this->YVelocityField->Location = System::Drawing::Point(77, 56);891 this->YVelocityField->Enabled = false;
918 this->YVelocityField->Name = S"YVelocityField";892 this->YVelocityField->Location = System::Drawing::Point(77, 56);
919 this->YVelocityField->Size = System::Drawing::Size(100, 20);893 this->YVelocityField->Name = S"YVelocityField";
920 this->YVelocityField->TabIndex = 50;894 this->YVelocityField->Size = System::Drawing::Size(100, 20);
921 this->YVelocityField->Text = S"100.000000";895 this->YVelocityField->TabIndex = 50;
922 this->YVelocityField->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;896 this->YVelocityField->Text = S"100.000000";
923 // 897 this->YVelocityField->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
924 // ZVelocityField898 //
925 // 899 // ZVelocityField
926 this->ZVelocityField->Enabled = false;900 //
927 this->ZVelocityField->Location = System::Drawing::Point(77, 81);901 this->ZVelocityField->Enabled = false;
928 this->ZVelocityField->Name = S"ZVelocityField";902 this->ZVelocityField->Location = System::Drawing::Point(77, 81);
929 this->ZVelocityField->Size = System::Drawing::Size(100, 20);903 this->ZVelocityField->Name = S"ZVelocityField";
930 this->ZVelocityField->TabIndex = 49;904 this->ZVelocityField->Size = System::Drawing::Size(100, 20);
931 this->ZVelocityField->Text = S"100.000000";905 this->ZVelocityField->TabIndex = 49;
932 this->ZVelocityField->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;906 this->ZVelocityField->Text = S"100.000000";
933 // 907 this->ZVelocityField->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
934 // bayMotorPosition1908 //
935 // 909 // bayMotorPosition1
936 this->bayMotorPosition1->Enabled = false;910 //
937 this->bayMotorPosition1->Location = System::Drawing::Point(429, 132);911 this->bayMotorPosition1->Enabled = false;
938 this->bayMotorPosition1->Name = S"bayMotorPosition1";912 this->bayMotorPosition1->Location = System::Drawing::Point(429, 132);
939 this->bayMotorPosition1->ReadOnly = true;913 this->bayMotorPosition1->Name = S"bayMotorPosition1";
940 this->bayMotorPosition1->Size = System::Drawing::Size(100, 20);914 this->bayMotorPosition1->ReadOnly = true;
941 this->bayMotorPosition1->TabIndex = 47;915 this->bayMotorPosition1->Size = System::Drawing::Size(100, 20);
942 this->bayMotorPosition1->Text = S"0.000000";916 this->bayMotorPosition1->TabIndex = 47;
943 this->bayMotorPosition1->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;917 this->bayMotorPosition1->Text = S"0.000000";
944 // 918 this->bayMotorPosition1->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
945 // bayMotorPosition0919 //
946 // 920 // bayMotorPosition0
947 this->bayMotorPosition0->Enabled = false;921 //
948 this->bayMotorPosition0->Location = System::Drawing::Point(429, 106);922 this->bayMotorPosition0->Enabled = false;
949 this->bayMotorPosition0->Name = S"bayMotorPosition0";923 this->bayMotorPosition0->Location = System::Drawing::Point(429, 106);
950 this->bayMotorPosition0->ReadOnly = true;924 this->bayMotorPosition0->Name = S"bayMotorPosition0";
951 this->bayMotorPosition0->Size = System::Drawing::Size(100, 20);925 this->bayMotorPosition0->ReadOnly = true;
952 this->bayMotorPosition0->TabIndex = 46;926 this->bayMotorPosition0->Size = System::Drawing::Size(100, 20);
953 this->bayMotorPosition0->Text = S"0.000000";927 this->bayMotorPosition0->TabIndex = 46;
954 this->bayMotorPosition0->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;928 this->bayMotorPosition0->Text = S"0.000000";
955 // 929 this->bayMotorPosition0->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
956 // bayPositionIncrement1930 //
957 // 931 // bayPositionIncrement1
958 this->bayPositionIncrement1->Enabled = false;932 //
959 this->bayPositionIncrement1->Location = System::Drawing::Point(307, 132);933 this->bayPositionIncrement1->Enabled = false;
960 this->bayPositionIncrement1->Name = S"bayPositionIncrement1";934 this->bayPositionIncrement1->Location = System::Drawing::Point(307, 132);
961 this->bayPositionIncrement1->Size = System::Drawing::Size(116, 20);935 this->bayPositionIncrement1->Name = S"bayPositionIncrement1";
962 this->bayPositionIncrement1->TabIndex = 48;936 this->bayPositionIncrement1->Size = System::Drawing::Size(116, 20);
963 this->bayPositionIncrement1->Text = S"0.100000";937 this->bayPositionIncrement1->TabIndex = 48;
964 this->bayPositionIncrement1->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;938 this->bayPositionIncrement1->Text = S"0.100000";
965 // 939 this->bayPositionIncrement1->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
966 // bayPositionIncrement0940 //
967 // 941 // bayPositionIncrement0
968 this->bayPositionIncrement0->Enabled = false;942 //
969 this->bayPositionIncrement0->Location = System::Drawing::Point(307, 106);943 this->bayPositionIncrement0->Enabled = false;
970 this->bayPositionIncrement0->Name = S"bayPositionIncrement0";944 this->bayPositionIncrement0->Location = System::Drawing::Point(307, 106);
971 this->bayPositionIncrement0->Size = System::Drawing::Size(116, 20);945 this->bayPositionIncrement0->Name = S"bayPositionIncrement0";
972 this->bayPositionIncrement0->TabIndex = 47;946 this->bayPositionIncrement0->Size = System::Drawing::Size(116, 20);
973 this->bayPositionIncrement0->Text = S"0.100000";947 this->bayPositionIncrement0->TabIndex = 47;
974 this->bayPositionIncrement0->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;948 this->bayPositionIncrement0->Text = S"0.100000";
975 // 949 this->bayPositionIncrement0->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
976 // zScroll950 //
977 // 951 // zScroll
978 this->zScroll->AccessibleRole = System::Windows::Forms::AccessibleRole::ScrollBar;952 //
979 this->zScroll->Enabled = false;953 this->zScroll->AccessibleRole = System::Windows::Forms::AccessibleRole::ScrollBar;
980 this->zScroll->LargeChange = 1;954 this->zScroll->Enabled = false;
981 this->zScroll->Location = System::Drawing::Point(663, 81);955 this->zScroll->LargeChange = 1;
982 this->zScroll->Maximum = 100000000;956 this->zScroll->Location = System::Drawing::Point(663, 81);
983 this->zScroll->Minimum = -100000000;957 this->zScroll->Maximum = 100000000;
984 this->zScroll->Name = S"zScroll";958 this->zScroll->Minimum = -100000000;
985 this->zScroll->Size = System::Drawing::Size(19, 20);959 this->zScroll->Name = S"zScroll";
986 this->zScroll->TabIndex = 46;960 this->zScroll->Size = System::Drawing::Size(19, 20);
987 this->zScroll->Scroll += new System::Windows::Forms::ScrollEventHandler(this, &Form1::ZScroll_Scroll);961 this->zScroll->TabIndex = 46;
988 // 962 this->zScroll->Scroll += new System::Windows::Forms::ScrollEventHandler(this, &Form1::ZScroll_Scroll);
989 // yScroll963 //
990 // 964 // yScroll
991 this->yScroll->AccessibleRole = System::Windows::Forms::AccessibleRole::ScrollBar;965 //
992 this->yScroll->Enabled = false;966 this->yScroll->AccessibleRole = System::Windows::Forms::AccessibleRole::ScrollBar;
993 this->yScroll->LargeChange = 1;967 this->yScroll->Enabled = false;
994 this->yScroll->Location = System::Drawing::Point(663, 56);968 this->yScroll->LargeChange = 1;
995 this->yScroll->Maximum = 100000000;969 this->yScroll->Location = System::Drawing::Point(663, 56);
996 this->yScroll->Minimum = -100000000;970 this->yScroll->Maximum = 100000000;
997 this->yScroll->Name = S"yScroll";971 this->yScroll->Minimum = -100000000;
998 this->yScroll->Size = System::Drawing::Size(19, 20);972 this->yScroll->Name = S"yScroll";
999 this->yScroll->TabIndex = 45;973 this->yScroll->Size = System::Drawing::Size(19, 20);
1000 this->yScroll->Scroll += new System::Windows::Forms::ScrollEventHandler(this, &Form1::YScroll_Scroll);974 this->yScroll->TabIndex = 45;
1001 // 975 this->yScroll->Scroll += new System::Windows::Forms::ScrollEventHandler(this, &Form1::YScroll_Scroll);
1002 // xScroll976 //
1003 // 977 // xScroll
1004 this->xScroll->AccessibleRole = System::Windows::Forms::AccessibleRole::ScrollBar;978 //
1005 this->xScroll->Enabled = false;979 this->xScroll->AccessibleRole = System::Windows::Forms::AccessibleRole::ScrollBar;
1006 this->xScroll->LargeChange = 1;980 this->xScroll->Enabled = false;
1007 this->xScroll->Location = System::Drawing::Point(663, 30);981 this->xScroll->LargeChange = 1;
1008 this->xScroll->Maximum = 100000000;982 this->xScroll->Location = System::Drawing::Point(663, 30);
1009 this->xScroll->Minimum = -100000000;983 this->xScroll->Maximum = 100000000;
1010 this->xScroll->Name = S"xScroll";984 this->xScroll->Minimum = -100000000;
1011 this->xScroll->Size = System::Drawing::Size(19, 20);985 this->xScroll->Name = S"xScroll";
1012 this->xScroll->TabIndex = 44;986 this->xScroll->Size = System::Drawing::Size(19, 20);
1013 this->xScroll->Scroll += new System::Windows::Forms::ScrollEventHandler(this, &Form1::XScroll_Scroll);987 this->xScroll->TabIndex = 44;
1014 // 988 this->xScroll->Scroll += new System::Windows::Forms::ScrollEventHandler(this, &Form1::XScroll_Scroll);
1015 // CommandedLabel989 //
1016 // 990 // CommandedLabel
1017 this->CommandedLabel->AutoSize = true;991 //
1018 this->CommandedLabel->Location = System::Drawing::Point(532, 12);992 this->CommandedLabel->AutoSize = true;
1019 this->CommandedLabel->Name = S"CommandedLabel";993 this->CommandedLabel->Location = System::Drawing::Point(532, 12);
1020 this->CommandedLabel->Size = System::Drawing::Size(131, 13);994 this->CommandedLabel->Name = S"CommandedLabel";
1021 this->CommandedLabel->TabIndex = 36;995 this->CommandedLabel->Size = System::Drawing::Size(131, 13);
1022 this->CommandedLabel->Text = S"Commanded Position (mm)";996 this->CommandedLabel->TabIndex = 36;
1023 // 997 this->CommandedLabel->Text = S"Commanded Position (mm)";
1024 // RealTimeLabel998 //
1025 // 999 // RealTimeLabel
1026 this->RealTimeLabel->AutoSize = true;1000 //
1027 this->RealTimeLabel->Location = System::Drawing::Point(426, 12);1001 this->RealTimeLabel->AutoSize = true;
1028 this->RealTimeLabel->Name = S"RealTimeLabel";1002 this->RealTimeLabel->Location = System::Drawing::Point(426, 12);
1029 this->RealTimeLabel->Size = System::Drawing::Size(99, 13);1003 this->RealTimeLabel->Name = S"RealTimeLabel";
1030 this->RealTimeLabel->TabIndex = 35;1004 this->RealTimeLabel->Size = System::Drawing::Size(99, 13);
1031 this->RealTimeLabel->Text = S"Motor Position (mm)";1005 this->RealTimeLabel->TabIndex = 35;
1032 // 1006 this->RealTimeLabel->Text = S"Motor Position (mm)";
1033 // ZIncrementField1007 //
1034 // 1008 // ZIncrementField
1035 this->ZIncrementField->Enabled = false;1009 //
1036 this->ZIncrementField->Location = System::Drawing::Point(307, 83);1010 this->ZIncrementField->Enabled = false;
1037 this->ZIncrementField->Name = S"ZIncrementField";1011 this->ZIncrementField->Location = System::Drawing::Point(307, 83);
1038 this->ZIncrementField->Size = System::Drawing::Size(116, 20);1012 this->ZIncrementField->Name = S"ZIncrementField";
1039 this->ZIncrementField->TabIndex = 34;1013 this->ZIncrementField->Size = System::Drawing::Size(116, 20);
1040 this->ZIncrementField->Text = S"0.500000";1014 this->ZIncrementField->TabIndex = 34;
1041 this->ZIncrementField->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;1015 this->ZIncrementField->Text = S"0.500000";
1042 // 1016 this->ZIncrementField->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
1043 // YIncrementField1017 //
1044 // 1018 // YIncrementField
1045 this->YIncrementField->Enabled = false;1019 //
1046 this->YIncrementField->Location = System::Drawing::Point(307, 56);1020 this->YIncrementField->Enabled = false;
1047 this->YIncrementField->Name = S"YIncrementField";1021 this->YIncrementField->Location = System::Drawing::Point(307, 56);
1048 this->YIncrementField->Size = System::Drawing::Size(116, 20);1022 this->YIncrementField->Name = S"YIncrementField";
1049 this->YIncrementField->TabIndex = 33;1023 this->YIncrementField->Size = System::Drawing::Size(116, 20);
1050 this->YIncrementField->Text = S"1.500000";1024 this->YIncrementField->TabIndex = 33;
1051 this->YIncrementField->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;1025 this->YIncrementField->Text = S"1.500000";
1052 // 1026 this->YIncrementField->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
1053 // XIncrementField1027 //
1054 // 1028 // XIncrementField
1055 this->XIncrementField->Enabled = false;1029 //
1056 this->XIncrementField->Location = System::Drawing::Point(308, 30);1030 this->XIncrementField->Enabled = false;
1057 this->XIncrementField->Name = S"XIncrementField";1031 this->XIncrementField->Location = System::Drawing::Point(308, 30);
1058 this->XIncrementField->Size = System::Drawing::Size(115, 20);1032 this->XIncrementField->Name = S"XIncrementField";
1059 this->XIncrementField->TabIndex = 32;1033 this->XIncrementField->Size = System::Drawing::Size(115, 20);
1060 this->XIncrementField->Text = S"1.500000";1034 this->XIncrementField->TabIndex = 32;
1061 this->XIncrementField->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;1035 this->XIncrementField->Text = S"1.500000";
1062 // 1036 this->XIncrementField->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
1063 // label21037 //
1064 // 1038 // label2
1065 this->label2->AutoSize = true;1039 //
1066 this->label2->Enabled = false;1040 this->label2->AutoSize = true;
1067 this->label2->Location = System::Drawing::Point(456, 18);1041 this->label2->Enabled = false;
1068 this->label2->Name = S"label2";1042 this->label2->Location = System::Drawing::Point(456, 18);
1069 this->label2->Size = System::Drawing::Size(0, 13);1043 this->label2->Name = S"label2";
1070 this->label2->TabIndex = 31;1044 this->label2->Size = System::Drawing::Size(0, 13);
1071 // 1045 this->label2->TabIndex = 31;
1072 // IncrementLabel1046 //
1073 // 1047 // IncrementLabel
1074 this->IncrementLabel->AutoSize = true;1048 //
1075 this->IncrementLabel->Location = System::Drawing::Point(304, 12);1049 this->IncrementLabel->AutoSize = true;
1076 this->IncrementLabel->Name = S"IncrementLabel";1050 this->IncrementLabel->Location = System::Drawing::Point(304, 12);
1077 this->IncrementLabel->Size = System::Drawing::Size(119, 13);1051 this->IncrementLabel->Name = S"IncrementLabel";
1078 this->IncrementLabel->TabIndex = 30;1052 this->IncrementLabel->Size = System::Drawing::Size(119, 13);
1079 this->IncrementLabel->Text = S"Position Increment (mm)";1053 this->IncrementLabel->TabIndex = 30;
1080 // 1054 this->IncrementLabel->Text = S"Position Increment (mm)";
1081 // ZCommandedField1055 //
1082 // 1056 // ZCommandedField
1083 this->ZCommandedField->Enabled = false;1057 //
1084 this->ZCommandedField->Location = System::Drawing::Point(535, 81);1058 this->ZCommandedField->Enabled = false;
1085 this->ZCommandedField->Name = S"ZCommandedField";1059 this->ZCommandedField->Location = System::Drawing::Point(535, 81);
1086 this->ZCommandedField->Size = System::Drawing::Size(128, 20);1060 this->ZCommandedField->Name = S"ZCommandedField";
1087 this->ZCommandedField->TabIndex = 29;1061 this->ZCommandedField->Size = System::Drawing::Size(128, 20);
1088 this->ZCommandedField->Text = S"0.000000";1062 this->ZCommandedField->TabIndex = 29;
1089 this->ZCommandedField->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;1063 this->ZCommandedField->Text = S"0.000000";
1090 // 1064 this->ZCommandedField->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
1091 // YCommandedField1065 //
1092 // 1066 // YCommandedField
1093 this->YCommandedField->Enabled = false;1067 //
1094 this->YCommandedField->Location = System::Drawing::Point(535, 56);1068 this->YCommandedField->Enabled = false;
1095 this->YCommandedField->Name = S"YCommandedField";1069 this->YCommandedField->Location = System::Drawing::Point(535, 56);
1096 this->YCommandedField->Size = System::Drawing::Size(128, 20);1070 this->YCommandedField->Name = S"YCommandedField";
1097 this->YCommandedField->TabIndex = 28;1071 this->YCommandedField->Size = System::Drawing::Size(128, 20);
1098 this->YCommandedField->Text = S"0.000000";1072 this->YCommandedField->TabIndex = 28;
1099 this->YCommandedField->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;1073 this->YCommandedField->Text = S"0.000000";
1100 // 1074 this->YCommandedField->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
1101 // XCommandedField1075 //
1102 // 1076 // XCommandedField
1103 this->XCommandedField->Enabled = false;1077 //
1104 this->XCommandedField->Location = System::Drawing::Point(535, 30);1078 this->XCommandedField->Enabled = false;
1105 this->XCommandedField->Name = S"XCommandedField";1079 this->XCommandedField->Location = System::Drawing::Point(535, 30);
1106 this->XCommandedField->Size = System::Drawing::Size(128, 20);1080 this->XCommandedField->Name = S"XCommandedField";
1107 this->XCommandedField->TabIndex = 27;1081 this->XCommandedField->Size = System::Drawing::Size(128, 20);
1108 this->XCommandedField->Text = S"0.000000";1082 this->XCommandedField->TabIndex = 27;
1109 this->XCommandedField->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;1083 this->XCommandedField->Text = S"0.000000";
1110 // 1084 this->XCommandedField->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
1111 // PosDisplayThread1085 //
1112 // 1086 // PosDisplayThread
1113 this->PosDisplayThread->WorkerReportsProgress = true;1087 //
1114 this->PosDisplayThread->DoWork += new System::ComponentModel::DoWorkEventHandler(this, &Form1::PosDisplayThread_DoWork);1088 this->PosDisplayThread->WorkerReportsProgress = true;
1115 this->PosDisplayThread->ProgressChanged += new System::ComponentModel::ProgressChangedEventHandler(this, &Form1::PosDisplayThread_ProgressChanged);1089 this->PosDisplayThread->DoWork += new System::ComponentModel::DoWorkEventHandler(this, &Form1::PosDisplayThread_DoWork);
1116 // 1090 this->PosDisplayThread->ProgressChanged += new System::ComponentModel::ProgressChangedEventHandler(this, &Form1::PosDisplayThread_ProgressChanged);
1117 // panel31091 //
1118 // 1092 // panel3
1119 this->panel3->Controls->Add(this->InitButton);1093 //
1120 this->panel3->Location = System::Drawing::Point(9, 7);1094 this->panel3->Controls->Add(this->LoadPreviousConfig);
1121 this->panel3->Name = S"panel3";1095 this->panel3->Controls->Add(this->InitButton);
1122 this->panel3->Size = System::Drawing::Size(887, 50);1096 this->panel3->Location = System::Drawing::Point(9, 7);
1123 this->panel3->TabIndex = 43;1097 this->panel3->Name = S"panel3";
1124 // 1098 this->panel3->Size = System::Drawing::Size(887, 50);
1125 // panel41099 this->panel3->TabIndex = 43;
1126 // 1100 //
1127 this->panel4->Controls->Add(this->ExecutePathLabel);1101 // LoadPreviousConfig
1128 this->panel4->Controls->Add(this->LoadFileButton);1102 //
1129 this->panel4->Controls->Add(this->ExecuteButton);1103 this->LoadPreviousConfig->Font = (new System::Drawing::Font(S"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
1130 this->panel4->Location = System::Drawing::Point(9, 317);1104 (System::Byte)0));
1131 this->panel4->Name = S"panel4";1105 this->LoadPreviousConfig->Location = System::Drawing::Point(0, 3);
1132 this->panel4->Size = System::Drawing::Size(717, 41);1106 this->LoadPreviousConfig->Name = S"LoadPreviousConfig";
1133 this->panel4->TabIndex = 44;1107 this->LoadPreviousConfig->Size = System::Drawing::Size(223, 47);
1134 // 1108 this->LoadPreviousConfig->TabIndex = 1;
1135 // fs1109 this->LoadPreviousConfig->Text = S"Load Previous Config";
1136 // 1110 this->LoadPreviousConfig->UseVisualStyleBackColor = true;
1137 this->fs->Controls->Add(this->ExitButton);1111 this->LoadPreviousConfig->Click += new System::EventHandler(this, &Form1::loadPreviousConfig);
1138 this->fs->Controls->Add(this->RedoPathButton);1112 //
1139 this->fs->Location = System::Drawing::Point(732, 317);1113 // panel4
1140 this->fs->Name = S"fs";1114 //
1141 this->fs->Size = System::Drawing::Size(164, 139);1115 this->panel4->Controls->Add(this->ExecutePathLabel);
1142 this->fs->TabIndex = 45;1116 this->panel4->Controls->Add(this->LoadFileButton);
1143 // 1117 this->panel4->Controls->Add(this->ExecuteButton);
1144 // openFileDialog11118 this->panel4->Location = System::Drawing::Point(9, 317);
1145 // 1119 this->panel4->Name = S"panel4";
1146 this->openFileDialog1->FileName = S"openFileDialog1";1120 this->panel4->Size = System::Drawing::Size(717, 41);
1147 this->openFileDialog1->InitialDirectory = S"C:\\Documents and Settings\\FabAdmin\\Desktop\\SVN- FAB@Home.org\\software\\projects\\printers\\fabathome-model2\\Fab@Home Interpreter\\Printers";1121 this->panel4->TabIndex = 44;
1148 // 1122 //
1149 // Form11123 // fs
1150 // 1124 //
1151 this->AutoScaleBaseSize = System::Drawing::Size(5, 13);1125 this->fs->Controls->Add(this->ExitButton);
1152 this->ClientSize = System::Drawing::Size(904, 465);1126 this->fs->Controls->Add(this->RedoPathButton);
1153 this->Controls->Add(this->fs);1127 this->fs->Location = System::Drawing::Point(732, 317);
1154 this->Controls->Add(this->panel4);1128 this->fs->Name = S"fs";
1155 this->Controls->Add(this->panel3);1129 this->fs->Size = System::Drawing::Size(164, 139);
1156 this->Controls->Add(this->panel2);1130 this->fs->TabIndex = 45;
1157 this->Controls->Add(this->panel1);1131 //
1158 this->Name = S"Form1";1132 // openFileDialog1
1159 this->StartPosition = System::Windows::Forms::FormStartPosition::CenterScreen;1133 //
1160 this->Text = S"Fab@Home Interpreter";1134 this->openFileDialog1->FileName = S"openFileDialog1";
1161 this->Closing += new System::ComponentModel::CancelEventHandler(this, &Form1::Form1_Closing);1135 this->openFileDialog1->InitialDirectory = S"C:\\Documents and Settings\\FabAdmin\\Desktop\\SVN- FAB@Home.org\\software\\projects\\pr"
1162 this->panel1->ResumeLayout(false);1136 S"inters\\fabathome-model2\\Fab@Home Interpreter\\Printers";
1163 this->panel2->ResumeLayout(false);1137 //
1164 this->panel2->PerformLayout();1138 // Form1
1165 this->panel3->ResumeLayout(false);1139 //
1166 this->panel4->ResumeLayout(false);1140 this->AutoScaleBaseSize = System::Drawing::Size(5, 13);
1167 this->panel4->PerformLayout();1141 this->ClientSize = System::Drawing::Size(905, 465);
1168 this->fs->ResumeLayout(false);1142 this->Controls->Add(this->fs);
1169 this->ResumeLayout(false);1143 this->Controls->Add(this->panel4);
1144 this->Controls->Add(this->panel3);
1145 this->Controls->Add(this->panel2);
1146 this->Controls->Add(this->panel1);
1147 this->Name = S"Form1";
1148 this->StartPosition = System::Windows::Forms::FormStartPosition::CenterScreen;
1149 this->Text = S"Fab@Home Interpreter";
1150 this->Closing += new System::ComponentModel::CancelEventHandler(this, &Form1::Form1_Closing);
1151 this->panel1->ResumeLayout(false);
1152 this->panel2->ResumeLayout(false);
1153 this->panel2->PerformLayout();
1154 this->panel3->ResumeLayout(false);
1155 this->panel4->ResumeLayout(false);
1156 this->panel4->PerformLayout();
1157 this->fs->ResumeLayout(false);
1158 this->ResumeLayout(false);
11701159
1171 } 1160 }
11721161
11731162
11741163
@@ -1219,203 +1208,214 @@
1219 }1208 }
1220 //////////////////////////////////////////////////////////////////////////////////1209 //////////////////////////////////////////////////////////////////////////////////
1221 //***************************Main List Action Functions******************************1210 //***************************Main List Action Functions******************************
1211
1212
1213private: System::Void loadConfigHelper(string filePath) {
1214
1215
1216 string result = printer.initialize(filePath);
1217 if(result.compare("") == 0)
1218 {
1219
1220 correctModule = true;
1221
1222 //Show labels.
1223
1224 XLabel->Text = new String("X");
1225 YLabel->Text = new String("Y");
1226 ZLabel->Text = new String("Z");
1227 int numLoadedBays = printer.numLoadedBays();
1228 if(numLoadedBays >= 1)
1229 {
1230 bayLabel0->Text = new String("Bay 0");
1231 }
1232 if(numLoadedBays >= 2)
1233 {
1234 bayLabel1->Text = new String("Bay 1");
1235 }
1236 if(numLoadedBays >= 3)
1237 {
1238 bayLabel2->Text = new String("Bay 2");
1239 }
1240
1241
1242 FabAtHomePrinter::savePreviousConfigName(filePath);
1243
1244
1245 //Modify buttons.
1246 //InitButton->Enabled = false;
1247 LoadFileButton->Focus();
1248
1249 //Start live position display
1250 enablePositionDisplay();
1251 }
1252 else
1253 {
1254 Util::messageBox(result);
1255 }
1256
1257
1258 }
1222private: void InitButton_Click(System::Object * sender, System::EventArgs * e)1259private: void InitButton_Click(System::Object * sender, System::EventArgs * e)
1223 {1260 {
12241261 if(openFileDialog1->ShowDialog() == System::Windows::Forms::DialogResult::OK)
1225 if(openFileDialog1->ShowDialog() == System::Windows::Forms::DialogResult::OK)1262 {
1226 {1263 loadConfigHelper((char*)(void*)Marshal::StringToHGlobalAnsi(openFileDialog1->FileName));
1227 string filePath = (char*)(void*)Marshal::StringToHGlobalAnsi(openFileDialog1->FileName);1264 }
1228 string result = printer.initialize(filePath);1265
1229 if(result.compare("") == 0)
1230 {
1231
1232 correctModule = true;
1233
1234 //Show labels.
1235
1236 XLabel->Text = new String("X");
1237 YLabel->Text = new String("Y");
1238 ZLabel->Text = new String("Z");
1239 int numLoadedBays = printer.numLoadedBays();
1240 if(numLoadedBays >= 1)
1241 {
1242 bayLabel0->Text = new String("Bay 0");
1243 }
1244 if(numLoadedBays >= 2)
1245 {
1246 bayLabel1->Text = new String("Bay 1");
1247 }
1248 if(numLoadedBays >= 3)
1249 {
1250 bayLabel2->Text = new String("Bay 2");
1251 }
1252
1253
1254
1255 //Modify buttons.
1256 //InitButton->Enabled = false;
1257 LoadFileButton->Focus();
1258
1259 enablePositionDisplay(); //Start live position display
1260 }
1261 else
1262 {
1263 Util::messageBox(result);
1264 }
1265 }
1266 }1266 }
1267 ////////////////////////////////////////////////////////////////////////////////////1267 ////////////////////////////////////////////////////////////////////////////////////
1268private: void toggleAxes(bool enabled)1268private: void toggleAxes(bool enabled)
1269 {1269 {
1270 XVelocityField->Enabled = enabled;1270 XVelocityField->Enabled = enabled;
1271 XAccelerationField->Enabled = enabled;1271 XAccelerationField->Enabled = enabled;
1272 XIncrementField->Enabled = enabled;1272 XIncrementField->Enabled = enabled;
1273 XDisplay->Enabled = enabled;1273 XDisplay->Enabled = enabled;
1274 XCommandedField->Enabled = enabled;1274 XCommandedField->Enabled = enabled;
1275 xScroll->Enabled = enabled;1275 xScroll->Enabled = enabled;
1276 YVelocityField->Enabled = enabled;1276 YVelocityField->Enabled = enabled;
1277 YAccelerationField->Enabled = enabled;1277 YAccelerationField->Enabled = enabled;
1278 YIncrementField->Enabled = enabled;1278 YIncrementField->Enabled = enabled;
1279 YDisplay->Enabled = enabled;1279 YDisplay->Enabled = enabled;
1280 YCommandedField->Enabled = enabled;1280 YCommandedField->Enabled = enabled;
1281 yScroll->Enabled = enabled;1281 yScroll->Enabled = enabled;
1282 ZVelocityField->Enabled = enabled;1282 ZVelocityField->Enabled = enabled;
1283 ZAccelerationField->Enabled = enabled;1283 ZAccelerationField->Enabled = enabled;
1284 ZIncrementField->Enabled = enabled;1284 ZIncrementField->Enabled = enabled;
1285 ZDisplay->Enabled = enabled;1285 ZDisplay->Enabled = enabled;
1286 ZCommandedField->Enabled = enabled;1286 ZCommandedField->Enabled = enabled;
1287 zScroll->Enabled = enabled;1287 zScroll->Enabled = enabled;
1288 }1288 }
1289 ////////////////////////////////////////////////////////////////////////////////////1289 ////////////////////////////////////////////////////////////////////////////////////
1290private: void toggleBays(bool enabled)1290private: void toggleBays(bool enabled)
1291 {1291 {
1292 int numLoadedBays = printer.numLoadedBays();1292 int numLoadedBays = printer.numLoadedBays();
1293 if(numLoadedBays >= 1)1293 if(numLoadedBays >= 1)
1294 {1294 {
1295 bayVelocity0->Enabled = enabled;1295 bayVelocity0->Enabled = enabled;
1296 bayAcceleration0->Enabled = enabled;1296 bayAcceleration0->Enabled = enabled;
1297 bayPositionIncrement0->Enabled = enabled;1297 bayPositionIncrement0->Enabled = enabled;
1298 bayMotorPosition0->Enabled = enabled;1298 bayMotorPosition0->Enabled = enabled;
1299 bayCommandedPosition0->Enabled = enabled;1299 bayCommandedPosition0->Enabled = enabled;
1300 bayMaterialCalibration0->Enabled = enabled;1300 bayMaterialCalibration0->Enabled = enabled;
1301 bayScroll0->Enabled = enabled;1301 bayScroll0->Enabled = enabled;
1302 }1302 }
1303 if(numLoadedBays >= 2)1303 if(numLoadedBays >= 2)
1304 {1304 {
1305 bayVelocity1->Enabled = enabled;1305 bayVelocity1->Enabled = enabled;
1306 bayAcceleration1->Enabled = enabled;1306 bayAcceleration1->Enabled = enabled;
1307 bayPositionIncrement1->Enabled = enabled;1307 bayPositionIncrement1->Enabled = enabled;
1308 bayMotorPosition1->Enabled = enabled;1308 bayMotorPosition1->Enabled = enabled;
1309 bayCommandedPosition1->Enabled = enabled;1309 bayCommandedPosition1->Enabled = enabled;
1310 bayMaterialCalibration1->Enabled = enabled;1310 bayMaterialCalibration1->Enabled = enabled;
1311 bayScroll1->Enabled = enabled;1311 bayScroll1->Enabled = enabled;
1312 }1312 }
1313 if(numLoadedBays >= 3)1313 if(numLoadedBays >= 3)
1314 {1314 {
1315 bayVelocity2->Enabled = enabled;1315 bayVelocity2->Enabled = enabled;
1316 bayAcceleration2->Enabled = enabled;1316 bayAcceleration2->Enabled = enabled;
1317 bayPositionIncrement2->Enabled = enabled;1317 bayPositionIncrement2->Enabled = enabled;
1318 bayMotorPosition2->Enabled = enabled;1318 bayMotorPosition2->Enabled = enabled;
1319 bayCommandedPosition2->Enabled = enabled;1319 bayCommandedPosition2->Enabled = enabled;
1320 bayMaterialCalibration2->Enabled = enabled;1320 bayMaterialCalibration2->Enabled = enabled;
1321 bayScroll2->Enabled = enabled;1321 bayScroll2->Enabled = enabled;
1322 }1322 }
1323 }1323 }
1324 ////////////////////////////////////////////////////////////////////////////////////1324 ////////////////////////////////////////////////////////////////////////////////////
1325private: void MoveButton_Click(System::Object * sender, System::EventArgs * e)1325private: void MoveButton_Click(System::Object * sender, System::EventArgs * e)
1326 {1326 {
1327 printer.axes["X"].motor->moveAbsolute(textBoxValue(XCommandedField), textBoxValue(XVelocityField), textBoxValue(XAccelerationField)); 1327 printer.axes["X"].motor->moveAbsolute(textBoxValue(XCommandedField), textBoxValue(XVelocityField), textBoxValue(XAccelerationField));
1328 printer.axes["Y"].motor->moveAbsolute(textBoxValue(YCommandedField), textBoxValue(YVelocityField), textBoxValue(YAccelerationField));1328 printer.axes["Y"].motor->moveAbsolute(textBoxValue(YCommandedField), textBoxValue(YVelocityField), textBoxValue(YAccelerationField));
1329 printer.axes["Z"].motor->moveAbsolute(textBoxValue(ZCommandedField), textBoxValue(ZVelocityField), textBoxValue(ZAccelerationField));1329 printer.axes["Z"].motor->moveAbsolute(textBoxValue(ZCommandedField), textBoxValue(ZVelocityField), textBoxValue(ZAccelerationField));
1330 int numLoadedBays = printer.numLoadedBays();1330 int numLoadedBays = printer.numLoadedBays();
1331 if(numLoadedBays >= 1)1331 if(numLoadedBays >= 1)
1332 {1332 {
1333 printer.tool.bays["Bay 0"].motor->moveAbsolute(textBoxValue(bayCommandedPosition0), textBoxValue(bayVelocity0), textBoxValue(bayAcceleration0));1333 printer.tool.bays["Bay 0"].motor->moveAbsolute(textBoxValue(bayCommandedPosition0), textBoxValue(bayVelocity0), textBoxValue(bayAcceleration0));
1334 }1334 }
1335 if(numLoadedBays >= 2)1335 if(numLoadedBays >= 2)
1336 {1336 {
1337 printer.tool.bays["Bay 1"].motor->moveAbsolute(textBoxValue(bayCommandedPosition1), textBoxValue(bayVelocity1), textBoxValue(bayAcceleration1));1337 printer.tool.bays["Bay 1"].motor->moveAbsolute(textBoxValue(bayCommandedPosition1), textBoxValue(bayVelocity1), textBoxValue(bayAcceleration1));
1338 1338
1339 }1339 }
1340 if(numLoadedBays >= 3)1340 if(numLoadedBays >= 3)
1341 {1341 {
1342 printer.tool.bays["Bay 2"].motor->moveAbsolute(textBoxValue(bayCommandedPosition2), textBoxValue(bayVelocity2), textBoxValue(bayAcceleration2)); 1342 printer.tool.bays["Bay 2"].motor->moveAbsolute(textBoxValue(bayCommandedPosition2), textBoxValue(bayVelocity2), textBoxValue(bayAcceleration2));
1343 }1343 }
1344 }1344 }
1345 ////////////////////////////////////////////////////////////////////////////////////1345 ////////////////////////////////////////////////////////////////////////////////////
1346private: void ResetPosButton_Click(System::Object* sender, System::EventArgs* e) 1346private: void ResetPosButton_Click(System::Object* sender, System::EventArgs* e)
1347 {1347 {
1348 //Reset position of all motors.1348 //Reset position of all motors.
1349 printer.axes["X"].motor->resetPosition();1349 printer.axes["X"].motor->resetPosition();
1350 printer.axes["Y"].motor->resetPosition();1350 printer.axes["Y"].motor->resetPosition();
1351 printer.axes["Z"].motor->resetPosition();1351 printer.axes["Z"].motor->resetPosition();
1352 XCommandedField->set_Text("0.000000");1352 XCommandedField->set_Text("0.000000");
1353 YCommandedField->set_Text("0.000000");1353 YCommandedField->set_Text("0.000000");
1354 ZCommandedField->set_Text("0.000000");1354 ZCommandedField->set_Text("0.000000");
1355 int numLoadedBays = printer.numLoadedBays();1355 int numLoadedBays = printer.numLoadedBays();
1356 if(numLoadedBays >= 1)1356 if(numLoadedBays >= 1)
1357 {1357 {
1358 printer.tool.bays["Bay 0"].motor->resetPosition();1358 printer.tool.bays["Bay 0"].motor->resetPosition();
1359 bayCommandedPosition0->set_Text("0.000000");1359 bayCommandedPosition0->set_Text("0.000000");
1360 }1360 }
1361 if(numLoadedBays >= 2)1361 if(numLoadedBays >= 2)
1362 {1362 {
1363 printer.tool.bays["Bay 1"].motor->resetPosition();1363 printer.tool.bays["Bay 1"].motor->resetPosition();
1364 bayCommandedPosition1->set_Text("0.000000");1364 bayCommandedPosition1->set_Text("0.000000");
1365 }1365 }
1366 if(numLoadedBays >= 3)1366 if(numLoadedBays >= 3)
1367 {1367 {
1368 printer.tool.bays["Bay 2"].motor->resetPosition();1368 printer.tool.bays["Bay 2"].motor->resetPosition();
1369 bayCommandedPosition2->set_Text("0.000000");1369 bayCommandedPosition2->set_Text("0.000000");
1370 }1370 }
1371 }1371 }
1372 ////////////////////////////////////////////////////////////////////////////////////1372 ////////////////////////////////////////////////////////////////////////////////////
1373private: void LoadFileButton_Click(System::Object * sender, System::EventArgs * e)1373private: void LoadFileButton_Click(System::Object * sender, System::EventArgs * e)
1374 {1374 {
1375 if(openFileDialog1->ShowDialog() == System::Windows::Forms::DialogResult::OK)1375 if(openFileDialog1->ShowDialog() == System::Windows::Forms::DialogResult::OK)
1376 {1376 {
1377 string filePath = (char*)(void*)Marshal::StringToHGlobalAnsi(openFileDialog1->FileName);1377 string filePath = (char*)(void*)Marshal::StringToHGlobalAnsi(openFileDialog1->FileName);
1378 string result = printer.loadFabFile(filePath);1378 string result = printer.loadFabFile(filePath);
1379 if(result.compare("") == 0)1379 if(result.compare("") == 0)
1380 {1380 {
1381 //Update display.1381 //Update display.
1382 string info = Util::toString<int>(printer.numLoadedPaths())+" paths loaded from file "+filePath;1382 string info = Util::toString<int>(printer.numLoadedPaths())+" paths loaded from file "+filePath;
1383 1383
1384 maxProgress = printer.numLoadedPaths(); //sets the max progress to the number of paths1384 maxProgress = printer.numLoadedPaths(); //sets the max progress to the number of paths
1385 ExecutePathLabel->set_Text(info.c_str());1385 ExecutePathLabel->set_Text(info.c_str());
13861386
1387 //Show the loaded material calibrations.1387 //Show the loaded material calibrations.
1388 vector<string> result;1388 vector<string> result;
1389 printer.loadedMaterialCalibrations(result);1389 printer.loadedMaterialCalibrations(result);
1390 bayMaterialCalibration0->Items->Clear();1390 bayMaterialCalibration0->Items->Clear();
1391 bayMaterialCalibration1->Items->Clear();1391 bayMaterialCalibration1->Items->Clear();
1392 bayMaterialCalibration0->Items->Add(new System::String(""));1392 bayMaterialCalibration0->Items->Add(new System::String(""));
1393 bayMaterialCalibration1->Items->Add(new System::String(""));1393 bayMaterialCalibration1->Items->Add(new System::String(""));
1394 for(vector<string>::iterator i = result.begin(); i != result.end(); ++i)1394 for(vector<string>::iterator i = result.begin(); i != result.end(); ++i)
1395 {1395 {
1396 int numLoadedBays = printer.numLoadedBays();1396 int numLoadedBays = printer.numLoadedBays();
1397 if(numLoadedBays >= 1)1397 if(numLoadedBays >= 1)
1398 {1398 {
1399 bayMaterialCalibration0->Items->Add(new System::String(i->c_str()));1399 bayMaterialCalibration0->Items->Add(new System::String(i->c_str()));
1400 }1400 }
1401 if(numLoadedBays >= 2)1401 if(numLoadedBays >= 2)
1402 {1402 {
1403 bayMaterialCalibration1->Items->Add(new System::String(i->c_str()));1403 bayMaterialCalibration1->Items->Add(new System::String(i->c_str()));
1404 }1404 }
1405 if(numLoadedBays >= 3)1405 if(numLoadedBays >= 3)
1406 {1406 {
1407 bayMaterialCalibration2->Items->Add(new System::String(i->c_str()));1407 bayMaterialCalibration2->Items->Add(new System::String(i->c_str()));
1408 }1408 }
1409 }1409 }
1410 1410
1411 ExecuteButton->Enabled = true;1411 ExecuteButton->Enabled = true;
1412 ExecuteButton->Focus();1412 ExecuteButton->Focus();
1413 }1413 }
1414 else1414 else
1415 {1415 {
1416 Util::messageBox(result);1416 Util::messageBox(result);
1417 }1417 }
1418 }1418 }
1419 }1419 }
1420 ////////////////////////////////////////////////////////////////////////////////////1420 ////////////////////////////////////////////////////////////////////////////////////
1421private: void ExecuteButton_Click(System::Object* sender, System::EventArgs* e) {1421private: void ExecuteButton_Click(System::Object* sender, System::EventArgs* e) {
@@ -1435,15 +1435,15 @@
1435private: void incrementCommanded(System::Windows::Forms::TextBox* incrementField, System::Windows::Forms::ScrollEventArgs* e, System::Windows::Forms::TextBox* commandedField)1435private: void incrementCommanded(System::Windows::Forms::TextBox* incrementField, System::Windows::Forms::ScrollEventArgs* e, System::Windows::Forms::TextBox* commandedField)
1436 {1436 {
1437 string incrementString = (char*)(void*)Marshal::StringToHGlobalAnsi(incrementField->get_Text());1437 string incrementString = (char*)(void*)Marshal::StringToHGlobalAnsi(incrementField->get_Text());
1438 double delta = (e->get_OldValue() - e->get_NewValue()) * Util::toType<double>(incrementString);1438 double delta = (e->get_OldValue() - e->get_NewValue()) * Util::toType<double>(incrementString);
14391439
1440 string commandedString = (char*)(void*)Marshal::StringToHGlobalAnsi(commandedField->get_Text());1440 string commandedString = (char*)(void*)Marshal::StringToHGlobalAnsi(commandedField->get_Text());
1441 double commanded = Util::toType<double>(commandedString);1441 double commanded = Util::toType<double>(commandedString);
14421442
1443 double newCommanded = commanded + delta;1443 double newCommanded = commanded + delta;
14441444
1445 string newCommandedString = Util::toString<double>(newCommanded);1445 string newCommandedString = Util::toString<double>(newCommanded);
1446 commandedField->set_Text(newCommandedString.c_str());1446 commandedField->set_Text(newCommandedString.c_str());
1447 commandedField->Update();1447 commandedField->Update();
1448 }1448 }
1449 //////////////////////////////////////////////////////////////////////////////////////////////1449 //////////////////////////////////////////////////////////////////////////////////////////////
@@ -1474,9 +1474,9 @@
1474 } 1474 }
1475 ///////////////////////////////////////////////////////////////////////////////////////////////////1475 ///////////////////////////////////////////////////////////////////////////////////////////////////
1476private: System::Void bayScroll2_Scroll(System::Object* sender, System::Windows::Forms::ScrollEventArgs* e) {1476private: System::Void bayScroll2_Scroll(System::Object* sender, System::Windows::Forms::ScrollEventArgs* e) {
1477 incrementCommanded(bayPositionIncrement2, e, bayCommandedPosition2);1477 incrementCommanded(bayPositionIncrement2, e, bayCommandedPosition2);
1478 printer.tool.bays["Bay 2"].motor->moveAbsolute(textBoxValue(bayCommandedPosition2), textBoxValue(bayVelocity2), textBoxValue(bayAcceleration2));1478 printer.tool.bays["Bay 2"].motor->moveAbsolute(textBoxValue(bayCommandedPosition2), textBoxValue(bayVelocity2), textBoxValue(bayAcceleration2));
1479 }1479 }
1480 ///////////////////////////////////////////////////////////////////////////////////////////////////1480 ///////////////////////////////////////////////////////////////////////////////////////////////////
1481 //**************************************Stop/Cancel/Pause Buttons***************************************1481 //**************************************Stop/Cancel/Pause Buttons***************************************
1482private: void ForceStopButton_Click(System::Object* sender, System::EventArgs* e) {1482private: void ForceStopButton_Click(System::Object* sender, System::EventArgs* e) {
@@ -1484,19 +1484,19 @@
1484 printer.axes["X"].motor->stop();1484 printer.axes["X"].motor->stop();
1485 printer.axes["Y"].motor->stop();1485 printer.axes["Y"].motor->stop();
1486 printer.axes["Z"].motor->stop();1486 printer.axes["Z"].motor->stop();
1487 int numLoadedBays = printer.numLoadedBays();1487 int numLoadedBays = printer.numLoadedBays();
1488 if(numLoadedBays >= 1)1488 if(numLoadedBays >= 1)
1489 {1489 {
1490 printer.tool.bays["Bay 0"].motor->stop();1490 printer.tool.bays["Bay 0"].motor->stop();
1491 }1491 }
1492 if(numLoadedBays >= 2)1492 if(numLoadedBays >= 2)
1493 {1493 {
1494 printer.tool.bays["Bay 1"].motor->stop();1494 printer.tool.bays["Bay 1"].motor->stop();
1495 }1495 }
1496 if(numLoadedBays >= 3)1496 if(numLoadedBays >= 3)
1497 {1497 {
1498 printer.tool.bays["Bay 2"].motor->stop();1498 printer.tool.bays["Bay 2"].motor->stop();
1499 }1499 }
1500 }1500 }
1501 ///////////////////////////////////////////////////////////////////////////////////////////////////1501 ///////////////////////////////////////////////////////////////////////////////////////////////////
1502private: void RedoPathButton_Click(System::Object* sender, System::EventArgs* e) {1502private: void RedoPathButton_Click(System::Object* sender, System::EventArgs* e) {
@@ -1533,66 +1533,66 @@
1533 }1533 }
1534 ///////////////////////////////////////////////////////////////////////////////////////////////////////1534 ///////////////////////////////////////////////////////////////////////////////////////////////////////
1535private: void PosDisplayThread_ProgressChanged(System::Object* sender, System::ComponentModel::ProgressChangedEventArgs* e) {1535private: void PosDisplayThread_ProgressChanged(System::Object* sender, System::ComponentModel::ProgressChangedEventArgs* e) {
1536 static string prevState;1536 static string prevState;
1537 string state = printer.state();1537 string state = printer.state();
15381538
1539 if(state.compare("PAUSED") == 0)1539 if(state.compare("PAUSED") == 0)
1540 {1540 {
1541 updatePosDisplay();1541 updatePosDisplay();
1542 if(prevState.compare("PRINTING") == 0)1542 if(prevState.compare("PRINTING") == 0)
1543 {1543 {
1544 XCommandedField->set_Text(XDisplay->get_Text());1544 XCommandedField->set_Text(XDisplay->get_Text());
1545 YCommandedField->set_Text(YDisplay->get_Text());1545 YCommandedField->set_Text(YDisplay->get_Text());
1546 ZCommandedField->set_Text(ZDisplay->get_Text());1546 ZCommandedField->set_Text(ZDisplay->get_Text());
1547 bayCommandedPosition0->set_Text(bayMotorPosition0->get_Text());1547 bayCommandedPosition0->set_Text(bayMotorPosition0->get_Text());
1548 bayCommandedPosition1->set_Text(bayMotorPosition1->get_Text());1548 bayCommandedPosition1->set_Text(bayMotorPosition1->get_Text());
1549 }1549 }
1550 toggleBays(true);1550 toggleBays(true);
1551 toggleAxes(false);1551 toggleAxes(false);
1552 ResetPosButton->Enabled = false;1552 ResetPosButton->Enabled = false;
1553 MoveButton->Enabled = false;1553 MoveButton->Enabled = false;
1554 LoadFileButton->Enabled = false;1554 LoadFileButton->Enabled = false;
1555 ExecuteButton->Enabled = false;1555 ExecuteButton->Enabled = false;
1556 this->PauseFabButton->Enabled=true;1556 this->PauseFabButton->Enabled=true;
1557 this->CancelFabButton->Enabled=true;1557 this->CancelFabButton->Enabled=true;
1558 this->ForceStopButton->Enabled=true;1558 this->ForceStopButton->Enabled=true;
1559 this->RedoPathButton->Enabled=true;1559 this->RedoPathButton->Enabled=true;
1560 }1560 }
1561 else if(state.compare("PRINTING") == 0)1561 else if(state.compare("PRINTING") == 0)
1562 {1562 {
1563 toggleBays(false);1563 toggleBays(false);
1564 toggleAxes(false);1564 toggleAxes(false);
1565 ResetPosButton->Enabled = false;1565 ResetPosButton->Enabled = false;
1566 MoveButton->Enabled = false;1566 MoveButton->Enabled = false;
1567 LoadFileButton->Enabled = false;1567 LoadFileButton->Enabled = false;
1568 ExecuteButton->Enabled = false;1568 ExecuteButton->Enabled = false;
1569 this->PauseFabButton->Enabled=true;1569 this->PauseFabButton->Enabled=true;
1570 this->CancelFabButton->Enabled=true;1570 this->CancelFabButton->Enabled=true;
1571 this->ForceStopButton->Enabled=true;1571 this->ForceStopButton->Enabled=true;
1572 this->RedoPathButton->Enabled=true;1572 this->RedoPathButton->Enabled=true;
1573 }1573 }
1574 else if(state.compare("IDLE") == 0)1574 else if(state.compare("IDLE") == 0)
1575 {1575 {
1576 updatePosDisplay();1576 updatePosDisplay();
1577 if(prevState.compare("PRINTING") == 0)1577 if(prevState.compare("PRINTING") == 0)
1578 {1578 {
1579 XCommandedField->set_Text(XDisplay->get_Text());1579 XCommandedField->set_Text(XDisplay->get_Text());
1580 YCommandedField->set_Text(YDisplay->get_Text());1580 YCommandedField->set_Text(YDisplay->get_Text());
1581 ZCommandedField->set_Text(ZDisplay->get_Text());1581 ZCommandedField->set_Text(ZDisplay->get_Text());
1582 bayCommandedPosition0->set_Text(bayMotorPosition0->get_Text());1582 bayCommandedPosition0->set_Text(bayMotorPosition0->get_Text());
1583 bayCommandedPosition1->set_Text(bayMotorPosition1->get_Text());1583 bayCommandedPosition1->set_Text(bayMotorPosition1->get_Text());
1584 } 1584 }
1585 toggleBays(true);1585 toggleBays(true);
1586 toggleAxes(true);1586 toggleAxes(true);
1587 ResetPosButton->Enabled = true;1587 ResetPosButton->Enabled = true;
1588 MoveButton->Enabled = true;1588 MoveButton->Enabled = true;
1589 LoadFileButton->Enabled = true;1589 LoadFileButton->Enabled = true;
1590 this->PauseFabButton->Enabled=false;1590 this->PauseFabButton->Enabled=false;
1591 this->CancelFabButton->Enabled=false;1591 this->CancelFabButton->Enabled=false;
1592 this->ForceStopButton->Enabled=false;1592 this->ForceStopButton->Enabled=false;
1593 this->RedoPathButton->Enabled=false;1593 this->RedoPathButton->Enabled=false;
1594 }1594 }
1595 prevState = state;1595 prevState = state;
1596 }1596 }
1597 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////1597 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1598 //*************************************Execution Threads************************************1598 //*************************************Execution Threads************************************
@@ -1616,69 +1616,111 @@
1616 }1616 }
1617 /////////////////////////////////////////////////////////////////////////////////////////////////////1617 /////////////////////////////////////////////////////////////////////////////////////////////////////
1618private: void Timer_Tick(System::Object* sender, System::EventArgs* e) {1618private: void Timer_Tick(System::Object* sender, System::EventArgs* e) {
1619 1619
1620 }1620 }
16211621
1622 //************************************I/O Helper Functions********************************1622 //************************************I/O Helper Functions********************************
1623private: void updatePosDisplay() {1623private: void updatePosDisplay() {
1624 string temp; 1624 string temp;
1625 //Display the position data in text fields1625 //Display the position data in text fields
1626 temp = Util::toString<double>(printer.axes["X"].motor->getPosition());1626 temp = Util::toString<double>(printer.axes["X"].motor->getPosition());
1627 XDisplay->set_Text(temp.c_str());1627 XDisplay->set_Text(temp.c_str());
1628 XDisplay->Update();1628 XDisplay->Update();
1629 temp = Util::toString<double>(printer.axes["Y"].motor->getPosition());1629 temp = Util::toString<double>(printer.axes["Y"].motor->getPosition());
1630 YDisplay->set_Text(temp.c_str());1630 YDisplay->set_Text(temp.c_str());
1631 YDisplay->Update();1631 YDisplay->Update();
1632 temp = Util::toString<double>(printer.axes["Z"].motor->getPosition());1632 temp = Util::toString<double>(printer.axes["Z"].motor->getPosition());
1633 ZDisplay->set_Text(temp.c_str());1633 ZDisplay->set_Text(temp.c_str());
1634 ZDisplay->Update();1634 ZDisplay->Update();
1635 1635
1636 int numLoadedBays = printer.numLoadedBays();1636 int numLoadedBays = printer.numLoadedBays();
1637 if(numLoadedBays >= 1)1637 if(numLoadedBays >= 1)
1638 {1638 {
1639 temp = Util::toString<double>(printer.tool.bays["Bay 0"].motor->getPosition());1639 temp = Util::toString<double>(printer.tool.bays["Bay 0"].motor->getPosition());
1640 bayMotorPosition0->set_Text(temp.c_str());1640 bayMotorPosition0->set_Text(temp.c_str());
1641 bayMotorPosition0->Update();1641 bayMotorPosition0->Update();
1642 }1642 }
1643 if(numLoadedBays >= 2)1643 if(numLoadedBays >= 2)
1644 {1644 {
1645 temp = Util::toString<double>(printer.tool.bays["Bay 1"].motor->getPosition());1645 temp = Util::toString<double>(printer.tool.bays["Bay 1"].motor->getPosition());
1646 bayMotorPosition1->set_Text(temp.c_str());1646 bayMotorPosition1->set_Text(temp.c_str());
1647 bayMotorPosition1->Update();1647 bayMotorPosition1->Update();
1648 }1648 }
1649 if(numLoadedBays >= 3)1649 if(numLoadedBays >= 3)
1650 {1650 {
1651 temp = Util::toString<double>(printer.tool.bays["Bay 2"].motor->getPosition());1651 temp = Util::toString<double>(printer.tool.bays["Bay 2"].motor->getPosition());
1652 bayMotorPosition2->set_Text(temp.c_str());1652 bayMotorPosition2->set_Text(temp.c_str());
1653 bayMotorPosition2->Update();1653 bayMotorPosition2->Update();
1654 }1654 }
1655 1655
1656 }1656 }
1657 ///////////////////////////////////////////////////////////////////////////////////////////////1657 ///////////////////////////////////////////////////////////////////////////////////////////////
1658private: System::Void bayMaterialCalibration0_SelectedIndexChanged(System::Object* sender, System::EventArgs* e)1658private: System::Void bayMaterialCalibration0_SelectedIndexChanged(System::Object* sender, System::EventArgs* e)
1659 {1659 {
1660 string bayName = (char*)(void*)Marshal::StringToHGlobalAnsi(bayLabel0->Text);1660 string bayName = (char*)(void*)Marshal::StringToHGlobalAnsi(bayLabel0->Text);
1661 string materialCalibrationName = (char*)(void*)Marshal::StringToHGlobalAnsi(bayMaterialCalibration0->Text);1661 string materialCalibrationName = (char*)(void*)Marshal::StringToHGlobalAnsi(bayMaterialCalibration0->Text);
1662 printer.equipBay(bayName, materialCalibrationName);1662 printer.equipBay(bayName, materialCalibrationName);
1663 }1663 }
1664 ///////////////////////////////////////////////////////////////////////////////////////////////1664 ///////////////////////////////////////////////////////////////////////////////////////////////
1665private: System::Void bayMaterialCalibration1_SelectedIndexChanged(System::Object* sender, System::EventArgs* e)1665private: System::Void bayMaterialCalibration1_SelectedIndexChanged(System::Object* sender, System::EventArgs* e)
1666 {1666 {
1667 string bayName = (char*)(void*)Marshal::StringToHGlobalAnsi(bayLabel1->Text);1667 string bayName = (char*)(void*)Marshal::StringToHGlobalAnsi(bayLabel1->Text);
1668 string materialCalibrationName = (char*)(void*)Marshal::StringToHGlobalAnsi(bayMaterialCalibration1->Text);1668 string materialCalibrationName = (char*)(void*)Marshal::StringToHGlobalAnsi(bayMaterialCalibration1->Text);
1669 printer.equipBay(bayName, materialCalibrationName);1669 printer.equipBay(bayName, materialCalibrationName);
1670 }1670 }
1671 ///////////////////////////////////////////////////////////////////////////////////////////////1671 ///////////////////////////////////////////////////////////////////////////////////////////////
1672private: System::Void bayMaterialCalibration2_SelectedIndexChanged(System::Object* sender, System::EventArgs* e) {1672private: System::Void bayMaterialCalibration2_SelectedIndexChanged(System::Object* sender, System::EventArgs* e) {
1673 string bayName = (char*)(void*)Marshal::StringToHGlobalAnsi(bayLabel2->Text);1673 string bayName = (char*)(void*)Marshal::StringToHGlobalAnsi(bayLabel2->Text);
1674 string materialCalibrationName = (char*)(void*)Marshal::StringToHGlobalAnsi(bayMaterialCalibration2->Text);1674 string materialCalibrationName = (char*)(void*)Marshal::StringToHGlobalAnsi(bayMaterialCalibration2->Text);
1675 printer.equipBay(bayName, materialCalibrationName);1675 printer.equipBay(bayName, materialCalibrationName);
1676 }1676 }
1677 ///////////////////////////////////////////////////////////////////////////////////////////////1677 ///////////////////////////////////////////////////////////////////////////////////////////////
1678
1679private: System::Void button1_Click(System::Object* sender, System::EventArgs* e) {
1680 }
1681
1682
1683private: System::Void loadPreviousConfig(System::Object* sender, System::EventArgs* e) {
1684
1685 string filePath = FabAtHomePrinter::loadPreviousConfigName();
1686 string result = printer.initialize(filePath);
1687 if(result.compare("") == 0)
1688 {
1689 correctModule = true;
1690
1691 //Show labels.
1692
1693 XLabel->Text = new String("X");
1694 YLabel->Text = new String("Y");
1695 ZLabel->Text = new String("Z");
1696 int numLoadedBays = printer.numLoadedBays();
1697 if(numLoadedBays >= 1)
1698 {
1699 bayLabel0->Text = new String("Bay 0");
1700 }
1701 if(numLoadedBays >= 2)
1702 {
1703 bayLabel1->Text = new String("Bay 1");
1704 }
1705 if(numLoadedBays >= 3)
1706 {
1707 bayLabel2->Text = new String("Bay 2");
1708 }
1709
1710
1711
1712 //Modify buttons.
1713 LoadFileButton->Focus();
1714
1715 enablePositionDisplay(); //Start live position display
1716 }
1717 else
1718 {
1719 Util::messageBox(result);
1720 }
1721 }
16781722
1679};1723};
16801724
1681#endif //ndef FORM1_H1725#endif //ndef FORM1_H
16821726
1683
1684

Subscribers

People subscribed via source and target branches

to all changes: