Serial DeviceOpen specifying port name and options

I’m trying to open a Serial device connection, specifying both the port name and connection options (baud rate, handshake method, etc.). Here’s a screenshot from the Serial documentation:

This suggests that you can either specify a port name or specify connection options when opening a port, not both. If I try to use both, I get an ::argt message:

serialdeviceopenerror.png

I figure I must be missing something here.

Hi Jesse,

You specify it like so :

port = DeviceOpen["Serial",{"COM4","Handshake"->"XOnXOff"}]

I agree that this particular bit is confusing to determine from the documentation.

Thanks,

Ian

That works great, Ian! Thanks for the prompt response.