LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Insert into array

Hi all,
 
I'm trying to save the data as it displays at the table control. But somehow I'm stuck at the insert into array portion. I'm not sure how I could get the running data to be insert in row 1, column 1 onwards.
 
Thanks for anyone who could show me any insight. I'm at my wits' end.
 
regards
 
-using labview 8.0-
0 Kudos
Message 1 of 19
(10,443 Views)
Hello,

Can you save a screenshot with a table as you would like it (fill in by hand) and a txt file with a dump of the data you receive from the VISA driver.

Without actual data and a clear goal its difficult to spot the problem, but maybe you should take you're own comment into consideration (style guide:
straight wiring from left to right).
Regards,
André (CLA, CLED)
0 Kudos
Message 2 of 19
(10,428 Views)
Hi,
 
I managed to save a screenshot, the portion marked yellow is what i wanted to implement but couldn't. I can only get the headings and the row 0 data out. What do you mean by test file with dump of data at visa driver?
 
Normally when i wire icons to icons the wire decide its own direction, how can i straight wire from left to right? Is it using 'clean up wire?'
 
Thanks!
 
 
 
 
 
0 Kudos
Message 3 of 19
(10,417 Views)
More screenshots, hope it helps!
Download All
0 Kudos
Message 4 of 19
(10,413 Views)
For the wiring, I never let LV decide my wiring (the first thing I do with a fresh install is to disable all auto-wiring features).(Tools->Preferences->Block diagram options)

Is K3.jpg a manually filled table? (What is the result of the code, how should the codes result be changed so you get what you want?)
Should the rows be columns? (Transpose before insert)


Message Edited by andre.buurman@carya on 11-06-2007 03:38 PM
Regards,
André (CLA, CLED)
0 Kudos
Message 5 of 19
(10,402 Views)

Hello,

for k3.jpg, the values are generated from the device which is what i wanted to save that. The rest such as HOPONL... and Test average power, max is preset in the table control.

when the readings are being taken, see k2.jpg, look at probe8 window, the values are '-1.08 -1.53 -0.92 -1.14 0 10' and etc, then values are passed into Spreadsheet string to array and Replace array subset.

Thank you.

0 Kudos
Message 6 of 19
(10,395 Views)
I still don't know what it is exactly that you don't succeed in doing.
What goes wrong with the insert array function?
Regards,
André (CLA, CLED)
0 Kudos
Message 7 of 19
(10,388 Views)
Because i get broken wire when i try to wire the output from replace array subset to build array. I couldn't save the data.
0 Kudos
Message 8 of 19
(10,377 Views)
I get it.Smiley Very Happy

In the for loop you acquire the data. this data is put into table which is also available through the shift register at the back of the for loop.

The row and column headers should be added to the data outside the for loop. So build array row header and data, then transpose and build array with column header or the other way around.




Regards,
André (CLA, CLED)
0 Kudos
Message 9 of 19
(10,364 Views)


Message Edited by andre.buurman@carya on 11-06-2007 04:49 PM
Regards,
André (CLA, CLED)
0 Kudos
Message 10 of 19
(10,359 Views)