national-instruments-helper
This commit is contained in:
13
Helpers/DAQmx/DAQmx.cs
Normal file
13
Helpers/DAQmx/DAQmx.cs
Normal file
@ -0,0 +1,13 @@
|
||||
using System.Text;
|
||||
|
||||
namespace Helpers.DAQmx;
|
||||
|
||||
public static class DAQmx
|
||||
{
|
||||
public static string GetErrorString(int errorCode)
|
||||
{
|
||||
StringBuilder errorString = new(256);
|
||||
_ = Interop.DAQmxGetErrorString(errorCode, errorString, (uint)(errorString.Capacity + 1));
|
||||
return errorString.ToString();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user