RS232 setup for polhemus

What are the rs232 parameters for the polhemus? (data bits, stop bits, …)
Where can I change them?

Thanks,

Laurent.

Hi Laurent,

In the code, the connection is created with the following lines, in panel_digitize > CreateSerialConnection:
(ComPort, ComRate, ComByteCount are parameters that you can set from the interface)

SerialConnection = serial(DigitizeOptions.ComPort, 'BaudRate', DigitizeOptions.ComRate);
SerialConnection.BytesAvailableFcnCount = DigitizeOptions.ComByteCount;
SerialConnection.BytesAvailableFcnMode  = 'byte';

On the Polhemus, the switches at the back of ours are configured this way: 11001001
Which stands for (I think): 9600 baud, 8 bits, parity:none, rs232

Does that answer the question?
Francois

Hi Francois,

Thanks for your response.
I will try with that switch configuration tomorow.
I don’t understand [I]ComByteCount[/I] : is it the length of the data returned by the polhemus? what is the default value? what is the effect if I modify that number? how can I find the right value?

Cheers,

Laurent.

It’s the amount of bytes to read at once from the port. It depends on the configuration of the acquisition.
If you add one receiver, you will get more bytes for each point collection, for instance.
We didn’t know exactly what to do with this value either, so we left it as a parameter in the configuration/
For the moment, we only handle one receiver. So leave the default value and it should work (94).

Please let us know if it works, and if you have comments about the interface.
It’s a new tool, it probably needs some more adjustments to work efficiently for everybody.

Francois