本文整理汇总了C++中sf_mark_chart_reusable_outputs函数的典型用法代码示例。如果您正苦于以下问题:C++ sf_mark_chart_reusable_outputs函数的具体用法?C++ sf_mark_chart_reusable_outputs怎么用?C++ sf_mark_chart_reusable_outputs使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了sf_mark_chart_reusable_outputs函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: mdlSetWorkWidths_c28_CSE1_DP
static void mdlSetWorkWidths_c28_CSE1_DP(SimStruct *S)
{
if (sim_mode_is_rtw_gen(S) || sim_mode_is_external(S)) {
mxArray *infoStruct = load_CSE1_DP_optimization_info();
int_T chartIsInlinable =
(int_T)sf_is_chart_inlinable(sf_get_instance_specialization(),infoStruct,
28);
ssSetStateflowIsInlinable(S,chartIsInlinable);
ssSetRTWCG(S,sf_rtw_info_uint_prop(sf_get_instance_specialization(),
infoStruct,28,"RTWCG"));
ssSetEnableFcnIsTrivial(S,1);
ssSetDisableFcnIsTrivial(S,1);
ssSetNotMultipleInlinable(S,sf_rtw_info_uint_prop
(sf_get_instance_specialization(),infoStruct,28,
"gatewayCannotBeInlinedMultipleTimes"));
sf_update_buildInfo(sf_get_instance_specialization(),infoStruct,28);
if (chartIsInlinable) {
ssSetInputPortOptimOpts(S, 0, SS_REUSABLE_AND_LOCAL);
sf_mark_chart_expressionable_inputs(S,sf_get_instance_specialization(),
infoStruct,28,1);
sf_mark_chart_reusable_outputs(S,sf_get_instance_specialization(),
infoStruct,28,1);
}
{
unsigned int outPortIdx;
for (outPortIdx=1; outPortIdx<=1; ++outPortIdx) {
ssSetOutputPortOptimizeInIR(S, outPortIdx, 1U);
}
}
{
unsigned int inPortIdx;
for (inPortIdx=0; inPortIdx < 1; ++inPortIdx) {
ssSetInputPortOptimizeInIR(S, inPortIdx, 1U);
}
}
sf_set_rtw_dwork_info(S,sf_get_instance_specialization(),infoStruct,28);
ssSetHasSubFunctions(S,!(chartIsInlinable));
} else {
}
ssSetOptions(S,ssGetOptions(S)|SS_OPTION_WORKS_WITH_CODE_REUSE);
ssSetChecksum0(S,(809045113U));
ssSetChecksum1(S,(2340928518U));
ssSetChecksum2(S,(3960005517U));
ssSetChecksum3(S,(3276000978U));
ssSetmdlDerivatives(S, NULL);
ssSetExplicitFCSSCtrl(S,1);
ssSupportsMultipleExecInstances(S,1);
}
开发者ID:NTNU-MCS,项目名称:CS_EnterpriseI_archive,代码行数:52,代码来源:c28_CSE1_DP.c
示例2: mdlSetWorkWidths_c3_ARP_02_RPSsmile_Glove_atomicError
static void mdlSetWorkWidths_c3_ARP_02_RPSsmile_Glove_atomicError(SimStruct *S)
{
if (sim_mode_is_rtw_gen(S) || sim_mode_is_external(S)) {
mxArray *infoStruct =
load_ARP_02_RPSsmile_Glove_atomicError_optimization_info();
int_T chartIsInlinable =
(int_T)sf_is_chart_inlinable(sf_get_instance_specialization(),infoStruct,3);
ssSetStateflowIsInlinable(S,chartIsInlinable);
ssSetRTWCG(S,sf_rtw_info_uint_prop(sf_get_instance_specialization(),
infoStruct,3,"RTWCG"));
ssSetEnableFcnIsTrivial(S,1);
ssSetDisableFcnIsTrivial(S,1);
ssSetNotMultipleInlinable(S,sf_rtw_info_uint_prop
(sf_get_instance_specialization(),infoStruct,3,
"gatewayCannotBeInlinedMultipleTimes"));
sf_update_buildInfo(sf_get_instance_specialization(),infoStruct,3);
if (chartIsInlinable) {
ssSetInputPortOptimOpts(S, 0, SS_REUSABLE_AND_LOCAL);
sf_mark_chart_expressionable_inputs(S,sf_get_instance_specialization(),
infoStruct,3,1);
sf_mark_chart_reusable_outputs(S,sf_get_instance_specialization(),
infoStruct,3,1);
}
{
unsigned int outPortIdx;
for (outPortIdx=1; outPortIdx<=1; ++outPortIdx) {
ssSetOutputPortOptimizeInIR(S, outPortIdx, 1U);
}
}
{
unsigned int inPortIdx;
for (inPortIdx=0; inPortIdx < 1; ++inPortIdx) {
ssSetInputPortOptimizeInIR(S, inPortIdx, 1U);
}
}
sf_set_rtw_dwork_info(S,sf_get_instance_specialization(),infoStruct,3);
ssSetHasSubFunctions(S,!(chartIsInlinable));
} else {
}
ssSetOptions(S,ssGetOptions(S)|SS_OPTION_WORKS_WITH_CODE_REUSE);
ssSetChecksum0(S,(3459264682U));
ssSetChecksum1(S,(582998228U));
ssSetChecksum2(S,(964524132U));
ssSetChecksum3(S,(497381268U));
ssSetmdlDerivatives(S, NULL);
ssSetExplicitFCSSCtrl(S,1);
ssSupportsMultipleExecInstances(S,1);
}
开发者ID:maryamsab,项目名称:realact,代码行数:52,代码来源:c3_ARP_02_RPSsmile_Glove_atomicError.c
示例3: mdlSetWorkWidths_c4_DisplayCANMsg
static void mdlSetWorkWidths_c4_DisplayCANMsg(SimStruct *S)
{
ssMdlUpdateIsEmpty(S, 1);
if (sim_mode_is_rtw_gen(S) || sim_mode_is_external(S)) {
mxArray *infoStruct = load_DisplayCANMsg_optimization_info();
int_T chartIsInlinable =
(int_T)sf_is_chart_inlinable(sf_get_instance_specialization(),infoStruct,4);
ssSetStateflowIsInlinable(S,chartIsInlinable);
ssSetRTWCG(S,1);
ssSetEnableFcnIsTrivial(S,1);
ssSetDisableFcnIsTrivial(S,1);
ssSetNotMultipleInlinable(S,sf_rtw_info_uint_prop
(sf_get_instance_specialization(),infoStruct,4,
"gatewayCannotBeInlinedMultipleTimes"));
sf_update_buildInfo(sf_get_instance_specialization(),infoStruct,4);
if (chartIsInlinable) {
ssSetInputPortOptimOpts(S, 0, SS_REUSABLE_AND_LOCAL);
sf_mark_chart_expressionable_inputs(S,sf_get_instance_specialization(),
infoStruct,4,1);
sf_mark_chart_reusable_outputs(S,sf_get_instance_specialization(),
infoStruct,4,1);
}
{
unsigned int outPortIdx;
for (outPortIdx=1; outPortIdx<=1; ++outPortIdx) {
ssSetOutputPortOptimizeInIR(S, outPortIdx, 1U);
}
}
{
unsigned int inPortIdx;
for (inPortIdx=0; inPortIdx < 1; ++inPortIdx) {
ssSetInputPortOptimizeInIR(S, inPortIdx, 1U);
}
}
sf_set_rtw_dwork_info(S,sf_get_instance_specialization(),infoStruct,4);
ssSetHasSubFunctions(S,!(chartIsInlinable));
} else {
}
ssSetOptions(S,ssGetOptions(S)|SS_OPTION_WORKS_WITH_CODE_REUSE);
ssSetChecksum0(S,(3734764569U));
ssSetChecksum1(S,(381797582U));
ssSetChecksum2(S,(29433646U));
ssSetChecksum3(S,(488799498U));
ssSetmdlDerivatives(S, NULL);
ssSetExplicitFCSSCtrl(S,1);
ssSupportsMultipleExecInstances(S,1);
}
开发者ID:khiemdo,项目名称:embedded-matlab,代码行数:51,代码来源:c4_DisplayCANMsg.c
示例4: mdlSetWorkWidths_c30_adcs_v15_integral_Power
static void mdlSetWorkWidths_c30_adcs_v15_integral_Power(SimStruct *S)
{
/* Actual parameters from chart:
equinox today
*/
const char_T *rtParamNames[] = { "p1", "p2" };
ssSetNumRunTimeParams(S,ssGetSFcnParamsCount(S));
/* registration for equinox*/
ssRegDlgParamAsRunTimeParam(S, 0, 0, rtParamNames[0], SS_DOUBLE);
/* registration for today*/
ssRegDlgParamAsRunTimeParam(S, 1, 1, rtParamNames[1], SS_DOUBLE);
if (sim_mode_is_rtw_gen(S) || sim_mode_is_external(S)) {
int_T chartIsInlinable =
(int_T)sf_is_chart_inlinable("adcs_v15_integral_Power",
"adcs_v15_integral_Power",30);
ssSetStateflowIsInlinable(S,chartIsInlinable);
ssSetRTWCG(S,sf_rtw_info_uint_prop("adcs_v15_integral_Power",
"adcs_v15_integral_Power",30,"RTWCG"));
ssSetEnableFcnIsTrivial(S,1);
ssSetDisableFcnIsTrivial(S,1);
ssSetNotMultipleInlinable(S,sf_rtw_info_uint_prop("adcs_v15_integral_Power",
"adcs_v15_integral_Power",30,"gatewayCannotBeInlinedMultipleTimes"));
if (chartIsInlinable) {
ssSetInputPortOptimOpts(S, 0, SS_REUSABLE_AND_LOCAL);
ssSetInputPortOptimOpts(S, 1, SS_REUSABLE_AND_LOCAL);
sf_mark_chart_expressionable_inputs(S,"adcs_v15_integral_Power",
"adcs_v15_integral_Power",30,2);
sf_mark_chart_reusable_outputs(S,"adcs_v15_integral_Power",
"adcs_v15_integral_Power",30,1);
}
sf_set_rtw_dwork_info(S,"adcs_v15_integral_Power","adcs_v15_integral_Power",
30);
ssSetHasSubFunctions(S,!(chartIsInlinable));
ssSetOptions(S,ssGetOptions(S)|SS_OPTION_WORKS_WITH_CODE_REUSE);
} else {
sf_set_sfun_dwork_info(S);
}
ssSetChecksum0(S,(3353404613U));
ssSetChecksum1(S,(2985191647U));
ssSetChecksum2(S,(1313161485U));
ssSetChecksum3(S,(2667465632U));
ssSetmdlDerivatives(S, NULL);
ssSetExplicitFCSSCtrl(S,1);
}
开发者ID:avnishks,项目名称:pratham,代码行数:49,代码来源:c30_adcs_v15_integral_Power.c
示例5: mdlSetWorkWidths_c3_MPC_framework
static void mdlSetWorkWidths_c3_MPC_framework(SimStruct *S)
{
if(sim_mode_is_rtw_gen(S)) {
int_T chartIsInlinable =
(int_T)sf_is_chart_inlinable("MPC_framework",3);
ssSetStateflowIsInlinable(S,chartIsInlinable);
ssSetEnableFcnIsTrivial(S,1);
ssSetDisableFcnIsTrivial(S,1);
ssSetNotMultipleInlinable(S,sf_rtw_info_uint_prop("MPC_framework",3,"gatewayCannotBeInlinedMultipleTimes"));
if(chartIsInlinable) {
ssSetInputPortOptimOpts(S, 0, SS_REUSABLE_AND_LOCAL);
ssSetInputPortOptimOpts(S, 1, SS_REUSABLE_AND_LOCAL);
ssSetInputPortOptimOpts(S, 2, SS_REUSABLE_AND_LOCAL);
ssSetInputPortOptimOpts(S, 3, SS_REUSABLE_AND_LOCAL);
ssSetInputPortOptimOpts(S, 4, SS_REUSABLE_AND_LOCAL);
ssSetInputPortOptimOpts(S, 5, SS_REUSABLE_AND_LOCAL);
ssSetInputPortOptimOpts(S, 6, SS_REUSABLE_AND_LOCAL);
ssSetInputPortOptimOpts(S, 7, SS_REUSABLE_AND_LOCAL);
sf_mark_chart_expressionable_inputs(S,"MPC_framework",3,8);
sf_mark_chart_reusable_outputs(S,"MPC_framework",3,3);
}
if (!sf_is_chart_instance_optimized_out("MPC_framework",3)) {
int dtId;
char *chartInstanceTypedefName =
sf_chart_instance_typedef_name("MPC_framework",3);
dtId = ssRegisterDataType(S, chartInstanceTypedefName);
if (dtId == INVALID_DTYPE_ID ) return;
/* Register the size of the udt */
if (!ssSetDataTypeSize(S, dtId, 8)) return;
if(!ssSetNumDWork(S,1)) return;
ssSetDWorkDataType(S, 0, dtId);
ssSetDWorkWidth(S, 0, 1);
ssSetDWorkName(S, 0, "ChartInstance"); /*optional name, less than 16 chars*/
sf_set_rtw_identifier(S);
}
ssSetHasSubFunctions(S,!(chartIsInlinable));
ssSetOptions(S,ssGetOptions(S)|SS_OPTION_WORKS_WITH_CODE_REUSE);
}
ssSetChecksum0(S,(1607393255U));
ssSetChecksum1(S,(1677787762U));
ssSetChecksum2(S,(2097080131U));
ssSetChecksum3(S,(3166642993U));
ssSetExplicitFCSSCtrl(S,1);
}
开发者ID:Bazs,项目名称:mpc-robot,代码行数:46,代码来源:c3_MPC_framework.c
示例6: mdlSetWorkWidths_c1_newtons_cradle
static void mdlSetWorkWidths_c1_newtons_cradle(SimStruct *S)
{
if (sim_mode_is_rtw_gen(S) || sim_mode_is_external(S)) {
mxArray *infoStruct = load_newtons_cradle_optimization_info();
int_T chartIsInlinable =
(int_T)sf_is_chart_inlinable(S,sf_get_instance_specialization(),infoStruct,
1);
ssSetStateflowIsInlinable(S,chartIsInlinable);
ssSetRTWCG(S,sf_rtw_info_uint_prop(S,sf_get_instance_specialization(),
infoStruct,1,"RTWCG"));
ssSetEnableFcnIsTrivial(S,1);
ssSetDisableFcnIsTrivial(S,1);
ssSetNotMultipleInlinable(S,sf_rtw_info_uint_prop(S,
sf_get_instance_specialization(),infoStruct,1,
"gatewayCannotBeInlinedMultipleTimes"));
sf_update_buildInfo(S,sf_get_instance_specialization(),infoStruct,1);
if (chartIsInlinable) {
sf_mark_chart_reusable_outputs(S,sf_get_instance_specialization(),
infoStruct,1,2);
}
{
unsigned int outPortIdx;
for (outPortIdx=1; outPortIdx<=2; ++outPortIdx) {
ssSetOutputPortOptimizeInIR(S, outPortIdx, 1U);
}
}
sf_set_rtw_dwork_info(S,sf_get_instance_specialization(),infoStruct,1);
ssSetHasSubFunctions(S,!(chartIsInlinable));
ssSetCallsOutputInInitFcn(S,1);
} else {
}
ssSetOptions(S,ssGetOptions(S)|SS_OPTION_WORKS_WITH_CODE_REUSE);
ssSetChecksum0(S,(3676614977U));
ssSetChecksum1(S,(2993289601U));
ssSetChecksum2(S,(3118278023U));
ssSetChecksum3(S,(1837160273U));
ssSetNumContStates(S,6);
ssSetExplicitFCSSCtrl(S,1);
ssSupportsMultipleExecInstances(S,1);
}
开发者ID:exodaniel,项目名称:Vitrified-Code,代码行数:43,代码来源:c1_newtons_cradle.c
示例7: mdlSetWorkWidths_c2_TischMal2
static void mdlSetWorkWidths_c2_TischMal2(SimStruct *S)
{
if (sim_mode_is_rtw_gen(S) || sim_mode_is_external(S)) {
mxArray *infoStruct = load_TischMal2_optimization_info();
int_T chartIsInlinable =
(int_T)sf_is_chart_inlinable(S,sf_get_instance_specialization(),infoStruct,
2);
ssSetStateflowIsInlinable(S,chartIsInlinable);
ssSetRTWCG(S,sf_rtw_info_uint_prop(S,sf_get_instance_specialization(),
infoStruct,2,"RTWCG"));
ssSetEnableFcnIsTrivial(S,1);
ssSetDisableFcnIsTrivial(S,1);
ssSetNotMultipleInlinable(S,sf_rtw_info_uint_prop(S,
sf_get_instance_specialization(),infoStruct,2,
"gatewayCannotBeInlinedMultipleTimes"));
if (chartIsInlinable) {
ssSetInputPortOptimOpts(S, 0, SS_REUSABLE_AND_LOCAL);
ssSetInputPortOptimOpts(S, 1, SS_REUSABLE_AND_LOCAL);
ssSetInputPortOptimOpts(S, 2, SS_REUSABLE_AND_LOCAL);
ssSetInputPortOptimOpts(S, 3, SS_REUSABLE_AND_LOCAL);
ssSetInputPortOptimOpts(S, 4, SS_REUSABLE_AND_LOCAL);
ssSetInputPortOptimOpts(S, 5, SS_REUSABLE_AND_LOCAL);
ssSetInputPortOptimOpts(S, 6, SS_REUSABLE_AND_LOCAL);
sf_mark_chart_expressionable_inputs(S,sf_get_instance_specialization(),
infoStruct,2,7);
sf_mark_chart_reusable_outputs(S,sf_get_instance_specialization(),
infoStruct,2,1);
}
sf_set_rtw_dwork_info(S,sf_get_instance_specialization(),infoStruct,2);
ssSetHasSubFunctions(S,!(chartIsInlinable));
} else {
}
ssSetOptions(S,ssGetOptions(S)|SS_OPTION_WORKS_WITH_CODE_REUSE);
ssSetChecksum0(S,(2703944394U));
ssSetChecksum1(S,(2350489608U));
ssSetChecksum2(S,(317306067U));
ssSetChecksum3(S,(3079552289U));
ssSetmdlDerivatives(S, NULL);
ssSetExplicitFCSSCtrl(S,1);
}
开发者ID:Hexren,项目名称:WS2012_MT,代码行数:42,代码来源:c2_TischMal2.c
示例8: mdlSetWorkWidths_c2_dsm_demo
static void mdlSetWorkWidths_c2_dsm_demo(SimStruct *S)
{
if (sim_mode_is_rtw_gen(S) || sim_mode_is_external(S)) {
mxArray *infoStruct = load_dsm_demo_optimization_info();
int_T chartIsInlinable =
(int_T)sf_is_chart_inlinable(S,sf_get_instance_specialization(),infoStruct,
2);
ssSetStateflowIsInlinable(S,chartIsInlinable);
ssSetRTWCG(S,sf_rtw_info_uint_prop(S,sf_get_instance_specialization(),
infoStruct,2,"RTWCG"));
ssSetEnableFcnIsTrivial(S,1);
ssSetDisableFcnIsTrivial(S,1);
ssSetNotMultipleInlinable(S,sf_rtw_info_uint_prop(S,
sf_get_instance_specialization(),infoStruct,2,
"gatewayCannotBeInlinedMultipleTimes"));
sf_update_buildInfo(S,sf_get_instance_specialization(),infoStruct,2);
if (chartIsInlinable) {
sf_mark_chart_reusable_outputs(S,sf_get_instance_specialization(),
infoStruct,2,1);
}
{
unsigned int outPortIdx;
for (outPortIdx=1; outPortIdx<=1; ++outPortIdx) {
ssSetOutputPortOptimizeInIR(S, outPortIdx, 1U);
}
}
sf_set_rtw_dwork_info(S,sf_get_instance_specialization(),infoStruct,2);
ssSetHasSubFunctions(S,!(chartIsInlinable));
} else {
}
ssSetOptions(S,ssGetOptions(S)|SS_OPTION_WORKS_WITH_CODE_REUSE);
ssSetChecksum0(S,(2275359546U));
ssSetChecksum1(S,(2739221388U));
ssSetChecksum2(S,(3417375692U));
ssSetChecksum3(S,(2401576303U));
ssSetmdlDerivatives(S, NULL);
ssSetExplicitFCSSCtrl(S,1);
ssSupportsMultipleExecInstances(S,0);
}
开发者ID:wenchen0407,项目名称:NPPwireless,代码行数:42,代码来源:c2_dsm_demo.c
示例9: mdlSetWorkWidths_c2_object_tracker_intensity
static void mdlSetWorkWidths_c2_object_tracker_intensity(SimStruct *S)
{
if(sim_mode_is_rtw_gen(S)) {
int_T chartIsInlinable =
(int_T)sf_is_chart_inlinable("object_tracker_intensity",2);
ssSetStateflowIsInlinable(S,chartIsInlinable);
ssSetEnableFcnIsTrivial(S,1);
ssSetDisableFcnIsTrivial(S,1);
ssSetNotMultipleInlinable(S,sf_rtw_info_uint_prop("object_tracker_intensity",2,"gatewayCannotBeInlinedMultipleTimes"));
if(chartIsInlinable) {
ssSetInputPortOptimOpts(S, 0, SS_REUSABLE_AND_LOCAL);
ssSetInputPortOptimOpts(S, 1, SS_REUSABLE_AND_LOCAL);
ssSetInputPortOptimOpts(S, 2, SS_REUSABLE_AND_LOCAL);
ssSetInputPortOptimOpts(S, 3, SS_REUSABLE_AND_LOCAL);
sf_mark_chart_expressionable_inputs(S,"object_tracker_intensity",2,4);
sf_mark_chart_reusable_outputs(S,"object_tracker_intensity",2,3);
}
if (!sf_is_chart_instance_optimized_out("object_tracker_intensity",2)) {
int dtId;
char *chartInstanceTypedefName =
sf_chart_instance_typedef_name("object_tracker_intensity",2);
dtId = ssRegisterDataType(S, chartInstanceTypedefName);
if (dtId == INVALID_DTYPE_ID ) return;
/* Register the size of the udt */
if (!ssSetDataTypeSize(S, dtId, 8)) return;
if(!ssSetNumDWork(S,1)) return;
ssSetDWorkDataType(S, 0, dtId);
ssSetDWorkWidth(S, 0, 1);
ssSetDWorkName(S, 0, "ChartInstance"); /*optional name, less than 16 chars*/
sf_set_rtw_identifier(S);
}
ssSetHasSubFunctions(S,!(chartIsInlinable));
ssSetOptions(S,ssGetOptions(S)|SS_OPTION_WORKS_WITH_CODE_REUSE);
}
ssSetChecksum0(S,(1312153194U));
ssSetChecksum1(S,(1014398065U));
ssSetChecksum2(S,(1024726701U));
ssSetChecksum3(S,(2475745997U));
ssSetExplicitFCSSCtrl(S,1);
}
开发者ID:fnasim,项目名称:FYP,代码行数:42,代码来源:c2_object_tracker_intensity.c
示例10: mdlSetWorkWidths_c3_canudas_goal3
static void mdlSetWorkWidths_c3_canudas_goal3(SimStruct *S)
{
if (sim_mode_is_rtw_gen(S) || sim_mode_is_external(S)) {
mxArray *infoStruct = load_canudas_goal3_optimization_info();
int_T chartIsInlinable =
(int_T)sf_is_chart_inlinable(S,sf_get_instance_specialization(),infoStruct,
3);
ssSetStateflowIsInlinable(S,chartIsInlinable);
ssSetRTWCG(S,sf_rtw_info_uint_prop(S,sf_get_instance_specialization(),
infoStruct,3,"RTWCG"));
ssSetEnableFcnIsTrivial(S,1);
ssSetDisableFcnIsTrivial(S,1);
ssSetNotMultipleInlinable(S,sf_rtw_info_uint_prop(S,
sf_get_instance_specialization(),infoStruct,3,
"gatewayCannotBeInlinedMultipleTimes"));
if (chartIsInlinable) {
ssSetInputPortOptimOpts(S, 0, SS_REUSABLE_AND_LOCAL);
ssSetInputPortOptimOpts(S, 1, SS_REUSABLE_AND_LOCAL);
ssSetInputPortOptimOpts(S, 2, SS_REUSABLE_AND_LOCAL);
ssSetInputPortOptimOpts(S, 3, SS_REUSABLE_AND_LOCAL);
ssSetInputPortOptimOpts(S, 4, SS_REUSABLE_AND_LOCAL);
ssSetInputPortOptimOpts(S, 5, SS_REUSABLE_AND_LOCAL);
sf_mark_chart_expressionable_inputs(S,sf_get_instance_specialization(),
infoStruct,3,6);
sf_mark_chart_reusable_outputs(S,sf_get_instance_specialization(),
infoStruct,3,2);
}
sf_set_rtw_dwork_info(S,sf_get_instance_specialization(),infoStruct,3);
ssSetHasSubFunctions(S,!(chartIsInlinable));
} else {
}
ssSetOptions(S,ssGetOptions(S)|SS_OPTION_WORKS_WITH_CODE_REUSE);
ssSetChecksum0(S,(2852721358U));
ssSetChecksum1(S,(1942872837U));
ssSetChecksum2(S,(3261122160U));
ssSetChecksum3(S,(431929395U));
ssSetmdlDerivatives(S, NULL);
ssSetExplicitFCSSCtrl(S,1);
ssSupportsMultipleExecInstances(S,1);
}
开发者ID:OneTwoSteph,项目名称:Work,代码行数:42,代码来源:c3_canudas_goal3.c
示例11: mdlSetWorkWidths_c1_Qmod
static void mdlSetWorkWidths_c1_Qmod(SimStruct *S)
{
if (sim_mode_is_rtw_gen(S) || sim_mode_is_external(S)) {
mxArray *infoStruct = load_Qmod_optimization_info();
int_T chartIsInlinable =
(int_T)sf_is_chart_inlinable(S,sf_get_instance_specialization(),infoStruct,
1);
ssSetStateflowIsInlinable(S,chartIsInlinable);
ssSetRTWCG(S,sf_rtw_info_uint_prop(S,sf_get_instance_specialization(),
infoStruct,1,"RTWCG"));
ssSetEnableFcnIsTrivial(S,1);
ssSetDisableFcnIsTrivial(S,1);
ssSetNotMultipleInlinable(S,sf_rtw_info_uint_prop(S,
sf_get_instance_specialization(),infoStruct,1,
"gatewayCannotBeInlinedMultipleTimes"));
if (chartIsInlinable) {
ssSetInputPortOptimOpts(S, 0, SS_REUSABLE_AND_LOCAL);
ssSetInputPortOptimOpts(S, 1, SS_REUSABLE_AND_LOCAL);
ssSetInputPortOptimOpts(S, 2, SS_REUSABLE_AND_LOCAL);
ssSetInputPortOptimOpts(S, 3, SS_REUSABLE_AND_LOCAL);
ssSetInputPortOptimOpts(S, 4, SS_REUSABLE_AND_LOCAL);
sf_mark_chart_expressionable_inputs(S,sf_get_instance_specialization(),
infoStruct,1,5);
sf_mark_chart_reusable_outputs(S,sf_get_instance_specialization(),
infoStruct,1,1);
}
sf_set_rtw_dwork_info(S,sf_get_instance_specialization(),infoStruct,1);
ssSetHasSubFunctions(S,!(chartIsInlinable));
} else {
}
ssSetOptions(S,ssGetOptions(S)|SS_OPTION_WORKS_WITH_CODE_REUSE);
ssSetChecksum0(S,(1460112325U));
ssSetChecksum1(S,(1651969882U));
ssSetChecksum2(S,(4063948794U));
ssSetChecksum3(S,(4127454521U));
ssSetmdlDerivatives(S, NULL);
ssSetExplicitFCSSCtrl(S,1);
}
开发者ID:Gabrieldelacal,项目名称:PFC,代码行数:40,代码来源:c1_Qmod.c
示例12: mdlSetWorkWidths_c9_testing_control_with_estimate
static void mdlSetWorkWidths_c9_testing_control_with_estimate(SimStruct *S)
{
if (sim_mode_is_rtw_gen(S) || sim_mode_is_external(S)) {
mxArray *infoStruct = load_testing_control_with_estimate_optimization_info();
int_T chartIsInlinable =
(int_T)sf_is_chart_inlinable(S,sf_get_instance_specialization(),infoStruct,
9);
ssSetStateflowIsInlinable(S,chartIsInlinable);
ssSetRTWCG(S,sf_rtw_info_uint_prop(S,sf_get_instance_specialization(),
infoStruct,9,"RTWCG"));
ssSetEnableFcnIsTrivial(S,1);
ssSetDisableFcnIsTrivial(S,1);
ssSetNotMultipleInlinable(S,sf_rtw_info_uint_prop(S,
sf_get_instance_specialization(),infoStruct,9,
"gatewayCannotBeInlinedMultipleTimes"));
if (chartIsInlinable) {
ssSetInputPortOptimOpts(S, 0, SS_REUSABLE_AND_LOCAL);
ssSetInputPortOptimOpts(S, 1, SS_REUSABLE_AND_LOCAL);
ssSetInputPortOptimOpts(S, 2, SS_REUSABLE_AND_LOCAL);
ssSetInputPortOptimOpts(S, 3, SS_REUSABLE_AND_LOCAL);
sf_mark_chart_expressionable_inputs(S,sf_get_instance_specialization(),
infoStruct,9,4);
sf_mark_chart_reusable_outputs(S,sf_get_instance_specialization(),
infoStruct,9,3);
}
sf_set_rtw_dwork_info(S,sf_get_instance_specialization(),infoStruct,9);
ssSetHasSubFunctions(S,!(chartIsInlinable));
} else {
}
ssSetOptions(S,ssGetOptions(S)|SS_OPTION_WORKS_WITH_CODE_REUSE);
ssSetChecksum0(S,(2904769763U));
ssSetChecksum1(S,(1517947318U));
ssSetChecksum2(S,(764197135U));
ssSetChecksum3(S,(173325544U));
ssSetmdlDerivatives(S, NULL);
ssSetExplicitFCSSCtrl(S,1);
}
开发者ID:drivkin,项目名称:Motor-simulation-and-reading,代码行数:39,代码来源:c9_testing_control_with_estimate.c
示例13: mdlSetWorkWidths_c1_my_demo_ref
static void mdlSetWorkWidths_c1_my_demo_ref(SimStruct *S)
{
if (sim_mode_is_rtw_gen(S) || sim_mode_is_external(S)) {
mxArray *infoStruct = load_my_demo_ref_optimization_info();
int_T chartIsInlinable =
(int_T)sf_is_chart_inlinable(S,sf_get_instance_specialization(),infoStruct,
1);
ssSetStateflowIsInlinable(S,chartIsInlinable);
ssSetRTWCG(S,sf_rtw_info_uint_prop(S,sf_get_instance_specialization(),
infoStruct,1,"RTWCG"));
ssSetEnableFcnIsTrivial(S,1);
ssSetDisableFcnIsTrivial(S,1);
ssSetNotMultipleInlinable(S,sf_rtw_info_uint_prop(S,
sf_get_instance_specialization(),infoStruct,1,
"gatewayCannotBeInlinedMultipleTimes"));
if (chartIsInlinable) {
ssSetInputPortOptimOpts(S, 0, SS_REUSABLE_AND_LOCAL);
ssSetInputPortOptimOpts(S, 1, SS_REUSABLE_AND_LOCAL);
ssSetInputPortOptimOpts(S, 2, SS_REUSABLE_AND_LOCAL);
sf_mark_chart_expressionable_inputs(S,sf_get_instance_specialization(),
infoStruct,1,3);
sf_mark_chart_reusable_outputs(S,sf_get_instance_specialization(),
infoStruct,1,3);
}
sf_set_rtw_dwork_info(S,sf_get_instance_specialization(),infoStruct,1);
ssSetHasSubFunctions(S,!(chartIsInlinable));
} else {
}
ssSetOptions(S,ssGetOptions(S)|SS_OPTION_WORKS_WITH_CODE_REUSE);
ssSetChecksum0(S,(441543960U));
ssSetChecksum1(S,(1223929666U));
ssSetChecksum2(S,(469679651U));
ssSetChecksum3(S,(51121752U));
ssSetmdlDerivatives(S, NULL);
ssSetExplicitFCSSCtrl(S,1);
ssSupportsMultipleExecInstances(S,1);
}
开发者ID:OneTwoSteph,项目名称:Work,代码行数:39,代码来源:c1_my_demo_ref.c
示例14: mdlSetWorkWidths_c1_motor_control_with_off_the_shelf_SVPWM
static void mdlSetWorkWidths_c1_motor_control_with_off_the_shelf_SVPWM(SimStruct
*S)
{
if (sim_mode_is_rtw_gen(S) || sim_mode_is_external(S)) {
mxArray *infoStruct =
load_motor_control_with_off_the_shelf_SVPWM_optimization_info();
int_T chartIsInlinable =
(int_T)sf_is_chart_inlinable(S,sf_get_instance_specialization(),infoStruct,
1);
ssSetStateflowIsInlinable(S,chartIsInlinable);
ssSetRTWCG(S,sf_rtw_info_uint_prop(S,sf_get_instance_specialization(),
infoStruct,1,"RTWCG"));
ssSetEnableFcnIsTrivial(S,1);
ssSetDisableFcnIsTrivial(S,1);
ssSetNotMultipleInlinable(S,sf_rtw_info_uint_prop(S,
sf_get_instance_specialization(),infoStruct,1,
"gatewayCannotBeInlinedMultipleTimes"));
if (chartIsInlinable) {
ssSetInputPortOptimOpts(S, 0, SS_REUSABLE_AND_LOCAL);
ssSetInputPortOptimOpts(S, 1, SS_REUSABLE_AND_LOCAL);
sf_mark_chart_expressionable_inputs(S,sf_get_instance_specialization(),
infoStruct,1,2);
sf_mark_chart_reusable_outputs(S,sf_get_instance_specialization(),
infoStruct,1,2);
}
sf_set_rtw_dwork_info(S,sf_get_instance_specialization(),infoStruct,1);
ssSetHasSubFunctions(S,!(chartIsInlinable));
} else {
}
ssSetOptions(S,ssGetOptions(S)|SS_OPTION_WORKS_WITH_CODE_REUSE);
ssSetChecksum0(S,(1032461412U));
ssSetChecksum1(S,(3210718289U));
ssSetChecksum2(S,(2277137192U));
ssSetChecksum3(S,(4020210864U));
ssSetmdlDerivatives(S, NULL);
ssSetExplicitFCSSCtrl(S,1);
}
开发者ID:drivkin,项目名称:Motor-simulation-and-reading,代码行数:39,代码来源:c1_motor_control_with_off_the_shelf_SVPWM.c
示例15: mdlSetWorkWidths_c6_motor_control
static void mdlSetWorkWidths_c6_motor_control(SimStruct *S)
{
if (sim_mode_is_rtw_gen(S) || sim_mode_is_external(S)) {
mxArray *infoStruct = load_motor_control_optimization_info();
int_T chartIsInlinable =
(int_T)sf_is_chart_inlinable(S,sf_get_instance_specialization(),infoStruct,
6);
ssSetStateflowIsInlinable(S,chartIsInlinable);
ssSetRTWCG(S,sf_rtw_info_uint_prop(S,sf_get_instance_specialization(),
infoStruct,6,"RTWCG"));
ssSetEnableFcnIsTrivial(S,1);
ssSetDisableFcnIsTrivial(S,1);
ssSetNotMultipleInlinable(S,sf_rtw_info_uint_prop(S,
sf_get_instance_specialization(),infoStruct,6,
"gatewayCannotBeInlinedMultipleTimes"));
if (chartIsInlinable) {
ssSetInputPortOptimOpts(S, 0, SS_REUSABLE_AND_LOCAL);
ssSetInputPortOptimOpts(S, 1, SS_REUSABLE_AND_LOCAL);
ssSetInputPortOptimOpts(S, 2, SS_REUSABLE_AND_LOCAL);
sf_mark_chart_expressionable_inputs(S,sf_get_instance_specialization(),
infoStruct,6,3);
sf_mark_chart_reusable_outputs(S,sf_get_instance_specialization(),
infoStruct,6,2);
}
sf_set_rtw_dwork_info(S,sf_get_instance_specialization(),infoStruct,6);
ssSetHasSubFunctions(S,!(chartIsInlinable));
} else {
}
ssSetOptions(S,ssGetOptions(S)|SS_OPTION_WORKS_WITH_CODE_REUSE);
ssSetChecksum0(S,(2261216370U));
ssSetChecksum1(S,(1721883125U));
ssSetChecksum2(S,(326060995U));
ssSetChecksum3(S,(336222177U));
ssSetmdlDerivatives(S, NULL);
ssSetExplicitFCSSCtrl(S,1);
}
开发者ID:drivkin,项目名称:Motor-simulation-and-reading,代码行数:38,代码来源:c6_motor_control.c
示例16: mdlSetWorkWidths_c32_ArregloSeisPorSeis
static void mdlSetWorkWidths_c32_ArregloSeisPorSeis(SimStruct *S)
{
if (sim_mode_is_rtw_gen(S) || sim_mode_is_external(S)) {
mxArray *infoStruct = load_ArregloSeisPorSeis_optimization_info();
int_T chartIsInlinable =
(int_T)sf_is_chart_inlinable(S,sf_get_instance_specialization(),infoStruct,
32);
ssSetStateflowIsInlinable(S,chartIsInlinable);
ssSetRTWCG(S,sf_rtw_info_uint_prop(S,sf_get_instance_specialization(),
infoStruct,32,"RTWCG"));
ssSetEnableFcnIsTrivial(S,1);
ssSetDisableFcnIsTrivial(S,1);
ssSetNotMultipleInlinable(S,sf_rtw_info_uint_prop(S,
sf_get_instance_specialization(),infoStruct,32,
"gatewayCannotBeInlinedMultipleTimes"));
if (chartIsInlinable) {
ssSetInputPortOptimOpts(S, 0, SS_REUSABLE_AND_LOCAL);
ssSetInputPortOptimOpts(S, 1, SS_REUSABLE_AND_LOCAL);
ssSetInputPortOptimOpts(S, 2, SS_REUSABLE_AND_LOCAL);
sf_mark_chart_expressionable_inputs(S,sf_get_instance_specialization(),
infoStruct,32,3);
sf_mark_chart_reusable_outputs(S,sf_get_instance_specialization(),
infoStruct,32,1);
}
sf_set_rtw_dwork_info(S,sf_get_instance_specialization(),infoStruct,32);
ssSetHasSubFunctions(S,!(chartIsInlinable));
} else {
}
ssSetOptions(S,ssGetOptions(S)|SS_OPTION_WORKS_WITH_CODE_REUSE);
ssSetChecksum0(S,(2281720516U));
ssSetChecksum1(S,(4132229721U));
ssSetChecksum2(S,(175296108U));
ssSetChecksum3(S,(991465833U));
ssSetmdlDerivatives(S, NULL);
ssSetExplicitFCSSCtrl(S,1);
}
开发者ID:DavidDeYong,项目名称:Partial-Shading,代码行数:38,代码来源:c32_ArregloSeisPorSeis.c
示例17: mdlSetWorkWidths_c19_adcs_v15_integral_Power_nom
static void mdlSetWorkWidths_c19_adcs_v15_integral_Power_nom(SimStruct *S)
{
if (sim_mode_is_rtw_gen(S) || sim_mode_is_external(S)) {
int_T chartIsInlinable =
(int_T)sf_is_chart_inlinable("adcs_v15_integral_Power_nom",
"adcs_v15_integral_Power_nom",19);
ssSetStateflowIsInlinable(S,chartIsInlinable);
ssSetRTWCG(S,sf_rtw_info_uint_prop("adcs_v15_integral_Power_nom",
"adcs_v15_integral_Power_nom",19,"RTWCG"));
ssSetEnableFcnIsTrivial(S,1);
ssSetDisableFcnIsTrivial(S,1);
ssSetNotMultipleInlinable(S,sf_rtw_info_uint_prop(
"adcs_v15_integral_Power_nom","adcs_v15_integral_Power_nom",19,
"gatewayCannotBeInlinedMultipleTimes"));
if (chartIsInlinable) {
ssSetInputPortOptimOpts(S, 0, SS_REUSABLE_AND_LOCAL);
ssSetInputPortOptimOpts(S, 1, SS_REUSABLE_AND_LOCAL);
sf_mark_chart_expressionable_inputs(S,"adcs_v15_integral_Power_nom",
"adcs_v15_integral_Power_nom",19,2);
sf_mark_chart_reusable_outputs(S,"adcs_v15_integral_Power_nom",
"adcs_v15_integral_Power_nom",19,4);
}
sf_set_rtw_dwork_info(S,"adcs_v15_integral_Power_nom",
"adcs_v15_integral_Power_nom",19);
ssSetHasSubFunctions(S,!(chartIsInlinable));
ssSetOptions(S,ssGetOptions(S)|SS_OPTION_WORKS_WITH_CODE_REUSE);
} else {
sf_set_sfun_dwork_info(S);
}
ssSetChecksum0(S,(2325183243U));
ssSetChecksum1(S,(1124782313U));
ssSetChecksum2(S,(3778958781U));
ssSetChecksum3(S,(3844299426U));
ssSetmdlDerivatives(S, NULL);
ssSetExplicitFCSSCtrl(S,1);
}
开发者ID:avnishks,项目名称:pratham,代码行数:38,代码来源:c19_adcs_v15_integral_Power_nom.c
示例18: mdlSetWorkWidths_c22_BuckBoost1
static void mdlSetWorkWidths_c22_BuckBoost1(SimStruct *S)
{
if (sim_mode_is_rtw_gen(S) || sim_mode_is_external(S)) {
mxArray *infoStruct = load_BuckBoost1_optimization_info();
int_T chartIsInlinable =
(int_T)sf_is_chart_inlinable(S,sf_get_instance_specialization(),infoStruct,
22);
ssSetStateflowIsInlinable(S,chartIsInlinable);
ssSetRTWCG(S,sf_rtw_info_uint_prop(S,sf_get_instance_specialization(),
infoStruct,22,"RTWCG"));
ssSetEnableFcnIsTrivial(S,1);
ssSetDisableFcnIsTrivial(S,1);
ssSetNotMultipleInlinable(S,sf_rtw_info_uint_prop(S,
sf_get_instance_specialization(),infoStruct,22,
"gatewayCannotBeInlinedMultipleTimes"));
if (chartIsInlinable) {
ssSetInputPortOptimOpts(S, 0, SS_REUSABLE_AND_LOCAL);
ssSetInputPortOptimOpts(S, 1, SS_REUSABLE_AND_LOCAL);
sf_mark_chart_expressionable_inputs(S,sf_get_instance_specialization(),
infoStruct,22,2);
sf_mark_chart_reusable_outputs(S,sf_get_instance_specialization(),
infoStruct,22,1);
}
sf_set_rtw_dwork_info(S,sf_get_instance_specialization(),infoStruct,22);
ssSetHasSubFunctions(S,!(chartIsInlinable));
} else {
}
ssSetOptions(S,ssGetOptions(S)|SS_OPTION_WORKS_WITH_CODE_REUSE);
ssSetChecksum0(S,(267763240U));
ssSetChecksum1(S,(3954787250U));
ssSetChecksum2(S,(2831216229U));
ssSetChecksum3(S,(913185255U));
ssSetmdlDerivatives(S, NULL);
ssSetExplicitFCSSCtrl(S,1);
ssSupportsMultipleExecInstances(S,1);
}
开发者ID:harriwijaya,项目名称:sys_id_cond_mon,代码行数:38,代码来源:c22_BuckBoost1.c
示例19: mdlSetWorkWidths_c31_adcs_v15_integral_Power_dist
static void mdlSetWorkWidths_c31_adcs_v15_integral_Power_dist(SimStruct *S)
{
if (sim_mode_is_rtw_gen(S) || sim_mode_is_external(S)) {
int_T chartIsInlinable =
(int_T)sf_is_chart_inlinable("adcs_v15_integral_Power_dist",
"adcs_v15_integral_Power_dist",31);
ssSetStateflowIsInlinable(S,chartIsInlinable);
ssSetRTWCG(S,sf_rtw_info_uint_prop("adcs_v15_integral_Power_dist",
"adcs_v15_integral_Power_dist",31,"RTWCG"));
ssSetEnableFcnIsTrivial(S,1);
ssSetDisableFcnIsTrivial(S,1);
ssSetNotMultipleInlinable(S,sf_rtw_info_uint_prop(
"adcs_v15_integral_Power_dist","adcs_v15_integral_Power_dist",31,
"gatewayCannotBeInlinedMultipleTimes"));
if (chartIsInlinable) {
ssSetInputPortOptimOpts(S, 0, SS_REUSABLE_AND_LOCAL);
ssSetInputPortOptimOpts(S, 1, SS_REUSABLE_AND_LOCAL);
sf_mark_chart_expressionable_inputs(S,"adcs_v15_integral_Power_dist",
"adcs_v15_integral_Power_dist",31,2);
sf_mark_chart_reusable_outputs(S,"adcs_v15_integral_Power_dist",
"adcs_v15_integral_Power_dist",31,1);
}
sf_set_rtw_dwork_info(S,"adcs_v15_integral_Power_dist",
"adcs_v15_integral_Power_dist",31);
ssSetHasSubFunctions(S,!(chartIsInlinable));
ssSetOptions(S,ssGetOptions(S)|SS_OPTION_WORKS_WITH_CODE_REUSE);
} else {
sf_set_sfun_dwork_info(S);
}
ssSetChecksum0(S,(879351951U));
ssSetChecksum1(S,(3790118364U));
ssSetChecksum2(S,(4250711417U));
ssSetChecksum3(S,(1688137038U));
ssSetmdlDerivatives(S, NULL);
ssSetExplicitFCSSCtrl(S,1);
}
开发者ID:avnishks,项目名称:pratham,代码行数:38,代码来源:c31_adcs_v15_integral_Power_dist.c
示例20: mdlSetWorkWidths_c1_QPSK_Transmit_v5_w_FIFO
static void mdlSetWorkWidths_c1_QPSK_Transmit_v5_w_FIFO(SimStruct *S)
{
if (sim_mode_is_rtw_gen(S) || sim_mode_is_external(S)) {
mxArray *infoStruct = load_QPSK_Transmit_v5_w_FIFO_optimization_info();
int_T chartIsInlinable =
(int_T)sf_is_chart_inlinable(S,sf_get_instance_specialization(),infoStruct,
1);
ssSetStateflowIsInlinable(S,chartIsInlinable);
ssSetRTWCG(S,sf_rtw_info_uint_prop(S,sf_get_instance_specialization(),
infoStruct,1,"RTWCG"));
ssSetEnableFcnIsTrivial(S,1);
ssSetDisableFcnIsTrivial(S,1);
ssSetNotMultipleInlinable(S,sf_rtw_info_uint_prop(S,
sf_get_instance_specialization(),infoStruct,1,
"gatewayCannotBeInlinedMultipleTimes"));
if (chartIsInlinable) {
ssSetInputPortOptimOpts(S, 0, SS_REUSABLE_AND_LOCAL);
sf_mark_chart_expressionable_inputs(S,sf_get_instance_specialization(),
infoStruct,1,1);
sf_mark_chart_reusable_outputs(S,sf_get_instance_specialization(),
infoStruct,1,1);
}
sf_set_rtw_dwork_info(S,sf_get_instance_specialization(),infoStruct,1);
ssSetHasSubFunctions(S,!(chartIsInlinable));
} else {
}
ssSetOptions(S,ssGetOptions(S)|SS_OPTION_WORKS_WITH_CODE_REUSE);
ssSetChecksum0(S,(1382727465U));
ssSetChecksum1(S,(1826769868U));
ssSetChecksum2(S,(2925688491U));
ssSetChecksum3(S,(2188971603U));
ssSetmdlDerivatives(S, NULL);
ssSetExplicitFCSSCtrl(S,1);
ssSupportsMultipleExecInstances(S,1);
}
开发者ID:gnanjundiah,项目名称:capstone,代码行数:37,代码来源:c1_QPSK_Transmit_v5_w_FIFO.c
注:本文中的sf_mark_chart_reusable_outputs函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论