LabVIEW for LEGO MINDSTORMS and LabVIEW for Education

cancel
Showing results for 
Search instead for 
Did you mean: 

Matlab in Labview for NXT

Hello, II'm running into an error when I try to compile my program for the NXT.  My ultimate goal is to get an array of a snapshot from a USB camera everytime the touch sensor is bumped.

To begin with, I am currently usng the 8.2 evaluation copy with MATLAB 7.0.  The ability to take the snapshot is from the MATLAB script VFM ( http://www.isr.ist.utl.pt/~alex/Resources/vfm/).

So what I have done to test out just getting the picture to show up is create a infinite while loop, put in the touch sensor taking the "yes/no" boolean into a converter to get a 1 or 0, and feed it into an input of a MATLAB script node.  The MATLAB code is then "if(x=1) vfm('grab', 1);"

Whenever I try to compile using the NXT terminal I get the error: ERROR: "An error occurred during parsing. Node was unable to be parsed. ((Class: ScriptNode)  (VI: Untitled 3))"

Removing all the rest of the Labview components and just have a MATLAB scriptnode with "x=1;" I still get the error.  And in an attempt to rule out everything else, I tried to compile when there was nothing in the MATLAB scriptnode...same error.  Curious still, I tried to compile when I had a Xmath scriptnode and same error.
0 Kudos
Message 1 of 5
(7,911 Views)
the matlab node will not run on the nxt !
greetings from the Netherlands
0 Kudos
Message 2 of 5
(7,907 Views)
Rather than trying to compile for the NXT, you could use the direct command palette to upload the data to the PC and run the matlab script node from there.

- john
0 Kudos
Message 3 of 5
(7,866 Views)
Yes I stumbled upon the blocks a long time, actually a day after I originally posted and I now have everything working together very nicely.  Must say I'm really impressed by how well these two components come together, especially with the design problem I am currently undertaking.  Thank you though.
0 Kudos
Message 4 of 5
(7,863 Views)
ive been playing around with a similar type of problem (integrating matlab and labview nxt for image analysis) for a pet project of mine. Could you send me the link for some of the blocks that you found?
 
 
cheers,

Message Edited by jonnydoe on 03-06-2007 08:12 AM

0 Kudos
Message 5 of 5
(7,852 Views)