//Initialize communication settings var CommSet = new SETTINGS_COMMUNICATION(); ERROR_ID test = RBA_API.Initialize(); //Serial communication settings CommSet.interface_id = (uint)COMM_INTERFACE.SERIAL_INTERFACE; CommSet.rs232_config.ComPort = "COM8";// cmbCommPort.Text; CommSet.rs232_config.BaudRate = 115200;//Convert.ToUInt32(cmbBaudRate.Text); CommSet.rs232_config.DataBits = 8;//Convert.ToUInt32(cmbByteSize.Text); CommSet.rs232_config.Parity = 0;//(uint)cmbParity.SelectedIndex; CommSet.rs232_config.StopBits = 1;//Convert.ToUInt32(cmbStopBits.Text); CommSet.rs232_config.FlowControl = 0;//(uint)cmbFlowControl.SelectedIndex;I cannot get that line of code to run properly.... always come out NULL so CommSet is not there as an object for the property values to be set.