We are working with PsychSerial to read in bytes originating from a pc and
read into a G4 through a Keyspan Pro SX serial card.
We are having problems changing the port parameters using the command:
oldparams == psychserial('Params', port, params);
Any changes made to the params structure get reverted immediately to the defaults (see
output below).
Any thoughts as to why we can't change these parameters?
-Emily
»params==PsychSerial('Params', portA)
params =
hardwareReset: []
baudRate: 9600
dataBits: 8
stopBits: 1
parity: 'none'
RTS: []
DTR: []
inDTREnable: []
outCTSEnable: []
inXEnable: []
outXEnable: []
»params.outCTSEnable==1
params =
hardwareReset: []
baudRate: 9600
dataBits: 8
stopBits: 1
parity: 'none'
RTS: []
DTR: []
inDTREnable: []
outCTSEnable: 1
inXEnable: []
outXEnable: []
»params2==PsychSerial('Params', portA,params)
params2 =
hardwareReset: []
baudRate: 9600
dataBits: 8
stopBits: 1
parity: 'none'
RTS: []
DTR: []
inDTREnable: []
outCTSEnable: []
inXEnable: []
outXEnable: []
read into a G4 through a Keyspan Pro SX serial card.
We are having problems changing the port parameters using the command:
oldparams == psychserial('Params', port, params);
Any changes made to the params structure get reverted immediately to the defaults (see
output below).
Any thoughts as to why we can't change these parameters?
-Emily
»params==PsychSerial('Params', portA)
params =
hardwareReset: []
baudRate: 9600
dataBits: 8
stopBits: 1
parity: 'none'
RTS: []
DTR: []
inDTREnable: []
outCTSEnable: []
inXEnable: []
outXEnable: []
»params.outCTSEnable==1
params =
hardwareReset: []
baudRate: 9600
dataBits: 8
stopBits: 1
parity: 'none'
RTS: []
DTR: []
inDTREnable: []
outCTSEnable: 1
inXEnable: []
outXEnable: []
»params2==PsychSerial('Params', portA,params)
params2 =
hardwareReset: []
baudRate: 9600
dataBits: 8
stopBits: 1
parity: 'none'
RTS: []
DTR: []
inDTREnable: []
outCTSEnable: []
inXEnable: []
outXEnable: []