Ejemplo n.º 1
0
 public static Exception UnknownDataType()
 {
     return(ExceptionBuilder.InvalidOperation(String.Format(CultureInfo.InvariantCulture, "Unknown IMAQdx data type.")));
 }
Ejemplo n.º 2
0
 public static Exception NonexistentPrivateAttribute()
 {
     return(ExceptionBuilder.InvalidOperation(String.Format(CultureInfo.InvariantCulture, "The private IMAQdx attribute does not exist.")));
 }
Ejemplo n.º 3
0
 public static Exception CommandAttributesNotReadable()
 {
     return(ExceptionBuilder.InvalidOperation(String.Format(CultureInfo.InvariantCulture, "Command attributes are not readable.")));
 }
Ejemplo n.º 4
0
 public static Exception ArgumentGreaterThanCount(string argumentName)
 {
     return(ExceptionBuilder.ArgumentOutOfRange(String.Format(CultureInfo.InvariantCulture, "{0} is greater than the number of elements.", argumentName)));
 }
Ejemplo n.º 5
0
 public static Exception ArgumentLessThanZero(string argumentName)
 {
     return(ExceptionBuilder.ArgumentOutOfRange(String.Format(CultureInfo.InvariantCulture, "{0} is less than zero.", argumentName)));
 }
Ejemplo n.º 6
0
 public static Exception SessionDisposed()
 {
     return(ExceptionBuilder.ObjectDisposed(String.Format(CultureInfo.InvariantCulture, "The IMAQdx session has been disposed.")));
 }
Ejemplo n.º 7
0
        public static void ResetAll()
        {
            int status = NiImaqdxDll.IMAQdxResetCamera(String.Empty, Convert.ToUInt32(true));

            ExceptionBuilder.CheckErrorAndThrow(status);
        }