PDA

View Full Version : Variable Rotary Selector



imported_Nihad
01-19-2005, 07:26 AM
I have bought the PMsystems software yesterday and tried to assign a Variable Rotary Selector to a rotarie on the overhead panel for example: on a B747 the wiper rotarie has 3 positions off,lo and hi what I did is attache a wire on the centre of the rotary and wire it to the ground on the input side and attached 2 other wires on the 1 and 2 positon also on the input side.
When I assign it in fsphidgets when turned the rotarie moves from the off to the lo position I am trying to figure out how to assign this rotarie so it will show 3 diff positions anybody here has any idea on how I need to assign this in fsphidgets or if I am doing something else wrong.

Thanks for any help

Nihad

alandyer
01-20-2005, 05:36 PM
Nihad,

Looks like you have rotary wired up correctly.
I looked at pmSystems documentation.
They have not published values for wiper offsets yet.
I have taken this up with folks at pmSystems.
They're very responsive. I expect an answer from them shortly.
You will be first to know when I hear something.

Regards,
Alan.

alandyer
01-24-2005, 05:42 PM
Nihad,

Open your FSUIPC ini file with text editor like Notepad.
File is named FS2PhUIPC.ini and is in directory where you loaded Fs2Phidgets.
Most probably C:\Program Files\FS2Phidget\

Go to entry [WiperL]
For Lo position make entries as follows:
[WiperL_Lo] <----Name that appears in drop down list (choose any name)
Offset=5660 <---FSUIPC offset (don't change that value)
Length=1 <---FSUIPC length (don't change that value)
FSType=Digital <---Tells FS2Phidget this is On-Off function
OffValue=0 <--- Value sent to pmSystems when switch is set to Off
OnValue=1 <--- Value sent to pmSystems when switch is set to On

Assign this to switch position that sets Off and Lo position

Create another entry for Hi position:

[WiperL_Hi] <----Name that will appear in drop down list when you assign
Offset=5660 <--- FSUIPC offset (don't change that value)
Length=1 <--- FSUIPC length (don't change that value)
FSType=Digital <---Tells FS2Phidget this is On-Off function
OffValue=1 <--- Value sent to pmSystems when switch is set to Off
OnValue= 2 <--- Value sent to pmSystems when switch is set to On

Assign this to switch position that sets Lo and Hi position

Do same thing for Right Wiper.
That is, create entries like [WiperR_Lo] and [WiperR_Hi]

pmSystems has feature in their development mode.
If you put your mouse over the switch, the offset and the length will be listed when you move the switch to each position.

Regards,
Alan.

imported_Nihad
01-25-2005, 01:27 AM
Hi Alan,


Thank u for your help regarding this problem but I did exactly what u wrote and what happens now is it starts at Lo and moves to Hi and back to Lo for some reason it just does not want to goto 3 positions I changed the assignment in FS2phidgets and what I get then is from Off to Lo and back to Off never get Off-Lo-Hi.
With a 3 position toggle it does work but with these variable rotaries it just will not happen very strange and the too bad part is a B747 uses alot of variable rotaries almost no toggles used unless for light switches so I do have to figure out how to make this work I tried it with other functions on the overhead panel (PMsystems) and same deal never get a 3 position movement only 2.
I use the IFK 8/8/8 board what if I use the IFK 0/16/16 board might that do better?

I tried these settings :

WiperL_Off]
Offset=5660
Length=1
LoValue=0
HiValue=1

[WiperL_Lo]
Offset=5660
Length=1
LoValue=1
HiValue=1

[WiperL_Hi]
Offset=5660
Length=1
LoValue=1
HiValue=2

I guess I can't assign the Off because it is attached to ground and that is the problem I think it can't give a value 0 in PMsystems.

Thank you,

Nihad

alandyer
01-25-2005, 07:27 PM
Nihad,

The only thing I can think of is one type of switch might be make-before-break and the other break-before-make.

Alan.

alandyer
01-25-2005, 07:42 PM
Nihan,

Have another look at your Wiper_Off:
[WiperL_Off]
Offset=5660
Length=1
LoValue=0
HiValue=1 <------ This will send Lo value when switch is On!!!!!

0 = Off
1 = Lo
2 = Hi

If you are wiring Off position of your rotary to a digital input on interfacekit then this should be:
[WiperL_Off]
Offset=5660
Length=1
LoValue=0
HiValue=0

Regards,
Alan.

alandyer
01-25-2005, 07:58 PM
Nihan,

Also, have a look at Wiper_Lo

[WiperL_Lo]
Offset=5660
Length=1
LoValue=1 <----- Value that will be sent to pmSystems when switch goes off
HiValue=1

0 = Off
1 = Lo
2 = Hi

Think of each position on rotary as an individual 2-way toggle switch.
Each position can be either On of Off.
Only one position can be On at any time.

Your wiper_lo should be:
[WiperL_Lo]
Offset=5660
Length=1
LoValue=0
HiValue=1

Didn't see FStype setting in latest example you sent me ?
Settings should be OffValue and OnValue NOT LoValue and HiValue.

Regards,
Alan.

imported_Nihad
01-26-2005, 07:20 AM
Hi Alan,


I finally got it working as it should and these are the values used to get 3 positions:

[WiperL_Off]
Offset=5660
Length=1
FSType=Digital
OffValue=0
Onvalue=0

[WiperL_Lo]
Offset=5660
Length=1
FSType=Digital
OffValue=0
OnValue=1

[WiperL_Hi]
Offset=5660
Length=1
FSType=Digital
OffValue=1
OnValue=2

Sorry for the mix up with the lo/hi on the previous post but I was trying all sorts of things but in the fsuipc it did have off/on .
The thing that made it work was the Off values 0-0 Lo values 0-1 Hi Values 1-2 thank u for all your help sir I really appreciatte it big time. :D :D :D

imported_Nihad
01-26-2005, 07:54 AM
I know u must be getting sick of me now but just 1 question how do I make the rotarie turn the opposite way lol.
It is working but backwards :D

Any idea??

Nihad

alandyer
01-26-2005, 08:44 AM
Nihad,

That's way cool.
I'm building a B737NG.
Will make pics available in few weeks.

Regards,
Your fellow Simnaut,
Alan.

alandyer
01-26-2005, 08:47 AM
Nihad,

Always a pleasure helping another sim builder.

If its working backwards you could try 2 things:
- Reassign values to switch positions.
- Try the Invert check-box on FS2Phidgets screen.

Alan.

imported_Nihad
01-26-2005, 10:23 AM
Great plane the B737NG, me building a B747-400 came out of access I have to that plane so at the time it was the obviouse choice to make.
I will have a major update soon and will post some new pictures then and also update my site www.allush.net

Nihad