national-instruments-helper

This commit is contained in:
2025-08-18 12:52:48 -07:00
parent 9b61eceb80
commit 5603d01412
35 changed files with 1119 additions and 25 deletions

13
Helpers/DAQmx/DAQmx.cs Normal file
View 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();
}
}