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.?
Question
Michelle
Hi,
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!
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.