Skip to content

Commit 8771fe1

Browse files
author
neil.hamilton
committed
Correct typos in ps5000.py
1 parent 555d5e4 commit 8771fe1

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

picosdk/ps5000.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def __init__(self):
2424
"PS5000_CHANNEL_B",
2525
"PS5000_CHANNEL_C",
2626
"PS5000_CHANNEL_D",
27-
("PS5000_MAX_CHANNELS", "PS5000_EXTERNAL")
27+
("PS5000_MAX_CHANNELS", "PS5000_EXTERNAL"),
2828
"PS5000_TRIGGER_AUX",
2929
"PS5000_MAX_TRIGGER_SOURCES",
3030
])
@@ -129,7 +129,7 @@ class TRIGGER_CHANNEL_PROPERTIES (Structure):
129129
long *maxSamples,
130130
unsigned short segmentIndex
131131
); """
132-
ps.make_symbol("_GetTimebase", "ps5000GetTimebase", c_uint16, [c_int16, c_uint32, c_int32, c_void_p, c_int16, c_void_p, c_uint16], doc)
132+
ps5000.make_symbol("_GetTimebase", "ps5000GetTimebase", c_uint16, [c_int16, c_uint32, c_int32, c_void_p, c_int16, c_void_p, c_uint16], doc)
133133

134134
doc = """ PICO_STATUS ps5000GetTriggerTimeOffset
135135
(
@@ -139,7 +139,7 @@ class TRIGGER_CHANNEL_PROPERTIES (Structure):
139139
PS5000_TIME_UNITS *timeUnits,
140140
unsigned short segmentIndex
141141
); """
142-
ps.make_symbol("_GetTriggerTimeOffset", "ps5000GetTriggerTimeOffset", c_uint16, [c_int16, c_void_p, c_void_p, c_void_p, c_uint16], doc)
142+
ps5000.make_symbol("_GetTriggerTimeOffset", "ps5000GetTriggerTimeOffset", c_uint16, [c_int16, c_void_p, c_void_p, c_void_p, c_uint16], doc)
143143

144144
doc = """ PICO_STATUS ps5000GetTriggerTimeOffset64
145145
(
@@ -148,7 +148,7 @@ class TRIGGER_CHANNEL_PROPERTIES (Structure):
148148
PS5000_TIME_UNITS *timeUnits,
149149
unsigned short segmentIndex
150150
); """
151-
ps.make_symbol("_GetTriggerTimeOffset64", "ps5000GetTriggerTimeOffset64", c_uint32, [c_int16, c_void_p, c_void_p, c_uint16], doc)
151+
ps5000.make_symbol("_GetTriggerTimeOffset64", "ps5000GetTriggerTimeOffset64", c_uint32, [c_int16, c_void_p, c_void_p, c_uint16], doc)
152152

153153
doc = """ PICO_STATUS ps5000GetUnitInfo
154154
(
@@ -158,7 +158,7 @@ class TRIGGER_CHANNEL_PROPERTIES (Structure):
158158
short *requiredSize,
159159
PICO_INFO info
160160
); """
161-
ps.make_symbol("_GetUnitInfo", "ps5000GetUnitInfo", c_uint32, [c_int16, c_void_p, c_int16, c_void_p, c_uint32], doc)
161+
ps5000.make_symbol("_GetUnitInfo", "ps5000GetUnitInfo", c_uint32, [c_int16, c_void_p, c_int16, c_void_p, c_uint32], doc)
162162

163163
doc = """ PICO_STATUS ps5000GetValues
164164
(
@@ -170,7 +170,7 @@ class TRIGGER_CHANNEL_PROPERTIES (Structure):
170170
unsigned short segmentIndex,
171171
short *overflow
172172
); """
173-
ps.make_symbol("_GetValues", "ps5000GetValues", c_uint32, [c_int16, c_uint32, c_void_p, c_uint32, c_int16, c_uint16, c_void_p], doc)
173+
ps5000.make_symbol("_GetValues", "ps5000GetValues", c_uint32, [c_int16, c_uint32, c_void_p, c_uint32, c_int16, c_uint16, c_void_p], doc)
174174

175175
doc = """ PICO_STATUS ps5000GetValuesAsync
176176
(
@@ -183,7 +183,7 @@ class TRIGGER_CHANNEL_PROPERTIES (Structure):
183183
void *lpDataReady,
184184
void *pParameter
185185
); """
186-
ps.make_symbol("_GetValuesAsync", "ps5000GetValuesAsync", c_uint32, [c_int16, c_uint32, c_uint32, c_uint32, c_int16, c_uint16, c_void_p, c_void_p], doc)
186+
ps5000.make_symbol("_GetValuesAsync", "ps5000GetValuesAsync", c_uint32, [c_int16, c_uint32, c_uint32, c_uint32, c_int16, c_uint16, c_void_p, c_void_p], doc)
187187

188188
doc = """ PICO_STATUS ps5000GetValuesBulk
189189
(
@@ -195,7 +195,7 @@ class TRIGGER_CHANNEL_PROPERTIES (Structure):
195195
); """
196196
ps5000.make_symbol("_GetValuesBulk", "ps5000GetValuesBulk", c_uint32, [c_int16, c_void_p, c_uint16, c_uint16, c_void_p], doc)
197197

198-
doc = """ PICO_STATUS ps5000GetTriggerTimeOffsetBulk
198+
doc = """ PICO_STATUS ps5000GetValuesTriggerTimeOffsetBulk
199199
(
200200
short handle,
201201
unsigned long *timesUpper,
@@ -204,17 +204,17 @@ class TRIGGER_CHANNEL_PROPERTIES (Structure):
204204
unsigned short fromSegmentIndex,
205205
unsigned short toSegmentIndex
206206
); """
207-
ps5000.make_symbol("_GetTriggerTimeOffsetBulk", "ps5000GetTriggerTimeOffsetBulk", c_uint32, [c_int16, c_void_p, c_void_p, c_void_p, c_uint16, c_uint16], doc)
207+
ps5000.make_symbol("_GetValuesTriggerTimeOffsetBulk", "ps5000GetValuesTriggerTimeOffsetBulk", c_uint32, [c_int16, c_void_p, c_void_p, c_void_p, c_uint16, c_uint16], doc)
208208

209-
doc = """ PICO_STATUS ps5000GetTriggerTimeOffsetBulk64
209+
doc = """ PICO_STATUS ps5000GetValuesTriggerTimeOffsetBulk64
210210
(
211211
short handle,
212212
_int64 *times,
213213
PS5000_TIME_UNITS *timeUnits,
214214
unsigned short fromSegmentIndex,
215215
unsigned short toSegmentIndex
216216
); """
217-
ps5000.make_symbol("_GetTriggerTimeOffsetBulk64", "ps5000GetTriggerTimeOffsetBulk64", c_uint32, [c_int16, c_void_p, c_void_p, c_uint16, c_int16], doc)
217+
ps5000.make_symbol("_GetValuesTriggerTimeOffsetBulk64", "ps5000GetValuesTriggerTimeOffsetBulk64", c_uint32, [c_int16, c_void_p, c_void_p, c_uint16, c_int16], doc)
218218

219219
doc = """ PICO_STATUS ps5000IsLedFlashing
220220
(
@@ -385,7 +385,7 @@ class TRIGGER_CHANNEL_PROPERTIES (Structure):
385385
); """
386386
ps5000.make_symbol("_SetPulseWidthQualifier", "ps5000SetPulseWidthQualifier", c_uint32, [c_int16, c_void_p, c_int16, c_int32, c_uint32, c_uint32, c_int32], doc)
387387

388-
doc = """ PICO_STATUS ps5000SetSigGenArbitary
388+
doc = """ PICO_STATUS ps5000SetSigGenArbitrary
389389
(
390390
short handle,
391391
long offsetVoltage,
@@ -405,7 +405,7 @@ class TRIGGER_CHANNEL_PROPERTIES (Structure):
405405
SIGGEN_TRIG_SOURCE triggerSource,
406406
short extInThreshold
407407
); """
408-
ps5000.make_symbol("_SetSigGenArbitary", "ps5000SetSigGenArbitary", c_uint32,
408+
ps5000.make_symbol("_SetSigGenArbitrary", "ps5000SetSigGenArbitrary", c_uint32,
409409
[c_int16, c_int32, c_uint32, c_uint32, c_uint32, c_uint32, c_uint32, c_void_p,
410410
c_int32, c_int32, c_int16, c_int32, c_uint32, c_uint32, c_int32, c_int32, c_int16], doc)
411411

@@ -440,7 +440,7 @@ class TRIGGER_CHANNEL_PROPERTIES (Structure):
440440
unsigned long delay,
441441
short autoTrigger_ms
442442
); """
443-
ps5000.make_symbol("_SetSimpleTrigger", "ps5000SetSimpleTrigger", c_uint32, [c_int16, c_int16, c_int32, c_int16 c_int32, c_uint32, c_int16], doc)
443+
ps5000.make_symbol("_SetSimpleTrigger", "ps5000SetSimpleTrigger", c_uint32, [c_int16, c_int16, c_int32, c_int16, c_int32, c_uint32, c_int16], doc)
444444

445445
doc = """ PICO_STATUS ps5000SetTriggerChannelConditions
446446
(

0 commit comments

Comments
 (0)