Results 21 to 30 of 37
Thread: SIOC and Offset 023A
-
04-20-2012, 07:37 AM #21
Re: SIOC and Offset 023A
Jack,
Don't forget to use SIOC Monitor to verify your A/D's as well
the rest of your IOcards - a great tool!!
-
04-20-2012, 10:54 AM #22
Re: SIOC and Offset 023A
Thanks Perik.
David, the problem is that, despite doing exactly as in post #15, the Pot still doesn't change value when the motor moves.
Tests in SIOC Monitor show that it changes perfectly well; so why not in the script?
Cheers,
Jack
-
04-20-2012, 10:58 AM #23
- Join Date
- Jul 2013
- Posts
- 917
Re: SIOC and Offset 023A
Jack
Try posting your script.
David
-
04-20-2012, 11:11 AM #24
Re: SIOC and Offset 023A
This is my script:
Code:Var 0 Value 0 { &Motor_GS = 255 } Var 9, name Motor_GS, Link USB_DCMOTOR, Output 1 // Motor Var 0003, name Pot_GS, Link USB_ANALOGIC, Device 0, Input 2, PosL 97, PosC 133, PosR 170 // Potentiometer for Glideslope
This is the SIOC.ini:
Code:[SIOC] IOCP_port=8092 IOCP_timeout=4000 Minimized=Yes toggle_delay=20 CONFIG_FILE=Cockpit_Full.ssi [IOCARDS MODULE] IOCard_disable=No IOCard_LPT=No [USBSTEPPER] USBStepper=0,195 [USBKEYS] USBKeys=0,13 [USBDCMOTORS] USBDCmotor=0,38 [USBDCMOTORSPOTS] USBAnalogic=0,38 [MASTERS] MASTER=3,11,1,70 MASTER=2,5,1,50 MASTER=0,4,4,176 MASTER=5,8,1,187 [A/D USED MASTER] USB_AD=4 [MULTIPLE] MUSB=Yes [USBSERVOS] USBSERVOS=0,4 deviceUSB=2132 [FSUIPC MODULE] FSUipcdisable=No FSUipcRefresh=50 [IOCP CLIENTS MODULES] IOCPini_delay=3000 IOCPclient0_disable=Yes IOCPclient0_host=localhost IOCPclient0_port=8090 IOCPclient1_disable=Yes IOCPclient1_host=localhost IOCPclient1_port=8099 [SOUND MODULE] Sound_disable=NO Volume=100
Jack
-
04-20-2012, 11:26 AM #25
- Join Date
- Nov 2011
- Location
- Suffolk, United Kingdom
- Posts
- 67
Re: SIOC and Offset 023A
Isn't it because you haven't specified the 'Device Number' for: 'Motor_GS' (Var 9)
Code:Var 9, name Motor_GS, Link USB_DCMOTOR, Output 1 // Motor Var 0003, name Pot_GS, Link USB_ANALOGIC, Device 0, Input 2, PosL 97, PosC 133, PosR 170 // Potentiometer for Glideslope
Hope this helps
Cheers,
Bobby
-
04-20-2012, 11:36 AM #26
- Join Date
- Jul 2013
- Posts
- 917
Re: SIOC and Offset 023A
Specifying the device is neater, but with only one dcmotors card it will always default to zero and its absence will not stop the card from working in these circumstances
Jack, a few questions - What sioc version are you using and I assume that your pot is connected to Input no 2, and that the motor turns?
David
-
04-20-2012, 12:09 PM #27
Re: SIOC and Offset 023A
Hi David,
It's SIOC v4.0 (the latest version).
The motor definitely moves, and it's connected to input 2. I can see this using SIOC Monitor.
Cheers,
Jack
-
04-20-2012, 01:42 PM #28
- Join Date
- Jul 2013
- Posts
- 917
Re: SIOC and Offset 023A
Jack
So SIOC sees the USBDC card, moves the motor, but the pot, although rotating does not show any values in IOCPConsole. Yet, the pot does work when checked under Sioc Monitor.
Sorry to question you again, but are you certain that you are on input 2 - as I seem to recall a prob in the past with you discovering that the card pin headers are numbered in a strange way. If you have not yet tried this, test all card pot inputs
David
-
04-20-2012, 02:02 PM #29
Re: SIOC and Offset 023A
Hi David,
I can 100% confirm that "Pot #2" when I double click the "DCMotors" option on the "SIOC Monitor" tab changes value when the motor moves. It does not, however, change value in IOCPConsole at all.
Does Pot #2 on SIOC Monitor correspond to something else?
Cheers,
Jack
-
04-20-2012, 02:31 PM #30
- Join Date
- Jul 2013
- Posts
- 917
Re: SIOC and Offset 023A
Jack
I prefer the physical approach and would test each input, ignoring what the monitor says
That way you will know for sure whether the pot is working within SIOC or not
David
Beautiful Womans in your town for night
B_34 TOGA takeoff