____________________________________________________________
File "C:\...\Conn_table.py", line 72, in <module>
stop(t)
File "c:\...\labscript.py", line 2460, in stop
generate_code()
File "c:\...\labscript.py", line 2303, in generate_code
save_labscripts(hdf5_file)
File "c:\...\labscript.py", line 2188, in save_labscripts
prefix = os.path.dirname(labscriptlib.__file__)
File "c:\...\ntpath.py", line 223, in dirname
return split(p)[0]
File "c:\...\ntpath.py", line 185, in split
p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not NoneType
Compilation aborted.
____________________________________________________________
the connection table I have written is below:
from labscript import *
from labscript import start, stop, add_time_marker, AnalogOut, DigitalOut
from labscript_devices.PineBlaster import PineBlaster
from labscript_devices.NI_DAQmx.models.NI_PCIe_6363 import NI_PCIe_6363
from labscript_devices.NI_DAQmx.models.NI_PXIe_4322 import NI_PXIe_4322
# Use a virtual, or 'dummy', device for the psuedoclock
PineBlaster(name ='pulser', usbport = 'COM6')
NI_PCIe_6363(name ='ni_card_0', parent_device = pulser.clockline , clock_terminal = '/PXI1Slot18/PFI0' , MAX_name = 'PXI1Slot18' , acquisition_rate = 100e3)
NI_PXIe_4322(name ='ni_card_1', parent_device = pulser.clockline , clock_terminal = '/PXI1Slot18/PFI0' , MAX_name = 'PXI1Slot5')
# Create outputs
AnalogOut(name='analog_out', parent_device = ni_card_0, connection='ao0')
DigitalOut(name='digital_out', parent_device = ni_card_0, connection='port0/line0')
AnalogOut(name='analog_out_2', parent_device=ni_card_0, connection='ao1')
DigitalOut(name='digital_out_2', parent_device=ni_card_0, connection='port0/line1')
AnalogOut(name='analog_out_3', parent_device=ni_card_1, connection='ao0')
AnalogOut(name='analog_out_4', parent_device=ni_card_1, connection='ao1')
# if __name__ == '__main__':
# Begin issuing labscript primitives
# start() elicits the commencement of the shot
start()
t = 0.0
add_time_marker(t, "Start", verbose=True)
# Wait for 1 second with all devices in their default state
t += 1.0
analog_out.constant(t,3.0)
# Change the state of digital outputs, and denote this using a time marker
add_time_marker(t, "Toggle digital_out (high)", verbose=True)
digital_out.go_high(t)
digital_out_2.go_high(t)
# Wait for 1.0 seconds
t += 1.0
# Change the state of digital_out_2
add_time_marker(t, "Toggle digital_out (low)", verbose=True)
analog_out.sine_ramp(t, duration=1.0, initial= -1.0, final=-3.0, samplerate=10.0)
digital_out_2.go_low(t)
# Wait for 1.0 seconds
t += 1.0
# Ramp/Sine_Ramp analog outputs
add_time_marker(t, "strart Analog Ramps", verbose=True)
analog_out.constant(t,-3.0)
analog_out_2.constant(t,0.5)
t += 5.0
analog_out.constant(t,0.0)
analog_out_2.constant(t,1.0)
digital_out_2.go_high(t)
# Wait for 5.0 seconds
t += 5.0
add_time_marker(t, "digital low", verbose=True)
analog_out.constant(t,5.0)
digital_out_2.go_low(t)
t += 0.5
# Stop the experiment shot with stop()
stop(t)
____________________________________________________________
any help would be appreciated.
--
You received this message because you are subscribed to the Google Groups "the labscript suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to labscriptsuit...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/labscriptsuite/e42deb70-28f8-41bf-89c0-247d17ad4d9en%40googlegroups.com.