LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Manipulati​ng array

Solved!
Go to solution

@jamesy777 wrote:

 

They aren't initialized becuase i didnt know they had to be. I'm guessing I wire up indicators with defaults set to 0 ? 

I also have a typo ( Uint32 references should be called Uint16)


If they are not initiaized, they remember the last value from the previous run (in the same edit session). Just right-click the left SR and "create constant".

 

Here's a very stripped down version just showing how the conditional tunnel works. (Note that "index array" is resizable).

0 Kudos
Message 11 of 15
(1,149 Views)

Thats definitely a neater solution, Now that the UINT8 data is in a seperate Special array i need to look at each row and start to assemble the TEMP_A/TEMP_B names and associated shared variable links.

Are shift registers the way to go here? Looking at the huge input excel it looks like all UINT registers are written like:

 

4

8000 0004

5

8000 0005

 

So maybe i could use the "Special" array as an input to some kind of autoindexing for loop which will pick out every 2 rows in the special array and assemble the uint16 message names and locations.

Any ideas?

James

 

 

 

0 Kudos
Message 12 of 15
(1,141 Views)

Heres my attempt attached, my problem is how to append an additional row to an array using an auto-indexed for loop.

 

This VI gives me : 

 

A

B

CB

D

E

FE

 

I want

A

B

AB

C

D

CD

I'm sure there is a simple solution.

James

0 Kudos
Message 13 of 15
(1,101 Views)
Solution
Accepted by topic author jamesy777

Try this:

 

 

Download All
0 Kudos
Message 14 of 15
(1,087 Views)

Thanks, the concat option on the outout tunnel was really useful. Its working great now.

 

James

0 Kudos
Message 15 of 15
(1,040 Views)