Use Constant and Variable controls

sample application animated gif

Click on the image to see the full-size animation.

This application generates a sawtooth wave with configurable constant controls for the amplitude and period and a variable offset control. Adjust the constant values to make changes and watch the DAPL declarations change as you send the new values to the DAP board. Adjust the variable value and watch as the new information is sent to the DAP board as the application runs.

  1. Select File|New.
  2. Select file \Apps\App2003.dms.
  3. Select Start! or press Alt-S on the keyboard.
  4. Select Stop! or press Alt-S on the keyboard.
  5. Change the amplitude and period using the constant controls for cAmpl0 and cPeriod0. Click the Send to DAP0 button.
  6. Observe that the values in the Configuration|Processing|Declarations edit box immediately reflect the changes made.
  7. Select Start!
  8. Select Diagnostics|Interpreter and resize as preferred.
  9. In the Custom Design window, change the offset using the variable control for vOffs. Click the Send to DAP0 button.
  10. Observe that not only does the value in the Configuration|Processing|Declarations edit box immediately reflect the changes, but a LET command updates the variable in the DAPL code running in the Interpreter window.
  11. Select Stop!.
  12. Scroll up in the Interpreter window to view the DAPL code sent to the DAP board and observe the changes made in the Automatic Declarations.