Skip to content

Commit 48bdec3

Browse files
updated method template for hightime apis
1 parent 7122f17 commit 48bdec3

File tree

6 files changed

+2
-792
lines changed

6 files changed

+2
-792
lines changed

docs/nirfsg/class.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12666,7 +12666,7 @@ write_waveform_burst_detection
1266612666

1266712667
.. py:attribute:: write_waveform_burst_detection
1266812668

12669-
Enables the detection of burst start and burst stop locations in the waveform. You can read the detected burst start and burst stop locations using :py:meth:`nirfsg.Session._get_waveform_burst_start_locations` and :py:meth:`nirfsg.Session._get_waveform_burst_stop_locations` methods respectively.
12669+
Enables the detection of burst start and burst stop locations in the waveform. You can read the detected burst start and burst stop locations using :py:meth:`nirfsg.Session.GetWaveformBurstStartLocations` and :py:meth:`nirfsg.Session.GetWaveformBurstStopLocations` methods respectively.
1267012670

1267112671
**Default Value:** :py:data:`~nirfsg.WriteWaveformBurstDetection.DISABLE`
1267212672

generated/nirfsg/nirfsg/_library.py

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,6 @@ def __init__(self, ctypes_library):
7676
self.niRFSG_GetSelfCalibrationTemperature_cfunc = None
7777
self.niRFSG_GetStreamEndpointHandle_cfunc = None
7878
self.niRFSG_GetTerminalName_cfunc = None
79-
self.niRFSG_GetWaveformBurstStartLocations_cfunc = None
80-
self.niRFSG_GetWaveformBurstStopLocations_cfunc = None
81-
self.niRFSG_GetWaveformMarkerEventLocations_cfunc = None
8279
self.niRFSG_InitWithOptions_cfunc = None
8380
self.niRFSG_Initiate_cfunc = None
8481
self.niRFSG_LoadConfigurationsFromFile_cfunc = None
@@ -105,9 +102,6 @@ def __init__(self, ctypes_library):
105102
self.niRFSG_SetAttributeViReal64_cfunc = None
106103
self.niRFSG_SetAttributeViSession_cfunc = None
107104
self.niRFSG_SetAttributeViString_cfunc = None
108-
self.niRFSG_SetWaveformBurstStartLocations_cfunc = None
109-
self.niRFSG_SetWaveformBurstStopLocations_cfunc = None
110-
self.niRFSG_SetWaveformMarkerEventLocations_cfunc = None
111105
self.niRFSG_UnlockSession_cfunc = None
112106
self.niRFSG_WaitUntilSettled_cfunc = None
113107
self.niRFSG_WriteP2PEndpointI16_cfunc = None
@@ -577,30 +571,6 @@ def niRFSG_GetTerminalName(self, vi, signal, signal_identifier, buffer_size, ter
577571
self.niRFSG_GetTerminalName_cfunc.restype = ViStatus # noqa: F405
578572
return self.niRFSG_GetTerminalName_cfunc(vi, signal, signal_identifier, buffer_size, terminal_name)
579573

580-
def niRFSG_GetWaveformBurstStartLocations(self, vi, channel_name, number_of_locations, locations, required_size): # noqa: N802
581-
with self._func_lock:
582-
if self.niRFSG_GetWaveformBurstStartLocations_cfunc is None:
583-
self.niRFSG_GetWaveformBurstStartLocations_cfunc = self._get_library_function('niRFSG_GetWaveformBurstStartLocations')
584-
self.niRFSG_GetWaveformBurstStartLocations_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(ViInt32)] # noqa: F405
585-
self.niRFSG_GetWaveformBurstStartLocations_cfunc.restype = ViStatus # noqa: F405
586-
return self.niRFSG_GetWaveformBurstStartLocations_cfunc(vi, channel_name, number_of_locations, locations, required_size)
587-
588-
def niRFSG_GetWaveformBurstStopLocations(self, vi, channel_name, number_of_locations, locations, required_size): # noqa: N802
589-
with self._func_lock:
590-
if self.niRFSG_GetWaveformBurstStopLocations_cfunc is None:
591-
self.niRFSG_GetWaveformBurstStopLocations_cfunc = self._get_library_function('niRFSG_GetWaveformBurstStopLocations')
592-
self.niRFSG_GetWaveformBurstStopLocations_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(ViInt32)] # noqa: F405
593-
self.niRFSG_GetWaveformBurstStopLocations_cfunc.restype = ViStatus # noqa: F405
594-
return self.niRFSG_GetWaveformBurstStopLocations_cfunc(vi, channel_name, number_of_locations, locations, required_size)
595-
596-
def niRFSG_GetWaveformMarkerEventLocations(self, vi, channel_name, number_of_locations, locations, required_size): # noqa: N802
597-
with self._func_lock:
598-
if self.niRFSG_GetWaveformMarkerEventLocations_cfunc is None:
599-
self.niRFSG_GetWaveformMarkerEventLocations_cfunc = self._get_library_function('niRFSG_GetWaveformMarkerEventLocations')
600-
self.niRFSG_GetWaveformMarkerEventLocations_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(ViInt32)] # noqa: F405
601-
self.niRFSG_GetWaveformMarkerEventLocations_cfunc.restype = ViStatus # noqa: F405
602-
return self.niRFSG_GetWaveformMarkerEventLocations_cfunc(vi, channel_name, number_of_locations, locations, required_size)
603-
604574
def niRFSG_InitWithOptions(self, resource_name, id_query, reset_device, option_string, new_vi): # noqa: N802
605575
with self._func_lock:
606576
if self.niRFSG_InitWithOptions_cfunc is None:
@@ -809,30 +779,6 @@ def niRFSG_SetAttributeViString(self, vi, channel_name, attribute, value): # no
809779
self.niRFSG_SetAttributeViString_cfunc.restype = ViStatus # noqa: F405
810780
return self.niRFSG_SetAttributeViString_cfunc(vi, channel_name, attribute, value)
811781

812-
def niRFSG_SetWaveformBurstStartLocations(self, vi, channel_name, number_of_locations, locations): # noqa: N802
813-
with self._func_lock:
814-
if self.niRFSG_SetWaveformBurstStartLocations_cfunc is None:
815-
self.niRFSG_SetWaveformBurstStartLocations_cfunc = self._get_library_function('niRFSG_SetWaveformBurstStartLocations')
816-
self.niRFSG_SetWaveformBurstStartLocations_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ViReal64] # noqa: F405
817-
self.niRFSG_SetWaveformBurstStartLocations_cfunc.restype = ViStatus # noqa: F405
818-
return self.niRFSG_SetWaveformBurstStartLocations_cfunc(vi, channel_name, number_of_locations, locations)
819-
820-
def niRFSG_SetWaveformBurstStopLocations(self, vi, channel_name, number_of_locations, locations): # noqa: N802
821-
with self._func_lock:
822-
if self.niRFSG_SetWaveformBurstStopLocations_cfunc is None:
823-
self.niRFSG_SetWaveformBurstStopLocations_cfunc = self._get_library_function('niRFSG_SetWaveformBurstStopLocations')
824-
self.niRFSG_SetWaveformBurstStopLocations_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ViReal64] # noqa: F405
825-
self.niRFSG_SetWaveformBurstStopLocations_cfunc.restype = ViStatus # noqa: F405
826-
return self.niRFSG_SetWaveformBurstStopLocations_cfunc(vi, channel_name, number_of_locations, locations)
827-
828-
def niRFSG_SetWaveformMarkerEventLocations(self, vi, channel_name, number_of_locations, locations): # noqa: N802
829-
with self._func_lock:
830-
if self.niRFSG_SetWaveformMarkerEventLocations_cfunc is None:
831-
self.niRFSG_SetWaveformMarkerEventLocations_cfunc = self._get_library_function('niRFSG_SetWaveformMarkerEventLocations')
832-
self.niRFSG_SetWaveformMarkerEventLocations_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ViReal64] # noqa: F405
833-
self.niRFSG_SetWaveformMarkerEventLocations_cfunc.restype = ViStatus # noqa: F405
834-
return self.niRFSG_SetWaveformMarkerEventLocations_cfunc(vi, channel_name, number_of_locations, locations)
835-
836782
def niRFSG_UnlockSession(self, vi, caller_has_lock): # noqa: N802
837783
with self._func_lock:
838784
if self.niRFSG_UnlockSession_cfunc is None:

generated/nirfsg/nirfsg/_library_interpreter.py

Lines changed: 0 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -565,36 +565,6 @@ def get_terminal_name(self, signal, signal_identifier): # noqa: N802
565565
errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False)
566566
return terminal_name_ctype.value.decode(self._encoding)
567567

568-
def get_waveform_burst_start_locations(self, channel_name, number_of_locations): # noqa: N802
569-
vi_ctype = _visatype.ViSession(self._vi) # case S110
570-
channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010
571-
number_of_locations_ctype = _visatype.ViInt32(number_of_locations) # case S150
572-
locations_ctype = _visatype.ViReal64() # case S220
573-
required_size_ctype = _visatype.ViInt32() # case S220
574-
error_code = self._library.niRFSG_GetWaveformBurstStartLocations(vi_ctype, channel_name_ctype, number_of_locations_ctype, None if locations_ctype is None else (ctypes.pointer(locations_ctype)), None if required_size_ctype is None else (ctypes.pointer(required_size_ctype)))
575-
errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False)
576-
return float(locations_ctype.value), int(required_size_ctype.value)
577-
578-
def get_waveform_burst_stop_locations(self, channel_name, number_of_locations): # noqa: N802
579-
vi_ctype = _visatype.ViSession(self._vi) # case S110
580-
channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010
581-
number_of_locations_ctype = _visatype.ViInt32(number_of_locations) # case S150
582-
locations_ctype = _visatype.ViReal64() # case S220
583-
required_size_ctype = _visatype.ViInt32() # case S220
584-
error_code = self._library.niRFSG_GetWaveformBurstStopLocations(vi_ctype, channel_name_ctype, number_of_locations_ctype, None if locations_ctype is None else (ctypes.pointer(locations_ctype)), None if required_size_ctype is None else (ctypes.pointer(required_size_ctype)))
585-
errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False)
586-
return float(locations_ctype.value), int(required_size_ctype.value)
587-
588-
def get_waveform_marker_event_locations(self, channel_name, number_of_locations): # noqa: N802
589-
vi_ctype = _visatype.ViSession(self._vi) # case S110
590-
channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010
591-
number_of_locations_ctype = _visatype.ViInt32(number_of_locations) # case S150
592-
locations_ctype = _visatype.ViReal64() # case S220
593-
required_size_ctype = _visatype.ViInt32() # case S220
594-
error_code = self._library.niRFSG_GetWaveformMarkerEventLocations(vi_ctype, channel_name_ctype, number_of_locations_ctype, None if locations_ctype is None else (ctypes.pointer(locations_ctype)), None if required_size_ctype is None else (ctypes.pointer(required_size_ctype)))
595-
errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False)
596-
return float(locations_ctype.value), int(required_size_ctype.value)
597-
598568
def init_with_options(self, resource_name, id_query, reset_device, option_string): # noqa: N802
599569
resource_name_ctype = ctypes.create_string_buffer(resource_name.encode(self._encoding)) # case C020
600570
id_query_ctype = _visatype.ViBoolean(id_query) # case S150
@@ -800,33 +770,6 @@ def set_attribute_vi_string(self, channel_name, attribute, value): # noqa: N802
800770
errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False)
801771
return
802772

803-
def set_waveform_burst_start_locations(self, channel_name, number_of_locations, locations): # noqa: N802
804-
vi_ctype = _visatype.ViSession(self._vi) # case S110
805-
channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010
806-
number_of_locations_ctype = _visatype.ViInt32(number_of_locations) # case S150
807-
locations_ctype = _visatype.ViReal64(locations) # case S150
808-
error_code = self._library.niRFSG_SetWaveformBurstStartLocations(vi_ctype, channel_name_ctype, number_of_locations_ctype, locations_ctype)
809-
errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False)
810-
return
811-
812-
def set_waveform_burst_stop_locations(self, channel_name, number_of_locations, locations): # noqa: N802
813-
vi_ctype = _visatype.ViSession(self._vi) # case S110
814-
channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010
815-
number_of_locations_ctype = _visatype.ViInt32(number_of_locations) # case S150
816-
locations_ctype = _visatype.ViReal64(locations) # case S150
817-
error_code = self._library.niRFSG_SetWaveformBurstStopLocations(vi_ctype, channel_name_ctype, number_of_locations_ctype, locations_ctype)
818-
errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False)
819-
return
820-
821-
def set_waveform_marker_event_locations(self, channel_name, number_of_locations, locations): # noqa: N802
822-
vi_ctype = _visatype.ViSession(self._vi) # case S110
823-
channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010
824-
number_of_locations_ctype = _visatype.ViInt32(number_of_locations) # case S150
825-
locations_ctype = _visatype.ViReal64(locations) # case S150
826-
error_code = self._library.niRFSG_SetWaveformMarkerEventLocations(vi_ctype, channel_name_ctype, number_of_locations_ctype, locations_ctype)
827-
errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False)
828-
return
829-
830773
def unlock(self): # noqa: N802
831774
vi_ctype = _visatype.ViSession(self._vi) # case S110
832775
error_code = self._library.niRFSG_UnlockSession(vi_ctype, None)

0 commit comments

Comments
 (0)