Test and Measurement Forum

Automation commands (storing pictures)

Forum for discussing PicoScope version 6 (non-automotive version)

Automation commands (storing pictures)

Postby 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.
Joerg
Newbie
 
Posts: 0
Joined: Tue Mar 13, 2018 3:37 pm

Re: Automation commands (storing pictures)

Postby 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

Technical Support Engineer
Hitesh
Site Admin
Site Admin
 
Posts: 2760
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: Automation commands (storing pictures)

Postby 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
Joerg
Newbie
 
Posts: 0
Joined: Tue Mar 13, 2018 3:37 pm

Re: Automation commands (storing pictures)

Postby 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

Technical Support Engineer
Hitesh
Site Admin
Site Admin
 
Posts: 2760
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: Automation commands (storing pictures)

Postby 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 ?
Joerg
Newbie
 
Posts: 0
Joined: Tue Mar 13, 2018 3:37 pm

Re: Automation commands (storing pictures)

Postby 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

Technical Support Engineer
Hitesh
Site Admin
Site Admin
 
Posts: 2760
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: Automation commands (storing pictures)

Postby 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.
Joerg
Newbie
 
Posts: 0
Joined: Tue Mar 13, 2018 3:37 pm

Re: Automation commands (storing pictures)

Postby 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

Technical Support Engineer
Hitesh
Site Admin
Site Admin
 
Posts: 2760
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire


Return to PicoScope 6 for Windows

Who is online

Users browsing this forum: No registered users and 0 guests