MATRIXx

cancel
Showing results for 
Search instead for 
Did you mean: 

Is C-source files always needed when simulating with UCB?

Hi!

I have a C-file with sensitive information inside. I would like to distribute this to another company and still no let them see the contents of the file. This file is not the only external C-code that is used in the model. Some files will be edited by the other company. Can I in some way only distribute the *.obj-file? I have tried to have the obj-file in the working directory and then remove the source file but then have Xmath complained :
***F*** Could not access file:fadecfiles_AS.c
Error checking contents of new UCB shared library
Does anyone have an answer?

/Torbjörn
0 Kudos
Message 1 of 3
(7,216 Views)
I am not sure how this would work with this version but what one could do in the past is go through and run the simulation so that the code compiles into object code then go back and put an empty file in the directory with the same name as the source file but with a date/time that is older than the object code file. In this way the code will not be recompiled and they can't see the source because the source file you provide is empty. You will have to confirm operation of this yourself and if there are other files that need to be recompiled that it does not recompile all f them but just the ones that change.

Garrett
Garrett Thurston
gthurston@foliage.com
Phone: 781.993.5540
Message 2 of 3
(7,216 Views)
It worked! (Using Mx 6.3)

Thanks a lot for a great answer.

/Torbjörn
0 Kudos
Message 3 of 3
(7,216 Views)