Cancel
Showing results for 
Search instead for 
Did you mean: 

MOM_run_postprocess in connection with CSE Simulation

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor

Hello experts,

 

is there a solution to run a second postprocess within a CSE Simulation Post run?

MOM_run_postprocess seems to take no effect within a simulation run.

 

Why do I want to do this?

I would like to use the MOM_run_postprocess to start a prepost, which shall determine some data to use in the simulation.

 

regards

smitti

4 REPLIES 4

Re: MOM_run_postprocess in connection with CSE Simulation

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

Hello
It should be working, at least it works in my case.

But my additional postprocessor which I start with MOM_run_postprocess outputs it's data to separate file (not directly to NC code which is outputted by main postprocessor) - so maybe this is the reason?


It will be easier if you will attach example how do you use MOM_run_postprocess

Marek Pawlus, NCmatic

Development: C#, Tcl/Tk, CSE

Re: MOM_run_postprocess in connection with CSE Simulation

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor

Hello Marek,

 

I start my prepost by calling:

MOM_run_postprocess "$cx_path\CX_prepost.tcl" "$cx_path\CX_prepost.def" "prepost_file.h"

 

It works totally fine, if I post the usual way.

 

I added following line:

MOM_output_to_listing_device "$mom_post_in_simulation - [MOM_run_postprocess "$cx_path\CX_prepost.tcl" "$cx_path\CX_prepost.def" "prepost_file.h"]"

Which gives me in Simulation mode:

CSE - 0

and in pure postprocess:

0 - 1

 

Let me know, if you need more information.

 

regards

smitti

Re: MOM_run_postprocess in connection with CSE Simulation

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

I don't need more information because it works for me Smiley Wink

 

In your sample line of code which you pasted:

MOM_run_postprocess "$cx_path\CX_prepost.tcl" "$cx_path\CX_prepost.def" "prepost_file.h"

 I would normally add also directory for the output file:

MOM_run_postprocess "$cx_path\CX_prepost.tcl" "$cx_path\CX_prepost.def" "$someDir\prepost_file.h"

You can also make use of value returned by MOM_run_postprocess - it gives you information if it was executed successfully or not

 

another hint:

I tried it your way (without directory for ouput file), and NX Log says:
MOM: MOM_run_postprocess does not have valid output directory specified.

Marek Pawlus, NCmatic

Development: C#, Tcl/Tk, CSE

Re: MOM_run_postprocess in connection with CSE Simulation

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor

Thank you,

that's the exact problem.

Learn online





Solution Information