LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to replace a specific row from 2D array?

how replace a specific row from 2D array?
 
thank you
 
vicens
 
Win XP/LV 7.1
0 Kudos
Message 1 of 7
(3,743 Views)
Try what's in the attached picture.




Message Edited by Will.D on 11-07-2006 10:56 AM

Message 2 of 7
(3,738 Views)
Thank you, Will.D
 
it's possible search a row in a 2D array string?
0 Kudos
Message 3 of 7
(3,729 Views)
Of course!  But it's hard to offer good advice without knowing what you're trying to do exactly.

Do you know the row number?  Are you searching for a row or an element within a specific row?  Are you comparing strings?

The answer shouldn't be hard, just need some more info!
0 Kudos
Message 4 of 7
(3,723 Views)
This VI works good but only in the case when I don't repite the control. When I switch on a case control, this case appears in row '0' in the array. If switch off the same control change in the row '0'...OK. If I proceed with other case control works too. But if I switch on the case control of the beginning this case appears in other row.
I think that I have to search the index of the row to replace, but the index changes each loop.
 
sorry for my english...
 
vicens
0 Kudos
Message 5 of 7
(3,716 Views)

Hi vicens & everybody,

I think your problem is because of 2 things:

1. You forgot about inserting the 0 into the false case in the case structure where you save the time.

2. You used replace array instead of insert into array.

I attach you the vi with the C case solved (the A & B) ones are still wrong as you got them previously. As you will see you detect all the changes for the C case. If you make an ON/OFF  you detect both changes.

Regards,

Jaime Cabrera

NI Applications Engineering Spain

Regards,

Jaime Cabrera

NI Applications Engineering Spain
Message 6 of 7
(3,700 Views)

HI,

I think now I got what u wanted to do....

Is that right 3 files one for each button??????

I think is that thing... see attached vi.

Regards,

Jaime Cabrera

Ni Applications Engineering Spain

Regards,

Jaime Cabrera

NI Applications Engineering Spain
Message 7 of 7
(3,684 Views)