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

View File

@ -0,0 +1,27 @@
using System.Text.Json;
using System.Text.Json.Serialization;
namespace File_Watcher.Models;
public record NationalInstrumentsConfiguration(string CustomScaleName,
string[] DifferentialPhysicalChannels,
int MaximumValue,
int MiniumValue,
string[] ReferencedSingleEndedPhysicalChannels,
int ReadTimeout,
bool UsePointerMethod)
{
public override string ToString()
{
string result = JsonSerializer.Serialize(this, NationalInstrumentsConfigurationSourceGenerationContext.Default.NationalInstrumentsConfiguration);
return result;
}
}
[JsonSourceGenerationOptions(WriteIndented = true)]
[JsonSerializable(typeof(NationalInstrumentsConfiguration))]
internal partial class NationalInstrumentsConfigurationSourceGenerationContext : JsonSerializerContext
{
}