This page is part of the documentation for the training session to take place in Barcelona on the 22nd of May of 2013.
In this part we show how to create a GUI o interact with the your sardana system. We use TaurusGUI to create the GUI from scratch without programming.
Duration: 50'
sardana@sardanademo:~$ taurusgui example01
sardana@sardanademo:~$ taurusgui --new-gui
(project page: directory= "/home/sardana/mygui" )
(general settings page: GUI Name="MyGui" )
(custom logo: select ~/Sardana/doc/source/_static/logo.png)
(synoptics page: NEXT)
(MacroServer Info page: Enable sardana Communication and leave proposed MS and Door name)
(Instruments from Pool page: Yes)
(the rest of the pages, NEXT...NEXT...NEXT...FINISH)
(note the message about moving the directory to the pythonpath!)
(launch the GUI)
sardana@sardanademo:~$ mygui/MyGui
(say yes to enable json)
(set a nice panel layout and save it as a perspective='p1')
(launch a scan with macroexecutor)
(configure a plot with expconf)
(relaunch the same scan showing the trend)
(edit the yellow line and launch again)
(exit the GUI)
(in spock)
Pool_demo1_1.CreateInstrument(['/slit','NXcollimator'])
mot01.instrument = '/slit'
mot02.instrument = '/slit'
gap01.instrument = '/slit'
offset01.instrument = '/slit'
Pool_demo1_1.CreateInstrument(['/mirror','NXmirror'])
mot03.instrument = '/mirror'
mot04.instrument = '/mirror'
Pool_demo1_1.CreateInstrument(['/monitor','NXmonitor'])
ct01.instrument = '/monitor'
(now restart Pool, Macroserver and spock)
(launch the GUI again)
sardana@sardanademo:~$ mygui/MyGui
(Note that now there are 3 new panels -they may be hidden, but can be shown from the Panel menu)
(create a new taurusform panels without model and drag&drop a couple of motors from the panels)
(make sure that /usr/lib/tango/TangoTest is running and add a few attributes to the panel)
OLD Tickets: #396
Wiki: SardanaTraining-WorkshopBCN20130522
Wiki: how-to-release-sardana