Execute a sub-program

<< Click to Display Table of Contents >>

Navigation:  Using Robotino® View >

Execute a sub-program

Previous pageReturn to chapter overviewNext page

After connecting the "Arbitrary Waveform Generator" to the "Counter Up" you can start simulation of the sub-program by clicking „Start" start_normal shown in the tool bar.

 

You can display the values generated by the "Arbitrary Waveform Generator" and "Counter Up" by selecting View ONESTEP Show Connector Values or by pressing Ctrl + D.

 

run_subprogram

 

You can see the "Arbitrary Waveform Generator" generating values between 0 and 10. "Counter Up" increments its output when the input changes from false (0) to true (>0). At the moment this only happens when starting the sub-program. See type conversion to read how floating point numbers are converted to boolean. Furthermore it is very unlikely that the "Arbitrary Waveform Generator" output matches exactly to 0.

 

To see the counter counting, select square from the "Arbitrary Waveform Generator" dialog. The generated output is now in the range -1 to 1.

 

run_subprogram2