Starting Point LEGO MINDSTORMS NXT

起始點
Starting Point

當使用控制器來執行"下載","下載並執行","下載並執行所選檔案"這些動作時,只有連結到起始點的指令可以被下載到NXT主機上.
This is the starting point for all programs. Blocks connected to the starting point will be downloaded to the NXT when you use the controller to hit Download, Download and run, or Download and run Selected.

Image of the Starting Point with Move block attached

 

如果按下起始點,將可以在參數面板上輸入註記並隨著程式儲存.
If you click the starting point, you can type a note in the configuration panel that will be saved with the program.

Image of note field in the configuration panel

 

也可以使用起始點來建立另一條序列軸來執行同時執行的任務.例如,主要的序列軸是控制機器人的前進動作,而第二條序列軸則是控制在機器人上方的手臂動作. ou can also use the starting point to create additional sequence beams that will allow your program to run simultaneous tasks. For example, you might have the main sequence beam in your program controlling a robot’s forward motion but have a second sequence beam controlling a robotic arm that sits on top of the robot.

Image of a program with a main sequence beam and a parallel sequence beam coming out of the starting point perpendicularly and then turning to run parallel

 

建立平行的序列軸可以將滑鼠移到起始點上方或是軸的末端. 並以上下的方式拖曳滑鼠. 這個動作會拉出一條與主要程式指令相連的序列軸. 當下載執行該程式時,在兩條序列軸上的指令會同時執行.也可以使用資料線來傳輸兩條序列軸上的指令資料.
Create a parallel sequence beam by moving the mouse pointer over the starting point (or over the wire stub), and pressing and holding your mouse button while you move the mouse upwards or downwards. This will draw out a sequence beam that can be connected to programming blocks. When you download and run the program, the blocks on both sequence beams will run in parallel. You can use data wires to have the blocks on both sequence beams communicate with each other.

Image of the starting point with a new sequence beam being drawn upwards

 

不一定要從起始點開始產生新的序列軸.只需同時按下Shift按鍵並再主要序列軸上移動滑鼠上下.
You can also start a new sequence beam later in your program (i.e., not from the starting point). Do this by holding down the Shift key and moving your mouse pointer perpendicular from a position on the main sequence beam.

Image showing a mouse pointer, moving straight up or down, “drawing out” a new sequence beam from the master sequence beam