10-18-2013 08:59 AM
hello everyone,
I am trying to do a project that involves running .m files from labview using octave.
supposing i have a file.m of this kind:
function multiply(value1,value2)
result=value1.*value2;
endfunction
Is there a command that i can send from labview that returns me the value of result without adding a printf of result in my file.m?
10-18-2013 12:37 PM
Without the println, there would be no output of the result, and therefore, LabVIEW would not be able to receive the result.
The Octave to LabVIEW interface is very simple. It does three things.
1. Calls the Octave .m script
2. Passes parameter values to that script
3. Returns the results.
Other than that, there is not other functionality in the interface.
Can I ask why you don't want to use the println?
10-19-2013 09:00 AM
well,i am working with a .m file that is write protected so i cannot modify it and it doesn't have a printf in it..but i have figured out how to do it because the variable that i was interested in from that file is actually a global variable,i just hadn't noticed and so i can just create another .m file that prints in stdout my variable of interest..thank you anyway