Disable Channel B,C,D to get 16-Bit Resolution

Post your MATLAB discussions here
Post Reply
steiemi
Newbie
Posts: 0
Joined: Wed Apr 18, 2018 6:34 am

Disable Channel B,C,D to get 16-Bit Resolution

Post by steiemi » Wed Apr 18, 2018 7:08 am

Hi,

I use Windows 7, MatLab2017b and the PicoScope5444B.

Now i'm trying to geta 16-bit resolution on one channel (A) in Matlab , but the highest resolution i can get is 14-bit. I think the problem is that the channels B,C and D are still active, so it's only possible to get a Resolution of 14-bit.

The folowing comment is not helpfull:

Code: Select all

% Channel A:
%   Channel:        0 (PS5000A_CHANNEL_A)
%   Enable:         True
%   Type:           PS5000A_AC
%   Range:          PS5000A_1V: ±1 V
%   Analogue Offset: 0
[status] = invoke(ps5000aDeviceObj, 'ps5000aSetChannel', 'PS5000A_CHANNEL_A', 1, 'PS5000A_AC', 'PS5000A_1V' ,0);
[status] = invoke(ps5000aDeviceObj, 'ps5000aSetChannel', 'PS5000A_CHANNEL_B', 0, 0, 0, 0);
[status] = invoke(ps5000aDeviceObj, 'ps5000aSetChannel', 'PS5000A_CHANNEL_C', 0, 0, 0, 0);
[status] = invoke(ps5000aDeviceObj, 'ps5000aSetChannel', 'PS5000A_CHANNEL_D', 0, 0, 0, 0);
After this comment:

Code: Select all

% Max. resolution with 1 channel enabled is 16 bits.
[status, resolution] = invoke(ps5000aDeviceObj, 'ps5000aSetDeviceResolution', 16);
Matlab still answers:

Code: Select all

ps5000aSetDeviceResolution: Device resolution set to 14 bits.
The question: Can I disable the channels B,C and D to get an 16-bit Resolution or am I wrong?

Many thanks!

Hitesh
Site Admin
Site Admin
Posts: 2845
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: Disable Channel B,C,D to get 16-Bit Resolution

Post by Hitesh » Wed Apr 18, 2018 8:45 am

Hi steiemi,

It is possible to run the device in 16-bit mode with the MATLAB Instrument Driver and this is done by first switching off the other channel for a 2-channel or the other 3 channels on a 4-channel PicoScope 5000 Series device.

I've noticed in the code that the channel argument is being specified as a string e.g. 'PS5000A_CHANNEL_B'.

The instrument driver and underlying shared library is expecting an enumeration value corresponding to the channel number.

You can access the enumerations for the channel values from the ps5000aEnuminfo struct that is loaded into the workspace when the PS5000AConfig.m script is run.

In this case you are looking for an enumeration from the ps5000aEnuminfo.enPS5000AChannel set to specify the channel number.

Hope this helps,
Hitesh

Technical Support Engineer

steiemi
Newbie
Posts: 0
Joined: Wed Apr 18, 2018 6:34 am

Re: Disable Channel B,C,D to get 16-Bit Resolution

Post by steiemi » Wed Apr 18, 2018 9:17 am

Hi Hitesh,
thanks for your fast reply!

That was the problem!
I also found the example "PS5000A_ID_Streaming_Example" where the definition of the channels is a little easier to understand.

Regards!

Hitesh
Site Admin
Site Admin
Posts: 2845
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: Disable Channel B,C,D to get 16-Bit Resolution

Post by Hitesh » Wed Apr 18, 2018 9:40 am

Hi steiemi,

Good to hear the issue is resolved.

Some of the examples were auto-generated from a Test and Measurement Tool session with some slight modifications. We will review the examples to see if we can make this clearer, although integrated documentation for MATLAB is planned.

Regards,
Hitesh

Technical Support Engineer

Post Reply