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 »

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

Re: Automation commands (storing pictures)

Post by Hitesh »

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.

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

Re: Automation commands (storing pictures)

Post by Joerg »

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

Re: Automation commands (storing pictures)

Post by Hitesh »

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,

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

Re: Automation commands (storing pictures)

Post by Joerg »

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

Re: Automation commands (storing pictures)

Post by Hitesh »

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,

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

Re: Automation commands (storing pictures)

Post by Joerg »

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

Re: Automation commands (storing pictures)

Post by Hitesh »

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,

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 »

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: 4491
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Automation commands (storing pictures)

Post by Martyn »

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

Post Reply