Skip to content
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
2 changes: 1 addition & 1 deletion build/helper/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def camelcase_to_snakecase(camelcase_string):
'''Converts a camelCase string to lower_case_snake_case'''
# https://stackoverflow.com/questions/1175208/elegant-python-function-to-convert-camelcase-to-snake-case
s1 = re.sub('(.)([A-Z][a-z]+)', r'\1_\2', camelcase_string)
return re.sub('([a-z0-9])([A-Z])', r'\1_\2', s1).lower()
return re.sub('([a-z])([A-Z])', r'\1_\2', s1).lower()


# TODO(marcoskirsch): not being used
Expand Down
467 changes: 421 additions & 46 deletions docs/nirfsg/class.rst

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions docs/nirfsg/enums.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1318,10 +1318,6 @@ RFFilter



.. py:attribute:: RFFilter.CONFIGURATION_SETTLED_EVENT



.. py:attribute:: RFFilter.LO_FREQ_MOD_4000


Expand Down
86 changes: 79 additions & 7 deletions generated/nirfsg/nirfsg/_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ def __init__(self, ctypes_library):
self.niRFSG_Disable_cfunc = None
self.niRFSG_DisableScriptTrigger_cfunc = None
self.niRFSG_DisableStartTrigger_cfunc = None
self.niRFSG_ErrorMessage_cfunc = None
self.niRFSG_ErrorQuery_cfunc = None
self.niRFSG_ExportSignal_cfunc = None
self.niRFSG_GetAllNamedWaveformNames_cfunc = None
self.niRFSG_GetAllScriptNames_cfunc = None
Expand All @@ -76,6 +78,9 @@ def __init__(self, ctypes_library):
self.niRFSG_GetSelfCalibrationTemperature_cfunc = None
self.niRFSG_GetStreamEndpointHandle_cfunc = None
self.niRFSG_GetTerminalName_cfunc = None
self.niRFSG_GetWaveformBurstStartLocations_cfunc = None
self.niRFSG_GetWaveformBurstStopLocations_cfunc = None
self.niRFSG_GetWaveformMarkerEventLocations_cfunc = None
self.niRFSG_InitWithOptions_cfunc = None
self.niRFSG_Initiate_cfunc = None
self.niRFSG_LoadConfigurationsFromFile_cfunc = None
Expand All @@ -88,7 +93,7 @@ def __init__(self, ctypes_library):
self.niRFSG_ResetAttribute_cfunc = None
self.niRFSG_ResetDevice_cfunc = None
self.niRFSG_ResetWithDefaults_cfunc = None
self.niRFSG_ResetWithOptions_cfunc = None
self.niRFSG_RevisionQuery_cfunc = None
self.niRFSG_SaveConfigurationsToFile_cfunc = None
self.niRFSG_SelectArbWaveform_cfunc = None
self.niRFSG_SelfCal_cfunc = None
Expand All @@ -102,6 +107,9 @@ def __init__(self, ctypes_library):
self.niRFSG_SetAttributeViReal64_cfunc = None
self.niRFSG_SetAttributeViSession_cfunc = None
self.niRFSG_SetAttributeViString_cfunc = None
self.niRFSG_SetWaveformBurstStartLocations_cfunc = None
self.niRFSG_SetWaveformBurstStopLocations_cfunc = None
self.niRFSG_SetWaveformMarkerEventLocations_cfunc = None
self.niRFSG_UnlockSession_cfunc = None
self.niRFSG_WaitUntilSettled_cfunc = None
self.niRFSG_WriteP2PEndpointI16_cfunc = None
Expand Down Expand Up @@ -435,6 +443,22 @@ def niRFSG_DisableStartTrigger(self, vi): # noqa: N802
self.niRFSG_DisableStartTrigger_cfunc.restype = ViStatus # noqa: F405
return self.niRFSG_DisableStartTrigger_cfunc(vi)

def niRFSG_ErrorMessage(self, vi, error_code, error_message): # noqa: N802
with self._func_lock:
if self.niRFSG_ErrorMessage_cfunc is None:
self.niRFSG_ErrorMessage_cfunc = self._get_library_function('niRFSG_ErrorMessage')
self.niRFSG_ErrorMessage_cfunc.argtypes = [ViSession, ViStatus, ctypes.POINTER(ViChar)] # noqa: F405
self.niRFSG_ErrorMessage_cfunc.restype = ViStatus # noqa: F405
return self.niRFSG_ErrorMessage_cfunc(vi, error_code, error_message)

def niRFSG_ErrorQuery(self, vi, error_code, error_message): # noqa: N802
with self._func_lock:
if self.niRFSG_ErrorQuery_cfunc is None:
self.niRFSG_ErrorQuery_cfunc = self._get_library_function('niRFSG_ErrorQuery')
self.niRFSG_ErrorQuery_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt32), ctypes.POINTER(ViChar)] # noqa: F405
self.niRFSG_ErrorQuery_cfunc.restype = ViStatus # noqa: F405
return self.niRFSG_ErrorQuery_cfunc(vi, error_code, error_message)

def niRFSG_ExportSignal(self, vi, signal, signal_identifier, output_terminal): # noqa: N802
with self._func_lock:
if self.niRFSG_ExportSignal_cfunc is None:
Expand Down Expand Up @@ -571,6 +595,30 @@ def niRFSG_GetTerminalName(self, vi, signal, signal_identifier, buffer_size, ter
self.niRFSG_GetTerminalName_cfunc.restype = ViStatus # noqa: F405
return self.niRFSG_GetTerminalName_cfunc(vi, signal, signal_identifier, buffer_size, terminal_name)

def niRFSG_GetWaveformBurstStartLocations(self, vi, channel_name, number_of_locations, locations, required_size): # noqa: N802
with self._func_lock:
if self.niRFSG_GetWaveformBurstStartLocations_cfunc is None:
self.niRFSG_GetWaveformBurstStartLocations_cfunc = self._get_library_function('niRFSG_GetWaveformBurstStartLocations')
self.niRFSG_GetWaveformBurstStartLocations_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(ViInt32)] # noqa: F405
self.niRFSG_GetWaveformBurstStartLocations_cfunc.restype = ViStatus # noqa: F405
return self.niRFSG_GetWaveformBurstStartLocations_cfunc(vi, channel_name, number_of_locations, locations, required_size)

def niRFSG_GetWaveformBurstStopLocations(self, vi, channel_name, number_of_locations, locations, required_size): # noqa: N802
with self._func_lock:
if self.niRFSG_GetWaveformBurstStopLocations_cfunc is None:
self.niRFSG_GetWaveformBurstStopLocations_cfunc = self._get_library_function('niRFSG_GetWaveformBurstStopLocations')
self.niRFSG_GetWaveformBurstStopLocations_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(ViInt32)] # noqa: F405
self.niRFSG_GetWaveformBurstStopLocations_cfunc.restype = ViStatus # noqa: F405
return self.niRFSG_GetWaveformBurstStopLocations_cfunc(vi, channel_name, number_of_locations, locations, required_size)

def niRFSG_GetWaveformMarkerEventLocations(self, vi, channel_name, number_of_locations, locations, required_size): # noqa: N802
with self._func_lock:
if self.niRFSG_GetWaveformMarkerEventLocations_cfunc is None:
self.niRFSG_GetWaveformMarkerEventLocations_cfunc = self._get_library_function('niRFSG_GetWaveformMarkerEventLocations')
self.niRFSG_GetWaveformMarkerEventLocations_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(ViInt32)] # noqa: F405
self.niRFSG_GetWaveformMarkerEventLocations_cfunc.restype = ViStatus # noqa: F405
return self.niRFSG_GetWaveformMarkerEventLocations_cfunc(vi, channel_name, number_of_locations, locations, required_size)

def niRFSG_InitWithOptions(self, resource_name, id_query, reset_device, option_string, new_vi): # noqa: N802
with self._func_lock:
if self.niRFSG_InitWithOptions_cfunc is None:
Expand Down Expand Up @@ -667,13 +715,13 @@ def niRFSG_ResetWithDefaults(self, vi): # noqa: N802
self.niRFSG_ResetWithDefaults_cfunc.restype = ViStatus # noqa: F405
return self.niRFSG_ResetWithDefaults_cfunc(vi)

def niRFSG_ResetWithOptions(self, vi, steps_to_omit): # noqa: N802
def niRFSG_RevisionQuery(self, vi, instrument_driver_revision, firmware_revision): # noqa: N802
with self._func_lock:
if self.niRFSG_ResetWithOptions_cfunc is None:
self.niRFSG_ResetWithOptions_cfunc = self._get_library_function('niRFSG_ResetWithOptions')
self.niRFSG_ResetWithOptions_cfunc.argtypes = [ViSession, ViUInt64] # noqa: F405
self.niRFSG_ResetWithOptions_cfunc.restype = ViStatus # noqa: F405
return self.niRFSG_ResetWithOptions_cfunc(vi, steps_to_omit)
if self.niRFSG_RevisionQuery_cfunc is None:
self.niRFSG_RevisionQuery_cfunc = self._get_library_function('niRFSG_RevisionQuery')
self.niRFSG_RevisionQuery_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405
self.niRFSG_RevisionQuery_cfunc.restype = ViStatus # noqa: F405
return self.niRFSG_RevisionQuery_cfunc(vi, instrument_driver_revision, firmware_revision)

def niRFSG_SaveConfigurationsToFile(self, vi, channel_name, file_path): # noqa: N802
with self._func_lock:
Expand Down Expand Up @@ -779,6 +827,30 @@ def niRFSG_SetAttributeViString(self, vi, channel_name, attribute, value): # no
self.niRFSG_SetAttributeViString_cfunc.restype = ViStatus # noqa: F405
return self.niRFSG_SetAttributeViString_cfunc(vi, channel_name, attribute, value)

def niRFSG_SetWaveformBurstStartLocations(self, vi, channel_name, number_of_locations, locations): # noqa: N802
with self._func_lock:
if self.niRFSG_SetWaveformBurstStartLocations_cfunc is None:
self.niRFSG_SetWaveformBurstStartLocations_cfunc = self._get_library_function('niRFSG_SetWaveformBurstStartLocations')
self.niRFSG_SetWaveformBurstStartLocations_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405
self.niRFSG_SetWaveformBurstStartLocations_cfunc.restype = ViStatus # noqa: F405
return self.niRFSG_SetWaveformBurstStartLocations_cfunc(vi, channel_name, number_of_locations, locations)

def niRFSG_SetWaveformBurstStopLocations(self, vi, channel_name, number_of_locations, locations): # noqa: N802
with self._func_lock:
if self.niRFSG_SetWaveformBurstStopLocations_cfunc is None:
self.niRFSG_SetWaveformBurstStopLocations_cfunc = self._get_library_function('niRFSG_SetWaveformBurstStopLocations')
self.niRFSG_SetWaveformBurstStopLocations_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405
self.niRFSG_SetWaveformBurstStopLocations_cfunc.restype = ViStatus # noqa: F405
return self.niRFSG_SetWaveformBurstStopLocations_cfunc(vi, channel_name, number_of_locations, locations)

def niRFSG_SetWaveformMarkerEventLocations(self, vi, channel_name, number_of_locations, locations): # noqa: N802
with self._func_lock:
if self.niRFSG_SetWaveformMarkerEventLocations_cfunc is None:
self.niRFSG_SetWaveformMarkerEventLocations_cfunc = self._get_library_function('niRFSG_SetWaveformMarkerEventLocations')
self.niRFSG_SetWaveformMarkerEventLocations_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405
self.niRFSG_SetWaveformMarkerEventLocations_cfunc.restype = ViStatus # noqa: F405
return self.niRFSG_SetWaveformMarkerEventLocations_cfunc(vi, channel_name, number_of_locations, locations)

def niRFSG_UnlockSession(self, vi, caller_has_lock): # noqa: N802
with self._func_lock:
if self.niRFSG_UnlockSession_cfunc is None:
Expand Down
Loading