OPERATING AND USER MANUAL Q-12 CoaXPress series
________________________________________________________________________________________________________________
_________________________________________________________________________________________
Adimec
70
sprintf_s(Cmd,
"LF_FF_RawSetData"
);
for
(i = 0; i <
TRANSFERS
; i++) {
MdigInquireFeature
(MilDigitizer,
M_FEATURE_VALUE
, Cmd,
M_TYPE_INT64
, &lf_ff_data[i]);
printf(
"Record: %i - %lli\n"
, i, lf_ff_data[i]);
}
/* End the reading process */
sprintf_s(Cmd,
"LF_FF_RawSetDataEnd"
);
sprintf_s(CmdParam,
"1"
);
MdigControlFeature
(MilDigitizer,
M_FEATURE_VALUE_AS_STRING
, Cmd,
M_TYPE_STRING
, CmdParam);
/* Check if everything went fine and no errors occured */
sprintf_s(Cmd,
"LF_FF_RawSetDataStatus"
);
MdigInquireFeature
(MilDigitizer,
M_FEATURE_VALUE_AS_STRING
, Cmd,
M_DEFAULT
, myString);
printf(
"Status: %s\n"
, myString);
MosPrintf
(
MIL_TEXT
(
"Reading data finished"
));
/* Select the set you want to write to. In this example set 7. */
MosPrintf
(
MIL_TEXT
(
"Set 7 is selected. \n\n"
));
sprintf_s(Cmd,
"LF_FF_ManualSetSelector"
);
sprintf_s(CmdParam,
"7"
);
MdigControlFeature
(MilDigitizer,
M_FEATURE_VALUE_AS_STRING
, Cmd,
M_TYPE_STRING
, CmdParam);
/* Start the writing process */
MosPrintf
(
MIL_TEXT
(
"Writing data..."
));
sprintf_s(Cmd,
"LF_FF_RawSetDataWriteStart"
);
sprintf_s(CmdParam,
"1"
);
MdigControlFeature
(MilDigitizer,
M_FEATURE_VALUE_AS_STRING
, Cmd,
M_TYPE_STRING
, CmdParam);
/* Write the data */
sprintf_s(Cmd,
"LF_FF_RawSetData"
);
for
(i = 0; i <
TRANSFERS
; i++) {
MdigControlFeature
(MilDigitizer,
M_FEATURE_VALUE
, Cmd,
M_TYPE_INT64
, &lf_ff_data[i]);
printf(
"Record: %i\n"
, i);
}
/* End the writing process */
sprintf_s(Cmd,
"LF_FF_RawSetDataEnd"
);
sprintf_s(CmdParam,
"1"
);
MdigControlFeature
(MilDigitizer,
M_FEATURE_VALUE_AS_STRING
, Cmd,
M_TYPE_STRING
, CmdParam);
/* Check if everything went fine and no errors occured */
sprintf_s(Cmd,
"LF_FF_RawSetDataStatus"
);
MdigInquireFeature
(MilDigitizer,
M_FEATURE_VALUE_AS_STRING
, Cmd,
M_DEFAULT
, myString);
printf(
"Status: %s\n"
, myString);
MosPrintf
(
MIL_TEXT
(
"Writing data finished"
));
/* End LF FFC operation */
/* Free defaults. */
MappFreeDefault
(MilApplication, MilSystem,
M_NULL
, MilDigitizer, MilImage);
return
0;
}