From a1cfadd5d72e00da8e165a494f0b96e7237d8ce3 Mon Sep 17 00:00:00 2001 From: RuedKamp Date: Mon, 19 Oct 2015 11:12:12 +0200 Subject: [PATCH] -some changes for vxworks --- Compiler/Template/CodegenCpp.tpl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Compiler/Template/CodegenCpp.tpl b/Compiler/Template/CodegenCpp.tpl index 0f0d8b3db87..f2999b67e7a 100644 --- a/Compiler/Template/CodegenCpp.tpl +++ b/Compiler/Template/CodegenCpp.tpl @@ -1919,7 +1919,7 @@ int _tmain(int argc, const _TCHAR* argv[]) { throw std::runtime_error("error initialize"); } - fstream f; + std::fstream f; f.open("output_rt.csv", ios::out); @@ -2316,6 +2316,7 @@ extern "C" void <%modelname%>__FB_Init(<%modelname%>_FB_Init_struct* p) ISimData* simData; //double cycletime = p->instance->cycletime; + double cycletime; getMotionCycle(cycletime); int result = initSimulation(simController, simData, cycletime); @@ -12020,7 +12021,7 @@ VAR_OUTPUT <%outputVars%> END_VAR VAR - cycletime : REAL(0.05); + cycletime : REAL :=0.05; bAlreadyInitialized : BOOL; bErrorOccured : BOOL(FALSE); controller : DWORD;