LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

access .m values from octave

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?

 

 

0 Kudos
Message 1 of 3
(2,344 Views)

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?

Machine Vision, Robotics, Embedded Systems, Surveillance

www.movimed.com - Custom Imaging Solutions
0 Kudos
Message 2 of 3
(2,325 Views)

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

0 Kudos
Message 3 of 3
(2,318 Views)