# LabVIEW

Showing results for
Did you mean:

# Input Sequnece and its Reverse.....

Hi, Good morning to all,,
I need some help,,i have 5 i/ps (means 5 position 1-2-3-4-5) according to that the o/ps are 0-0-0-0-0..but when that i/ps are come from reverse way(means 5 position 5-4-3-2-1)then o/ps are 100-100-100-100-60,,then how can i do this ,,,,,,,,,,,
plz can anyone help me...

Message 1 of 17 (657 Views)

## Re: Input Sequnece and its Reverse.....

Hi nitun,
are these the only possible capabilities? Do you get it as one information?
Mike
Message 2 of 17 (651 Views)

## Re: Input Sequnece and its Reverse.....

yes,and also one thing that the both the o/ps of their respective sequences are only in one indicator.....
Message 3 of 17 (643 Views)

## Re: Input Sequnece and its Reverse.....

Hi nitun,

see attachment...
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 (+ LV2016 sometimes) on Win7+cRIO
Kudos are welcome
Message 4 of 17 (639 Views)

## Re: Input Sequnece and its Reverse.....

thanks friend ,,

but i m still not getting right thing,,

let i explain it what exactly i m thinking...

There is one handle (or u can say regulator),it have 5 fixed position to move and default position is 0,then that handle we can manually move from 0,then 1 to 5,,at these position of handle the value are giving to single indicator is 0, and  when that handle is again move from its 5th position to 1st position then values for that indicator are changes as 100 for 5th to 2nd position and at the 1st position it shows 60..

and for this system i cant use button to reverse that sequence because that handle is move to different position from user,

Message 5 of 17 (629 Views)

## Re: Input Sequnece and its Reverse.....

Hi nitun,

well, you need to use a shift register to keep the last position value and compare with actual position... See attachment!
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 (+ LV2016 sometimes) on Win7+cRIO
Kudos are welcome
Message 6 of 17 (621 Views)

## Re: Input Sequnece and its Reverse.....

thanks a lot ,,this one thing that i needed,,,
thanks again friend..

i have one more problem ,,see attachment...
in this vi,when MR < 4 then it shows error message,,and that message is continuos ,,to stop this vi i m using task manager,,
so i need a such vi that show error according to the condition and in running condition value of MR can be change and it show true condition ,,,,,,
Message 7 of 17 (612 Views)

## Re: Input Sequnece and its Reverse.....

[ Edited ]
Hi nitun,

you should think about dataflow... See attachment!

Inside your loop the condition cannot change, hence you will see that message box over and over again... Changing the order of case structure and while loop will help alot
You should also:
- use so much spaces in control names
- don't use locals for such simple constructs (some say: NEVER use locals!)
- use some delay in user interface loops, no need to run at high speed (and CPU usage) when the user may change values just once per second. You can also use an event structure here...

It seems you should take some basic courses in LabView, you can find free ones here!

Message Edited by GerdW on 07-18-2008 11:01 AM
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 (+ LV2016 sometimes) on Win7+cRIO
Kudos are welcome
Message 8 of 17 (608 Views)

## Re: Input Sequnece and its Reverse.....

sorry for that condition actually that is MR>4,,then it goes in "true" case else in "false" case.and there is error message,
but i got that ,,but i still having problem ,,when the vi is in running state,,then default value of MR is 0,then it must show an error message because of the MR>4  and but sometimes it shows an error and but that time i increase value of MR which is greater than 4 ,it goes in true condition,,and after that when value again decrease the condition will false but it not shows error,,but in your vi it shows error message but that vi is stop after click on "ok" button of message
Message 9 of 17 (601 Views)

## Re: Input Sequnece and its Reverse.....

Hi nitun,

so your vi has to check MR regularly? You didn't say so (and you didn't wire so in your vi)!

What should happen when MR is out of range over a longer period of time? Should that error message be shown more than once? That is not clear to me neither from your vi nor from your message...

Will continue this in the evening, got to go to work now

Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 (+ LV2016 sometimes) on Win7+cRIO
Kudos are welcome
Message 10 of 17 (588 Views)