LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

1D array in memory...

Hi all... i'm using labVIEW 7.1...

in my program, i having a problem here... is related with 1D array... in my program i wish to insert some value into an 1D array and also store it in memory so when i run the vi again then the value still in the same location...

below is a vi that dne by myself, but i don't know where is the problem...
it will be great if someone can help me to solve it! 🙂

with regard
Jaxx
0 Kudos
Message 1 of 15
(3,866 Views)
Hi Jaxx

I am not entirely sure what you are exactly trying to do from lookig at your code.

I have attached a very simple VI that shows you how you can insert values into a 1D array. The key is the use of shift registers in the while loop - Hope this proves helpful.

Additionally, you appear to be trying to store all values in all controls on your FP in an ini file. This seems a bit overkill. Maybe it would be better to just store the array data you are interested in, in a CSV file or similar? Just a thought.

Cheers,

Bazza
0 Kudos
Message 2 of 15
(3,854 Views)
Hello @,

problem not solved, but I made some changes and comments to your llb...

Best regards,
GerdW
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 15
(3,848 Views)
here's the llb...

For NI: Attachment button should be near to submit button! On a 1280x1024 display you have to scroll for the attachment button...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 15
(3,848 Views)
HI Bazza...

actually i not really want to store my array data in an ini file, i just wish to saw those values again while i run the vi.

maybe i'm confusing you 😛 actually what i trying to do, you can find out in my vi... when you run the vi and press the assign button, the value will store in the location that you inserted. so that when you the vi again u still can see the value at the same location. that's all... 🙂

hope you can understand my broken english 😛

best regard
Jaxx
0 Kudos
Message 5 of 15
(3,828 Views)
HI GredW...

i doesn't know you really understand what i mean or not? you can see the message that i posted at above if u really don't understand 😛 but i still want to say thank you for simplify my vi 🙂
i'll keep trying for this problem. and if you know already for the answer please post to here, thanks!

with regard
Jaxx
0 Kudos
Message 6 of 15
(3,828 Views)
Hi all experts...

anyone can help me to solve about this problem? that will be great if this problem can be solve, because it already bother me many days...

with regard
Jaxx
0 Kudos
Message 7 of 15
(3,809 Views)

wrote:
...in my program, i having a problem here... is related with 1D array... in my program i wish to insert some value into an 1D array and also store it in memory so when i run the vi again then the value still in the same location...
below is a vi that dne by myself, but i don't know where is the problem...



What is the problem ? Where is the value you want to insert ?
May be if you were using an Insert Into Array node in place of a Replace Array Subset node things would run better ? Is that deliberate or just a confusion ?
CC

Message Edited by chilly charly on 03-20-2005 05:51 AM

Chilly Charly    (aka CC)
0 Kudos
Message 8 of 15
(3,808 Views)
HI chilly...

maybe you should take a look of my second posted... i mention about my problem there...

thanks!

with regard
Jaxx
0 Kudos
Message 9 of 15
(3,802 Views)
I got the solution ! It's 42 ! 😄 (see Douglas Adams...)

I have read everything, but I still cannot understand what you want to do (and apparently I'm not the only one...).
What do you intend to do with the table ? Why are you talking about inserting while you actually replace elements ? Why do you make the Array and Array 2 controls look like indicators ? Why is Bazza idea not working ?
WHAT IS THE PROBLEM ?


CC

Message Edited by chilly charly on 03-20-2005 06:49 AM

Chilly Charly    (aka CC)
Message 10 of 15
(3,798 Views)