83 m_Cat.oInstrumentList.Subscribe(m_ASNotifier);
84 m_Cat.oProbeArrayInformation.Subscribe(m_ASNotifier);
85 m_Cat.oSearchResult.Subscribe(m_ASNotifier);
86 m_Cat.oInstrumentStatus.Subscribe(m_ASNotifier);
87 m_Cat.oError.Subscribe(m_ASNotifier);
113 bool l_Operate =
true;
118 if (
nullptr == l_pNot)
122 std::this_thread::sleep_for(std::chrono::milliseconds(100));
132 if (rVar.
Is(m_Cat.oInstrumentList))
134 std::cout <<
"New Instrument List" << std::endl;
136 for (
int i = 0; i < l_pVal->size(); i++)
138 std::cout <<
"Instrument num " << i <<
" : UniqueID = " << l_pVal->at(i).UniqueID <<
" , Label = " << l_pVal->at(i).Label <<
" , Inteface = " <<
GetInterfaceString(l_pVal->at(i).Interface) << std::endl;
140 std::cout << std::endl;
142 for (CInstrumentCatalog::tInstrumentList::const_iterator it= l_pVal->begin(); it != l_pVal->end(); it++)
144 if (m_InstrToConnect == it->UniqueID)
147 std::cout <<
"Trying to connect to default Instrument:" <<
" : UniqueID = " << it->UniqueID <<
" , Label = " << it->Label <<
" , Inteface = " <<
GetInterfaceString(it->Interface) << std::endl;
148 m_Cat.cInstrumentCurrent(*it);
152 else if (rVar.
Is(m_Cat.oProbeArrayInformation))
154 std::cout <<
"New Probe-Array Information received" << std::endl;
158 std::cout <<
"Probe-Array connected. Start a NMR search operation." << std::endl;
167 m_Cat.cInstrumentState(l_NewState);
171 std::cout <<
"No Probe-Array connected." << std::endl;
174 else if (rVar.
Is(m_Cat.oSearchResult))
180 else if (rVar.
Is(m_Cat.oInstrumentStatus))
185 else if (rVar.
Is(m_Cat.oError))