LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Stepper Motor VI Output to LEDs

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.

 

 

0 Kudos
Message 1 of 4
(2,672 Views)

@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
Message 2 of 4
(2,667 Views)

Your number to boolean array gives you an 8 element array.  You need to use array subset to make that a four element array.

Message 3 of 4
(2,665 Views)

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.

0 Kudos
Message 4 of 4
(2,642 Views)