LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

RE: Remembering Previous State in Array

The previous vi link doesn't work.

Here's a link to the file that I zipped:

http://homepages.about.com/mesatabletennis/MultiSwitch.ZIP

--Rob
>===== Original Message From Robert Trudell =====
>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

------------------------------------------------------------
Get your FREE web-based e-mail and newsgroup access at:
http://MailAndNews.com

Create a new mailbox, or access your existing IMAP4 or
POP3 mailbox from anywhere with just a web browser.
------------------------------------------------------------
0 Kudos
Message 1 of 3
(2,651 Views)
Hi,

I had a similar sort of problem to this.

The solution I used was to make use of local variables. Make a local
varibale for the array(s) and then for when the button is not being pressed
read this local variable and pass the output back to the array, thus
effectively keeping the state of the array the same.

I don't know if this is the best approach to use, but it does seem to work.

Hope that helps,

Andy.
0 Kudos
Message 2 of 3
(2,651 Views)
I hadn't tried using local variables. Someone else suggested using shift registers which worked out great.
0 Kudos
Message 3 of 3
(2,651 Views)