Test and Measurement Forum

using Picoscope macro

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

using Picoscope macro

Postby sherzaad » Tue Jun 06, 2017 3:53 pm

Hi,

I recorded a macro in picoscope to: stop capturing and save the waveforms (.psdata).

However the problem I have with it is that if I then run the macro again it overwrites the previously saved file.

Is there a way to generate a macro that gets round that problem?

Sherzaad
sherzaad
Newbie
 
Posts: 0
Joined: Tue Jun 06, 2017 3:43 pm

Re: using Picoscope macro

Postby Hitesh » Wed Jun 07, 2017 1:15 pm

Hi Sherzaad,

If you use the Alarms feature in the PicoScope 6 software, you can specify an action to save to file.

The User's Guide states 'You can use the %buffer% variable to insert the buffer index number into the file name, or the %time% variable to insert the time of capture.' so you could try setting the filename to something like my_test_%time%.psdata and this should result in files with different timestamps.

Hope this helps,
Hitesh

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

Re: using Picoscope macro

Postby sherzaad » Fri Jun 09, 2017 6:25 am

Hi Hitesh,

Thank you for yor reply.

I have tried to save the trace as my_test_%time%.psdata as suggested but the timestamp was not inserted and instead the file just save as my_test_%time%.psdata. Same thing happened when I tried %buffer%.

Please advise.

Sherzaad
sherzaad
Newbie
 
Posts: 0
Joined: Tue Jun 06, 2017 3:43 pm

Re: using Picoscope macro

Postby Hitesh » Fri Jun 09, 2017 8:29 am

Hi Sherzaad,

Did you set this in the Alarms dialog?

Can you post a screenshot of where this was set and perhaps post a data or settings file so we can see your settings?

Regards,
Hitesh

Technical Support Engineer
Hitesh
Site Admin
Site Admin
 
Posts: 2457
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