LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Remembering Previous State in Array

It appears I can't wire an array back to itself so it can recall it's
previous
state.

I'm trying to read and record a multimeter measurement for 7 different
values
and place the output into an array that corresponds to one of 7 different
buttons.

I'd like the array to remember it's previous state for the buttons that
aren't
being pressed.

Here's a link to the vi of what I'm basically trying to get at:

http://members.fortunecity.com/pongclub/MultiMeterSwitchArray.vi

Any ideas for solving this problem will be appreciated.

--Rob
http://members.aol.com/ttoutpost1
0 Kudos
Message 1 of 8
(3,362 Views)
I didn't look at your VI, but a good way to use outputs for its own input is with shift registers in a while loop - then the output data can be used as needed and wherever. Also, I often use the "Write to File" VI (array or characters) and read that .txt file back in where needed using the Read from File VI. Hope this gets you closer...
Message 2 of 8
(3,362 Views)
The shift registers are exactly what I needed to use.
0 Kudos
Message 5 of 8
(3,362 Views)
If i understood you well, i attached a vi that will do that (your link seems to be dead, so i didn't check the example). If not, just ask.
Hope this helps
Message 3 of 8
(3,362 Views)
Cool. That's exactly what I needed. I've attached my previous vi with the shift register included.
0 Kudos
Message 4 of 8
(3,362 Views)
Robert,

I'm coming in a little late, so if you already have a solution, please
disregard.

If I understand your problem correctly, you are asking for two things.
First, you need to select one out of multiple array positions to store a
value. Second, you want to replace an array element at that indexed
position.

It sounds like a radio button array would work for the first part. For the
second part, there is a Replace Array Element VI that will do this for you.
I'm sending the VI to you in a separate email.

Regards,

Mike
0 Kudos
Message 6 of 8
(3,362 Views)

can you post that vi here

0 Kudos
Message 7 of 8
(1,326 Views)

Hi Harish,

 


@Harishkanmani wrote:

can you post that vi here


Do you really expect an useful answer after 22 years?

What's wrong with the VI posted back then?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 8
(1,320 Views)