This commit is contained in:
chanweehewsonos
2025-09-10 13:40:11 +08:00
parent 3a3ee352a3
commit 2f26b992a2
1625 changed files with 656665 additions and 0 deletions

View File

@@ -0,0 +1,841 @@
// CVI wrapper header file for .NET assembly: TestStand Instrument Simulation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
//
// This is specified by the '__assemblyName' constant in the generated source file.
// If there are multiple versions of this assembly, and you want .NET to determine
// the appropriate one to load, then you can remove the version, culture, and public
// key token information from the constant and just specify the name of the assembly.
//
// Other assemblies referenced by the target assembly:
// Name: mscorlib, Location: C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll
//
// If any assembly, including the target assembly, is not installed in the
// Global Assembly Cache (GAC) or in the application directory, and the wrapper
// code needs to load the assembly to convert types like arrays and enums, then
// you must register the path of the assembly with the CVI .NET library by
// calling CDotNetRegisterAssemblyPath before calling the wrapper code.
//
// Types exposed by the target assembly but defined in other assemblies:
// CVI name: System_Collections_IDictionary, .NET name: System.Collections.IDictionary, Assembly: mscorlib, Module: Global Assembly Cache
// CVI name: System_Type, .NET name: System.Type, Assembly: mscorlib, Module: Global Assembly Cache
// CVI name: System_Runtime_Serialization_SerializationInfo, .NET name: System.Runtime.Serialization.SerializationInfo, Assembly: mscorlib, Module: Global Assembly Cache
// CVI name: System_Reflection_MethodBase, .NET name: System.Reflection.MethodBase, Assembly: mscorlib, Module: Global Assembly Cache
// CVI name: System_Collections_Generic_Dictionary_T2, .NET name: System.Collections.Generic.Dictionary`2[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[TestStand_Instrument_Simulation.UUT, TestStand Instrument Simulation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], Assembly: mscorlib, Module: Global Assembly Cache
// CVI name: System_Exception, .NET name: System.Exception, Assembly: mscorlib, Module: Global Assembly Cache
// CVI name: System_Collections_Generic_Dictionary_T2, .NET name: System.Collections.Generic.Dictionary`2[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[TestStand_Instrument_Simulation.SimulatedInstrument, TestStand Instrument Simulation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], Assembly: mscorlib, Module: Global Assembly Cache
// CVI name: System_Runtime_Serialization_StreamingContext, .NET name: System.Runtime.Serialization.StreamingContext, Assembly: mscorlib, Module: Global Assembly Cache
// CVI name: System_Collections_Generic_Dictionary_T2, .NET name: System.Collections.Generic.Dictionary`2[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[TestStand_Instrument_Simulation.UUT, TestStand Instrument Simulation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], Assembly: mscorlib, Module: Global Assembly Cache
// CVI name: System_Collections_Generic_Dictionary_T2, .NET name: System.Collections.Generic.Dictionary`2[[TestStand_Instrument_Simulation.AmbientSettings, TestStand Instrument Simulation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], Assembly: mscorlib, Module: Global Assembly Cache
#include <cvidotnet.h>
#ifdef __cplusplus
extern "C" {
#endif
// Type definitions
typedef struct __TestStand_Instrument_Simulation_Signal * TestStand_Instrument_Simulation_Signal;
typedef struct __TestStand_Instrument_Simulation_DCSignal * TestStand_Instrument_Simulation_DCSignal;
typedef struct __TestStand_Instrument_Simulation_ACSignal * TestStand_Instrument_Simulation_ACSignal;
typedef struct __TestStand_Instrument_Simulation_TestFixture * TestStand_Instrument_Simulation_TestFixture;
typedef struct __TestStand_Instrument_Simulation_TestFixture_TestFixtureData * TestStand_Instrument_Simulation_TestFixture_TestFixtureData;
typedef struct __System_Collections_Generic_Dictionary_T2 * System_Collections_Generic_Dictionary_T2;
typedef struct __System_Collections_Generic_Dictionary_T2 * System_Collections_Generic_Dictionary_T2;
typedef struct __System_Collections_Generic_Dictionary_T2 * System_Collections_Generic_Dictionary_T2;
typedef struct __TestStand_Instrument_Simulation_simulationExceptionParser * TestStand_Instrument_Simulation_simulationExceptionParser;
typedef struct __TestStand_Instrument_Simulation_SimulationException * TestStand_Instrument_Simulation_SimulationException;
typedef struct __System_Collections_IDictionary * System_Collections_IDictionary;
typedef struct __System_Exception * System_Exception;
typedef struct __System_Reflection_MethodBase * System_Reflection_MethodBase;
typedef struct __System_Runtime_Serialization_SerializationInfo * System_Runtime_Serialization_SerializationInfo;
typedef struct __System_Runtime_Serialization_StreamingContext * System_Runtime_Serialization_StreamingContext;
typedef struct __System_Type * System_Type;
typedef struct __TestStand_Instrument_Simulation_SimulationException_ErrorInfo * TestStand_Instrument_Simulation_SimulationException_ErrorInfo;
typedef struct __TestStand_Instrument_Simulation_UUTWriter * TestStand_Instrument_Simulation_UUTWriter;
typedef struct __TestStand_Instrument_Simulation_UUT * TestStand_Instrument_Simulation_UUT;
typedef struct __TestStand_Instrument_Simulation_SolarPanelUUT * TestStand_Instrument_Simulation_SolarPanelUUT;
typedef struct __TestStand_Instrument_Simulation_UUTPin * TestStand_Instrument_Simulation_UUTPin;
typedef struct __TestStand_Instrument_Simulation_UUTOutputPin * TestStand_Instrument_Simulation_UUTOutputPin;
typedef struct __TestStand_Instrument_Simulation_UUTInputPin * TestStand_Instrument_Simulation_UUTInputPin;
typedef struct __TestStand_Instrument_Simulation_UUTEnvironmentPin * TestStand_Instrument_Simulation_UUTEnvironmentPin;
typedef struct __TestStand_Instrument_Simulation_InstrumentManager * TestStand_Instrument_Simulation_InstrumentManager;
typedef struct __System_Collections_Generic_Dictionary_T2 * System_Collections_Generic_Dictionary_T2;
typedef struct __TestStand_Instrument_Simulation_SimulatedInstrument * TestStand_Instrument_Simulation_SimulatedInstrument;
typedef struct __TestStand_Instrument_Simulation_DMM * TestStand_Instrument_Simulation_DMM;
typedef struct __TestStand_Instrument_Simulation_PowerSupply * TestStand_Instrument_Simulation_PowerSupply;
typedef struct __TestStand_Instrument_Simulation_Oscilloscope * TestStand_Instrument_Simulation_Oscilloscope;
// C wrapper for enumeration type TestStand_Instrument_Simulation.SignalTypes
#ifndef TestStand_Instrument_Simulation_SignalTypes_DEFINED
#define TestStand_Instrument_Simulation_SignalTypes_DEFINED
typedef enum TestStand_Instrument_Simulation_SignalTypes
{
TestStand_Instrument_Simulation_SignalTypes_DC = 0x0,
TestStand_Instrument_Simulation_SignalTypes_AC = 0x1,
} TestStand_Instrument_Simulation_SignalTypes;
#endif // TestStand_Instrument_Simulation_SignalTypes_DEFINED
// C wrapper for enumeration type TestStand_Instrument_Simulation.AmbientSettings
#ifndef TestStand_Instrument_Simulation_AmbientSettings_DEFINED
#define TestStand_Instrument_Simulation_AmbientSettings_DEFINED
typedef enum TestStand_Instrument_Simulation_AmbientSettings
{
TestStand_Instrument_Simulation_AmbientSettings_temperature = 0x0,
TestStand_Instrument_Simulation_AmbientSettings_light = 0x1,
} TestStand_Instrument_Simulation_AmbientSettings;
#endif // TestStand_Instrument_Simulation_AmbientSettings_DEFINED
// C wrapper for enumeration type TestStand_Instrument_Simulation.ErrorCodes
#ifndef TestStand_Instrument_Simulation_ErrorCodes_DEFINED
#define TestStand_Instrument_Simulation_ErrorCodes_DEFINED
typedef enum TestStand_Instrument_Simulation_ErrorCodes
{
TestStand_Instrument_Simulation_ErrorCodes_noError = 0x0,
TestStand_Instrument_Simulation_ErrorCodes_instrumentWrongType = 0xfffffff7,
TestStand_Instrument_Simulation_ErrorCodes_invalidSocketCount = 0xfffffff8,
TestStand_Instrument_Simulation_ErrorCodes_invalidSocketIndex = 0xfffffff9,
TestStand_Instrument_Simulation_ErrorCodes_instrumentReserved = 0xfffffffa,
TestStand_Instrument_Simulation_ErrorCodes_instrumentNotFound = 0xfffffffb,
TestStand_Instrument_Simulation_ErrorCodes_invalidPin = 0xfffffffc,
TestStand_Instrument_Simulation_ErrorCodes_couldNotLoadUUTs = 0xfffffffd,
TestStand_Instrument_Simulation_ErrorCodes_invalidSerialNumber = 0xfffffffe,
TestStand_Instrument_Simulation_ErrorCodes_instrumentNotConfigured = 0xffffffff,
} TestStand_Instrument_Simulation_ErrorCodes;
#endif // TestStand_Instrument_Simulation_ErrorCodes_DEFINED
// C wrapper for enumeration type TestStand_Instrument_Simulation.UUTPin+readMode
#ifndef TestStand_Instrument_Simulation_UUTPin_readMode_DEFINED
#define TestStand_Instrument_Simulation_UUTPin_readMode_DEFINED
typedef enum TestStand_Instrument_Simulation_UUTPin_readMode
{
TestStand_Instrument_Simulation_UUTPin_readMode_singlePoint = 0x0,
TestStand_Instrument_Simulation_UUTPin_readMode_waveForm = 0x1,
} TestStand_Instrument_Simulation_UUTPin_readMode;
#endif // TestStand_Instrument_Simulation_UUTPin_readMode_DEFINED
// C wrapper for enumeration type TestStand_Instrument_Simulation.SolarPanelUUT+failureModes
#ifndef TestStand_Instrument_Simulation_SolarPanelUUT_failureModes_DEFINED
#define TestStand_Instrument_Simulation_SolarPanelUUT_failureModes_DEFINED
typedef enum TestStand_Instrument_Simulation_SolarPanelUUT_failureModes
{
TestStand_Instrument_Simulation_SolarPanelUUT_failureModes_SolarResist = 0x0,
TestStand_Instrument_Simulation_SolarPanelUUT_failureModes_Temperature = 0x1,
TestStand_Instrument_Simulation_SolarPanelUUT_failureModes_DCOut = 0x2,
TestStand_Instrument_Simulation_SolarPanelUUT_failureModes_ACOut = 0x3,
TestStand_Instrument_Simulation_SolarPanelUUT_failureModes_SolarOutput = 0x4,
TestStand_Instrument_Simulation_SolarPanelUUT_failureModes_Regulator = 0x5,
} TestStand_Instrument_Simulation_SolarPanelUUT_failureModes;
#endif // TestStand_Instrument_Simulation_SolarPanelUUT_failureModes_DEFINED
// C wrapper for enumeration type TestStand_Instrument_Simulation.DMM+TemperatureSensorType
#ifndef TestStand_Instrument_Simulation_DMM_TemperatureSensorType_DEFINED
#define TestStand_Instrument_Simulation_DMM_TemperatureSensorType_DEFINED
typedef enum TestStand_Instrument_Simulation_DMM_TemperatureSensorType
{
TestStand_Instrument_Simulation_DMM_TemperatureSensorType_KTypeThermocouple = 0x0,
TestStand_Instrument_Simulation_DMM_TemperatureSensorType_JTypeThermocouple = 0x1,
} TestStand_Instrument_Simulation_DMM_TemperatureSensorType;
#endif // TestStand_Instrument_Simulation_DMM_TemperatureSensorType_DEFINED
// C wrapper for enumeration type TestStand_Instrument_Simulation.Oscilloscope+DMMMeasurementTypes
#ifndef TestStand_Instrument_Simulation_Oscilloscope_DMMMeasurementTypes_DEFINED
#define TestStand_Instrument_Simulation_Oscilloscope_DMMMeasurementTypes_DEFINED
typedef enum TestStand_Instrument_Simulation_Oscilloscope_DMMMeasurementTypes
{
TestStand_Instrument_Simulation_Oscilloscope_DMMMeasurementTypes_Voltage = 0x0,
TestStand_Instrument_Simulation_Oscilloscope_DMMMeasurementTypes_Current = 0x1,
TestStand_Instrument_Simulation_Oscilloscope_DMMMeasurementTypes_Resistance = 0x2,
} TestStand_Instrument_Simulation_Oscilloscope_DMMMeasurementTypes;
#endif // TestStand_Instrument_Simulation_Oscilloscope_DMMMeasurementTypes_DEFINED
// Global Functions
int CVIFUNC Initialize_TestStand_Instrument_Simulation(void);
int CVIFUNC Close_TestStand_Instrument_Simulation(void);
// Type: TestStand_Instrument_Simulation.Signal
int CVIFUNC TestStand_Instrument_Simulation_Signal__Create(
TestStand_Instrument_Simulation_Signal * __instance,
double voltage,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_Signal_getSinglePoint(
TestStand_Instrument_Simulation_Signal __instance,
double t,
double * value,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_Signal_getPoints(
TestStand_Instrument_Simulation_Signal __instance,
int numSamples,
int samplesPerSecond,
double ** result,
ssize_t * __resultLength,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_Signal__Get__Voltage(
TestStand_Instrument_Simulation_Signal __instance,
double * __returnValue,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_Signal__Set__Voltage(
TestStand_Instrument_Simulation_Signal __instance,
double Voltage,
CDotNetHandle * __exception);
// Type: TestStand_Instrument_Simulation.DCSignal
int CVIFUNC TestStand_Instrument_Simulation_DCSignal__Create(
TestStand_Instrument_Simulation_DCSignal * __instance,
double voltage,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_DCSignal_getSinglePoint(
TestStand_Instrument_Simulation_DCSignal __instance,
double t,
double * value,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_DCSignal_getPoints(
TestStand_Instrument_Simulation_DCSignal __instance,
int numSamples,
int samplesPerSecond,
double ** result,
ssize_t * __resultLength,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_DCSignal__Get__Voltage(
TestStand_Instrument_Simulation_DCSignal __instance,
double * __returnValue,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_DCSignal__Set__Voltage(
TestStand_Instrument_Simulation_DCSignal __instance,
double Voltage,
CDotNetHandle * __exception);
// Type: TestStand_Instrument_Simulation.ACSignal
int CVIFUNC TestStand_Instrument_Simulation_ACSignal__Create(
TestStand_Instrument_Simulation_ACSignal * __instance,
double voltage,
double frequency,
double amplitude,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_ACSignal_getSinglePoint(
TestStand_Instrument_Simulation_ACSignal __instance,
double t,
double * value,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_ACSignal_getPoints(
TestStand_Instrument_Simulation_ACSignal __instance,
int numSamples,
int samplesPerSecond,
double ** result,
ssize_t * __resultLength,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_ACSignal__Get__Frequency(
TestStand_Instrument_Simulation_ACSignal __instance,
double * __returnValue,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_ACSignal__Set__Frequency(
TestStand_Instrument_Simulation_ACSignal __instance,
double Frequency,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_ACSignal__Get__Amplitude(
TestStand_Instrument_Simulation_ACSignal __instance,
double * __returnValue,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_ACSignal__Set__Amplitude(
TestStand_Instrument_Simulation_ACSignal __instance,
double Amplitude,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_ACSignal__Get__Voltage(
TestStand_Instrument_Simulation_ACSignal __instance,
double * __returnValue,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_ACSignal__Set__Voltage(
TestStand_Instrument_Simulation_ACSignal __instance,
double Voltage,
CDotNetHandle * __exception);
// Type: TestStand_Instrument_Simulation.TestFixture
int CVIFUNC TestStand_Instrument_Simulation_TestFixture__Create(
TestStand_Instrument_Simulation_TestFixture * __instance,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_TestFixture_initialize(
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_TestFixture_writeUUTs(
char * UUTDirectory,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_TestFixture_loadUUTs(
char * UUTDirectory,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_TestFixture_getAllAvailableSerialNumbers(
char *** serialNumbers,
ssize_t * __serialNumbersLength,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_TestFixture_setNumberOfSockets(
unsigned int numberOfSockets,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_TestFixture_loadUUT(
char * serialNumber,
int socketIndex,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_TestFixture_takeMeasurement(
int pin,
int socket,
double * result,
TestStand_Instrument_Simulation_SignalTypes signalType,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_TestFixture_getResistance(
int pin1,
int pin2,
int socket,
double * resistance,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_TestFixture_takeWaveformMeasurement(
int pin,
int socket,
double ** result,
ssize_t * __resultLength,
TestStand_Instrument_Simulation_SignalTypes signalType,
int numSamples,
int samplesPerSecond,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_TestFixture_applyExcitation(
int pin,
int socket,
TestStand_Instrument_Simulation_Signal input,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_TestFixture_setEnvironment(
TestStand_Instrument_Simulation_AmbientSettings setting,
double value,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_TestFixture_getEnvironmentValue(
TestStand_Instrument_Simulation_AmbientSettings setting,
double * value,
CDotNetHandle * __exception);
// Type: TestStand_Instrument_Simulation.TestFixture+TestFixtureData
int CVIFUNC TestStand_Instrument_Simulation_TestFixture_TestFixtureData__Create(
TestStand_Instrument_Simulation_TestFixture_TestFixtureData * __instance,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_TestFixture_TestFixtureData__Get___UUTs(
TestStand_Instrument_Simulation_TestFixture_TestFixtureData __instance,
System_Collections_Generic_Dictionary_T2 * __returnValue,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_TestFixture_TestFixtureData__Set___UUTs(
TestStand_Instrument_Simulation_TestFixture_TestFixtureData __instance,
System_Collections_Generic_Dictionary_T2 _UUTs,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_TestFixture_TestFixtureData__Get__activeUUTs(
TestStand_Instrument_Simulation_TestFixture_TestFixtureData __instance,
System_Collections_Generic_Dictionary_T2 * __returnValue,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_TestFixture_TestFixtureData__Set__activeUUTs(
TestStand_Instrument_Simulation_TestFixture_TestFixtureData __instance,
System_Collections_Generic_Dictionary_T2 activeUUTs,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_TestFixture_TestFixtureData__Get__environmentVariables(
TestStand_Instrument_Simulation_TestFixture_TestFixtureData __instance,
System_Collections_Generic_Dictionary_T2 * __returnValue,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_TestFixture_TestFixtureData__Set__environmentVariables(
TestStand_Instrument_Simulation_TestFixture_TestFixtureData __instance,
System_Collections_Generic_Dictionary_T2 environmentVariables,
CDotNetHandle * __exception);
// Type: TestStand_Instrument_Simulation.simulationExceptionParser
int CVIFUNC TestStand_Instrument_Simulation_simulationExceptionParser_GenerateError(
char * errorXML,
int * code,
char ** message,
CDotNetHandle * __exception);
// Type: TestStand_Instrument_Simulation.SimulationException
int CVIFUNC TestStand_Instrument_Simulation_SimulationException__Create(
TestStand_Instrument_Simulation_SimulationException * __instance,
TestStand_Instrument_Simulation_ErrorCodes code,
char * otherInfo,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_SimulationException_Get_Message(
TestStand_Instrument_Simulation_SimulationException __instance,
char ** __returnValue,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_SimulationException_Get_Data(
TestStand_Instrument_Simulation_SimulationException __instance,
System_Collections_IDictionary * __returnValue,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_SimulationException_Get_InnerException(
TestStand_Instrument_Simulation_SimulationException __instance,
System_Exception * __returnValue,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_SimulationException_Get_TargetSite(
TestStand_Instrument_Simulation_SimulationException __instance,
System_Reflection_MethodBase * __returnValue,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_SimulationException_Get_StackTrace(
TestStand_Instrument_Simulation_SimulationException __instance,
char ** __returnValue,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_SimulationException_Get_HelpLink(
TestStand_Instrument_Simulation_SimulationException __instance,
char ** __returnValue,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_SimulationException_Set_HelpLink(
TestStand_Instrument_Simulation_SimulationException __instance,
char * value,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_SimulationException_Get_Source(
TestStand_Instrument_Simulation_SimulationException __instance,
char ** __returnValue,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_SimulationException_Set_Source(
TestStand_Instrument_Simulation_SimulationException __instance,
char * value,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_SimulationException_Get_HResult(
TestStand_Instrument_Simulation_SimulationException __instance,
int * __returnValue,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_SimulationException_GetError(
TestStand_Instrument_Simulation_ErrorCodes enumValue,
char * otherInfo,
char ** __returnValue,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_SimulationException_GetBaseException(
TestStand_Instrument_Simulation_SimulationException __instance,
System_Exception * __returnValue,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_SimulationException_ToString(
TestStand_Instrument_Simulation_SimulationException __instance,
char ** __returnValue,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_SimulationException_GetObjectData(
TestStand_Instrument_Simulation_SimulationException __instance,
System_Runtime_Serialization_SerializationInfo info,
System_Runtime_Serialization_StreamingContext context,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_SimulationException_GetType(
TestStand_Instrument_Simulation_SimulationException __instance,
System_Type * __returnValue,
CDotNetHandle * __exception);
// Type: TestStand_Instrument_Simulation.SimulationException+ErrorInfo
int CVIFUNC TestStand_Instrument_Simulation_SimulationException_ErrorInfo__Create(
TestStand_Instrument_Simulation_SimulationException_ErrorInfo * __instance,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_SimulationException_ErrorInfo__Get__code(
TestStand_Instrument_Simulation_SimulationException_ErrorInfo __instance,
int * __returnValue,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_SimulationException_ErrorInfo__Set__code(
TestStand_Instrument_Simulation_SimulationException_ErrorInfo __instance,
int code,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_SimulationException_ErrorInfo__Get__message(
TestStand_Instrument_Simulation_SimulationException_ErrorInfo __instance,
char ** __returnValue,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_SimulationException_ErrorInfo__Set__message(
TestStand_Instrument_Simulation_SimulationException_ErrorInfo __instance,
char * message,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_SimulationException_ErrorInfo__Get__otherInfo(
TestStand_Instrument_Simulation_SimulationException_ErrorInfo __instance,
char ** __returnValue,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_SimulationException_ErrorInfo__Set__otherInfo(
TestStand_Instrument_Simulation_SimulationException_ErrorInfo __instance,
char * otherInfo,
CDotNetHandle * __exception);
// Type: TestStand_Instrument_Simulation.UUTWriter
int CVIFUNC TestStand_Instrument_Simulation_UUTWriter__Create(
TestStand_Instrument_Simulation_UUTWriter * __instance,
char * baseUUTsFilePath,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_UUTWriter_generateAllUUTs(
TestStand_Instrument_Simulation_UUTWriter __instance,
CDotNetHandle * __exception);
// Type: TestStand_Instrument_Simulation.UUT
int CVIFUNC TestStand_Instrument_Simulation_UUT__Create(
TestStand_Instrument_Simulation_UUT * __instance,
char * name,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_UUT_addPin(
TestStand_Instrument_Simulation_UUT __instance,
int pin,
TestStand_Instrument_Simulation_UUTPin data,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_UUT_applyVoltage(
TestStand_Instrument_Simulation_UUT __instance,
TestStand_Instrument_Simulation_Signal signal,
int pin,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_UUT_readVoltage(
TestStand_Instrument_Simulation_UUT __instance,
int pin,
TestStand_Instrument_Simulation_SignalTypes signalType,
TestStand_Instrument_Simulation_UUTPin_readMode mode,
int numSamples,
int samplesPerSecond,
double ** result,
ssize_t * __resultLength,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_UUT_readResistance(
TestStand_Instrument_Simulation_UUT __instance,
int pin1,
int pin2,
double * resistance,
int * __returnValue,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_UUT__Get__Name(
TestStand_Instrument_Simulation_UUT __instance,
char ** __returnValue,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_UUT__Set__Name(
TestStand_Instrument_Simulation_UUT __instance,
char * Name,
CDotNetHandle * __exception);
// Type: TestStand_Instrument_Simulation.SolarPanelUUT
int CVIFUNC TestStand_Instrument_Simulation_SolarPanelUUT__Create(
TestStand_Instrument_Simulation_SolarPanelUUT * __instance,
char * name,
TestStand_Instrument_Simulation_SolarPanelUUT_failureModes * testsToFail,
ssize_t __testsToFailLength,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_SolarPanelUUT_addPin(
TestStand_Instrument_Simulation_SolarPanelUUT __instance,
int pin,
TestStand_Instrument_Simulation_UUTPin data,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_SolarPanelUUT_applyVoltage(
TestStand_Instrument_Simulation_SolarPanelUUT __instance,
TestStand_Instrument_Simulation_Signal signal,
int pin,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_SolarPanelUUT_readVoltage(
TestStand_Instrument_Simulation_SolarPanelUUT __instance,
int pin,
TestStand_Instrument_Simulation_SignalTypes signalType,
TestStand_Instrument_Simulation_UUTPin_readMode mode,
int numSamples,
int samplesPerSecond,
double ** result,
ssize_t * __resultLength,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_SolarPanelUUT_readResistance(
TestStand_Instrument_Simulation_SolarPanelUUT __instance,
int pin1,
int pin2,
double * resistance,
int * __returnValue,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_SolarPanelUUT__Get__Name(
TestStand_Instrument_Simulation_SolarPanelUUT __instance,
char ** __returnValue,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_SolarPanelUUT__Set__Name(
TestStand_Instrument_Simulation_SolarPanelUUT __instance,
char * Name,
CDotNetHandle * __exception);
// Type: TestStand_Instrument_Simulation.UUTPin
int CVIFUNC TestStand_Instrument_Simulation_UUTPin__Create(
TestStand_Instrument_Simulation_UUTPin * __instance,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_UUTPin_readVoltage(
TestStand_Instrument_Simulation_UUTPin __instance,
TestStand_Instrument_Simulation_SignalTypes signalType,
int numSamples,
int samplesPerSecond,
double ** result,
ssize_t * __resultLength,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_UUTPin_applyVoltage(
TestStand_Instrument_Simulation_UUTPin __instance,
TestStand_Instrument_Simulation_Signal signal,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_UUTPin__Get__Signal(
TestStand_Instrument_Simulation_UUTPin __instance,
TestStand_Instrument_Simulation_Signal * __returnValue,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_UUTPin__Set__Signal(
TestStand_Instrument_Simulation_UUTPin __instance,
TestStand_Instrument_Simulation_Signal Signal,
CDotNetHandle * __exception);
// Type: TestStand_Instrument_Simulation.UUTOutputPin
int CVIFUNC TestStand_Instrument_Simulation_UUTOutputPin__Create(
TestStand_Instrument_Simulation_UUTOutputPin * __instance,
double accuracy,
TestStand_Instrument_Simulation_Signal baseline,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_UUTOutputPin_connectToPin(
TestStand_Instrument_Simulation_UUTOutputPin __instance,
TestStand_Instrument_Simulation_UUTPin dependentPin,
double * coefficients,
ssize_t __coefficientsLength,
double resistance,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_UUTOutputPin_setBaselineSignal(
TestStand_Instrument_Simulation_UUTOutputPin __instance,
TestStand_Instrument_Simulation_Signal baseline,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_UUTOutputPin_readVoltage(
TestStand_Instrument_Simulation_UUTOutputPin __instance,
TestStand_Instrument_Simulation_SignalTypes signalType,
int numSamples,
int samplesPerSecond,
double ** result,
ssize_t * __resultLength,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_UUTOutputPin_readResistance(
TestStand_Instrument_Simulation_UUTOutputPin __instance,
TestStand_Instrument_Simulation_UUTInputPin pin,
double * resistance,
int * __returnValue,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_UUTOutputPin_applyVoltage(
TestStand_Instrument_Simulation_UUTOutputPin __instance,
TestStand_Instrument_Simulation_Signal signal,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_UUTOutputPin__Get__Accuracy(
TestStand_Instrument_Simulation_UUTOutputPin __instance,
double * __returnValue,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_UUTOutputPin__Set__Accuracy(
TestStand_Instrument_Simulation_UUTOutputPin __instance,
double Accuracy,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_UUTOutputPin__Get__Signal(
TestStand_Instrument_Simulation_UUTOutputPin __instance,
TestStand_Instrument_Simulation_Signal * __returnValue,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_UUTOutputPin__Set__Signal(
TestStand_Instrument_Simulation_UUTOutputPin __instance,
TestStand_Instrument_Simulation_Signal Signal,
CDotNetHandle * __exception);
// Type: TestStand_Instrument_Simulation.UUTInputPin
int CVIFUNC TestStand_Instrument_Simulation_UUTInputPin__Create(
TestStand_Instrument_Simulation_UUTInputPin * __instance,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_UUTInputPin_applyVoltage(
TestStand_Instrument_Simulation_UUTInputPin __instance,
TestStand_Instrument_Simulation_Signal signal,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_UUTInputPin_readVoltage(
TestStand_Instrument_Simulation_UUTInputPin __instance,
TestStand_Instrument_Simulation_SignalTypes signalType,
int numSamples,
int samplesPerSecond,
double ** result,
ssize_t * __resultLength,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_UUTInputPin__Get__Signal(
TestStand_Instrument_Simulation_UUTInputPin __instance,
TestStand_Instrument_Simulation_Signal * __returnValue,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_UUTInputPin__Set__Signal(
TestStand_Instrument_Simulation_UUTInputPin __instance,
TestStand_Instrument_Simulation_Signal Signal,
CDotNetHandle * __exception);
// Type: TestStand_Instrument_Simulation.UUTEnvironmentPin
int CVIFUNC TestStand_Instrument_Simulation_UUTEnvironmentPin__Create(
TestStand_Instrument_Simulation_UUTEnvironmentPin * __instance,
TestStand_Instrument_Simulation_AmbientSettings setting,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_UUTEnvironmentPin_readVoltage(
TestStand_Instrument_Simulation_UUTEnvironmentPin __instance,
TestStand_Instrument_Simulation_SignalTypes signalType,
int numSamples,
int samplesPerSecond,
double ** result,
ssize_t * __resultLength,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_UUTEnvironmentPin_applyVoltage(
TestStand_Instrument_Simulation_UUTEnvironmentPin __instance,
TestStand_Instrument_Simulation_Signal signal,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_UUTEnvironmentPin__Get__Signal(
TestStand_Instrument_Simulation_UUTEnvironmentPin __instance,
TestStand_Instrument_Simulation_Signal * __returnValue,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_UUTEnvironmentPin__Set__Signal(
TestStand_Instrument_Simulation_UUTEnvironmentPin __instance,
TestStand_Instrument_Simulation_Signal Signal,
CDotNetHandle * __exception);
// Type: TestStand_Instrument_Simulation.InstrumentManager
int CVIFUNC TestStand_Instrument_Simulation_InstrumentManager_serializeInstruments(
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_InstrumentManager_updateInstrumentState(
TestStand_Instrument_Simulation_SimulatedInstrument instrument,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_InstrumentManager_deserializeInstruments(
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_InstrumentManager_reserveInstrument(
char * resourceName,
TestStand_Instrument_Simulation_SimulatedInstrument instrument,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_InstrumentManager_unreserveInstrument(
char * resourceName,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_InstrumentManager_getDMMByName(
char * resourceName,
TestStand_Instrument_Simulation_DMM * __returnValue,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_InstrumentManager_getPowerSupplyByName(
char * resourceName,
TestStand_Instrument_Simulation_PowerSupply * __returnValue,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_InstrumentManager_getScopeByName(
char * resourceName,
TestStand_Instrument_Simulation_Oscilloscope * __returnValue,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_InstrumentManager__Get__instruments(
System_Collections_Generic_Dictionary_T2 * __returnValue,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_InstrumentManager__Set__instruments(
System_Collections_Generic_Dictionary_T2 instruments,
CDotNetHandle * __exception);
// Type: TestStand_Instrument_Simulation.SimulatedInstrument
int CVIFUNC TestStand_Instrument_Simulation_SimulatedInstrument__Create(
TestStand_Instrument_Simulation_SimulatedInstrument * __instance,
char * resourceName,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_SimulatedInstrument_Close(
TestStand_Instrument_Simulation_SimulatedInstrument __instance,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_SimulatedInstrument_configure(
TestStand_Instrument_Simulation_SimulatedInstrument __instance,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_SimulatedInstrument__Get__ResourceName(
TestStand_Instrument_Simulation_SimulatedInstrument __instance,
char ** __returnValue,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_SimulatedInstrument__Set__ResourceName(
TestStand_Instrument_Simulation_SimulatedInstrument __instance,
char * ResourceName,
CDotNetHandle * __exception);
// Type: TestStand_Instrument_Simulation.DMM
int CVIFUNC TestStand_Instrument_Simulation_DMM__Create(
TestStand_Instrument_Simulation_DMM * __instance,
char * resourceName,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_DMM_configure(
TestStand_Instrument_Simulation_DMM __instance,
TestStand_Instrument_Simulation_SignalTypes signalType,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_DMM_readVoltage(
TestStand_Instrument_Simulation_DMM __instance,
int channel,
int socket,
double * result,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_DMM_readTemperature(
TestStand_Instrument_Simulation_DMM __instance,
int channel,
int socket,
double * result,
TestStand_Instrument_Simulation_DMM_TemperatureSensorType sensorType,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_DMM_readResistance(
TestStand_Instrument_Simulation_DMM __instance,
int channel1,
int channel2,
int socket,
double * result,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_DMM_Close(
TestStand_Instrument_Simulation_DMM __instance,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_DMM_configure_1(
TestStand_Instrument_Simulation_DMM __instance,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_DMM__Get__ResourceName(
TestStand_Instrument_Simulation_DMM __instance,
char ** __returnValue,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_DMM__Set__ResourceName(
TestStand_Instrument_Simulation_DMM __instance,
char * ResourceName,
CDotNetHandle * __exception);
// Type: TestStand_Instrument_Simulation.PowerSupply
int CVIFUNC TestStand_Instrument_Simulation_PowerSupply__Create(
TestStand_Instrument_Simulation_PowerSupply * __instance,
char * resourceName,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_PowerSupply_generateOutputVoltageDC(
TestStand_Instrument_Simulation_PowerSupply __instance,
int channel,
int socket,
double outputVoltage,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_PowerSupply_generateOutputVoltageAC(
TestStand_Instrument_Simulation_PowerSupply __instance,
int channel,
int socket,
double outputVoltage,
double frequency,
double amplitude,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_PowerSupply_Close(
TestStand_Instrument_Simulation_PowerSupply __instance,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_PowerSupply_configure(
TestStand_Instrument_Simulation_PowerSupply __instance,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_PowerSupply__Get__ResourceName(
TestStand_Instrument_Simulation_PowerSupply __instance,
char ** __returnValue,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_PowerSupply__Set__ResourceName(
TestStand_Instrument_Simulation_PowerSupply __instance,
char * ResourceName,
CDotNetHandle * __exception);
// Type: TestStand_Instrument_Simulation.Oscilloscope
int CVIFUNC TestStand_Instrument_Simulation_Oscilloscope__Create(
TestStand_Instrument_Simulation_Oscilloscope * __instance,
char * resourceName,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_Oscilloscope_configure(
TestStand_Instrument_Simulation_Oscilloscope __instance,
int numSamples,
int samplesPerSecond,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_Oscilloscope_readWaveform(
TestStand_Instrument_Simulation_Oscilloscope __instance,
int channel,
int socket,
double * result,
ssize_t * __resultLength,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_Oscilloscope_Close(
TestStand_Instrument_Simulation_Oscilloscope __instance,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_Oscilloscope_configure_1(
TestStand_Instrument_Simulation_Oscilloscope __instance,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_Oscilloscope__Get__NumSamples(
TestStand_Instrument_Simulation_Oscilloscope __instance,
int * __returnValue,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_Oscilloscope__Set__NumSamples(
TestStand_Instrument_Simulation_Oscilloscope __instance,
int NumSamples,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_Oscilloscope__Get__ResourceName(
TestStand_Instrument_Simulation_Oscilloscope __instance,
char ** __returnValue,
CDotNetHandle * __exception);
int CVIFUNC TestStand_Instrument_Simulation_Oscilloscope__Set__ResourceName(
TestStand_Instrument_Simulation_Oscilloscope __instance,
char * ResourceName,
CDotNetHandle * __exception);
#ifdef __cplusplus
}
#endif

View File

@@ -0,0 +1,165 @@
//==============================================================================
//
// Title: DriverSimulation.h
// Purpose: A short description of the interface.
//
// Created on: 6/30/2015 at 10:51:03 AM by NI.
// Copyright: NI. All Rights Reserved.
//
//==============================================================================
#ifndef __DriverSimulation_H__
#define __DriverSimulation_H__
#ifdef __cplusplus
extern "C" {
#endif
//==============================================================================
// Include files
#include "cvidef.h"
/// INCL
#include "InstrumentSimulation.h"
//==============================================================================
// Constants
//==============================================================================
// Types
/// ADDT Error
struct Error
{
int Code;
char* Msg;
int Occurred
};
typedef struct Error Error;
//==============================================================================
// External variables
//==============================================================================
// Global functions
/// ENUM TestStand_Instrument_Simulation_DMM_TemperatureSensorType
#define KTypeThermocouple 0
#define JTypeThermocouple 1
/// ENUM TestStand_Instrument_Simulation_SignalTypes
#define DC 0
#define AC 1
// ADDT TestStand_Instrument_Simulation_DMM_TemperatureSensorType
/// -> Fixture
/// HIFN Set the current UUT in the specified test socket of the test fixture. This function simulates physically loading a UUT into a test fixture.
/// HIPAR 1/Serial Number of the UUT to connect to the fixture.
/// HIPAR 2/Socket index of the fixture to which the UUT is connected.
void __stdcall Sim_Fixture_SetUUT(char* serialNumber, int socketIndex, Error* errorInfo);
/// HIFN Sets the number of available sockets on the test fixture. The test fixture supports up to four test sockets.
/// NUM 1/1/4/1/1
/// HIPAR 1/The number of active sockets in the test fixture.
void __stdcall Sim_Fixture_SetNumberOfSockets(int numberOfSockets, Error* errorInfo);
/// HIFN Changes the ambient temperature, which effects all UUTs in the test fixture.
/// HIPAR 1/The temperature value, ranging from 20 - 100 degrees Celcius.
/// NUM 1/20/100/1/1
void __stdcall Sim_Fixture_SetAmbientTemperature(double value, Error* errorInfo);
/// HIFN Changes the ambient light intensity, which effects all UUTs in the test fixture.
/// HIPAR 1/The light intensity, ranging from 0 (no lighting) to 100 (maximum lighting)
/// NUM 1/0/100/1/1
void __stdcall Sim_Fixture_SetAmbientLightIntensity(double value, Error* errorInfo);
/// HIFN Provides a list of Valid serial numbers that the fixture can load
/// HIPAR 1/The list of Valid serial numbers
/// HIPAR 2/The number of valid serial numbers
void __stdcall Sim_Fixture_GetAllAvailableSerialNumbers(char ***serialNumbers, int *numSerials, Error* errorInfo);
/// <- Fixture
/// -> DMM
// DMM Initialize
/// HIFN Opens a reference to and reserve a DMM using the specified resource name. You must call the initialize function for a specific resource name before calling any other DMM functions. Call the close function to release the DMM.
/// HIPAR 1/The name of the instrument to initialize.
void __stdcall Sim_Dmm_Initialize(char* resourceName, Error* errorInfo);
/// HIFN Configure the type of signal measured by the DMM. In AC mode, the DMM returns the RMS voltage measurement.
/// HIPAR 1/The name of the DMM.
/// RNG 2
/// HIPAR 2/The type of signal to measure.
void __stdcall Sim_Dmm_Configure(char* resourceName, TestStand_Instrument_Simulation_SignalTypes signalType, Error* errorInfo);
/// HIFN Measures the resistance between the specified channels.
/// HIPAR 1/The name of the DMM.
/// HIPAR 2/The first channel to measure.
/// HIPAR 3/The second channel to measure.
/// HIPAR 4/The test socket to connect the instrument to before taking the measurement.
/// OUT 5
/// HIPAR 5/(Output) The resistance measurement in Ohms.
void __stdcall Sim_Dmm_ReadResistance(char* resourceName, int channel1, int channel2, int testSocket, double* result, Error* errorInfo);
/// HIFN Measures the voltage at the specified channel.
/// HIPAR 1/The name of the DMM.
/// HIPAR 2/The channel to measure.
/// HIPAR 3/The test socket to connect the instrument to before taking the measurement.
/// OUT 4
/// HIPAR 4/(Output) The voltage measurement in Volts.
void __stdcall Sim_Dmm_ReadVoltage(char* resourceName, int channel, int testSocket, double* result , Error* errorInfo);
/// HIFN Measures the DC voltage at the specified channel, then scales the value to a temperature measurement based on the provided sensor type.
/// HIPAR 1/The name of the DMM.
/// HIPAR 2/The channel to measure.
/// HIPAR 3/The test socket to connect the instrument to before taking the measurement.
/// RNG 4
/// HIPAR 4/The type of themocouple used to take the meaurement. This input determines the scaling factor used.
/// OUT 5
/// HIPAR 5/(Output) The temperature measurement in degrees Celcius.
void __stdcall Sim_Dmm_ReadTemperature(char* resourceName, int channel, int testSocket, TestStand_Instrument_Simulation_DMM_TemperatureSensorType sensorType, double* result, Error* errorInfo);
/// HIFN Closes a reference to the specified DMM. You must initialize the DMM using the initialize function before calling the close function.
/// HIPAR 1/The name of the instrument to close.
void __stdcall Sim_Dmm_Close(char* resourceName, Error* errorInfo);
/// <- DMM
/// -> PowerSupply
/// HIFN Opens a reference to and reserve a power supply using the specified resource name. You must call the initialize function for a specific resource name before calling any other power supply functions. Call the close function to release the power supply.
/// HIPAR 1/The name of the instrument to initialize.
void __stdcall Sim_PowerSupply_Initialize(char* resourceName, Error* errorInfo);
/// HIFN Generates a continuous DC signal with the specified voltage.
/// HIPAR 1/The name of the Power Supply.
/// HIPAR 2/The channel on which to apply the signal.
/// HIPAR 3/The test socket to connect the instrument to before taking the measurement.
/// HIPAR 4/The voltage to apply, in Volts.
void __stdcall Sim_PowerSupply_GenerateOutputVoltageDC(char* resourceName, int channel, int testSocket, double outputVoltage, Error* errorInfo);
/// HIFN Generates a continuous AC signal with the specified voltage.
/// HIPAR 1/The name of the Power Supply.
/// HIPAR 2/The channel on which to apply the signal.
/// HIPAR 3/The test socket to connect the instrument to before taking the measurement.
/// HIPAR 4/The mean voltage to apply, in Volts.
/// HIPAR 5/The frequency of the signal to generate, in Hz
/// HIPAR 6/The amplitude of the AC signal, in Volts.
void __stdcall Sim_PowerSupply_GenerateOutputVoltageAC(char* resourceName, int channel, int testSocket, double outputVoltage, double frequency, double amplitude, Error* errorInfo);
/// HIFN Closes a reference to a power supply. You must Initialize the power supply using the initialize function before calling the close function.
/// HIPAR 1/The name of the instrument to close.
void __stdcall Sim_PowerSupply_Close(char* resourceName, Error* errorInfo);
/// <- PowerSupply
/// -> Scope
/// HIFN Opens a reference to and reserve an oscilloscope using the specified resource name. You must call the initialize function for a specific resource name before calling any other oscilloscope functions. Call the close function to release the oscilloscope.
/// HIPAR 1/The name of the instrument to initialize.
void __stdcall Sim_Scope_Initialize(char* resourceName, Error* errorInfo);
/// HIFN Configures the read mode of the oscilloscope.
/// HIPAR 1/The name of the oscilloscope.
/// HIPAR 2/The number of samples to read.
/// HIPAR 3/The number of samples to measure per second (sample rate in Hertz).
void __stdcall Sim_Scope_Configure(char* resourceName, int numberOfSamples, int samplesPerSecond, Error* errorInfo);
/// HIFN Measures a waveform and returns an array of numbers containing the data. Call the configure function to change the sample rate and number of samples.
/// HIPAR 1/The name of the oscilloscope.
/// HIPAR 2/The channel on which to apply the signal.
/// HIPAR 3/The test socket to connect the instrument to before taking the measurement.
/// HIPAR 4/The resulting array of data. Ensure that the buffer you provide is large enough to contain the amount of samples configured using the configure function. The default is 1000 Samples.
void __stdcall Sim_Scope_ReadWaveform(char* resourceName, int channel, int testSocket, double* result, Error* errorInfo);
/// HIFN Closes a reference to the specified oscilloscope. You must initialize the oscilloscope using the initialize function before calling the close function.
/// HIPAR 1/The name of the instrument to close.
void __stdcall Sim_Scope_Close(char* resourceName, Error* errorInfo);
/// <- Scope
#ifdef __cplusplus
}
#endif
#endif /* ndef __DriverSimulation_H__ */