get current config

Post your MATLAB discussions here
Post Reply
tei
Newbie
Posts: 0
Joined: Fri Jun 17, 2016 8:06 am

get current config

Post by tei » Mon Jun 20, 2016 2:14 pm

When connection to the PicoScope via Matlab, one getting a information list for most important parameters. How can I invoke this after i have connected the device?

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

Re: get current config

Post by Hitesh » Thu Jun 23, 2016 8:05 am

Hi Tei,

Once you have created an icdevice object, you use the following to view the properties (and groups) of an object, call

Code: Select all

fieldnames('ps6000DeviceObj');
You can then call the instrhelp function to view help text for the property you are interested in.

The same can be repeated for the various groups shown in the examples such as 'Block' and 'Trigger'.

Once you have identified the properties you are interested in, you can use the get function to retrieve the value e.g.

Code: Select all

numPostTriggerSamples = get(ps6000DeviceObj, 'numPostTriggerSamples');
The Instrument Drivers do not report back the channel settings at this moment in time so you should keep track of this in your code.

Regards,
Hitesh

Technical Support Engineer

Post Reply