06-23-2013 12:29 PM
Hello,
Looking for some help finishing a stepper motor VI and very much a novice.
I found the following stepper motor VI, where the VI indexes through a series of HEX numbers equivalent to the binary motor step sequence.
The sequence is outputed to four LEDs in the VI but now I wish to output to four LEDs through my I/O 6501 device.
A DAQ assist has been set for the 4 I/O lines but when I run I get an error saying the task has 4 lines but the data is 8 so a bit confused.
Would be grateful for any help on this thanks.
06-23-2013 12:56 PM - edited 06-23-2013 12:57 PM
@Ev117 wrote:
Hello,
A DAQ assist has been set for the 4 I/O lines but when I run I get an error saying the task has 4 lines but the data is 8 so a bit confused.
your sending a 8 bit data...change it to 4
or
change the lines to 8
06-23-2013 12:57 PM
Your number to boolean array gives you an 8 element array. You need to use array subset to make that a four element array.
06-23-2013 03:57 PM
Thank you both very much for your help, VI is working perfectly, added
an array subset with length 4 just prior to the DAQ assist, thanks again.