Ejemplo n.º 1
0
        public static ImaqdxSessionHandle Open(string cameraName, ImaqdxCameraControlMode mode)
        {
            Debug.Assert(cameraName != null, "The cameraName parameter cannot be null.");

            ImaqdxSessionHandle session;
            int status = NiImaqdxDll.IMAQdxOpenCamera(cameraName, mode, out session);

            ExceptionBuilder.CheckErrorAndThrow(status);
            return(session);
        }
Ejemplo n.º 2
0
 public static extern int IMAQdxOpenCamera(string name, ImaqdxCameraControlMode mode, out ImaqdxSessionHandle id);
Ejemplo n.º 3
0
 //==========================================================================================
 /// <summary>
 /// Initializes a new instance of the <see cref="NationalInstruments.Vision.Acquisition.Imaqdx.ImaqdxEthernetSession" crefType="Unqualified"/> class with the specified camera and mode.
 /// </summary>
 /// <param name="cameraName">
 /// The name of the camera.
 /// </param>
 /// <param name="mode">
 /// The control mode of the camera used during image broadcasting.
 /// </param>
 /// <remarks>
 /// Open a camera in <see cref="NationalInstruments.Vision.Acquisition.Imaqdx.ImaqdxCameraControlMode.Controller" crefType="Unqualified"/> mode to actively configure and acquire image data. Open a camera in <see cref="NationalInstruments.Vision.Acquisition.Imaqdx.ImaqdxCameraControlMode.Listener" crefType="Unqualified"/> mode to passively acquire image data from a session that was opened in <see cref="NationalInstruments.Vision.Acquisition.Imaqdx.ImaqdxCameraControlMode.Controller" crefType="Unqualified"/> mode on a different host or target computer. The default value is <see cref="NationalInstruments.Vision.Acquisition.Imaqdx.ImaqdxCameraControlMode.Controller" crefType="Unqualified"/>.
 /// </remarks>
 //==========================================================================================
 public ImaqdxEthernetSession(string cameraName, ImaqdxCameraControlMode mode)
     : base(cameraName, mode)
 {
 }