Changeset 18463 for trunk/FACT++/src
- Timestamp:
- 03/24/16 14:42:26 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/biasctrl.cc
r18149 r18463 1668 1668 } 1669 1669 1670 // SET_ALL_CHANNELS_DAC 1671 int SetAllChannelsDac(const EventImp &evt) 1672 { 1673 if (!CheckEventSize(evt.GetSize(), "SetAllChannelsDac", 2*416)) 1674 return false; 1675 1676 const uint16_t *ptr = evt.Ptr<uint16_t>(); 1677 1678 fBias.RampAllChannelsDac(vector<uint16_t>(ptr, ptr+416)); 1679 1680 return T::GetCurrentState(); 1681 } 1682 1670 1683 // SET_CHANNEL_DAC_VALUE 1671 1684 int SetChannelDac(const EventImp &evt) … … 2050 2063 ("Set a new target value for all channels in DAC counts. Starts ramping if necessary. (This command is not realized with the GLOBAL SET command.)" 2051 2064 "|voltage[dac]:Global target voltage in DAC counts."); 2065 T::AddEvent("SET_ALL_CHANNELS_DAC", "S:416")(State::kConnected)(State::kVoltageOff)(State::kVoltageOn)(State::kNotReferenced)(State::kOverCurrent)(State::kRamping) 2066 (bind(&StateMachineBias::SetAllChannelsDac, this, placeholders::_1)) 2067 ("Set a new target value for all channels in DAC counts. Starts ramping if necessary." 2068 "|voltage[dac]:Global target voltage in DAC counts for all channels"); 2052 2069 2053 2070
Note:
See TracChangeset
for help on using the changeset viewer.