SPIDAR SDK
68
5.4.1 Turning On/Off
Before collecting you must turn on the sensor. This is done through the power endpoint. The
following code turns on the sensor:
power_state = {'data': json.dumps({"state": 2})}
ret = requests.put("http://192.168.20.221:8080/api/nic/power",
data=power_state)
5.4.2 Setting Parameters
The collection parameters must then be set through the setup endpoint. For example, if the user
wanted to collect a 20 ns trace at 4 stacks and a 100 ps sampling interval at a rate of 1 trace/s,
they would run the following command:
gpr_param = {'data': json.dumps({"gpr0": {"parameters": {
"points_per_trace": 200,
"point_stacks": 4,
"time_sampling_interval_ps": 100,
"trigger_mode": "Free"}},
"timer": {"parameters": {"period_s": 1}}})}
ret = requests.put(("http://192.168.20.221:8080/api/nic/setup",
data=gpr_param)
Note that you cannot set the time window directly, you must calculate the appropriate number of
points per trace (time window = points per trace × sampling interval).
5.4.3 Beginning and Ending Collection
You must issue the command to start the collection through the acquisition endpoint. The “state”
parameter decides if collection should start or stop. For example:
acq_param = {'data': json.dumps({'state': 1})}
ret = requests.put((("http://192.168.20.221:8080/api/nic/acquisition",
data=acq_param)
Ending the acquisition is done through a similar command:
acq_param = {'data': json.dumps({'state': 0})}
ret = requests.put((("http://192.168.20.221:8080/api/nic/acquisition",
data=acq_param)
Содержание SPIDAR NIC-500s
Страница 1: ......
Страница 2: ...ii...
Страница 4: ...Warranty Confirmation iv...
Страница 6: ...vi...
Страница 10: ...Introduction 2...
Страница 28: ...Getting Started 20...
Страница 66: ...SPIDAR Software 58...
Страница 78: ...SPIDAR SDK 70...
Страница 88: ...Compatibility 80...
Страница 90: ...Technical Specifications 82...
Страница 94: ...Appendix B Components 86 Item Item Code Noggin Cable 10m 100 52 0050 Noggin Cable 30m 100 52 0062...
Страница 102: ...Appendix D GPR Knowledge 94...
Страница 106: ...Appendix F Health Safety Certification 98...
Страница 114: ...Appendix G GPR Emissions Interference and Regulations 106...
Страница 116: ...Appendix H Instrument Interference 108...
Страница 118: ...Appendix I Safety around Explosive Devices 110...