#include <ngcdcsACQ.hpp>
Public Member Functions | |
| ngcdcsACQ () | |
| Constructor. | |
| ngcdcsACQ (const ngcdcs_acq_cfg_t &cfg) | |
| Constructor with default configuration. | |
| ngcdcsACQ (ngcbPARAM_LIST *p) | |
| Constructor with parameter list. | |
| ngcdcsACQ (const ngcdcs_acq_cfg_t &cfg, ngcbPARAM_LIST *p) | |
| Constructor with default configuration and parameter list. | |
| virtual | ~ngcdcsACQ () |
| Destructor. | |
| void | ErrState (const char *msg, int id) |
| Go to error state. | |
| void | SimError (int error) |
| Trigger an error simulation. | |
| void | AttachServices (ngcdcsACQ_SERVICE *s) |
| Attach services. | |
| int | StartDebugger () |
| Start debugger. | |
| int | StopDebugger () |
| Stop debugger. | |
| int | DebuggerRunning () |
| Check, if debugger is running. | |
| void | Profile (const char *id) |
| Apply profile. | |
| void | Configure (const ngcdcs_acq_cfg_t &newConf) |
| Configure system. | |
| void | GetCfg (ngcdcs_acq_cfg_t *currentConf) |
| Get configuration. | |
| int | Streaming (ssize_t size) |
| Set streaming buffer size. | |
| int | Alloc (ssize_t size) |
| Allocate new frame buffer. | |
| int | Alloc () |
| Apply frame buffer size preset. | |
| void | Free () |
| Release frame buffer. | |
| int | ShmSelect (const char *libName, const char *nameSpace=NULL, int n=0) |
| Select shared memory interface type. | |
| int | ShmName (const char *nameSpace) |
| Set shared memory interface name-space. | |
| int | ShmNumBuf (int n) |
| Set number of shared memory buffers. | |
| int | ShmNoWait (int flag) |
| Set shared-memory no-wait flag. | |
| int | ShmNoWait () |
| Return shared-memory no-wait flag. | |
| void | Sim (int flag) |
| Set simulation mode. | |
| int | Sim () |
| Get simulation mode. | |
| void | SofwMode (char *s) |
| Get software operational mode (string) | |
| char * | Host () |
| Return acquisition process host name. | |
| int | DataPath (const char *path) |
| Set acquisition process local data path. | |
| const char * | DataPath () |
| Return acquisition process local data path. | |
| const char * | Dev (int n=0) |
| Return acquisition process device name. | |
| int | Pid () |
| Return actual process id. | |
| void | Release () |
| Release module. | |
| int | Reset () |
| Internal cleanup. | |
| int | GetRecvStatus (int *err, int *stat) |
| Get errno and status from the receiver devices. | |
| int | Exec () |
| Launch last acq.-process. | |
| int | Exec (const char *newProcess) |
| Launch acq.-process. | |
| void | Abort () |
| Abort acq.-process. | |
| int | FdCmd () |
| Returns command server file descriptor. | |
| int | FdErr () |
| Returns error-stack file descriptor. | |
| void | HandleFdCmdEvt () |
| Handle input on FdCmd() - i/o error case. | |
| int | HandleFdErrEvt () |
| Handle input on FdErr() - run-time error. | |
| char * | StatusString () |
| Get status string. | |
| int | Start (double absTime=0.0) |
| Send start-cmd to acq.-process. | |
| int | Stop () |
| Send stop-cmd to acq.-process. | |
| int | ResumeSim () |
| Resume suspended simulation. | |
| int | Restart (double absTime=0.0) |
| Restart process. | |
| void | SetupId (int id=-1) |
| Set new setup id (or use auto-increment) | |
| int | NewSetup () |
| Mark new setup. | |
| int | End () |
| Set flag to end processing a.s.a.p. | |
| int | ResetCnt () |
| Set flag to reset process counters. | |
| int | Pause () |
| Pause acquisition. | |
| int | Cont () |
| Continue acquisition. | |
| int | Cmd (const char *cmd, char *reply) |
| Send ASCII command to acq.-process. | |
| int | UploadFits (int id, const char *path, int noCheck=0) |
| Upload FITS-file to acq.-process. | |
| int | UploadBuf (int id, void *buffer, int size, int noCheck=0) |
| Upload data buffer to acq.-process. | |
| int | Clear (int id) |
| Clear uploaded data (invalidate) | |
| int | DarkFrame (const char *path) |
| Upload dark-frame. | |
| int | FlatField (const char *path) |
| Upload flat-field. | |
| int | BadPixMask (const char *path) |
| Upload bad-pixel-mask. | |
| int | ChanSelect (int chan) |
| Select DMA channels in use. | |
| int | SimTime (int ms) |
| Set simulation interval (milliseconds) | |
| int | SimTime () |
| Get simulation interval (milliseconds) | |
| int | Burst (int num) |
| Set number of burst-frames. | |
| int | BurstSkip (int num) |
| Set frames to skip before burst. | |
| int | Queue (int num) |
| Setup queue mode. | |
| void | QueueWin (int sx, int sy, int nx, int ny) |
| Align detector queue window. | |
| void | QueueAlign () |
| Align queue-mode frame parameters. | |
| int | DiskMem (int flag) |
| Enable/disable disk-memory extension. | |
| int | DiskMemPath (const char *path) |
| Set disk-memory extension path. | |
| int | DiskMemCreate (int size) |
| Create disk-memory. | |
| int | DiskMemDelete () |
| Delete disk-memory. | |
| void | Dictionary (ngcbDIC *dictionary) |
| Attach to dictionary. | |
| int | HwWin (int sx, int sy, int nx, int ny) |
| Set HW read-out window. | |
| int | SyncParam (int timeout=20) |
| int | SetParam (const char *paramName, const char *paramValue, int sync=1) |
| int | GetParam (const char *paramName, char *paramValue) |
| Get parameter. | |
| int | ApplyParamList (ngcbPARAM_LIST *list, int sync=1) |
| Apply spec. list. | |
| int | ApplyParamList (int sync=1) |
| Apply global list. | |
| void | Exposure (ngcdcsEXP *exposure) |
| Attach to exposure setup. | |
| ngcdcsEXP * | Exposure () |
| Return current exposure setup. | |
| void | NumExtBlocks (int n) |
| Set umber of reserved extension header blocks. | |
| int | LocalMedia () |
| Return 1 in case any frame is store to local media on the NGC-LLCU. | |
| int | FrameDef (ngcdcs_framedef_t *frameDef) |
| Currently defined frames. | |
| ngcdcs_framedef_t * | Frame (const char *name) |
| Get frame info. | |
| ngcdcs_framedef_t * | Frame (int idx) |
| Get frame info. | |
| int | FrameGen (const char *name, int flag) |
| Switch frame generation on/off. | |
| void | SeqStartTime (struct timeval &timeVal) |
| Set sequencer start time. | |
| const char * | SeqStartTime () |
| Get sequencer start time. | |
| void | ExpStartTime (struct timeval &timeVal) |
| Set exposure start time. | |
| const char * | ExpStartTime () |
| Get exposure start time. | |
| double | ExpStartTimeMJD () |
| Get exposure start time (MJD) | |
| double | ExpStartTimeUTC () |
| Get exposure start time (UTC seconds since midnight) | |
| int | ExpSeqNo () |
| Get exposure sequence number. | |
| int | ExpActive () |
| An exposure is running. | |
| int | StartExposure () |
| Start exposure. | |
| void | StopExposure () |
| Stop exposure. | |
| int | ExtDtt () |
| External DTT enabled. | |
| size_t | FramesProcessed () |
| Return number of processed frames in recording sequence. | |
| size_t | SizeRecorded () |
| Return recorded data size (in bytes) | |
| int | StartTransferring () |
| Start data transfer. | |
| void | StopTransferring () |
| Stop data transfer. | |
| int | Transferring () |
| Check protected transferring flag. | |
| int | LastTransfer () |
| Check last-transfer flag. | |
| int | GetServiceConfig (ngcpp_cfg_t *config) |
| Retrieve acqusition microservice configuration. | |
| int | Transfer (int flag) |
| Enable/disable sustained transfer. | |
| int | Guiding (int flag) |
| Enable/disable guiding mode. | |
| unsigned int | DmaCnt (int idx=0) |
| Return current DMA counter. | |
| double | Perf () |
| Current CPU load in percent. | |
| double | FrameRate () |
| Current frame rate. | |
| void | Statistics (ngcdcs_acqperf_t *stat) |
| Get transfer statistics. | |
| void | ClearStatistics () |
| Clear transfer statistics. | |
| char * | ErrMsg () |
| Error message. | |
Public Member Functions inherited from ngcbOBJ | |
| ngcbOBJ () | |
| Constructor. | |
| virtual | ~ngcbOBJ () |
| Destructor. | |
| void | Instance (int n) |
| Set instance. | |
| int | Instance () |
| Get instance. | |
| const char * | Major () |
| Instance major number. | |
| int | BigEndian () |
| Big-endian architecture. | |
| int | LittleEndian () |
| Little-endian architecture. | |
| virtual int | Success () |
| Return success. | |
| virtual int | Failure () |
| Return failure. | |
| void | CfgPath (const char *path) |
| Set external configuration path. | |
Public Member Functions inherited from ngcbTHREAD | |
| ngcbTHREAD () | |
| Normal constructor. | |
| ngcbTHREAD (ngcbTHREAD *app, ngcbPROCESS_T process, void *arg, size_t stack=0) | |
| Constructor starting a new thread. | |
| virtual | ~ngcbTHREAD () |
| Destructor. | |
| virtual ngcbTHREAD * | NewThread (ngcbTHREAD *app, ngcbPROCESS_T process, void *arg, size_t stack=0) |
| Process to be overloaded. | |
| int | ThrCreate (ngcbTHREAD *app, ngcbPROCESS_T process, void *arg, ngcbTHREAD_T *threadId, size_t stack, char *erms=NULL) |
| Thread creation. | |
| void | ThrExit () |
| Thread exit. | |
| int | ThrKill (ngcbTHREAD_T threadId, int sig, char *erms=NULL) |
| Cancel thread by thread-id. | |
| int | ThrKill (int sig, char *erms=NULL) |
| Cancel this thread. | |
| int | ThrJoin (ngcbTHREAD_T threadId, char *erms=NULL) |
| Wait for a thread. | |
| int | ThrJoin (char *erms=NULL) |
| Wait for this thread. | |
| ngcbTHREAD_T | ThreadId () |
| Get own thread-Id. | |
| int | ThrEqual (ngcbTHREAD_T t1, ngcbTHREAD_T t2) |
| Test the equality of the two threads t1 and t2. | |
| int | Initialized () |
| Return flag for successful initialization. | |
| int | FdOut () |
| Return file descrioptor to wakeup a thread. | |
| int | FdIn () |
| Return file descriptor to be used by the thread for wakeup call. | |
| void * | ExecProc () |
| Entry point for c-linkage thread. | |
Public Attributes | |
| size_t | ppStackSize |
| Post-processor stack size in bytes (0 = use system default) | |
| ngcdcsSHM * | shm |
| Shared memory object. | |
| int | shmLib |
| Shared memory interface library. | |
| char | shmName [64] |
| Shared memory interface name-space. | |
| int | shmNumBuf |
| Number of shared memory buffers. | |
| int | status |
| Soft state: idle, ready, running ... | |
| int | ioError |
| Flag for io-error. | |
| char | procName [256] |
| Process name. | |
| char | burstProcess [256] |
| Process name for burst. | |
| ngcdcs_acq_dcf_t | detCfg |
| Detector configuration. | |
| ssize_t | allocSize |
| Frame buffer size preset (in bytes) | |
| int | burstNum |
| Number of bursts. | |
| int | burstSkip |
| Frames to skip before starting burst. | |
| int | connect |
| Enable data connection. | |
| int | exp |
| Enable exposure. | |
| int | continuous |
| Continuous mode flag (no counter reset) | |
| int | transfer |
| Transfer flag (sustained connection) | |
| int | guiding |
| Guiding flag (sustained connection) | |
| int | queueSize |
| Queue size. | |
| int | queueDump |
| Queue dump mode. | |
| int | diskMem |
| Disk-memory extension flag. | |
| int | flush |
| Flush stream after each image. | |
| int | timestamp_table |
| Cube timestamp table enabled. | |
| int | diskMemSize |
| Disk-memory extension size. | |
| char | diskMemPath [256] |
| Disk-memory extension path. | |
| int | largeFile |
| Flag to enable/disable large file extension. | |
| int | simHighSpeed |
| Flag to enable/disabel high-speed simulation. | |
| int | updateFrames |
| Flags that frame config. has changed. | |
| char | moduleName [64] |
| Optional module name. | |
| int | chanSelect |
| DMA channel selection. | |
| int | cmdPort |
| Actual command server port. | |
| int | dataPort |
| Actual data server port. | |
| int | ppRev |
| Pre-processor framework revision. | |
| int | appRev |
| Pre-processor application revision. | |
| int | appDataInline |
| Pre-processor application meta data inline flag. | |
| int | payloadSize |
| Payload size for RTMS (bytes) | |
| char | rtdCmd [256] |
| RTD startup command. | |
| ngcdcsRTD * | rtd |
| RTD connection database. | |
| ngcdcsSUBFRM * | subFrames |
| Sub-frames. | |
| ngcbTHREAD_T | mainThread |
| Main thread id. | |
| ngcbIMGOP | imgop |
| Image operations. | |
| char | darkFrame [256] |
| Dark-frame (bias) | |
| char | flatField [256] |
| Flat-field. | |
| char | badPixMask [256] |
| Bad-pixel-mask. | |
| char | extName [80] |
| Extension name for "cube-ext" format. | |
| int | autoWinX |
| Apply automatic window in X. | |
| int | autoWinY |
| Apply automatic window in Y. | |
| int | relaunch |
| relaunch flag - restet at Exec() | |
| ngcdcsACQ_DATA | data |
| Data interface. | |
Public Attributes inherited from ngcbOBJ | |
| FILE * | watchdog |
| Watchdog stream. | |
| ngcbALARM_SYS * | alarmSystem |
| Alarm system. | |
| ngcbSERVICE * | services |
| System services. | |
| int | verboseLevel |
| Verbose level. | |
| int | logLevel |
| Logging level. | |
| int | xterm |
| Xterm flag. | |
| int | debugPort |
| Debug port. | |
| int | ignoreErr |
| Ignore next error (do not log) | |
| int | type |
| Object type. | |
Protected Member Functions | |
| virtual int | DataConnect () |
| Establish data connection. | |
| virtual int | Store (char *buffer, ngcdcs_finfo_t finfo, char *where, int store2tmp=0) |
| Store data to file. | |
| virtual ngcdcsSHM * | NewShm (const char *name) |
| Shared memory creator. | |
Protected Member Functions inherited from ngcbOBJ | |
| virtual int | BailOut (const char *pos) |
| Log code position of the error and bail-out with failure. | |
| virtual void | Verbose (int level, const char *format,...) __attribute__((format(printf |
| Verbose message if verbose level exceeds level. | |
| virtual void virtual void | Verbose (const char *format,...) __attribute__((format(printf |
| Verbose message. | |
| virtual void virtual void virtual void | Log (int level, const char *format,...) __attribute__((format(printf |
| Log message if logging level exceeds level. | |
| virtual void virtual void virtual void virtual void | Log (const char *format,...) __attribute__((format(printf |
| Log message. | |
| virtual void virtual void virtual void virtual void virtual void | ErrLog (int severity, const char *format,...) __attribute__((format(printf |
| Error log, severity is one of ngcbWARNING, ngcbFAILURE and ngcbERR_SEVERE. | |
| virtual void virtual void virtual void virtual void virtual void void | FeedBack (const char *format,...) __attribute__((format(printf |
| Feed-back function. | |
| virtual void virtual void virtual void virtual void virtual void void virtual void | SendFeedBack (const char *msg) |
| Feed-back sender implementation. | |
| const char * | CfgPath () |
| Get external configuration path. | |
| int | CfgPath (char *path, const char *cfgFile) |
| Compose path for configuratuion file. | |
| int | KeyVal (const char *key, float *value) |
| Get single precision floating point value from keyword string. | |
| int | KeyVal (const char *key, double *value) |
| Get double precision floating point value from keyword string. | |
| int | KeyVal (const char *key, int *value) |
| Get 32-bit signed integer value from decimal keyword string. | |
| int | KeyVal (const char *key, unsigned int *value) |
| Get 32-bit unsigned integer value from decimal keyword string. | |
| int | KeyValHex (const char *key, int *value) |
| Get 32-bit signed integer value from hexadecimal keyword string. | |
| int | KeyValHex (const char *key, unsigned int *value) |
| Get 32-bit unsigned integer value from hexadecimal keyword string. | |
| int | KeyValFmt (const char *key, int *value) |
| Get 32-bit signed integer value from string. | |
| int | KeyValFmt (const char *key, unsigned int *value) |
| Get 32-bit unsigned integer value from string. | |
| int | KeyValFrac (const char *key, unsigned int n, uint64_t *v1, uint64_t *v2) |
| Fraction after n digits. | |
| void | CleanupCmd (char *cmdLine, int *cmdLen) |
| Clean command string (remove extra spaces etc.) | |
| int | ReplaceParam (char *string) |
| Replace parameter in string. | |
Acquisition process interface class
| ngcdcsACQ::ngcdcsACQ | ( | ) |
Constructor.
|
explicit |
Constructor with default configuration.
|
explicit |
Constructor with parameter list.
| ngcdcsACQ::ngcdcsACQ | ( | const ngcdcs_acq_cfg_t & | cfg, |
| ngcbPARAM_LIST * | p ) |
Constructor with default configuration and parameter list.
|
virtual |
Destructor.
| void ngcdcsACQ::Abort | ( | ) |
Abort acq.-process.
| int ngcdcsACQ::Alloc | ( | ) |
Apply frame buffer size preset.
| int ngcdcsACQ::Alloc | ( | ssize_t | size | ) |
Allocate new frame buffer.
| int ngcdcsACQ::ApplyParamList | ( | int | sync = 1 | ) |
Apply global list.
| int ngcdcsACQ::ApplyParamList | ( | ngcbPARAM_LIST * | list, |
| int | sync = 1 ) |
Apply spec. list.
| void ngcdcsACQ::AttachServices | ( | ngcdcsACQ_SERVICE * | s | ) |
Attach services.
| int ngcdcsACQ::BadPixMask | ( | const char * | path | ) |
Upload bad-pixel-mask.
| int ngcdcsACQ::Burst | ( | int | num | ) |
Set number of burst-frames.
| int ngcdcsACQ::BurstSkip | ( | int | num | ) |
Set frames to skip before burst.
| int ngcdcsACQ::ChanSelect | ( | int | chan | ) |
Select DMA channels in use.
| int ngcdcsACQ::Clear | ( | int | id | ) |
Clear uploaded data (invalidate)
| void ngcdcsACQ::ClearStatistics | ( | ) |
Clear transfer statistics.
| int ngcdcsACQ::Cmd | ( | const char * | cmd, |
| char * | reply ) |
Send ASCII command to acq.-process.
| void ngcdcsACQ::Configure | ( | const ngcdcs_acq_cfg_t & | newConf | ) |
Configure system.
| int ngcdcsACQ::Cont | ( | ) |
Continue acquisition.
| int ngcdcsACQ::DarkFrame | ( | const char * | path | ) |
Upload dark-frame.
|
protectedvirtual |
Establish data connection.
| const char * ngcdcsACQ::DataPath | ( | ) |
Return acquisition process local data path.
| int ngcdcsACQ::DataPath | ( | const char * | path | ) |
Set acquisition process local data path.
| int ngcdcsACQ::DebuggerRunning | ( | ) |
Check, if debugger is running.
| const char * ngcdcsACQ::Dev | ( | int | n = 0 | ) |
Return acquisition process device name.
| void ngcdcsACQ::Dictionary | ( | ngcbDIC * | dictionary | ) |
Attach to dictionary.
| int ngcdcsACQ::DiskMem | ( | int | flag | ) |
Enable/disable disk-memory extension.
| int ngcdcsACQ::DiskMemCreate | ( | int | size | ) |
Create disk-memory.
| int ngcdcsACQ::DiskMemDelete | ( | ) |
Delete disk-memory.
| int ngcdcsACQ::DiskMemPath | ( | const char * | path | ) |
Set disk-memory extension path.
| unsigned int ngcdcsACQ::DmaCnt | ( | int | idx = 0 | ) |
Return current DMA counter.
| int ngcdcsACQ::End | ( | ) |
Set flag to end processing a.s.a.p.
|
virtual |
Error message.
Reimplemented from ngcbOBJ.
| void ngcdcsACQ::ErrState | ( | const char * | msg, |
| int | id ) |
Go to error state.
| int ngcdcsACQ::Exec | ( | ) |
Launch last acq.-process.
| int ngcdcsACQ::Exec | ( | const char * | newProcess | ) |
Launch acq.-process.
| int ngcdcsACQ::ExpActive | ( | ) |
An exposure is running.
| ngcdcsEXP * ngcdcsACQ::Exposure | ( | ) |
Return current exposure setup.
| void ngcdcsACQ::Exposure | ( | ngcdcsEXP * | exposure | ) |
Attach to exposure setup.
| int ngcdcsACQ::ExpSeqNo | ( | ) |
Get exposure sequence number.
| const char * ngcdcsACQ::ExpStartTime | ( | ) |
Get exposure start time.
| void ngcdcsACQ::ExpStartTime | ( | struct timeval & | timeVal | ) |
Set exposure start time.
| double ngcdcsACQ::ExpStartTimeMJD | ( | ) |
Get exposure start time (MJD)
| double ngcdcsACQ::ExpStartTimeUTC | ( | ) |
Get exposure start time (UTC seconds since midnight)
|
inline |
External DTT enabled.
| int ngcdcsACQ::FdCmd | ( | ) |
Returns command server file descriptor.
| int ngcdcsACQ::FdErr | ( | ) |
Returns error-stack file descriptor.
| int ngcdcsACQ::FlatField | ( | const char * | path | ) |
Upload flat-field.
| ngcdcs_framedef_t * ngcdcsACQ::Frame | ( | const char * | name | ) |
Get frame info.
| ngcdcs_framedef_t * ngcdcsACQ::Frame | ( | int | idx | ) |
Get frame info.
| int ngcdcsACQ::FrameDef | ( | ngcdcs_framedef_t * | frameDef | ) |
Currently defined frames.
| int ngcdcsACQ::FrameGen | ( | const char * | name, |
| int | flag ) |
Switch frame generation on/off.
| double ngcdcsACQ::FrameRate | ( | void | ) |
Current frame rate.
| size_t ngcdcsACQ::FramesProcessed | ( | ) |
Return number of processed frames in recording sequence.
| void ngcdcsACQ::Free | ( | ) |
Release frame buffer.
| void ngcdcsACQ::GetCfg | ( | ngcdcs_acq_cfg_t * | currentConf | ) |
Get configuration.
| int ngcdcsACQ::GetParam | ( | const char * | paramName, |
| char * | paramValue ) |
Get parameter.
| int ngcdcsACQ::GetRecvStatus | ( | int * | err, |
| int * | stat ) |
Get errno and status from the receiver devices.
| int ngcdcsACQ::GetServiceConfig | ( | ngcpp_cfg_t * | config | ) |
Retrieve acqusition microservice configuration.
| int ngcdcsACQ::Guiding | ( | int | flag | ) |
Enable/disable guiding mode.
| void ngcdcsACQ::HandleFdCmdEvt | ( | ) |
Handle input on FdCmd() - i/o error case.
| int ngcdcsACQ::HandleFdErrEvt | ( | ) |
Handle input on FdErr() - run-time error.
| char * ngcdcsACQ::Host | ( | ) |
Return acquisition process host name.
| int ngcdcsACQ::HwWin | ( | int | sx, |
| int | sy, | ||
| int | nx, | ||
| int | ny ) |
Set HW read-out window.
| int ngcdcsACQ::LastTransfer | ( | ) |
Check last-transfer flag.
| int ngcdcsACQ::LocalMedia | ( | ) |
Return 1 in case any frame is store to local media on the NGC-LLCU.
| int ngcdcsACQ::NewSetup | ( | ) |
Mark new setup.
|
protectedvirtual |
Shared memory creator.
| void ngcdcsACQ::NumExtBlocks | ( | int | n | ) |
Set umber of reserved extension header blocks.
| int ngcdcsACQ::Pause | ( | ) |
Pause acquisition.
| double ngcdcsACQ::Perf | ( | void | ) |
Current CPU load in percent.
| int ngcdcsACQ::Pid | ( | ) |
Return actual process id.
| void ngcdcsACQ::Profile | ( | const char * | id | ) |
Apply profile.
| int ngcdcsACQ::Queue | ( | int | num | ) |
Setup queue mode.
| void ngcdcsACQ::QueueAlign | ( | ) |
Align queue-mode frame parameters.
| void ngcdcsACQ::QueueWin | ( | int | sx, |
| int | sy, | ||
| int | nx, | ||
| int | ny ) |
Align detector queue window.
| void ngcdcsACQ::Release | ( | ) |
Release module.
| int ngcdcsACQ::Reset | ( | ) |
Internal cleanup.
| int ngcdcsACQ::ResetCnt | ( | ) |
Set flag to reset process counters.
| int ngcdcsACQ::Restart | ( | double | absTime = 0.0 | ) |
Restart process.
| int ngcdcsACQ::ResumeSim | ( | ) |
Resume suspended simulation.
| const char * ngcdcsACQ::SeqStartTime | ( | ) |
Get sequencer start time.
| void ngcdcsACQ::SeqStartTime | ( | struct timeval & | timeVal | ) |
Set sequencer start time.
| int ngcdcsACQ::SetParam | ( | const char * | paramName, |
| const char * | paramValue, | ||
| int | sync = 1 ) |
| void ngcdcsACQ::SetupId | ( | int | id = -1 | ) |
Set new setup id (or use auto-increment)
| int ngcdcsACQ::ShmName | ( | const char * | nameSpace | ) |
Set shared memory interface name-space.
|
inline |
Return shared-memory no-wait flag.
| int ngcdcsACQ::ShmNoWait | ( | int | flag | ) |
Set shared-memory no-wait flag.
| int ngcdcsACQ::ShmNumBuf | ( | int | n | ) |
Set number of shared memory buffers.
| int ngcdcsACQ::ShmSelect | ( | const char * | libName, |
| const char * | nameSpace = NULL, | ||
| int | n = 0 ) |
Select shared memory interface type.
|
inline |
Get simulation mode.
| void ngcdcsACQ::Sim | ( | int | flag | ) |
Set simulation mode.
| void ngcdcsACQ::SimError | ( | int | error | ) |
Trigger an error simulation.
| int ngcdcsACQ::SimTime | ( | ) |
Get simulation interval (milliseconds)
| int ngcdcsACQ::SimTime | ( | int | ms | ) |
Set simulation interval (milliseconds)
| size_t ngcdcsACQ::SizeRecorded | ( | ) |
Return recorded data size (in bytes)
| void ngcdcsACQ::SofwMode | ( | char * | s | ) |
Get software operational mode (string)
| int ngcdcsACQ::Start | ( | double | absTime = 0.0 | ) |
Send start-cmd to acq.-process.
| int ngcdcsACQ::StartDebugger | ( | ) |
Start debugger.
| int ngcdcsACQ::StartExposure | ( | ) |
Start exposure.
| int ngcdcsACQ::StartTransferring | ( | ) |
Start data transfer.
| void ngcdcsACQ::Statistics | ( | ngcdcs_acqperf_t * | stat | ) |
Get transfer statistics.
| char * ngcdcsACQ::StatusString | ( | ) |
Get status string.
| int ngcdcsACQ::Stop | ( | ) |
Send stop-cmd to acq.-process.
| int ngcdcsACQ::StopDebugger | ( | ) |
Stop debugger.
| void ngcdcsACQ::StopExposure | ( | ) |
Stop exposure.
| void ngcdcsACQ::StopTransferring | ( | ) |
Stop data transfer.
|
protectedvirtual |
Store data to file.
| int ngcdcsACQ::Streaming | ( | ssize_t | size | ) |
Set streaming buffer size.
| int ngcdcsACQ::SyncParam | ( | int | timeout = 20 | ) |
| int ngcdcsACQ::Transfer | ( | int | flag | ) |
Enable/disable sustained transfer.
| int ngcdcsACQ::Transferring | ( | ) |
Check protected transferring flag.
| int ngcdcsACQ::UploadBuf | ( | int | id, |
| void * | buffer, | ||
| int | size, | ||
| int | noCheck = 0 ) |
Upload data buffer to acq.-process.
| int ngcdcsACQ::UploadFits | ( | int | id, |
| const char * | path, | ||
| int | noCheck = 0 ) |
Upload FITS-file to acq.-process.
| ssize_t ngcdcsACQ::allocSize |
Frame buffer size preset (in bytes)
| int ngcdcsACQ::appDataInline |
Pre-processor application meta data inline flag.
| int ngcdcsACQ::appRev |
Pre-processor application revision.
| int ngcdcsACQ::autoWinX |
Apply automatic window in X.
| int ngcdcsACQ::autoWinY |
Apply automatic window in Y.
| char ngcdcsACQ::badPixMask[256] |
Bad-pixel-mask.
| int ngcdcsACQ::burstNum |
Number of bursts.
| char ngcdcsACQ::burstProcess[256] |
Process name for burst.
| int ngcdcsACQ::burstSkip |
Frames to skip before starting burst.
| int ngcdcsACQ::chanSelect |
DMA channel selection.
| int ngcdcsACQ::cmdPort |
Actual command server port.
| int ngcdcsACQ::connect |
Enable data connection.
| int ngcdcsACQ::continuous |
Continuous mode flag (no counter reset)
| char ngcdcsACQ::darkFrame[256] |
Dark-frame (bias)
| ngcdcsACQ_DATA ngcdcsACQ::data |
Data interface.
| int ngcdcsACQ::dataPort |
Actual data server port.
| ngcdcs_acq_dcf_t ngcdcsACQ::detCfg |
Detector configuration.
| int ngcdcsACQ::diskMem |
Disk-memory extension flag.
| char ngcdcsACQ::diskMemPath[256] |
Disk-memory extension path.
| int ngcdcsACQ::diskMemSize |
Disk-memory extension size.
| int ngcdcsACQ::exp |
Enable exposure.
| char ngcdcsACQ::extName[80] |
Extension name for "cube-ext" format.
| char ngcdcsACQ::flatField[256] |
Flat-field.
| int ngcdcsACQ::flush |
Flush stream after each image.
| int ngcdcsACQ::guiding |
Guiding flag (sustained connection)
| ngcbIMGOP ngcdcsACQ::imgop |
Image operations.
| int ngcdcsACQ::ioError |
Flag for io-error.
| int ngcdcsACQ::largeFile |
Flag to enable/disable large file extension.
| ngcbTHREAD_T ngcdcsACQ::mainThread |
Main thread id.
| char ngcdcsACQ::moduleName[64] |
Optional module name.
| int ngcdcsACQ::payloadSize |
Payload size for RTMS (bytes)
| int ngcdcsACQ::ppRev |
Pre-processor framework revision.
| size_t ngcdcsACQ::ppStackSize |
Post-processor stack size in bytes (0 = use system default)
| char ngcdcsACQ::procName[256] |
Process name.
| int ngcdcsACQ::queueDump |
Queue dump mode.
| int ngcdcsACQ::queueSize |
Queue size.
| int ngcdcsACQ::relaunch |
relaunch flag - restet at Exec()
| ngcdcsRTD* ngcdcsACQ::rtd |
RTD connection database.
| char ngcdcsACQ::rtdCmd[256] |
RTD startup command.
| ngcdcsSHM* ngcdcsACQ::shm |
Shared memory object.
| int ngcdcsACQ::shmLib |
Shared memory interface library.
| char ngcdcsACQ::shmName[64] |
Shared memory interface name-space.
| int ngcdcsACQ::shmNumBuf |
Number of shared memory buffers.
| int ngcdcsACQ::simHighSpeed |
Flag to enable/disabel high-speed simulation.
| int ngcdcsACQ::status |
Soft state: idle, ready, running ...
| ngcdcsSUBFRM* ngcdcsACQ::subFrames |
Sub-frames.
| int ngcdcsACQ::timestamp_table |
Cube timestamp table enabled.
| int ngcdcsACQ::transfer |
Transfer flag (sustained connection)
| int ngcdcsACQ::updateFrames |
Flags that frame config. has changed.