LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

write to table

i cant write my data to row 2 can anyone help??eample my data 'A' is in first row then follow by second row data 'b' third row....'c'
0 Kudos
Message 1 of 11
(4,481 Views)

Hi,

In your vi you are only creating a 1D array to write to the table.  This 1D array is effectively just one column.  You need to generate a 2D array of strings to write to the table.  you can do this in anumber of ways, adding a for loop round your existing for loop for example.

Craig

LabVIEW 2012
0 Kudos
Message 2 of 11
(4,470 Views)
make append terminal true.
0 Kudos
Message 3 of 11
(4,454 Views)
Where is the append terminal ?! Smiley Happy
- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 4 of 11
(4,451 Views)

The way your vi works it will rewrite the table each time the vi executes.  If you want to use this as a sub vi, that apends string data to the table -- try this

 

 

Tom

Message Edited by Tom Haggerty on 10-10-2007 08:29 AM

Message 5 of 11
(4,446 Views)
i try yr program and it work...thk...but got another problem is that when the case struture went to default....it overwrite my table..
0 Kudos
Message 6 of 11
(4,403 Views)
can any expert help....Smiley Surprised
0 Kudos
Message 7 of 11
(4,393 Views)
Hi!
This may help.
 
Kaustubh
VIAPL
0 Kudos
Message 8 of 11
(4,389 Views)
this is a example i make.Acually my Act input is random form..so my Act input activate,struture a will on...sending data to the table..it now only the daflaut part giving me problem...any way to solve the default part where it will retain my previou data..waiting for another input to be activte..thk....
0 Kudos
Message 9 of 11
(4,379 Views)

A table is a fancy version of the normal 2D Str Arr. But what you re doing is the creation of a 3D Str Arr. Autoindexing of the while loop results in this, see your code. So you ve put an Index Arry at the end, which is not needed at all.

Just disable the Indexing of the while loop tunnel & take the wire directly to the Table.

Maybe you need to transpose it, thats all.

Give some correct sample data in a VI, so that we can help you out correctly. Your VI is a bit vague to me.

- Partha ( CLD until Oct 2027 🙂 )
Message 10 of 11
(4,365 Views)