Hello Barry
Cast the messagebasedsession to a serialsession and this should provide you with all the properties you are looking for.
SerialSession ss = mbs as SerialSession;
If( ss!= null)
{
//Do serial configuration here by setting the appropriate properties on the serialsession class
}
Or you could use the SerialSession constructor if you are sure that you will not be switching between different types of resources (GPIB, TCP).
SerialSession ss = new SerialSession("ASRL1::INSTR");
Refer to the documentation for information about the SerialSession constructor and some of its other overloads.
Hope this helps. Let me know if I missed anything.
Bilal Durrani
NI