Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SetRuntimeEnvironment to all MI Driver and NI-Fake library classes #964

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions generated/nidcpower/nidcpower_library.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ NiDCPowerLibrary::NiDCPowerLibrary() : shared_library_(kLibraryName)
function_pointers_.UnlockSession = reinterpret_cast<UnlockSessionPtr>(shared_library_.get_function_pointer("niDCPower_UnlockSession"));
function_pointers_.WaitForEvent = reinterpret_cast<WaitForEventPtr>(shared_library_.get_function_pointer("niDCPower_WaitForEvent"));
function_pointers_.WaitForEventWithChannels = reinterpret_cast<WaitForEventWithChannelsPtr>(shared_library_.get_function_pointer("niDCPower_WaitForEventWithChannels"));
function_pointers_.SetRuntimeEnvironment = reinterpret_cast<SetRuntimeEnvironmentPtr>(shared_library_.get_function_pointer("niDCPower_SetRuntimeEnvironment"));
}

NiDCPowerLibrary::~NiDCPowerLibrary()
Expand Down Expand Up @@ -1366,4 +1367,12 @@ ViStatus NiDCPowerLibrary::WaitForEventWithChannels(ViSession vi, ViConstString
return function_pointers_.WaitForEventWithChannels(vi, channelName, eventId, timeout);
}

ViStatus NiDCPowerLibrary::SetRuntimeEnvironment(ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2)
{
if (!function_pointers_.SetRuntimeEnvironment) {
throw nidevice_grpc::LibraryLoadException("Could not find niDCPower_SetRuntimeEnvironment.");
}
return function_pointers_.SetRuntimeEnvironment(environment, environmentVersion, reserved1, reserved2);
}

} // namespace nidcpower_grpc
3 changes: 3 additions & 0 deletions generated/nidcpower/nidcpower_library.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ class NiDCPowerLibrary : public nidcpower_grpc::NiDCPowerLibraryInterface {
ViStatus UnlockSession(ViSession vi, ViBoolean* callerHasLock);
ViStatus WaitForEvent(ViSession vi, ViInt32 eventId, ViReal64 timeout);
ViStatus WaitForEventWithChannels(ViSession vi, ViConstString channelName, ViInt32 eventId, ViReal64 timeout);
ViStatus SetRuntimeEnvironment(ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2);

private:
using AbortPtr = decltype(&niDCPower_Abort);
Expand Down Expand Up @@ -316,6 +317,7 @@ class NiDCPowerLibrary : public nidcpower_grpc::NiDCPowerLibraryInterface {
using UnlockSessionPtr = ViStatus (*)(ViSession vi, ViBoolean* callerHasLock);
using WaitForEventPtr = decltype(&niDCPower_WaitForEvent);
using WaitForEventWithChannelsPtr = decltype(&niDCPower_WaitForEventWithChannels);
using SetRuntimeEnvironmentPtr = ViStatus (*)(ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2);

typedef struct FunctionPointers {
AbortPtr Abort;
Expand Down Expand Up @@ -466,6 +468,7 @@ class NiDCPowerLibrary : public nidcpower_grpc::NiDCPowerLibraryInterface {
UnlockSessionPtr UnlockSession;
WaitForEventPtr WaitForEvent;
WaitForEventWithChannelsPtr WaitForEventWithChannels;
SetRuntimeEnvironmentPtr SetRuntimeEnvironment;
} FunctionLoadStatus;

nidevice_grpc::SharedLibrary shared_library_;
Expand Down
1 change: 1 addition & 0 deletions generated/nidcpower/nidcpower_library_interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ class NiDCPowerLibraryInterface {
virtual ViStatus UnlockSession(ViSession vi, ViBoolean* callerHasLock) = 0;
virtual ViStatus WaitForEvent(ViSession vi, ViInt32 eventId, ViReal64 timeout) = 0;
virtual ViStatus WaitForEventWithChannels(ViSession vi, ViConstString channelName, ViInt32 eventId, ViReal64 timeout) = 0;
virtual ViStatus SetRuntimeEnvironment(ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2) = 0;
};

} // namespace nidcpower_grpc
Expand Down
1 change: 1 addition & 0 deletions generated/nidcpower/nidcpower_mock_library.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ class NiDCPowerMockLibrary : public nidcpower_grpc::NiDCPowerLibraryInterface {
MOCK_METHOD(ViStatus, UnlockSession, (ViSession vi, ViBoolean* callerHasLock), (override));
MOCK_METHOD(ViStatus, WaitForEvent, (ViSession vi, ViInt32 eventId, ViReal64 timeout), (override));
MOCK_METHOD(ViStatus, WaitForEventWithChannels, (ViSession vi, ViConstString channelName, ViInt32 eventId, ViReal64 timeout), (override));
MOCK_METHOD(ViStatus, SetRuntimeEnvironment, (ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2), (override));
};

} // namespace unit
Expand Down
9 changes: 9 additions & 0 deletions generated/nidigitalpattern/nidigitalpattern_library.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ NiDigitalLibrary::NiDigitalLibrary() : shared_library_(kLibraryName)
function_pointers_.WriteSourceWaveformDataFromFileTDMS = reinterpret_cast<WriteSourceWaveformDataFromFileTDMSPtr>(shared_library_.get_function_pointer("niDigital_WriteSourceWaveformDataFromFileTDMS"));
function_pointers_.WriteSourceWaveformSiteUniqueU32 = reinterpret_cast<WriteSourceWaveformSiteUniqueU32Ptr>(shared_library_.get_function_pointer("niDigital_WriteSourceWaveformSiteUniqueU32"));
function_pointers_.WriteStatic = reinterpret_cast<WriteStaticPtr>(shared_library_.get_function_pointer("niDigital_WriteStatic"));
function_pointers_.SetRuntimeEnvironment = reinterpret_cast<SetRuntimeEnvironmentPtr>(shared_library_.get_function_pointer("niDigital_SetRuntimeEnvironment"));
}

NiDigitalLibrary::~NiDigitalLibrary()
Expand Down Expand Up @@ -1222,4 +1223,12 @@ ViStatus NiDigitalLibrary::WriteStatic(ViSession vi, ViConstString channelList,
return function_pointers_.WriteStatic(vi, channelList, state);
}

ViStatus NiDigitalLibrary::SetRuntimeEnvironment(ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2)
{
if (!function_pointers_.SetRuntimeEnvironment) {
throw nidevice_grpc::LibraryLoadException("Could not find niDigital_SetRuntimeEnvironment.");
}
return function_pointers_.SetRuntimeEnvironment(environment, environmentVersion, reserved1, reserved2);
}

} // namespace nidigitalpattern_grpc
3 changes: 3 additions & 0 deletions generated/nidigitalpattern/nidigitalpattern_library.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ class NiDigitalLibrary : public nidigitalpattern_grpc::NiDigitalLibraryInterface
ViStatus WriteSourceWaveformDataFromFileTDMS(ViSession vi, ViConstString waveformName, ViConstString waveformFilePath);
ViStatus WriteSourceWaveformSiteUniqueU32(ViSession vi, ViConstString siteList, ViConstString waveformName, ViInt32 numWaveforms, ViInt32 samplesPerWaveform, ViUInt32 waveformData[1]);
ViStatus WriteStatic(ViSession vi, ViConstString channelList, ViUInt8 state);
ViStatus SetRuntimeEnvironment(ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2);

private:
using AbortPtr = decltype(&niDigital_Abort);
Expand Down Expand Up @@ -284,6 +285,7 @@ class NiDigitalLibrary : public nidigitalpattern_grpc::NiDigitalLibraryInterface
using WriteSourceWaveformDataFromFileTDMSPtr = decltype(&niDigital_WriteSourceWaveformDataFromFileTDMS);
using WriteSourceWaveformSiteUniqueU32Ptr = decltype(&niDigital_WriteSourceWaveformSiteUniqueU32);
using WriteStaticPtr = decltype(&niDigital_WriteStatic);
using SetRuntimeEnvironmentPtr = ViStatus (*)(ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2);

typedef struct FunctionPointers {
AbortPtr Abort;
Expand Down Expand Up @@ -418,6 +420,7 @@ class NiDigitalLibrary : public nidigitalpattern_grpc::NiDigitalLibraryInterface
WriteSourceWaveformDataFromFileTDMSPtr WriteSourceWaveformDataFromFileTDMS;
WriteSourceWaveformSiteUniqueU32Ptr WriteSourceWaveformSiteUniqueU32;
WriteStaticPtr WriteStatic;
SetRuntimeEnvironmentPtr SetRuntimeEnvironment;
} FunctionLoadStatus;

nidevice_grpc::SharedLibrary shared_library_;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ class NiDigitalLibraryInterface {
virtual ViStatus WriteSourceWaveformDataFromFileTDMS(ViSession vi, ViConstString waveformName, ViConstString waveformFilePath) = 0;
virtual ViStatus WriteSourceWaveformSiteUniqueU32(ViSession vi, ViConstString siteList, ViConstString waveformName, ViInt32 numWaveforms, ViInt32 samplesPerWaveform, ViUInt32 waveformData[1]) = 0;
virtual ViStatus WriteStatic(ViSession vi, ViConstString channelList, ViUInt8 state) = 0;
virtual ViStatus SetRuntimeEnvironment(ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2) = 0;
};

} // namespace nidigitalpattern_grpc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ class NiDigitalMockLibrary : public nidigitalpattern_grpc::NiDigitalLibraryInter
MOCK_METHOD(ViStatus, WriteSourceWaveformDataFromFileTDMS, (ViSession vi, ViConstString waveformName, ViConstString waveformFilePath), (override));
MOCK_METHOD(ViStatus, WriteSourceWaveformSiteUniqueU32, (ViSession vi, ViConstString siteList, ViConstString waveformName, ViInt32 numWaveforms, ViInt32 samplesPerWaveform, ViUInt32 waveformData[1]), (override));
MOCK_METHOD(ViStatus, WriteStatic, (ViSession vi, ViConstString channelList, ViUInt8 state), (override));
MOCK_METHOD(ViStatus, SetRuntimeEnvironment, (ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2), (override));
};

} // namespace unit
Expand Down
9 changes: 9 additions & 0 deletions generated/nidmm/nidmm_library.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ NiDmmLibrary::NiDmmLibrary() : shared_library_(kLibraryName)
function_pointers_.SetAttributeViSession = reinterpret_cast<SetAttributeViSessionPtr>(shared_library_.get_function_pointer("niDMM_SetAttributeViSession"));
function_pointers_.SetAttributeViString = reinterpret_cast<SetAttributeViStringPtr>(shared_library_.get_function_pointer("niDMM_SetAttributeViString"));
function_pointers_.UnlockSession = reinterpret_cast<UnlockSessionPtr>(shared_library_.get_function_pointer("niDMM_UnlockSession"));
function_pointers_.SetRuntimeEnvironment = reinterpret_cast<SetRuntimeEnvironmentPtr>(shared_library_.get_function_pointer("niDMM_SetRuntimeEnvironment"));
}

NiDmmLibrary::~NiDmmLibrary()
Expand Down Expand Up @@ -835,4 +836,12 @@ ViStatus NiDmmLibrary::UnlockSession(ViSession vi, ViBoolean* callerHasLock)
return function_pointers_.UnlockSession(vi, callerHasLock);
}

ViStatus NiDmmLibrary::SetRuntimeEnvironment(ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2)
{
if (!function_pointers_.SetRuntimeEnvironment) {
throw nidevice_grpc::LibraryLoadException("Could not find niDMM_SetRuntimeEnvironment.");
}
return function_pointers_.SetRuntimeEnvironment(environment, environmentVersion, reserved1, reserved2);
}

} // namespace nidmm_grpc
3 changes: 3 additions & 0 deletions generated/nidmm/nidmm_library.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ class NiDmmLibrary : public nidmm_grpc::NiDmmLibraryInterface {
ViStatus SetAttributeViSession(ViSession vi, ViConstString channelName, ViAttr attributeId, ViSession attributeValue);
ViStatus SetAttributeViString(ViSession vi, ViConstString channelName, ViAttr attributeId, ViString attributeValue);
ViStatus UnlockSession(ViSession vi, ViBoolean* callerHasLock);
ViStatus SetRuntimeEnvironment(ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2);

private:
using AbortPtr = decltype(&niDMM_Abort);
Expand Down Expand Up @@ -198,6 +199,7 @@ class NiDmmLibrary : public nidmm_grpc::NiDmmLibraryInterface {
using SetAttributeViSessionPtr = decltype(&niDMM_SetAttributeViSession);
using SetAttributeViStringPtr = decltype(&niDMM_SetAttributeViString);
using UnlockSessionPtr = ViStatus (*)(ViSession vi, ViBoolean* callerHasLock);
using SetRuntimeEnvironmentPtr = ViStatus (*)(ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2);

typedef struct FunctionPointers {
AbortPtr Abort;
Expand Down Expand Up @@ -289,6 +291,7 @@ class NiDmmLibrary : public nidmm_grpc::NiDmmLibraryInterface {
SetAttributeViSessionPtr SetAttributeViSession;
SetAttributeViStringPtr SetAttributeViString;
UnlockSessionPtr UnlockSession;
SetRuntimeEnvironmentPtr SetRuntimeEnvironment;
} FunctionLoadStatus;

nidevice_grpc::SharedLibrary shared_library_;
Expand Down
1 change: 1 addition & 0 deletions generated/nidmm/nidmm_library_interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ class NiDmmLibraryInterface {
virtual ViStatus SetAttributeViSession(ViSession vi, ViConstString channelName, ViAttr attributeId, ViSession attributeValue) = 0;
virtual ViStatus SetAttributeViString(ViSession vi, ViConstString channelName, ViAttr attributeId, ViString attributeValue) = 0;
virtual ViStatus UnlockSession(ViSession vi, ViBoolean* callerHasLock) = 0;
virtual ViStatus SetRuntimeEnvironment(ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2) = 0;
};

} // namespace nidmm_grpc
Expand Down
1 change: 1 addition & 0 deletions generated/nidmm/nidmm_mock_library.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ class NiDmmMockLibrary : public nidmm_grpc::NiDmmLibraryInterface {
MOCK_METHOD(ViStatus, SetAttributeViSession, (ViSession vi, ViConstString channelName, ViAttr attributeId, ViSession attributeValue), (override));
MOCK_METHOD(ViStatus, SetAttributeViString, (ViSession vi, ViConstString channelName, ViAttr attributeId, ViString attributeValue), (override));
MOCK_METHOD(ViStatus, UnlockSession, (ViSession vi, ViBoolean* callerHasLock), (override));
MOCK_METHOD(ViStatus, SetRuntimeEnvironment, (ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2), (override));
};

} // namespace unit
Expand Down
9 changes: 9 additions & 0 deletions generated/nifake/nifake_library.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ NiFakeLibrary::NiFakeLibrary() : shared_library_(kLibraryName)
function_pointers_.ViUInt8ArrayInputFunction = reinterpret_cast<ViUInt8ArrayInputFunctionPtr>(shared_library_.get_function_pointer("niFake_ViUInt8ArrayInputFunction"));
function_pointers_.ViUInt8ArrayOutputFunction = reinterpret_cast<ViUInt8ArrayOutputFunctionPtr>(shared_library_.get_function_pointer("niFake_ViUInt8ArrayOutputFunction"));
function_pointers_.WriteWaveform = reinterpret_cast<WriteWaveformPtr>(shared_library_.get_function_pointer("niFake_WriteWaveform"));
function_pointers_.SetRuntimeEnvironment = reinterpret_cast<SetRuntimeEnvironmentPtr>(shared_library_.get_function_pointer("niFake_SetRuntimeEnvironment"));
}

NiFakeLibrary::~NiFakeLibrary()
Expand Down Expand Up @@ -871,4 +872,12 @@ ViStatus NiFakeLibrary::WriteWaveform(ViSession vi, ViInt32 numberOfSamples, ViR
return function_pointers_.WriteWaveform(vi, numberOfSamples, waveform);
}

ViStatus NiFakeLibrary::SetRuntimeEnvironment(ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2)
{
if (!function_pointers_.SetRuntimeEnvironment) {
throw nidevice_grpc::LibraryLoadException("Could not find niFake_SetRuntimeEnvironment.");
}
return function_pointers_.SetRuntimeEnvironment(environment, environmentVersion, reserved1, reserved2);
}

} // namespace nifake_grpc
3 changes: 3 additions & 0 deletions generated/nifake/nifake_library.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ class NiFakeLibrary : public nifake_grpc::NiFakeLibraryInterface {
ViStatus ViUInt8ArrayInputFunction(ViSession vi, ViInt32 numberOfElements, ViUInt8 anArray[]);
ViStatus ViUInt8ArrayOutputFunction(ViSession vi, ViInt32 numberOfElements, ViUInt8 anArray[]);
ViStatus WriteWaveform(ViSession vi, ViInt32 numberOfSamples, ViReal64 waveform[]);
ViStatus SetRuntimeEnvironment(ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2);

private:
using AbortPtr = decltype(&niFake_Abort);
Expand Down Expand Up @@ -206,6 +207,7 @@ class NiFakeLibrary : public nifake_grpc::NiFakeLibraryInterface {
using ViUInt8ArrayInputFunctionPtr = decltype(&niFake_ViUInt8ArrayInputFunction);
using ViUInt8ArrayOutputFunctionPtr = decltype(&niFake_ViUInt8ArrayOutputFunction);
using WriteWaveformPtr = decltype(&niFake_WriteWaveform);
using SetRuntimeEnvironmentPtr = ViStatus (*)(ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2);

typedef struct FunctionPointers {
AbortPtr Abort;
Expand Down Expand Up @@ -301,6 +303,7 @@ class NiFakeLibrary : public nifake_grpc::NiFakeLibraryInterface {
ViUInt8ArrayInputFunctionPtr ViUInt8ArrayInputFunction;
ViUInt8ArrayOutputFunctionPtr ViUInt8ArrayOutputFunction;
WriteWaveformPtr WriteWaveform;
SetRuntimeEnvironmentPtr SetRuntimeEnvironment;
} FunctionLoadStatus;

nidevice_grpc::SharedLibrary shared_library_;
Expand Down
1 change: 1 addition & 0 deletions generated/nifake/nifake_library_interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ class NiFakeLibraryInterface {
virtual ViStatus ViUInt8ArrayInputFunction(ViSession vi, ViInt32 numberOfElements, ViUInt8 anArray[]) = 0;
virtual ViStatus ViUInt8ArrayOutputFunction(ViSession vi, ViInt32 numberOfElements, ViUInt8 anArray[]) = 0;
virtual ViStatus WriteWaveform(ViSession vi, ViInt32 numberOfSamples, ViReal64 waveform[]) = 0;
virtual ViStatus SetRuntimeEnvironment(ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2) = 0;
};

} // namespace nifake_grpc
Expand Down
1 change: 1 addition & 0 deletions generated/nifake/nifake_mock_library.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ class NiFakeMockLibrary : public nifake_grpc::NiFakeLibraryInterface {
MOCK_METHOD(ViStatus, ViUInt8ArrayInputFunction, (ViSession vi, ViInt32 numberOfElements, ViUInt8 anArray[]), (override));
MOCK_METHOD(ViStatus, ViUInt8ArrayOutputFunction, (ViSession vi, ViInt32 numberOfElements, ViUInt8 anArray[]), (override));
MOCK_METHOD(ViStatus, WriteWaveform, (ViSession vi, ViInt32 numberOfSamples, ViReal64 waveform[]), (override));
MOCK_METHOD(ViStatus, SetRuntimeEnvironment, (ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2), (override));
};

} // namespace unit
Expand Down
9 changes: 9 additions & 0 deletions generated/nifgen/nifgen_library.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ NiFgenLibrary::NiFgenLibrary() : shared_library_(kLibraryName)
function_pointers_.WriteScript = reinterpret_cast<WriteScriptPtr>(shared_library_.get_function_pointer("niFgen_WriteScript"));
function_pointers_.WriteWaveform = reinterpret_cast<WriteWaveformPtr>(shared_library_.get_function_pointer("niFgen_WriteWaveform"));
function_pointers_.WriteWaveformComplexF64 = reinterpret_cast<WriteWaveformComplexF64Ptr>(shared_library_.get_function_pointer("niFgen_WriteWaveformComplexF64"));
function_pointers_.SetRuntimeEnvironment = reinterpret_cast<SetRuntimeEnvironmentPtr>(shared_library_.get_function_pointer("niFgen_SetRuntimeEnvironment"));
}

NiFgenLibrary::~NiFgenLibrary()
Expand Down Expand Up @@ -1231,4 +1232,12 @@ ViStatus NiFgenLibrary::WriteWaveformComplexF64(ViSession vi, ViConstString chan
return function_pointers_.WriteWaveformComplexF64(vi, channelName, numberOfSamples, data, waveformHandle);
}

ViStatus NiFgenLibrary::SetRuntimeEnvironment(ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2)
{
if (!function_pointers_.SetRuntimeEnvironment) {
throw nidevice_grpc::LibraryLoadException("Could not find niFgen_SetRuntimeEnvironment.");
}
return function_pointers_.SetRuntimeEnvironment(environment, environmentVersion, reserved1, reserved2);
}

} // namespace nifgen_grpc
3 changes: 3 additions & 0 deletions generated/nifgen/nifgen_library.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ class NiFgenLibrary : public nifgen_grpc::NiFgenLibraryInterface {
ViStatus WriteScript(ViSession vi, ViConstString channelName, ViConstString script);
ViStatus WriteWaveform(ViSession vi, ViConstString channelName, ViInt32 waveformHandle, ViInt32 size, ViReal64 data[]);
ViStatus WriteWaveformComplexF64(ViSession vi, ViConstString channelName, ViInt32 numberOfSamples, NIComplexNumber_struct data[], ViInt32 waveformHandle);
ViStatus SetRuntimeEnvironment(ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2);

private:
using AbortGenerationPtr = decltype(&niFgen_AbortGeneration);
Expand Down Expand Up @@ -286,6 +287,7 @@ class NiFgenLibrary : public nifgen_grpc::NiFgenLibraryInterface {
using WriteScriptPtr = decltype(&niFgen_WriteScript);
using WriteWaveformPtr = decltype(&niFgen_WriteWaveform);
using WriteWaveformComplexF64Ptr = decltype(&niFgen_WriteWaveformComplexF64);
using SetRuntimeEnvironmentPtr = ViStatus (*)(ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2);

typedef struct FunctionPointers {
AbortGenerationPtr AbortGeneration;
Expand Down Expand Up @@ -421,6 +423,7 @@ class NiFgenLibrary : public nifgen_grpc::NiFgenLibraryInterface {
WriteScriptPtr WriteScript;
WriteWaveformPtr WriteWaveform;
WriteWaveformComplexF64Ptr WriteWaveformComplexF64;
SetRuntimeEnvironmentPtr SetRuntimeEnvironment;
} FunctionLoadStatus;

nidevice_grpc::SharedLibrary shared_library_;
Expand Down
Loading