From Saturday, Nov 23rd 7:00 PM CST - Sunday, Nov 24th 7:45 AM CST, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW for LEGO MINDSTORMS and LabVIEW for Education

cancel
Showing results for 
Search instead for 
Did you mean: 

Old SubVI's breaking code for microscope

Hi guys,

 

So I'm working on putting together a functioning model atomic force microscope, originally built by students at URI. The University of Utah mechanical engineering lab put up the source code for the microscope written on a module for the 2011 version of LabView, however, in one part of it, the two subvi's "BlueErrorCheck.vi" and "SplitAndCheckNXT.vi" are missing and are causing the code to be broken. I was wondering if any of you know what these functions used to do before they were removed in later versions of LabView (I'm running the 2015 version), or if they had any advice on how to replace them, or fix the code.

 

0 Kudos
Message 1 of 7
(7,123 Views)

Hello,

 

Sorry that there are some missing VIs. I attached the most recent version of those two VIs before they were removed from the source in 2012. Let me know if there are any additional missing dependencies.

 

 

Download All
Message 2 of 7
(7,121 Views)

Thank You! However, unfortunately it doesnt seem as though its as easy as downloading these files. Now it recognizes these subvi's, however, there are now more unrecognized subvis. "InitiateConnection.Proxy.vi" and "NXTUnspecifiedString.vi" are missing. Is this a similar issue?

0 Kudos
Message 3 of 7
(7,117 Views)

These VIs are not ones that user code should depend on directly, and none of them were available on the palettes. Try ignoring the missing dependencies and see what is depending on these VIs.

0 Kudos
Message 4 of 7
(7,112 Views)

SplitAndCheckNXT.vi is depending on these vi's 

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

It looks like SplitAndCheckNXT is doing something related to connecting to your NXT. Does your program still work if you remove the VI? If you use the RCX Object indicator in your program, you could try replacing it with a property node like in the attached VI.

Message 6 of 7
(7,083 Views)

We figured out the problem, the issue seemed to be backwards compatibility between the EV3 and the NXT programmed subvi's.  We tried both BT and USB connections using the EV3 and had no trouble communicating with the Brick using the Mindstorms program or some of the example vi's contained within LabVIEW (i.e. the piano demo). But everytime we tried to use the open-source VI to perform our experiment, we got error codes. The error code, and which subVI threw it, depended upon the communication mode. For instance, using USB one of the Fantom subVI's failed in the FindNXT.vi.

 

We had been under the impression that the EV3 and NXT should be interchangeable as far as the LabVIEW code was concerned. That being said, we swapped in a NXT brick and the old program ran flawlessly. So problem circumvented but not necessarily solved...

0 Kudos
Message 7 of 7
(6,718 Views)