예제 #1
0
 def setChanScale(self, node, num):
     #Raw input channel, where the conditioning has been applied:
     input_chan = self.__getattr__('INPUT_%3.3d' % num)
     chan = self.__getattr__(node)
     #Un-conditioning the signal:
     chan.setSegmentScale(
         MDSplus.ADD(
             MDSplus.DIVIDE(
                 MDSplus.MULTIPLY(input_chan.COEFFICIENT, MDSplus.dVALUE()),
                 MDSplus.MULTIPLY(input_chan.SC_GAIN1,
                                  input_chan.SC_GAIN2)),
             MDSplus.SUBTRACT(input_chan.OFFSET, input_chan.SC_OFFSET)))
예제 #2
0
 def time_rel(ns=1e9):
     return MDSplus.DIVIDE(MDSplus.Int64(ns),
                           self.frame_rate)