cacao  Release 0.1.03-dev
Compute And Control For Adaptive Optics
AOloopControl_IOtools_load_image_sharedmem.c File Reference

Adaptive Optics Control loop engine I/O tools. More...

Include dependency graph for AOloopControl_IOtools_load_image_sharedmem.c:

Macros

#define _GNU_SOURCE
 

Functions

AOloopControl_IOtools - 2. LOAD DATA STREAMS

Load 2D and 3D shared memory images

imageID AOloopControl_IOtools_2Dloadcreate_shmim (const char *name, const char *fname, long xsize, long ysize, float DefaultValue)
 Load 2D image in shared memory. More...
 
imageID AOloopControl_IOtools_3Dloadcreate_shmim (const char *name, const char *fname, long xsize, long ysize, long zsize, float DefaultValue)
 Load 3D image in shared memory. More...
 

Variables

long LOOPNUMBER
 
AOLOOPCONTROL_CONFAOconf
 CLI function for AOloopControl_setframesAve. More...
 
AOloopControl_var aoloopcontrol_var
 
static int loadcreateshm_log = 0
 
static FILE * loadcreateshm_fplog
 

Detailed Description

Adaptive Optics Control loop engine I/O tools.

AO engine uses stream data structure

Macro Definition Documentation

◆ _GNU_SOURCE

#define _GNU_SOURCE

Function Documentation

◆ AOloopControl_IOtools_2Dloadcreate_shmim()

imageID AOloopControl_IOtools_2Dloadcreate_shmim ( const char *  name,
const char *  fname,
long  xsize,
long  ysize,
float  DefaultValue 
)

Load 2D image in shared memory.

Implements stream loading policy with optional check on size for 2D images. See CLIcore.h for policy details.

(1) If image already in local memory, and has correct size, upload FITS file to existing array, go to (END-success), otherwise, go to (2) (2) If image already in local memory, but size does not match, go to (END-fail), otherwise, go to (3) (3) Load FITS image to local memory

◆ AOloopControl_IOtools_3Dloadcreate_shmim()

imageID AOloopControl_IOtools_3Dloadcreate_shmim ( const char *  name,
const char *  fname,
long  xsize,
long  ysize,
long  zsize,
float  DefaultValue 
)

Load 3D image in shared memory.

Variable Documentation

◆ AOconf

CLI function for AOloopControl_setframesAve.

◆ aoloopcontrol_var

AOloopControl_var aoloopcontrol_var

◆ loadcreateshm_fplog

FILE* loadcreateshm_fplog
static

◆ loadcreateshm_log

int loadcreateshm_log = 0
static

◆ LOOPNUMBER

long LOOPNUMBER