Skip to content

Commit

Permalink
-some changes for vxworks
Browse files Browse the repository at this point in the history
  • Loading branch information
RuedKamp committed Oct 19, 2015
1 parent 085c2c7 commit a1cfadd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Compiler/Template/CodegenCpp.tpl
Expand Up @@ -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);


Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit a1cfadd

Please sign in to comment.