A Photonic Science Camera is introduced to Online by the following entry in /online_dir/online.xml:
<hw> ... <device> <name>pscamera</name> <type>type_tango</type> <module>module_tango</module> <device>p03/pscamera/nano.01</device> <control>tango</control> <hostname>haspp03nano:10000</hostname> </device> ... </hw>
Note that the online -tki manual shows how parameters of this camera can be set by a beamline-specific-code widget.
The camera can be operated as a virtual counter:
if( $method =~ /reset/i) { return Spectra::photonicScienceStart( "pscamera", $Spectra::SYM{ scan_name} . "_", $Spectra::SYM{ sample_time}, $Spectra::SYM{ sindex}); } if( $method =~ /read/i) { while( Spectra::tng_state( "pscamera")) { Util::log( "waiting for pscamera"); Spectra::wait( 0.1); } return 1; }