Your printf is probably being directed to the console stdout. If you launch AWE_Server.exe from a Windows command prompt, then run a layout with your custom module you should see the output of your printf in the command prompt.
Alternatively, and perhaps easier, your module can write directly to some file in a known location on your PC.
Since the AWE_Server is still running C code internally, it will output to a C buffer which is *not* sent to matlab. This link explains that:
"Unfortunately MATLAB does not support stdout or stderr. The closest it has is writing to file 1 (sort of like stdout) or file 2 (sort of like stderr). Both file 1 and file 2 will go to wherever the command output is going, such as the command window."
What Axel is saying is that you can go into the AWE_Server directory using cmd.exe in order to see your printf statements. Once you are running the server, you can type awe_init in your matlab console and connect in the same manner as usual. This will link matlab with your awe_server. I'm not sure how easy it would be to get a pin from a custom module set up to output a file buffer. Ambiguous data types and what not...
6:01pm
Your printf is probably being directed to the console stdout. If you launch AWE_Server.exe from a Windows command prompt, then run a layout with your custom module you should see the output of your printf in the command prompt.
Alternatively, and perhaps easier, your module can write directly to some file in a known location on your PC.
Hope this helps
-Axel
6:06pm
In my case, AWE_Server is launched from Matlab, where would stdout go?
thanks,
Eric
6:21pm
Since the AWE_Server is still running C code internally, it will output to a C buffer which is *not* sent to matlab. This link explains that:
"Unfortunately MATLAB does not support stdout or stderr. The closest it has is writing to file 1 (sort of like stdout) or file 2 (sort of like stderr). Both file 1 and file 2 will go to wherever the command output is going, such as the command window."
What Axel is saying is that you can go into the AWE_Server directory using cmd.exe in order to see your printf statements. Once you are running the server, you can type awe_init in your matlab console and connect in the same manner as usual. This will link matlab with your awe_server. I'm not sure how easy it would be to get a pin from a custom module set up to output a file buffer. Ambiguous data types and what not...
-Phil