LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array

When i run the program the for loop iterates only once and thats about it. the leds change state only once. when I run the program only one nibble comes out

0 Kudos
Message 11 of 17
(910 Views)

SK0480,

 

Try wiring a constant (let's say 3) to the for loop instead of using your number of steps control and make sure that works.

 

Regards,

 

Renee Michaud

Regards,

Renée M
Applications Engineer
National Instruments
0 Kudos
Message 12 of 17
(901 Views)

@SK0480 wrote:
When i run the program the for loop iterates only once and thats about it. the leds change state only once. when I run the program only one nibble comes out


I thought you only wanted one selection from the array?  This will then go to your indexer to drive the coils.  Is this not right?  You need to be more clear on what your requirements are, exactly.  Do you want to index the array at or to a certain point, say from row 0-2 (If Number of Step control is set to 3)?  I'm not sure what you need.

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 13 of 17
(890 Views)

Hi

This program you gave me does work but it has a glitch and I just cant figure out how to fix it....

The logic you have work for the true case but for the false case it does not work correctly..

For the true case the index that comes out is 1,2,3,0. for the false case the sequence should be 0,3,2,1-but the way it comes out is 3,2,1,0. what should I do to make the index come out to 0,3.2,1 for the false case.

where index 0 is the first row of this boolean matrix and index 1 is the last row of the matrix...at least this is what I have noticed when looked at the led display.

0 Kudos
Message 14 of 17
(868 Views)

SK0480,

 

I've modified your gravy.vi file to give the indexing as you have mentioned. It's attached to this message.

 

Regards,

 

Renee M

Applications Engineer

National Instruments

Regards,

Renée M
Applications Engineer
National Instruments
0 Kudos
Message 15 of 17
(844 Views)

i have a question. i want to connect pic 18f4550 with PC. i use USB-HID protocol. but i don't know how to do link between code ccs and code in Labview.this mean  how variable in labview and variable in ccs connect together . can you help me solve this problem.please?

 

0 Kudos
Message 16 of 17
(768 Views)

This is a completely unrelated question and should really have a new thread started to deal with it. Creating a new thread will make it easier for people to find your question and answer it.

 

There are already existing threads that discuss working with the 18f4550, such as this one. I would read through some of these first and then create a new thread if you still have questions.

0 Kudos
Message 17 of 17
(741 Views)