LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to add changing 1D array to 2D array for update

Hi is there anyone who help me with this knotty problem. How to add the changing 1D array to 2D array?
Pls take a look at my Vi file. Your help will be much appreciated. Pls help modify my Vi file so that I can see it and understand clearly. many thanks in advance.
0 Kudos
Message 1 of 7
(3,775 Views)
Well, it's probably easier to put it all in one loop and use a shift register (see attached). Let me know if you have questions.
Message 2 of 7
(3,775 Views)
Hi altenbach. It works great just as I had expected. But some how actually the random numbers are not supposed to be in the 'for loop' with build array.
Becos I am using DAS card to access the signals from 4 channels at a time. That's why the random number act as a channels input of DAS card for build array to build up tha array. And I also use I/O of DAS card to control so that each channel will capture voltage value at a time. I am using Advantech's DAS card.
So how do we do that? I am using while loop too. I am not sure If u have drivers for advantech card, I will attach for you anyway, maybe it will help. Alternatively u can use the other file which you have used. Thanks for your help again.
Download All
0 Kudos
Message 3 of 7
(3,775 Views)
No, I don't have any DAQ drivers, so I cannot test, but why couldn't you just do the same thing in the main while loop (see attached)?
0 Kudos
Message 4 of 7
(3,775 Views)
Hi. I just realise that I can put DAS functions.vi just inside the for loop. Thanks for your help. Without you, I would still be stranded in the mud. Thanks again.
0 Kudos
Message 5 of 7
(3,775 Views)
If Altenbach's answer has been helpful then you should give him four stars.
0 Kudos
Message 6 of 7
(3,775 Views)
Thanks for your remind.
Just gave Altenbach 4 stars!

regards;
Clement
0 Kudos
Message 7 of 7
(3,775 Views)