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)
 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)