From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

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
Message 1 of 11
(6,644 Views)

Try this.

 



Message Edited by Ravens Fan on 04-02-2008 10:35 PM
Download All
0 Kudos
Message 2 of 11
(6,635 Views)
Thanks a lot mate, its working
0 Kudos
Message 3 of 11
(6,628 Views)

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
Message 4 of 11
(6,586 Views)
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
Message 5 of 11
(6,580 Views)
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
Message 6 of 11
(6,574 Views)

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
Message 7 of 11
(6,552 Views)


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
Message 8 of 11
(6,547 Views)

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?

 

 

Download All
0 Kudos
Message 9 of 11
(6,494 Views)


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
Message 10 of 11
(6,481 Views)