ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

取消
显示结果 
搜索替代 
您的意思是: 

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...
 
0 项奖励
1 条消息(共 17 条)
3,888 次查看
Hi nitun,
are these the only possible capabilities? Do you get it as one information?
Mike
0 项奖励
2 条消息(共 17 条)
3,882 次查看
yes,and also one thing that the both the o/ps of their respective sequences are only in one indicator.....
0 项奖励
3 条消息(共 17 条)
3,874 次查看
Hi nitun,

see attachment...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
4 条消息(共 17 条)
3,870 次查看

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,

 

0 项奖励
5 条消息(共 17 条)
3,860 次查看
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


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 项奖励
6 条消息(共 17 条)
3,852 次查看
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 ,,,,,,
0 项奖励
7 条消息(共 17 条)
3,843 次查看
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


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 项奖励
8 条消息(共 17 条)
3,839 次查看
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
0 项奖励
9 条消息(共 17 条)
3,832 次查看
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


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 项奖励
10 条消息(共 17 条)
3,819 次查看