Skip to content

Commit 6e1495a

Browse files
author
neil.hamilton
committed
Create picotech_ps6000a_generic.mdd
1 parent 160b722 commit 6e1495a

File tree

1 file changed

+67
-0
lines changed

1 file changed

+67
-0
lines changed

picotech_ps6000a_generic.mdd

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<MATLABInstrumentDriver>
3+
<FileVersion>2.42</FileVersion>
4+
<DriverName>C:\Users\neil.hamilton\Documents\MATLAB\picosdk-ps6000a-matlab-instrument-driver\picotech_ps6000a_generic.mdd</DriverName>
5+
<DriverType>MATLAB interface object</DriverType>
6+
<InstrumentType>Oscilloscope</InstrumentType>
7+
<InstrumentManufacturer>Pico Technology Ltd</InstrumentManufacturer>
8+
<InstrumentModel>PicoScope 6000E Series</InstrumentModel>
9+
<InstrumentVersion>1.0</InstrumentVersion>
10+
<Identify/>
11+
<Reset/>
12+
<Selftest/>
13+
<Error/>
14+
<CreateInitCode>
15+
<Code>function init(obj)
16+
% This function is called after the object is created.
17+
% OBJ is the device object.
18+
% End of function definition - DO NOT EDIT
19+
20+
% Copyright © 2020 Pico Technology Ltd. All rights reserved.
21+
% You may copy and distribute this file as long as it remains unmodified.
22+
% SB
23+
24+
fprintf('PicoScope 6000Series (A API) MATLAB Instrument Driver');
25+
fprintf('\n');
26+
fprintf('\nCopyright © 2020 Pico Technology Ltd. All rights reserved. \n')
27+
fprintf('\n');
28+
29+
% Load libraries
30+
% ==============
31+
32+
% Only load library once
33+
34+
if (libisloaded('ps6000a'))
35+
% do nothing
36+
else
37+
if (ismac())
38+
[ps6000aNotFound, ps6000aWarnings] = loadlibrary('libps6000a.dylib', @ps6000aMFile, 'alias', 'ps6000a');
39+
elseif (isunix())
40+
[ps6000aNotFound, ps6000aWarnings] = loadlibrary('libps6000a.so', @ps6000aMFile, 'alias', 'ps6000a');
41+
elseif (ispc())
42+
[ps6000aNotFound, ps6000aWarnings] = loadlibrary('ps6000a.dll', @ps6000aMFile);
43+
else
44+
% do nothing
45+
end
46+
end</Code>
47+
</CreateInitCode>
48+
<ConnectInitCode>
49+
<Type>InstrumentCommand</Type>
50+
</ConnectInitCode>
51+
<CleanupCode>
52+
<Type>InstrumentCommand</Type>
53+
</CleanupCode>
54+
<GroupInfo>
55+
<Group>
56+
<Name>parent</Name>
57+
<Description/>
58+
<Command/>
59+
<Size>1</Size>
60+
<Mappings>
61+
<ChannelMap Command="parent1" Index="1"/>
62+
</Mappings>
63+
<PropertyInfo/>
64+
<MethodInfo/>
65+
</Group>
66+
</GroupInfo>
67+
</MATLABInstrumentDriver>

0 commit comments

Comments
 (0)