I am using WSTP to connect to Mathematica and get my computation tasks performed via WSTP Link. This connection is initiated with WSOpenArgcArgv. It looks like I am using a command line based Mathematica frontend while invoking Mathematica commands. Can I execute an expression to another Mathematica GUI Window, which is open in the same computer ? May be using CreateLink ?

  • $\begingroup$ It's not fully clear what you are asking. What does it mean to "execute an expression to another Mathematica GUI Window"? What are you trying to achieve, in practical terms? $\endgroup$ – Szabolcs Oct 23 '17 at 19:10
  • $\begingroup$ I have built a frontend for my simulation. Now I want Mathematica to compute and return me the output. Till this it works fine with WSTP. But now I want Mathematica generated 2D and 3D Plots. For this I can export Mathematica returned expressions as an image or 3ds graphics and render that in my application. But for that I need to write a good viewer, and I am too lazy for that. So I want a Manipulate, Plot or Graphics3d or Wolfarm Alpha command to be executed to another Mathematica window which is open in the same computer. Better if I can talk to that frontend via TCP socket $\endgroup$ – Neel Basu Oct 24 '17 at 19:56
  • $\begingroup$ Sorry, I still do not follow. Also, if you merely have a simulation that needs to be accessible from Mathematica, I do not understand why you are not using an installable MathLink program (i.e. why you are not calling C from Mathematica rather than Mathematica from C) $\endgroup$ – Szabolcs Oct 25 '17 at 11:57
  • $\begingroup$ Because I need some initial GUI controls to shape the inputs and I need some other GUI controls to work on intermediate data. It is easier to work with those GUI controls in C++. $\endgroup$ – Neel Basu Oct 25 '17 at 12:14
  • $\begingroup$ Also Manipulate doesn't give enough flexibility of GUI controls, that I can achieve from an external C++ GUI (which is talking to Mathematica over WSTP) $\endgroup$ – Neel Basu Oct 25 '17 at 12:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.