with automation.Manager.connect(address=“IP”,port=10430) as manager:
device_configuration = automation.LogicDeviceConfiguration(
enabled_digital_channels=[0, 1],
enabled_analog_channels=[0, 1,2,3],
digital_sample_rate=100000000,
analog_sample_rate=1250000
# digital_threshold_volts=1.0,
)
# Record 5 seconds of data before stopping the capture
capture_configuration = automation.CaptureConfiguration(
capture_mode=automation.TimedCaptureMode(duration_seconds=args.capture_duration)
)
with manager.start_capture(
device_id='<Device_ID>',
device_configuration=device_configuration,
capture_configuration=capture_configuration) as capture:
analyzer = capture.add_analyzer("USB LS and FS", settings={"D+": 0 , "D-": 1})
# Table_Configuration = automation.DataTableExportConfiguration(analyzer=analyzer, radix=bin)
file_name = 'Logic_Table_Export.csv'
if args.export_data is None:
capture.wait()
else:
capture.wait()
save_path = os.path.join(args.export_data, file_name)
capture.export_data_table(filepath= save_path, analyzers=[analyzer], columns=["Type", "Start", "Duration", "value"])
Error:
File “/home/user/.local/lib/python3.11/site-packages/saleae/automation/errors.py”, line 121, in _error_handler
raise grpc_error_to_exception(exc) from None
saleae.automation.errors.ExportError: Export failed: ios_base::clear: unspecified iostream_category error
Getting this error. Need help.