ngc 1.5.0
 
Loading...
Searching...
No Matches
ngcdcsACQ Class Reference

#include <ngcdcsACQ.hpp>

Inheritance diagram for ngcdcsACQ:
ngcbOBJ ngcbTHREAD

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.
 
ngcdcsEXPExposure ()
 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_tFrame (const char *name)
 Get frame info.
 
ngcdcs_framedef_tFrame (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 ngcbTHREADNewThread (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)
 
ngcdcsSHMshm
 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.
 
ngcdcsRTDrtd
 RTD connection database.
 
ngcdcsSUBFRMsubFrames
 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_SYSalarmSystem
 Alarm system.
 
ngcbSERVICEservices
 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 ngcdcsSHMNewShm (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.
 

Detailed Description

Acquisition process interface class

Constructor & Destructor Documentation

◆ ngcdcsACQ() [1/4]

ngcdcsACQ::ngcdcsACQ ( )

Constructor.

◆ ngcdcsACQ() [2/4]

ngcdcsACQ::ngcdcsACQ ( const ngcdcs_acq_cfg_t & cfg)
explicit

Constructor with default configuration.

◆ ngcdcsACQ() [3/4]

ngcdcsACQ::ngcdcsACQ ( ngcbPARAM_LIST * p)
explicit

Constructor with parameter list.

◆ ngcdcsACQ() [4/4]

ngcdcsACQ::ngcdcsACQ ( const ngcdcs_acq_cfg_t & cfg,
ngcbPARAM_LIST * p )

Constructor with default configuration and parameter list.

◆ ~ngcdcsACQ()

ngcdcsACQ::~ngcdcsACQ ( )
virtual

Destructor.

Member Function Documentation

◆ Abort()

void ngcdcsACQ::Abort ( )

Abort acq.-process.

◆ Alloc() [1/2]

int ngcdcsACQ::Alloc ( )

Apply frame buffer size preset.

◆ Alloc() [2/2]

int ngcdcsACQ::Alloc ( ssize_t size)

Allocate new frame buffer.

◆ ApplyParamList() [1/2]

int ngcdcsACQ::ApplyParamList ( int sync = 1)

Apply global list.

◆ ApplyParamList() [2/2]

int ngcdcsACQ::ApplyParamList ( ngcbPARAM_LIST * list,
int sync = 1 )

Apply spec. list.

◆ AttachServices()

void ngcdcsACQ::AttachServices ( ngcdcsACQ_SERVICE * s)

Attach services.

◆ BadPixMask()

int ngcdcsACQ::BadPixMask ( const char * path)

Upload bad-pixel-mask.

◆ Burst()

int ngcdcsACQ::Burst ( int num)

Set number of burst-frames.

◆ BurstSkip()

int ngcdcsACQ::BurstSkip ( int num)

Set frames to skip before burst.

◆ ChanSelect()

int ngcdcsACQ::ChanSelect ( int chan)

Select DMA channels in use.

◆ Clear()

int ngcdcsACQ::Clear ( int id)

Clear uploaded data (invalidate)

◆ ClearStatistics()

void ngcdcsACQ::ClearStatistics ( )

Clear transfer statistics.

◆ Cmd()

int ngcdcsACQ::Cmd ( const char * cmd,
char * reply )

Send ASCII command to acq.-process.

◆ Configure()

void ngcdcsACQ::Configure ( const ngcdcs_acq_cfg_t & newConf)

Configure system.

◆ Cont()

int ngcdcsACQ::Cont ( )

Continue acquisition.

◆ DarkFrame()

int ngcdcsACQ::DarkFrame ( const char * path)

Upload dark-frame.

◆ DataConnect()

int ngcdcsACQ::DataConnect ( )
protectedvirtual

Establish data connection.

◆ DataPath() [1/2]

const char * ngcdcsACQ::DataPath ( )

Return acquisition process local data path.

◆ DataPath() [2/2]

int ngcdcsACQ::DataPath ( const char * path)

Set acquisition process local data path.

◆ DebuggerRunning()

int ngcdcsACQ::DebuggerRunning ( )

Check, if debugger is running.

◆ Dev()

const char * ngcdcsACQ::Dev ( int n = 0)

Return acquisition process device name.

◆ Dictionary()

void ngcdcsACQ::Dictionary ( ngcbDIC * dictionary)

Attach to dictionary.

◆ DiskMem()

int ngcdcsACQ::DiskMem ( int flag)

Enable/disable disk-memory extension.

◆ DiskMemCreate()

int ngcdcsACQ::DiskMemCreate ( int size)

Create disk-memory.

◆ DiskMemDelete()

int ngcdcsACQ::DiskMemDelete ( )

Delete disk-memory.

◆ DiskMemPath()

int ngcdcsACQ::DiskMemPath ( const char * path)

Set disk-memory extension path.

◆ DmaCnt()

unsigned int ngcdcsACQ::DmaCnt ( int idx = 0)

Return current DMA counter.

◆ End()

int ngcdcsACQ::End ( )

Set flag to end processing a.s.a.p.

◆ ErrMsg()

char * ngcdcsACQ::ErrMsg ( )
virtual

Error message.

Reimplemented from ngcbOBJ.

◆ ErrState()

void ngcdcsACQ::ErrState ( const char * msg,
int id )

Go to error state.

◆ Exec() [1/2]

int ngcdcsACQ::Exec ( )

Launch last acq.-process.

◆ Exec() [2/2]

int ngcdcsACQ::Exec ( const char * newProcess)

Launch acq.-process.

◆ ExpActive()

int ngcdcsACQ::ExpActive ( )

An exposure is running.

◆ Exposure() [1/2]

ngcdcsEXP * ngcdcsACQ::Exposure ( )

Return current exposure setup.

◆ Exposure() [2/2]

void ngcdcsACQ::Exposure ( ngcdcsEXP * exposure)

Attach to exposure setup.

◆ ExpSeqNo()

int ngcdcsACQ::ExpSeqNo ( )

Get exposure sequence number.

◆ ExpStartTime() [1/2]

const char * ngcdcsACQ::ExpStartTime ( )

Get exposure start time.

◆ ExpStartTime() [2/2]

void ngcdcsACQ::ExpStartTime ( struct timeval & timeVal)

Set exposure start time.

◆ ExpStartTimeMJD()

double ngcdcsACQ::ExpStartTimeMJD ( )

Get exposure start time (MJD)

◆ ExpStartTimeUTC()

double ngcdcsACQ::ExpStartTimeUTC ( )

Get exposure start time (UTC seconds since midnight)

◆ ExtDtt()

int ngcdcsACQ::ExtDtt ( )
inline

External DTT enabled.

◆ FdCmd()

int ngcdcsACQ::FdCmd ( )

Returns command server file descriptor.

◆ FdErr()

int ngcdcsACQ::FdErr ( )

Returns error-stack file descriptor.

◆ FlatField()

int ngcdcsACQ::FlatField ( const char * path)

Upload flat-field.

◆ Frame() [1/2]

ngcdcs_framedef_t * ngcdcsACQ::Frame ( const char * name)

Get frame info.

◆ Frame() [2/2]

ngcdcs_framedef_t * ngcdcsACQ::Frame ( int idx)

Get frame info.

◆ FrameDef()

int ngcdcsACQ::FrameDef ( ngcdcs_framedef_t * frameDef)

Currently defined frames.

◆ FrameGen()

int ngcdcsACQ::FrameGen ( const char * name,
int flag )

Switch frame generation on/off.

◆ FrameRate()

double ngcdcsACQ::FrameRate ( void )

Current frame rate.

◆ FramesProcessed()

size_t ngcdcsACQ::FramesProcessed ( )

Return number of processed frames in recording sequence.

◆ Free()

void ngcdcsACQ::Free ( )

Release frame buffer.

◆ GetCfg()

void ngcdcsACQ::GetCfg ( ngcdcs_acq_cfg_t * currentConf)

Get configuration.

◆ GetParam()

int ngcdcsACQ::GetParam ( const char * paramName,
char * paramValue )

Get parameter.

◆ GetRecvStatus()

int ngcdcsACQ::GetRecvStatus ( int * err,
int * stat )

Get errno and status from the receiver devices.

◆ GetServiceConfig()

int ngcdcsACQ::GetServiceConfig ( ngcpp_cfg_t * config)

Retrieve acqusition microservice configuration.

◆ Guiding()

int ngcdcsACQ::Guiding ( int flag)

Enable/disable guiding mode.

◆ HandleFdCmdEvt()

void ngcdcsACQ::HandleFdCmdEvt ( )

Handle input on FdCmd() - i/o error case.

◆ HandleFdErrEvt()

int ngcdcsACQ::HandleFdErrEvt ( )

Handle input on FdErr() - run-time error.

◆ Host()

char * ngcdcsACQ::Host ( )

Return acquisition process host name.

◆ HwWin()

int ngcdcsACQ::HwWin ( int sx,
int sy,
int nx,
int ny )

Set HW read-out window.

◆ LastTransfer()

int ngcdcsACQ::LastTransfer ( )

Check last-transfer flag.

◆ LocalMedia()

int ngcdcsACQ::LocalMedia ( )

Return 1 in case any frame is store to local media on the NGC-LLCU.

◆ NewSetup()

int ngcdcsACQ::NewSetup ( )

Mark new setup.

◆ NewShm()

ngcdcsSHM * ngcdcsACQ::NewShm ( const char * name)
protectedvirtual

Shared memory creator.

◆ NumExtBlocks()

void ngcdcsACQ::NumExtBlocks ( int n)

Set umber of reserved extension header blocks.

◆ Pause()

int ngcdcsACQ::Pause ( )

Pause acquisition.

◆ Perf()

double ngcdcsACQ::Perf ( void )

Current CPU load in percent.

◆ Pid()

int ngcdcsACQ::Pid ( )

Return actual process id.

◆ Profile()

void ngcdcsACQ::Profile ( const char * id)

Apply profile.

◆ Queue()

int ngcdcsACQ::Queue ( int num)

Setup queue mode.

◆ QueueAlign()

void ngcdcsACQ::QueueAlign ( )

Align queue-mode frame parameters.

◆ QueueWin()

void ngcdcsACQ::QueueWin ( int sx,
int sy,
int nx,
int ny )

Align detector queue window.

◆ Release()

void ngcdcsACQ::Release ( )

Release module.

◆ Reset()

int ngcdcsACQ::Reset ( )

Internal cleanup.

◆ ResetCnt()

int ngcdcsACQ::ResetCnt ( )

Set flag to reset process counters.

◆ Restart()

int ngcdcsACQ::Restart ( double absTime = 0.0)

Restart process.

◆ ResumeSim()

int ngcdcsACQ::ResumeSim ( )

Resume suspended simulation.

◆ SeqStartTime() [1/2]

const char * ngcdcsACQ::SeqStartTime ( )

Get sequencer start time.

◆ SeqStartTime() [2/2]

void ngcdcsACQ::SeqStartTime ( struct timeval & timeVal)

Set sequencer start time.

◆ SetParam()

int ngcdcsACQ::SetParam ( const char * paramName,
const char * paramValue,
int sync = 1 )

◆ SetupId()

void ngcdcsACQ::SetupId ( int id = -1)

Set new setup id (or use auto-increment)

◆ ShmName()

int ngcdcsACQ::ShmName ( const char * nameSpace)

Set shared memory interface name-space.

◆ ShmNoWait() [1/2]

int ngcdcsACQ::ShmNoWait ( )
inline

Return shared-memory no-wait flag.

◆ ShmNoWait() [2/2]

int ngcdcsACQ::ShmNoWait ( int flag)

Set shared-memory no-wait flag.

◆ ShmNumBuf()

int ngcdcsACQ::ShmNumBuf ( int n)

Set number of shared memory buffers.

◆ ShmSelect()

int ngcdcsACQ::ShmSelect ( const char * libName,
const char * nameSpace = NULL,
int n = 0 )

Select shared memory interface type.

◆ Sim() [1/2]

int ngcdcsACQ::Sim ( )
inline

Get simulation mode.

◆ Sim() [2/2]

void ngcdcsACQ::Sim ( int flag)

Set simulation mode.

◆ SimError()

void ngcdcsACQ::SimError ( int error)

Trigger an error simulation.

◆ SimTime() [1/2]

int ngcdcsACQ::SimTime ( )

Get simulation interval (milliseconds)

◆ SimTime() [2/2]

int ngcdcsACQ::SimTime ( int ms)

Set simulation interval (milliseconds)

◆ SizeRecorded()

size_t ngcdcsACQ::SizeRecorded ( )

Return recorded data size (in bytes)

◆ SofwMode()

void ngcdcsACQ::SofwMode ( char * s)

Get software operational mode (string)

◆ Start()

int ngcdcsACQ::Start ( double absTime = 0.0)

Send start-cmd to acq.-process.

◆ StartDebugger()

int ngcdcsACQ::StartDebugger ( )

Start debugger.

◆ StartExposure()

int ngcdcsACQ::StartExposure ( )

Start exposure.

◆ StartTransferring()

int ngcdcsACQ::StartTransferring ( )

Start data transfer.

◆ Statistics()

void ngcdcsACQ::Statistics ( ngcdcs_acqperf_t * stat)

Get transfer statistics.

◆ StatusString()

char * ngcdcsACQ::StatusString ( )

Get status string.

◆ Stop()

int ngcdcsACQ::Stop ( )

Send stop-cmd to acq.-process.

◆ StopDebugger()

int ngcdcsACQ::StopDebugger ( )

Stop debugger.

◆ StopExposure()

void ngcdcsACQ::StopExposure ( )

Stop exposure.

◆ StopTransferring()

void ngcdcsACQ::StopTransferring ( )

Stop data transfer.

◆ Store()

int ngcdcsACQ::Store ( char * buffer,
ngcdcs_finfo_t finfo,
char * where,
int store2tmp = 0 )
protectedvirtual

Store data to file.

◆ Streaming()

int ngcdcsACQ::Streaming ( ssize_t size)

Set streaming buffer size.

◆ SyncParam()

int ngcdcsACQ::SyncParam ( int timeout = 20)

◆ Transfer()

int ngcdcsACQ::Transfer ( int flag)

Enable/disable sustained transfer.

◆ Transferring()

int ngcdcsACQ::Transferring ( )

Check protected transferring flag.

◆ UploadBuf()

int ngcdcsACQ::UploadBuf ( int id,
void * buffer,
int size,
int noCheck = 0 )

Upload data buffer to acq.-process.

◆ UploadFits()

int ngcdcsACQ::UploadFits ( int id,
const char * path,
int noCheck = 0 )

Upload FITS-file to acq.-process.

Member Data Documentation

◆ allocSize

ssize_t ngcdcsACQ::allocSize

Frame buffer size preset (in bytes)

◆ appDataInline

int ngcdcsACQ::appDataInline

Pre-processor application meta data inline flag.

◆ appRev

int ngcdcsACQ::appRev

Pre-processor application revision.

◆ autoWinX

int ngcdcsACQ::autoWinX

Apply automatic window in X.

◆ autoWinY

int ngcdcsACQ::autoWinY

Apply automatic window in Y.

◆ badPixMask

char ngcdcsACQ::badPixMask[256]

Bad-pixel-mask.

◆ burstNum

int ngcdcsACQ::burstNum

Number of bursts.

◆ burstProcess

char ngcdcsACQ::burstProcess[256]

Process name for burst.

◆ burstSkip

int ngcdcsACQ::burstSkip

Frames to skip before starting burst.

◆ chanSelect

int ngcdcsACQ::chanSelect

DMA channel selection.

◆ cmdPort

int ngcdcsACQ::cmdPort

Actual command server port.

◆ connect

int ngcdcsACQ::connect

Enable data connection.

◆ continuous

int ngcdcsACQ::continuous

Continuous mode flag (no counter reset)

◆ darkFrame

char ngcdcsACQ::darkFrame[256]

Dark-frame (bias)

◆ data

ngcdcsACQ_DATA ngcdcsACQ::data

Data interface.

◆ dataPort

int ngcdcsACQ::dataPort

Actual data server port.

◆ detCfg

ngcdcs_acq_dcf_t ngcdcsACQ::detCfg

Detector configuration.

◆ diskMem

int ngcdcsACQ::diskMem

Disk-memory extension flag.

◆ diskMemPath

char ngcdcsACQ::diskMemPath[256]

Disk-memory extension path.

◆ diskMemSize

int ngcdcsACQ::diskMemSize

Disk-memory extension size.

◆ exp

int ngcdcsACQ::exp

Enable exposure.

◆ extName

char ngcdcsACQ::extName[80]

Extension name for "cube-ext" format.

◆ flatField

char ngcdcsACQ::flatField[256]

Flat-field.

◆ flush

int ngcdcsACQ::flush

Flush stream after each image.

◆ guiding

int ngcdcsACQ::guiding

Guiding flag (sustained connection)

◆ imgop

ngcbIMGOP ngcdcsACQ::imgop

Image operations.

◆ ioError

int ngcdcsACQ::ioError

Flag for io-error.

◆ largeFile

int ngcdcsACQ::largeFile

Flag to enable/disable large file extension.

◆ mainThread

ngcbTHREAD_T ngcdcsACQ::mainThread

Main thread id.

◆ moduleName

char ngcdcsACQ::moduleName[64]

Optional module name.

◆ payloadSize

int ngcdcsACQ::payloadSize

Payload size for RTMS (bytes)

◆ ppRev

int ngcdcsACQ::ppRev

Pre-processor framework revision.

◆ ppStackSize

size_t ngcdcsACQ::ppStackSize

Post-processor stack size in bytes (0 = use system default)

◆ procName

char ngcdcsACQ::procName[256]

Process name.

◆ queueDump

int ngcdcsACQ::queueDump

Queue dump mode.

◆ queueSize

int ngcdcsACQ::queueSize

Queue size.

◆ relaunch

int ngcdcsACQ::relaunch

relaunch flag - restet at Exec()

◆ rtd

ngcdcsRTD* ngcdcsACQ::rtd

RTD connection database.

◆ rtdCmd

char ngcdcsACQ::rtdCmd[256]

RTD startup command.

◆ shm

ngcdcsSHM* ngcdcsACQ::shm

Shared memory object.

◆ shmLib

int ngcdcsACQ::shmLib

Shared memory interface library.

◆ shmName

char ngcdcsACQ::shmName[64]

Shared memory interface name-space.

◆ shmNumBuf

int ngcdcsACQ::shmNumBuf

Number of shared memory buffers.

◆ simHighSpeed

int ngcdcsACQ::simHighSpeed

Flag to enable/disabel high-speed simulation.

◆ status

int ngcdcsACQ::status

Soft state: idle, ready, running ...

◆ subFrames

ngcdcsSUBFRM* ngcdcsACQ::subFrames

Sub-frames.

◆ timestamp_table

int ngcdcsACQ::timestamp_table

Cube timestamp table enabled.

◆ transfer

int ngcdcsACQ::transfer

Transfer flag (sustained connection)

◆ updateFrames

int ngcdcsACQ::updateFrames

Flags that frame config. has changed.


The documentation for this class was generated from the following files: