示例#1
0
 def PySCA_SetShMemClipIntVariableState(self, track_id, clip_id, int_value, track_key_name, clip_key_name, key_name, event_name):
     if self.writer and self.writer_events and self.writer_clip_control_atom:
         track_atom = libInterprocessCommsAPIPython.SCAGetContainerAtomRefInsideContainer(self.writer, self.writer_clip_control_atom, track_key_name, track_id)
         atom = libInterprocessCommsAPIPython.SCAGetAtomRefInsideContainerTwoKey(self.writer, track_atom, clip_key_name, clip_id, key_name)
         libInterprocessCommsAPIPython.SCASetIntValue(self.writer, atom, int_value)
         if event_name:
             libInterprocessCommsAPIPython.SCAEventsWriteEvent(self.writer_events, event_name, track_id, clip_id, 0, None)
示例#2
0
 def PySCA_SetShMemClipLabelVariableState(self, track_id, clip_id, label, max_length, track_key_name, clip_key_name, key_name, event_name):
     if self.writer and self.writer_events and self.writer_clip_control_atom:
         track_atom = libInterprocessCommsAPIPython.SCAGetContainerAtomRefInsideContainer(self.writer, self.writer_clip_control_atom, track_key_name, track_id)
         atom = libInterprocessCommsAPIPython.SCAGetAtomRefInsideContainerTwoKey(self.writer, track_atom, clip_key_name, clip_id, key_name)
         result = libInterprocessCommsAPIPython.SCASetDataValue(self.writer, atom, label, max_length)
         if event_name and result == 0:
             libInterprocessCommsAPIPython.SCAEventsWriteEvent(self.writer_events, event_name, track_id, clip_id, 0, None)
示例#3
0
 def PySCA_SetShMemDeviceIndexVariableState(self, int_value, key_name,
                                            event_name):
     if self.writer and self.writer_events:
         atom = libInterprocessCommsAPIPython.SCAGetAtomRef(
             self.writer, key_name)
         libInterprocessCommsAPIPython.SCASetIntValue(
             self.writer, atom, int_value)
         if event_name:
             libInterprocessCommsAPIPython.SCAEventsWriteEvent(
                 self.writer_events, event_name, 0, 0, 0, None)
示例#4
0
 def PySCA_SetShMemDeviceLabelVariableState(self, label, max_length,
                                            key_name, event_name):
     if self.writer and self.writer_events:
         atom = libInterprocessCommsAPIPython.SCAGetAtomRef(
             self.writer, key_name)
         result = libInterprocessCommsAPIPython.SCASetDataValue(
             self.writer, atom, label, max_length)
         if event_name and result == 0:
             libInterprocessCommsAPIPython.SCAEventsWriteEvent(
                 self.writer_events, event_name, 0, 0, 0, None)
示例#5
0
 def PySCA_SetShMemClipControlIntVariableState(self, int_value, key_name,
                                               event_name):
     if self.writer and self.writer_events and self.writer_clip_control_atom:
         atom = libInterprocessCommsAPIPython.SCAGetAtomRefInsideContainer(
             self.writer, self.writer_clip_control_atom, key_name)
         libInterprocessCommsAPIPython.SCASetIntValue(
             self.writer, atom, int_value)
         if event_name:
             libInterprocessCommsAPIPython.SCAEventsWriteEvent(
                 self.writer_events, event_name, 0, 0, 0, None)
示例#6
0
 def PySCA_SetShMemDeviceParamDoubleVariableState(self, device_id,
                                                  double_value,
                                                  device_key_name, key_name,
                                                  event_name):
     if self.writer and self.writer_events:
         atom = libInterprocessCommsAPIPython.SCAGetAtomRefTwoKey(
             self.writer, device_key_name, device_id, key_name)
         libInterprocessCommsAPIPython.SCASetDoubleValue(
             self.writer, atom, double_value)
         if event_name:
             libInterprocessCommsAPIPython.SCAEventsWriteEvent(
                 self.writer_events, event_name, device_id, 0, 0, None)
示例#7
0
 def PySCA_SetShMemTrackDoubleVariableState(self, track_id, double_value,
                                            track_key_name, key_name,
                                            event_name):
     if self.writer and self.writer_events and self.writer_clip_control_atom:
         atom = libInterprocessCommsAPIPython.SCAGetAtomRefInsideContainerTwoKey(
             self.writer, self.writer_clip_control_atom, track_key_name,
             track_id, key_name)
         libInterprocessCommsAPIPython.SCASetDoubleValue(
             self.writer, atom, double_value)
         if event_name:
             libInterprocessCommsAPIPython.SCAEventsWriteEvent(
                 self.writer_events, event_name, track_id, 0, 0, None)