Skip to content

Commit

Permalink
Automatically power DVIP cameras on/off with system power.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesremuscat committed Mar 17, 2021
1 parent a6fc0c9 commit 6cdd1ef
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/avx/devices/datavideo.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,20 @@ def setAperture(self, aperture):
(av & 0x00F0) >> 4,
(av & 0x000F)])

def powerOn(self):
return self.sendVISCA([0x01, 0x04, 0x00, 0x02])

def powerOff(self):
return self.sendVISCA([0x01, 0x04, 0x00, 0x03])

def initialise(self):
super(_PTC150Base, self).initialise()
self.powerOn()

def deinitialise(self):
self.powerOff()
super(_PTC150Base, self).deinitialise()


class PTC150(_PTC150Base, VISCACamera):
def tallyRed(self):
Expand Down

0 comments on commit 6cdd1ef

Please sign in to comment.