From: Peter on 19 Feb 2010 10:45 Hi, I would like to compile a small .m function for use as a llb in a LabVIEW vi. I have tried a few things but can't get the thing to work. The code (see below) compiles and crates a dll etc. and I can link to it in LabVIEW, but nothing happens. function [c d] = adder (a,b) c = a + b; d = a - b; Does anyone know if I have to call the function a few times to initialize and run? What input and output should I use if in LabVIEW I'm trying to pass 2D data? The actual function I want to use is a image correlation function but for the moment if I can get the code above to work I'll be able to get the rest to work. Any help is most appreciated, Peter
From: Ashish Uthama on 19 Feb 2010 11:25 On Fri, 19 Feb 2010 10:45:07 -0500, Peter <p.a.sloan(a)bham.ac.uk> wrote: > Hi, > > I would like to compile a small .m function for use as a llb in a > LabVIEW vi. I have tried a few things but can't get the thing to work. > The code (see below) compiles and crates a dll etc. and I can link to it > in LabVIEW, but nothing happens. > > function [c d] = adder (a,b) > c = a + b; > d = a - b; > > Does anyone know if I have to call the function a few times to > initialize and run? What input and output should I use if in LabVIEW I'm > trying to pass 2D data? > > The actual function I want to use is a image correlation function but > for the moment if I can get the code above to work I'll be able to get > the rest to work. > > Any help is most appreciated, > Peter http://www.mathworks.com/support/solutions/en/data/1-6IJZJP/?solution=1-6IJZJP
|
Pages: 1 Prev: adjacency matrix for a graph Next: plotting a piecewise continuous function |