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

            ExceptionBuilder.CheckErrorAndThrow(status);
        }