dezzed
June 13, 2016, 12:40pm
1
Hello
I have developed a custom interface with c++ and QT. I would like to list all available listeners/instruments for my facility. I have been unable to find suitable snippets in the mantid repository and would appreciate some advice.
Regards
Derek
Derek,
I’m not sure if anything has been written that gives you exactly that, but here are a few places to take a look.
In Mantid we put information about the instruments at a facility into the Facilities.xml file (in the instruments directory).
In code you can access this through the Kernel::ConfigService.Instance().getFacility()
or getFacility(name)
.
With a FacilityInfo
object you can get a list of ``InstrumentInfoobjects with the
instruments()``` method.
From each of the InstrumentInfo classes you can access the livedatalistener and the livedata address.
Let me know if you need any more help.
Regards,
Nick
dezzed
June 13, 2016, 3:50pm
3
That sounds exactly like what I need.
Thanks Nick
Regards
Derek