• 0

Waveforms Script Documentation



I'm trying to use the Analog Discovery 2 to control a stepper motor driver board. All I need to do is send an output (5V) signal using a DIO. I find the Waveforms 2015 manual to be lacking in terms of documentation for this - it does not explain how to give an output signal. How do I do this? Thanks!


For instance, the reference manual has this sample code:


function doStaticIO(){

print("Running StaticIO script");

StaticIO.Channel0.Mode.text = "IOs";

for(var c = 0; c < 8; c++) {

StaticIO.Channel0.DIO[c].Mode.text = "Switch";


But it is never explained what a Channel is either. What is a Channel and how is it different from DIO1, DIO2, etc.? 

Thank you so much!



Share this post

Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hi @Michelle

The StaticIO controlled from Script won't provide exact timing.
For stepper motor control it is better to use the Patterns. In case you need to automate, like changing the signal frequency you can do it with the Script tool.


Here you have some posts about the Script and StaticIO if you need it.


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now