06-05-2012 01:17 PM
In my application, I am trying to develop a 2D Array with specific information based on the input results from an array of global channels. I need to create individual tasks to acquire data based on the individual pxi slots that do not allow multiple cards running in the same task. What I am working on is logic that would read each individual global channel that I want to acquire through a for loop, find the channel's card and then create an array for each case of cards. Then I want to take those multiple arrays of channels and insert them into a column of the 2D array, in which I will index out inside another sub vi. I am having a problem creating the 2D Array. The channels are not lining up in the columns that I expect them too. Attached is a pic of the block diagram that shows how far I got with this. Please help.
06-05-2012 02:34 PM
One thing I see is that you are index by row and inserting by column. That would have some wierd effects on your array. That might be your problem.
06-05-2012 07:43 PM - edited 10-20-2012 02:01 PM
Your VI makes no sense at all.
You know how big the array will be from the array size of the autiondexing array, so initialize the shift register with the final size array, then use replace array subset to place the correct data in the proper locations.
Why are you constantly coercing between references and strings. Very confusing. What does the subVI do?
Can we start simple instead? Create a small demo VI containing an input array of strings (having useful default data), then tell us what the 2D output array should look like.
10-20-2012 08:42 AM
hi... i am trying to do the same but i am having the 2D array of data when first time if i clicked in table it should show the the first row values and if i again clicked same value should show in the second row and so on... but insted in my code if clicked (using insert into array ) at a time it is showing two rows of the data pl help me ..........
thanks in advance
10-20-2012 02:03 PM
@9677670421 wrote:
hi... i am trying to do the same but i am having the 2D array of data when first time if i clicked in table it should show the the first row values and if i again clicked same value should show in the second row and so on... but insted in my code if clicked (using insert into array ) at a time it is showing two rows of the data pl help me ..........
This seems to be a different problem, so you should have started a new thread instead.
Can you show us your code, tell us what you are clicking, tell us what you get and what you expect to get instead. Thanks.
10-21-2012 02:05 AM - edited 10-21-2012 02:15 AM
ya please see my code and if i clicked the read button at first time , table or array indicator have to show the value of selected cell in the first row, and if i clicked again same selected data have to show in the second row ,
is it possible
if it is possible please help me...
Thanks in advance
Regards
jjr
10-21-2012 11:14 AM
You are only showing a picture of a fragment of your code. We cannot troubleshoot that!
Please attach the actual VI and make sure the table contains some typical data as default.