Skip to content

Commit

Permalink
Fix issue with unsupported devices
Browse files Browse the repository at this point in the history
  • Loading branch information
hsmistry committed Oct 24, 2019
1 parent 6168279 commit c8f5ae6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions picotech_ps4000a_generic.mdd
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<InstrumentType>Oscilloscope</InstrumentType>
<InstrumentManufacturer>Pico Technology Ltd.</InstrumentManufacturer>
<InstrumentModel>PicoScope 4000 Series (A API)</InstrumentModel>
<InstrumentVersion>1.2.16.9</InstrumentVersion>
<InstrumentVersion>1.2.16.10</InstrumentVersion>
<Identify/>
<Reset/>
<Selftest/>
Expand Down Expand Up @@ -366,7 +366,6 @@

otherwise

obj.InstrumentModel = obj.DriverData.variants.MODEL_NONE;
obj.DriverData.channelCount = 0;
obj.DriverData.firstRange = range10mV;
obj.DriverData.lastRange = range50V;
Expand All @@ -377,7 +376,7 @@
obj.DriverData.isFlexResDevice = PicoConstants.FALSE;
obj.DriverData.hasIntelligentProbeInterface = PicoConstants.FALSE;

cleanup(obj);
disconnect(obj);
error('Picotech:PS4000AInstrumentDriver:UnitNotSupported', ...
'Connect: This device is not supported by the Instrument Driver.');

Expand Down

0 comments on commit c8f5ae6

Please sign in to comment.