10-18-2011 11:13 PM
Hello,
I have trouble in deploying XNET into RT. My laptop has installed labivew 2010 and Veristand 2011. When I was trying to deploy a simple application with XNET device into PXI-8106. An unknown error was encountered:
ossible reason(s):
=========================
NI VeriStand: Open VI Reference in Custom Devices Storage.lvlib:Open Device Reference (HW Interface).vi->Custom Devices Storage.lvlib:Initialize Device (HW Interface).vi->NI VeriStand Engine.lvlib:Initialize Inline Custom Devices.vi->NI VeriStand Engine.lvlib:VeriStand Engine State Machine.vi->NI VeriStand Engine.lvlib:VeriStand Engine.vi->NI VeriStand Engine.lvlib:VeriStand Engine Wrapper (RT).vi<APPEND>
C:\ni-rt\NIVeriStand\XNET\NI-XNET.llb\NI-XNET.vi
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
?Unloading System Definition file...
?Connection with target Controller has been lost.
The monitor of PXI 8106 showed an errow as following:
System error encountered.
Detail:
Error code: 1026
Error message: LabVIEW: VI Reference is invalid
Solved! Go to Solution.
10-20-2011 02:48 PM
Hi,
How did you configure your XNET device in the system definition?
Can you successfully deploy if you use the NIXNET_example database found in C:\Users\Public\Documents\National Instruments\NI-XNET\Examples?
10-20-2011 02:52 PM
falt,
Can you confirm the LabVIEW and VeriStand versions from MAX? You'll need LabVIEW 2011 to use VeriStand 2011.
10-20-2011 10:07 PM - edited 10-20-2011 10:08 PM
unless your building customizations that need to run inside NI VeriStand... You don't need LabVIEW. If your seeing this error when just deploying your project from the NI VeriStand project explorer... Then it doesn't have anything to do with LabVIEW.
I've seen XNET errors thrown on deploy when there was something messed up with the XNET driver. Can you verify XNET is installed? What version is on your host and target? Can you open the xnet database editor and select file -> manage aliases and verify your aliases are correctly configured?
10-28-2011 09:49 AM
I think reason might be:
I am using the CAN card PXI-8461, and that this kind of CAN card is not supported by VS 2010 and VS2011.
10-28-2011 09:53 AM
I have checked the drivers in the PXI, and it has already have the XNET1.1.1 driver, and My host has too.
10-28-2011 10:01 AM
That card uses the legacy NI-CAN driver, not the NI-XNET driver. To use that card with NI-VeriStand, you must enable the legacy NI-CAN support within NI-VeriStand.
I highly recommend upgrading your hardware so you can use the NI-XNET support, but if you cannot do that, you can open up this file on disk "<App Data Dir>\National Instruments\NI VeriStand 20xx\System Explorer\System Explorer.ini"
Make sure there is a section specified with this text "[System Explorer]" and below that write in "NICANSupport = True"
After you do that, you can add an NI-CAN board on the chassis level. When you do that, make sure the baud rate of the port inside the system explorer matches the baud rate of the NI-CAN board in MAX (Tools -> NI-CAN -> RT Hardware configuration)
10-28-2011 10:27 AM
I have followed your suggestion and modify the "System Explorer.ini" but I still cannot see any NI-CAN on chasis as fellowing.
Could you please give me a little detail instruction?
10-28-2011 10:32 AM
Can you paste the full path of the ini file here and attach the ini file?
You will need to restart NI VeriStand
10-28-2011 10:37 AM
The full path is :
C:\Program Files\National Instruments\VeriStand 2010\System Explorer.ini