LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array - Permanent storage of data in an array??

Dear all,
 
I would like to store a chain of dynamic data in an array permanently. This means even if the input chain is removed, the passed values must stay inside the array without disturbed!!
 
Can anyone suggest me in that regard??
 
Thanking you.
0 Kudos
Message 1 of 11
(5,072 Views)
Hi Parny,
   what do you mean by "input chain is removed"? Do you mean when new data are available? Or when user inserts new data....?

    Need to know this to help a little bit more....

    Have a nice day!

graziano
0 Kudos
Message 2 of 11
(5,058 Views)
Input chain is nothing but, the input data line.
It means, "when I stop passing any values", the old data must still exist and thats the requirement!
 
Thanking you.
0 Kudos
Message 3 of 11
(5,057 Views)
Hi Parny,
   excuse me for not being so fast in understanding.... but now I see a little clearer.  Can you post (even a simplified version of) code in which you add data to array? Please, do it for LabVIEW 7.1, or just post an image of block diagram....

graziano
0 Kudos
Message 4 of 11
(5,051 Views)
Hi Parny,

as long as the vi containing the array indicator is in memory (due to being a subvi of some other vi) the array data "still exist"...

You can setup connection terminals in the vi icon to wire data from one vi to the next...
Or use a global variable to store data (beware of race conditions)...
Or use a queue to "store" data...
Or save the array to a file and load back later...

So many possibilities to save data, so less informations from you Smiley Sad
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 5 of 11
(5,038 Views)
That's why I was asking for code Smiley Wink

graziano
0 Kudos
Message 6 of 11
(5,032 Views)
HI all, sorry all for the shorter info, if u feel.
 
The simplest way to illustrate is in this way.
 
Storing of a continuous signal(like sine,cosin, sawtooth etc..) into an array and compare those values. When I say "values", they are "amplitude levels" of those signals at various time intervals. I want to measure the max peak in that signal. But remember, the actual signal may not be the above ones, just for example, I have taken them. The actual signal could be any irregular continuous signal.
 
Thanks again for yourr patience.
0 Kudos
Message 7 of 11
(5,017 Views)
Hi Parny,

it is still unclear where your problem is...

Why not do it similar like shown here?

Message Edited by GerdW on 09-28-2007 10:59 AM

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 11
(5,009 Views)
Hi
   Let me guess... you sample 1000 points of data, then calculate the max, and store it to an array? Or what do you do with them? Really, there's too few information to help you (but still I try...).

   Have a nice day!

graziano
0 Kudos
Message 9 of 11
(5,006 Views)
Hi Parny,

cross-linking to your related, new thread...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 10 of 11
(4,998 Views)