Skip to content

Commit

Permalink
Merge pull request #8 from SengerM/main
Browse files Browse the repository at this point in the history
Fix some bugs
  • Loading branch information
fk3 authored Aug 20, 2024
2 parents 0e2194b + a41df88 commit 386483a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
6 changes: 0 additions & 6 deletions pyproject.toml

This file was deleted.

9 changes: 3 additions & 6 deletions src/pylptlib/lpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
_dll_path = r"C:\s4200\sys\bin\lptlib.dll"
_dll = None

DEBUG_MODE = True
DEBUG_MODE = False


# ### UTILITY FUNCTIONS
Expand Down Expand Up @@ -585,7 +585,7 @@ def pulse_fetch(instr_id: int, chan: int, start_index: int, stop_index: int) ->

meas_v = make_double_array(buffer_size)
meas_i = make_double_array(buffer_size)
statuses = make_generic_array(buffer_size, data_type=c.c_ulong())
statuses = make_generic_array(buffer_size, data_type=c.c_ulong)
timestamp = make_double_array(buffer_size)

# TODO: check whether statuses needs byref
Expand Down Expand Up @@ -832,10 +832,7 @@ def pulse_sweep_linear(instr_id: int, chan: int, sweep_type: int, start: float,

def pulse_train(instr_id: int, chan: int, v_base: float, v_amplitude: float):
""" """
v_base = c.c_double(v_base) if v_base else None
v_amplitude = c.c_double(v_amplitude) if v_amplitude else None

err = _dll.pulse_train(c.c_int32(instr_id), c.c_int32(chan))
err = _dll.pulse_train(c.c_int32(instr_id), c.c_int32(chan), c.c_double(v_base), c.c_double(v_amplitude))
check_error(err)


Expand Down

0 comments on commit 386483a

Please sign in to comment.