Macro on spectra

Forum for discussing PicoScope version 6 (non-automotive version)
Post Reply
jcclq
Active User
Active User
Posts: 13
Joined: Thu Jul 22, 2021 1:05 pm

Macro on spectra

Post by jcclq »

Hi all

I would like to make a macro to acquire a certain number of spectra with, say, 30 seconds between them. At p. 103 of the manual, I saw it might be possible to do it with macros, in a XML script, but I don't if it is possible to have a 'FOR' loop and a WAIT function. If so, where can I find these functions?

Thanks!

JC

AndrewA
PICO STAFF
PICO STAFF
Posts: 394
Joined: Tue Oct 21, 2014 3:07 pm

Re: Macro on spectra

Post by AndrewA »

Hi,
You can recorded a marco to save the spectrum captures to file.
You can create a delay by editing the marco time stamps events.
But I would do this by calling the marco from the command line with a script (batch file, python etc) as macros don't support loop functions (for, while etc).
Regards Andrew
Technical Specialist

jcclq
Active User
Active User
Posts: 13
Joined: Thu Jul 22, 2021 1:05 pm

Re: Macro on spectra

Post by jcclq »

Thanks, I'll try this.

Gerry
PICO STAFF
PICO STAFF
Posts: 1144
Joined: Mon Aug 11, 2014 11:14 am

Re: Macro on spectra

Post by Gerry »

-
Gerry
Technical Specialist

Post Reply