AnsweredAssumed Answered

N9030A screen grab using SCPI and Python

Question asked by Mashly on Oct 21, 2016
Latest reply on Oct 25, 2016 by Mashly

Hi,

 

I am trying to take a screen shot using SCPI with Python. I have got the laptop to connect and have sent some commands that work fine (I got the Spec An's details and set up the start and stop frequencies), but I cant get the screen grab to work. Below is a copy of my code,

 

def screengrab(filename):

   sendstr = 'MMEM:STOR:SCR '+filename+',*WAI\n')

   self.s.send(sendstr.encode())

 

calling it by,

 

import PXA

p = PXA.pxa()

p.screengrab("test.png")

 

I am expecting this to save a screenshot in the default location in the D: drive but it isn't, there is no error so I think my Python is correct.

 

Thanks in advance for any help,

Outcomes