national-instruments-helper
This commit is contained in:
		
							
								
								
									
										14
									
								
								Helpers/DAQmx/DAQmxException.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								Helpers/DAQmx/DAQmxException.cs
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,14 @@ | ||||
| namespace Helpers.DAQmx; | ||||
|  | ||||
| public class DAQmxException : Exception | ||||
| { | ||||
|     public DAQmxException(string message) | ||||
|       : base(message) | ||||
|     { | ||||
|     } | ||||
|  | ||||
|     public DAQmxException(int errorCode, string message) | ||||
|       : base(errorCode.ToString() + " - " + message + " (" + DAQmx.GetErrorString(errorCode) + ")") | ||||
|     { | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user