Jack,
Don't forget to use SIOC Monitor to verify your A/D's as well
the rest of your IOcards - a great tool!!
Printable View
Jack,
Don't forget to use SIOC Monitor to verify your A/D's as well
the rest of your IOcards - a great tool!!
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
Jack
Try posting your script.
David
This is my script:
Var 0 gets the motor moving, which obviously turns the pot (for the glideslope).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:
Cheers,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
Isn't it because you haven't specified the 'Device Number' for: 'Motor_GS' (Var 9)
To be on the safe side, I always explicitly specify the device numbers for each output device.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
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
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
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
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
Jack
I prefer the physical approach and would test each input, ignoring what the monitor says:D
That way you will know for sure whether the pot is working within SIOC or not
David