Поможем написать учебную работу
Если у вас возникли сложности с курсовой, контрольной, дипломной, рефератом, отчетом по практике, научно-исследовательской и любой другой работой - мы готовы помочь.
Если у вас возникли сложности с курсовой, контрольной, дипломной, рефератом, отчетом по практике, научно-исследовательской и любой другой работой - мы готовы помочь.
Міністерство освіти і науки, молоді та спорту України
НУ «Львівська політехніка»
Інститут підприємництва та перспективних технологій
Кафедра "Інформаційних системи та технологій"
Лабораторна робота 1 по темі:
Виконав:
ст. гр. КН-49
Голуб Тарас
Львів - 17, 2014
Зміст звіту
This tutorial is the classic introduction for most programming languages that displays the words "Hello World". This is easily accomplished in Microsoft Visual Programming Language (VPL) using two activity blocks, a Data block and the Simple Dialog block.
This tutorial is provided in the Microsoft Visual Programming Language (VPL) language. You can find the project files for this tutorial at the following location under the Microsoft Robotics Developer Studio installation folder:
Sample location
Samples\VPLTutorials\Tutorial1
This tutorial requires no special hardware.
This tutorial is designed for use with VPL which is included as part of Microsoft Robotics Developer Studio.
To run VPL, from the Start menu choose All Programs and then click on Visual Programming Language under the Microsoft Robotics Developer Studio installation folder.
From the File menu click New to create a new project. Insert a Data activity, by double-clicking on the icon or draggging and dropping it from the Basic Activities toolbox. Choose string from the drop-down list. Click in the text box of the Data activity block and type Hello World.
Figure 1 - Data Activity Block
Insert a Simple Dialog activity block by dragging one from the Services toolbox and place it to the right of the Data activity block. (To save time looking for a service, you can type the name of the service you are looking for into the top of the Services toolbox. The toolbox will then display any matching activities.)
Drag a link starting from the output connection pin of the Data activity block onto the Simple Dialog activity block. The Connections dialog box automatically opens. ChooseDataValue in the first list and AlertDialog in the second list, then click OK.
Figure 2 - Connections Dialog Box
The Data Connections dialog box opens next. In the drop-down list, choose value.
Figure 3 - Data Connections Dialog Box
The Data Connections dialog box tells VPL that you want to apply the value of the Data activity to the message text for the Alert form of this dialog.
Your diagram should now look like the following.
Figure 4 - Completed Diagram
Now choose the Run command from the Run menu (or press F5). If you have not saved your project yet, VPL opens the Save dialog. Enter a name for your project and clickSave.
VPL should now run your application. If you get a message asking whether to unblock the application, choose Unblock.
A simple Alert dialog box should appear with the text Hello World in it.
Figure 5 - Alert Dialog
To stop the application, click the Stop button in the Run dialog.
You have now completed your first application in VPL. Try VPL Tutorial 2 - Incrementing a Value to learn more about VPL and its dataflow control activities.
Результати числових експериментів
1) Вивів Hello world використовуючи VPL
Висновки: Ознайомився з інтерфейсом Microsoft Robotics Developer Studio, мовою VPL та навчився виводити Hello world використовуючи VPL .