Automation commands (storing pictures)

Forum for discussing PicoScope version 6 (non-automotive version)
Post Reply
Joerg
Newbie
Posts: 0
Joined: Tue Mar 13, 2018 3:37 pm

Automation commands (storing pictures)

Post by Joerg » Wed Mar 14, 2018 2:39 pm

It is possible to get a list of the automation commands with "PicoScope /a ?"
But where could I find detailed infomation (like parameters) for these commands ?
The scope is to store pictures of waveforms in format GIF (single trigger).
I couldn't find an API function for storing waveforms as pictures.
It should get controlled by the programming language VB.Net.

Hitesh
Advanced User
Advanced User
Posts: 2856
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: Automation commands (storing pictures)

Post by Hitesh » Tue Mar 20, 2018 10:09 am

Hello Joerg,

Please refer to this post for some information on automation commands.

Please note that the command to save to file would open the Save As dialog so there user intervention would still be required.

Alternatively, you could create a settings file that saves to images using the Alarms feature:





You should be able to call the commands from VB .NET.

Hope this helps.
Hitesh

Software Dev. Engineer

Joerg
Newbie
Posts: 0
Joined: Tue Mar 13, 2018 3:37 pm

Re: Automation commands (storing pictures)

Post by Joerg » Tue Mar 27, 2018 10:56 am

Hi,

2 problems appear:
1) I would have to load the alarm-settings. It should be possible to load the startup setting by an API-function.
2) According to the manual it is only possible to store .psdata, .pssettings, .csv or .mat file.
Guess you would need the GUI to store .gif ?

with kind regards

Hitesh
Advanced User
Advanced User
Posts: 2856
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: Automation commands (storing pictures)

Post by Hitesh » Wed Mar 28, 2018 11:07 am

Hi Joerg,

You can specify the settings file to load as a command line argument when starting PicoScope.

There appears to be an error in the User's Guide which I have reported. You can select an image file type (.bmp, .jpg, .png and .gif) from the Save as dialog that can be opened via the settings for the Alarm condition.

Regards,
Hitesh

Software Dev. Engineer

Joerg
Newbie
Posts: 0
Joined: Tue Mar 13, 2018 3:37 pm

Re: Automation commands (storing pictures)

Post by Joerg » Wed Apr 04, 2018 8:01 am

Hi Hitesh,
I've tried this:
1) Start Picoscope with ps3000aOpenUnit()
It becomes active, proved by writing device info into a logfile (ps3000aGetUnitInfo)
2) use command "picoscope /a File.Open.IO=C:\Temp\Startup_Alarm.pssettings"
Error: Could not find an instance of Picoscope 6

No. 2 works only if the GUI is visible (opened with picoscope.exe).
Guess there are 2 seperate branches to control a picoscope:
API-Commands and the Automation commands ?

Hitesh
Advanced User
Advanced User
Posts: 2856
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: Automation commands (storing pictures)

Post by Hitesh » Wed Apr 04, 2018 10:58 am

Hi Joerg,

The automation commands are for use when using the PicoScope 6 software and will allow control over some features of the user interface.

When using the API functions you have control over the configuration and operation of the device allowing retrieval of the ADC counts representing the data collecting, but without access to features such as Serial Decoding and Alarms which are part of the PicoScope 6 application.

Regards,
Hitesh

Software Dev. Engineer

Joerg
Newbie
Posts: 0
Joined: Tue Mar 13, 2018 3:37 pm

Re: Automation commands (storing pictures)

Post by Joerg » Wed Apr 04, 2018 1:50 pm

That is exactly what I suspected: With the API-functions I don't have a way to store pictures.
This could be an item for future improvements.

Hitesh
Advanced User
Advanced User
Posts: 2856
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: Automation commands (storing pictures)

Post by Hitesh » Thu Apr 05, 2018 8:57 am

Hi Joerg,

With the API functions, it is up to the User how the data retrieved is processed. This could be in a number of ways including applying mathematical functions to make measurements, looking for certain values and/or plotting the data.

The PicoScope application also calls the same driver API functions with the application including features to apply post-processing of data. Saving images would be a post-capture operation as well.

Regards,
Hitesh

Software Dev. Engineer

sanee
Newbie
Posts: 0
Joined: Wed Mar 13, 2019 6:26 am

Re: Automation commands (for initialization of math channel through API)

Post by sanee » Mon Mar 18, 2019 2:10 pm

Is it possible to initialize the math channel through commands or through API function? because i have not found any API function for the math channel? and shall we capture or store the math channel data into excel file through API commands because it is not mentioned in yours programming guide?

Martyn
Site Admin
Site Admin
Posts: 3714
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Automation commands (storing pictures)

Post by Martyn » Tue Mar 19, 2019 11:30 am

Please see the answer in your other topic
Martyn
Technical Support Manager

Post Reply