Files
file-watcher/Helpers/DAQmx/DAQmx.cs

13 lines
329 B
C#

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();
}
}