/**
         * Tries to open the GPIB port and sets flags depending on succes or not
         * */
        override public bool openInstrument( )
        {
            bool retval = false;

            using (var rmSession = new ResourceManager())
            {
                try
                {
                    GPIBPSUDriverInstrumentSettings setts = (GPIBPSUDriverInstrumentSettings)driverSettings;

                    /* mbSession = (SerialSession)rmSession.Open(setts.address);
                     * mbSession.BaudRate = 9600;
                     * mbSession.DataBits = 8;
                     * mbSession.FlowControl = Ivi.Visa.SerialFlowControlModes.None;
                     * mbSession.Parity = Ivi.Visa.SerialParity.None;
                     * mbSession.StopBits = Ivi.Visa.SerialStopBitsMode.One;
                     */
                    mbSession = (GpibSession)rmSession.Open(setts.address);


                    retval      = true;
                    initialized = true;
                }
                catch (InvalidCastException)
                {
                }
                catch (Exception exp)
                {
                }
            }

            return(retval);
        }
        /**
         * Tries to open the COM port and sets flags depending on succes or not
         * */
        override public bool openInstrument( )
        {
            bool retval = false;

            using (var rmSession = new ResourceManager())
            {
                try
                {
                    GPIBPSUDriverInstrumentSettings setts = (GPIBPSUDriverInstrumentSettings)driverSettings;
                    mbSession = (MessageBasedSession)rmSession.Open(setts.address);

                    retval      = true;
                    initialized = true;
                }
                catch (InvalidCastException)
                {
                }
                catch (Exception exp)
                {
                }
            }

            return(retval);
        }
 public CPX400SPPSUDriver(GPIBPSUDriverInstrumentSettings setts)
 {
     driverSettings = setts;
 }
 public InstekPSHPSUDriver(GPIBPSUDriverInstrumentSettings setts)
 {
     driverSettings = setts;
 }