LabVIEW for LEGO MINDSTORMS and LabVIEW for Education

cancel
Showing results for 
Search instead for 
Did you mean: 

Direct Commands : ERROR: Can't open SubVI. (createNXT.vi)

Hi all,

 

I'm running LV 8.5 Student Edition - Toolkit 1 - patch 1.0.1 - FW 1.28

 

When using the Direct Commands I get a comile time error, ERROR: Can't open SubVI. (createNXT.vi).

 

Did a full reinstall of software toolkit patch and mass compile. still get error.

I explicitly named the directory path to the file (createNXT.vi). still get error.

 

I found that the file (createNXT.vi) is password protected, could this be the issue?

 

Any help with this problem would be great.

 

Cheers 

Nick

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

Hello,

 

When exactly do you get this error? Do you get it when trying to run the VI or when trying to save? The file being password protected is as expected because it is a proprietary VI. This simply means that you cannot view and modify the block diagram. It might be helpful if you could post a screenshot of when you get the error.

 

-Zach

0 Kudos
Message 2 of 7
(7,257 Views)

Hey Zach,

 

Thanks for your reply.

 

The error in question occurs when compiling to NXT.

Attached is a screenshot of the vi & error

 

Cheers 

Nick

0 Kudos
Message 3 of 7
(7,247 Views)
I think this looks like a "target" problem.  You are trying to run the DC_Sensor VI on the NXT, but the createNXT VI (and friends) are meant to be run on a computer.  I don't have any of this software currently installed, so hopefully someone else can reply with more information about how to tell the difference between VIs that are meant to be run on the NXT and VIs that should be run on your computer.
------
James Blair
NI R&D
0 Kudos
Message 4 of 7
(7,241 Views)

It looks like your VI is calling the "Direct Mode" subVIs. The Direct Mode VIs should run on desktop only. They all have grey icons.

 

If you need to compile and run your VI on NXT, you need to call the "remote mode" VIs, which all have orange icons.

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

Thanks for that info, wasn't aware that direct commands should only be run on pc.

In saying that, is it possible to use direct comms and have your front panel update as in (compile debug) mode.

 

cheers

Nick

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

Thanks again,

 

Disregard the front panel question.

Tested direct comms running on pc, instead of comiling to nxt, all works fine. Now just to work out what's going on with the sensor values.

 

 

Nick

0 Kudos
Message 7 of 7
(7,220 Views)