LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I would like to read a ASC11 file ?

When you say you "would like to get the first row of first matrix with first row of 2nd matrix cncatanated", does that make two rows in you final array or one?
E.g.
row 0 of array 1 = 1 2 3
row 0 of array 2 = 21 22 23
What do you want in the final array?
Case1:
row 0 = 1 2 3 21 22 23
or
Case 2:
row 0 = 1 2 3
row 1 = 21 22 23
For either case, use Index Array (or auto-index in a For loop) on array 1 and array 2 to get one row at a time, then use Build Array to put the rows together.
For Case 1, use Build Array with Concatenate Inputs selected (right-click on Build Array and select Concatenate Inputs). Then use a single element Build Array to make one row a 2D array.
For Case 2, use Build Ar
ray with Concatenate Inputs not selected.
See the attached LabView 6.1 example.
0 Kudos
Message 11 of 14
(674 Views)
The example uses numeric arrays, but you can easily change it to use string arrays if you want to merge you ASCII data before you convert it to binary.
0 Kudos
Message 12 of 14
(674 Views)
ok thanks.Case number 1 is suitable for my application.but still i have one problem.
with small data like 180kb etc it is fast,
but i have each matrix of about 10 MBytes
and i have two matrices. it is very slow.
can i make the speed fast??
thanks
0 Kudos
Message 13 of 14
(674 Views)
You changed your top level VI since the last time you posted it: you went from 030211manipulatedwritebinary.vi to 030211manipulatedwritebinaryfor2Darray.vi so we still can't really see what you're doing.
Have you tried to profile your VIs to see which VI is slow? From any LabView window, goto Tools >> Advanced >> Profile VIs >> Start. Run you VI, then click on Stop in the Profile VIs window. See which VI is taking the longest. When you start manipulating large arrays, there are a lot of ways you could slow them down or speed them up.
0 Kudos
Message 14 of 14
(674 Views)