OPERATING AND USER MANUAL Q-12 CoaXPress series
________________________________________________________________________________________________________________
_________________________________________________________________________________________
Adimec
69
/********************************************************************************/
/*
* File name: moveLFFFSet.cpp
*
* Synopsis: This program demonstrates how to move one LF FF set to another one.
*
*/
#include
<mil.h>
#include
<stdint.h>
/* Required for uint64_t support */
/* Determine the number of required transfers for the LF FFC set,
* S-50A30:
TRANSFERS = 3083
* S-25A70/80: TRANSFERS = 1767
* Q-12A180:
TRANSFERS = 887
*/
#define
TRANSFERS
887
uint64_t
lf_ff_data[
TRANSFERS
];
char
Cmd[256];
char
CmdParam[65];
char
myString[256];
int
i;
int
MosMain
(
void
)
{
/* Start camera discovery */
/* Allocate defaults. */
MIL_ID
MilApplication,
/* Application identifier. */
MilSystem,
/* System identifier. */
MilDigitizer,
/* Digitizer identifier. */
MilImage;
/* Image buffer identifier. */
MappAllocDefault
(
M_DEFAULT
, &MilApplication, &MilSystem,
M_NULL
, &MilDigitizer, &MilImage);
/* End camera discovery */
/* Start LF FFC operation */
/* Set manual set selector to manual */
MosPrintf
(
MIL_TEXT
(
"LF_SetSelectionMode is set to Manual"
));
sprintf_s(Cmd,
"LF_FF_SetSelectionMode"
);
sprintf_s(CmdParam,
"Manual"
);
MdigControlFeature
(MilDigitizer,
M_FEATURE_VALUE_AS_STRING
, Cmd,
M_TYPE_STRING
, CmdParam);
/* Select the set you want to read. In this example set 10. */
MosPrintf
(
MIL_TEXT
(
"Set 10 is selected"
));
sprintf_s(Cmd,
"LF_FF_ManualSetSelector"
);
sprintf_s(CmdParam,
"10"
);
MdigControlFeature
(MilDigitizer,
M_FEATURE_VALUE_AS_STRING
, Cmd,
M_TYPE_STRING
, CmdParam);
/* Start the reading process */
MosPrintf
(
MIL_TEXT
(
"Reading data..."
));
sprintf_s(Cmd,
"LF_FF_RawSetDataReadStart"
);
sprintf_s(CmdParam,
"1"
);
MdigControlFeature
(MilDigitizer,
M_FEATURE_VALUE_AS_STRING
, Cmd,
M_TYPE_STRING
, CmdParam);
/* Read the data */