文章標籤


more tags...

Blogs

最新回應

大家好!

首先, 想要學習 Visual Programming Language, 先要下載工具歐,
推薦大家可以看 [Robotics Studio x1] 初體驗 , 寫的不錯^ ^.

接下來我來簡單介紹怎麼開始撰寫 Hello World 這個舉世聞名的題目吧.
首先打開 MicroSoft Visual Programming Language Expression Edition,

 

image

 

Visual Programming Language 號稱不懂寫程式的也可以玩歐, 讓我們來看看它有多簡單吧,
首先, 從左邊的 Basic Activities 中看到 Data 這個元件, 把它拖到 Diagram 當中,


image

 

然後我們要做一些設定, 把 Data 的類別改為 String,

 

image 

, 然後在中間填入 Hello World , 變成如下的畫面.

image

 

 

 

 

接著, 我們把這個資料輸出到一個 Service, 選擇左邊的 Service, 找到 Simple Dialog 這個元件.
如果你覺得不好找, 可以在 Find Service 當中輸入 Simple , 如下:


image 

這樣就只會過濾到剩下有 Simple 文字的元件,
就可以容易找到 Simple Dialog 這個元件.

把 Simple Dialog 拖到右邊的 Diagram 當中.

 

image

 

現在我們要做最後一步啦, 把這兩個元件串起來, 點選 Data 元件的右邊 (Outgoing Response) , 拖到 Simple Dialog,

就會彈出 Connections (Simple Dialog 的)對話框啦, From 沒得挑, 因為就是 DataValue, To 我們選 "AlertDialog",

 

image

 

點選 OK , 又彈出 Data Connections 的對話框, 這次我們要把 Value 下拉, 選出 value 這個值.

 

image

 

再一次點選 OK,

 

image

 

噹噹! 我們寫完了 Hello World 程式了.

雖然沒啥大用處, 但是還是可以執行看看囉,

執行之前 Visual Programming Language Express Edition 會要求你存檔,

執行結果如下:

 

image

 

OK. 很簡單的程式, 所以我相信應該沒甚麼問題的.

一步一步來, 這樣很快就可以玩到機器人了?!(應該吧)


DotBlogs Tags: Robotics

關連文章

回應

  • waveact 2008/12/28 下午 04:34 回覆

    # re: [Robotics Studio] Hello World -- Day1

    此博客必火,有前途。waveact@163.com

  • tttt 2009/1/14 上午 11:55 回覆

    # re: [Robotics Studio] Hello World -- Day1

    顶下

  • jiguo 2009/1/15 下午 12:43 回覆

    # re: [Robotics Studio] Hello World -- Day1

    非常棒,谢谢!

  • wangjx 2009/3/21 下午 10:15 回覆

    # re: [Robotics Studio] Hello World -- Day1

    问个问题:我按照楼主的步骤创建了hello world程序。也可以运行。但是过了一段时间(中间有安装IIS)再运行,就提示下面错误:
    could not start the dss node, please check if there is another dss node has already running in the system.
    请问楼主,是怎么回事。谢谢啦。。。

  • MSRS-learner 2009/9/10 上午 11:38 回覆

    # re: [Robotics Studio] Hello World -- Day1

    could not start the dss node, please check if there is another dss node has already running in the system.
    你用的是vista吧,管理员下运行呃.

  • aa 2009/9/13 下午 07:24 回覆

    # re: [Robotics Studio] Hello World -- Day1

    非常好,,

  • goluffy 2009/9/19 下午 11:30 回覆

    # re: [Robotics Studio] Hello World -- Day1

    Very Good!3x a lot!

  • Sinba 2010/1/14 上午 09:59 回覆

    # re: [Robotics Studio] Hello World -- Day1

    多谢分享过程。对我们这种初学者很有帮助,谢谢


*標 題:

*姓 名:

 電子郵件: (將不會被顯示)

 個人網頁:

*回應

登入後使用進階評論

Please add 8 and 7 and type the answer here: