annulla
Visualizzazione dei risultati per 
Cerca invece 
Intendevi dire: 

1D Array to Table

Hi Mate,
 
I have got o/p from serial port as +a+b+c+d+e+f+g+h+
 
But I would like make it as
 
1.+a
2.+b
3.+c
4.+d
5.+e
6.+f
7.+g       and place in the table.
 
Any help
Messaggio 1 di 11
8.351Visualizzazioni

Try this.

 



Message Edited by Ravens Fan on 04-02-2008 10:35 PM
Scarica tutti
0 Kudos
Messaggio 2 di 11
8.342Visualizzazioni
Thanks a lot mate, its working
0 Kudos
Messaggio 3 di 11
8.335Visualizzazioni

Hi Mate,

I tried to modify my existing design making 2D array and transfer it to spread sheet.

But still get the result as +++++++++++++++, although the data type is same as yours.

Please find the attachment

Any comments?

0 Kudos
Messaggio 4 di 11
8.293Visualizzazioni
Please run your VI once so the "read string indicator contains typical data. Now right-click the indicator and "change to constant". Delete all serial stuff and attach the VI again.
 
You have three instances of "write to spreadsheet file", all set to append. How do you know to which file you are writing and in which order?
0 Kudos
Messaggio 5 di 11
8.287Visualizzazioni
First of all, a "spreadsheed" for the purpose of "write to spreadsheet file" is just a a plain text file with tabs separating columns and newlines seperating rows.
 
Lets assume you want to place each record on a new line. In this case you could just reformat your string by replacing "+" with "(newline)+" and append the resulting string to your file.
 
Don't jump through all these hoops with built array, loops, shift registers,  etc.etc...! 😮 LabVIEW is supposed to be simple! 😄
 
 
If you want each set of records on a row (instead of column), replace the newline with a "tab" and append a newline before appending to the file. Modify as needed.


Message Edited by altenbach on 04-03-2008 06:06 PM
0 Kudos
Messaggio 6 di 11
8.281Visualizzazioni

Hi Mate,

It doesn't work

I just tried to prove that my version works as it has the same data type

any help

0 Kudos
Messaggio 7 di 11
8.259Visualizzazioni


shamy017 wrote:
I just tried to prove that my version works as it has the same data type
Same datatype as what? If you use my version, you would write to a plain text file, not a "spreadsheet file". Different tool. 🙂
 
If you still have problems, please follow the instructions in my earlier post:
 
0 Kudos
Messaggio 8 di 11
8.254Visualizzazioni

hi mate,

i would like to ommit the delimeter ch. ">" in the reading as i am getting the reading as >+1+2

And build a table of the reading with date and time

please find the attached word.doc

possible?

 

 

Scarica tutti
0 Kudos
Messaggio 9 di 11
8.201Visualizzazioni


shamy017 wrote:

hi mate,

i would like to ommit the delimeter ch. ">" in the reading as i am getting the reading as >+1+2

And build a table of the reading with date and time

please find the attached word.doc

possible?



Use the String subset function on the String Palette to with an offset of 1 and the last input unwired to give the rest of the string.  That will eliminate the first character in the string.
There are date/time functions to provide the date and time, you can concatenate them into the strings.
I have no idea what your attached word .doc is supposed to mean.
 
Since it seems like you are very new to LabVIEW programming, I would recommend looking at the online LabVIEW tutorials:
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours
0 Kudos
Messaggio 10 di 11
8.188Visualizzazioni