LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

get previous string from a shift register

Hi!!
 
I have an array with several tests that are read string by string as the user enter NEXT. This is done with a shift register, but I would like to have the previous string as well.
 
Is there a easy way to get a previous string with a shift register ?
 
 
A
0 Kudos
Message 1 of 5
(3,708 Views)
Your question is not very clear, because a shift register already gives you the previous value.
 
You can resize the left shift register downward to include older history values (n-1, n-2, etc.). Maybe that's what you want?
0 Kudos
Message 2 of 5
(3,701 Views)
Hi!!!

I still have problems to get the previous value from a array. Attaching a simplified example of my issue.

The problem is to get a interaction with the event case to get the right (meaning: the value the user want: previous or next value) value written to screen. The string has no response inside the event case.

Do you have any hints to how I may solve this ??

A
0 Kudos
Message 3 of 5
(3,645 Views)

Sorry, your VI makes very little sense. What are you actually trying to do?

  1. There is only a indicator for the next string and previous string, but no indicator for the current string. Seems confusing.
  2. The button containing text "next" is labeled "previous" and vice versa. Very confusing!!!
  3. What is the purpose of "array to spreadsheet string"?
  4. What is the purpose of the inner shift register? Since the data does not change it is not needed.
  5. Since you have an event structure without timeout, you don't need a delay.

Here's a quick demo (LabVIEW 8.5) how to step forward and backwards through an array. See if this can give you some ideas.

 

Message Edited by altenbach on 10-19-2007 09:04 AM

0 Kudos
Message 4 of 5
(3,630 Views)
Hi!!

Sorry, my example VI was a bad short cut.

BUT you figured out exactly what I was looking for!!!! Thanks, big time!!!

A
0 Kudos
Message 5 of 5
(3,598 Views)