ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

array

Hi, All
I have a questions about the array.
if I have data and need to concentrate to a aray but i didn't know how many elements will  come.
like this
2000 0
2010 10
2020 20
2030 30
.....
how can I result it ?
thanks
0 Kudos
Message 1 of 8
(4,339 Views)
Hi,
 
It would be very helpful if you can explain your question... I have not understood it clearly.
 
thanks
0 Kudos
Message 2 of 8
(4,327 Views)
Hi,
 
It would be very helpful if you can explain your question... I have not understood it clearly.
 
thanks
0 Kudos
Message 3 of 8
(4,326 Views)
sorry , let me explain clearly. ingore my first silly question
 
pls see the attachments ex1 and ex2 for example which i need
 
based on different data,  the output is different. the final number is different, but can be controled by another function.
 
 and i have a vi, but there are some problems, pls see as well.
 
 
Download All
0 Kudos
Message 4 of 8
(4,318 Views)

Hi srt,

I noticed that the only difference between ex1.txt & ex2.txt is that one ends at 2080 and the other at 2090.

Do you mean that the number of elements may change or that your array is dynamic? (ie: size of array may change based on acquisition)

I am not sure what you want to do. Can you describe what you want to accomplish?  A global overview without going into the LV details.

Thanks,

Ray

Message 5 of 8
(4,306 Views)

yes, the array size is dynamic, but the first question is how to append the array into the string.

i try to use the format into string function, but it didn't support the array.

 

 thanks

0 Kudos
Message 6 of 8
(4,301 Views)

Hi,

try to use the Array To Spreadsheet String from the String-Palette to convert a 2 Dim Array to text.

Hope that helps,

Ciao TPoint

Message 7 of 8
(4,298 Views)

TPoint beat me to the punch 😉

Here is a link that describes String Array to Spreadsheet :  http://forums.ni.com/ni/board/message?board.id=170&message.id=148030

Even if you do not use an actual spreadsheet, it will delimit the data by comma or tab.  Very useful tool 🙂

Thanks TPoint.

 

Ray

Message 8 of 8
(4,294 Views)