LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

A connection could not be established...

Hi, i am undergraduate junior student who just joined a summer research lab where I need to use labview and fpga; however, all previous members all graduated last semester so there is no one who can teach me labview and what they were doing....(I really need help..)

 

The first problem is whenever i try to run a FPGA code the previous people made, i get :  "A connection could not be established to the specified remote device. Ensure the device is on an accessible over the network, that NI-RIO software is installed, and that the RIO server running and properly configured."

 

In the lab labtop, there are

Labview 2012 SP1 (32 bit), NI-RIO130, Labview Real Time 2012 f1, NI-RIO FPGA driver.... and maybe some files I can't find in this messy disordered labtop.

I have CRIO-9113, NI-CRIO9022, NI-9234, NI-9269 (all four are connected, and power is green on and connected to this labtio.)

 

Later, i found same probelm when I try to add device on  Project Explorer (FPGA Target -> new -> c series module ->  "A connection could not be established to the specified remote device. Ensure the device is on an accessible over the network, that NI-RIO software is installed, and that the RIO server running and properly configured.")

 

Can anyone tell me why there is connection error?

Message 1 of 7
(4,618 Views)

Wow you are going to have a steep learning curve.

 

Open up MAX.  It should be on the desktop or start menu and maybe called Measurement and Automation Explorer.  It is the central location to find and manage NI hardware.  There you should find your device.  If you don't then there is something wrong with the setup and you won't be able to talk to it or program it.  It will likely be found under the Network Devices since your controller is ethernet based.

0 Kudos
Message 2 of 7
(4,610 Views)

Hey rhksgud92,

 

With CompactRIO, you have to specify an IP address to connect to and program the target. In MAX (Measurement and Automation Explorer), expand the 'Remote Systems' category in the left pane and your cRIO should be located on that list. Select it, and then view the 'Network Settings' cetegory in the middle pane. Here you should see an IP address listed for your target.

 

Copy this IP address and open your LabVIEW project. In the project tree, right-click on the cRIO and select 'Properties'. In the windows that pops up, you should see an entry field for the IP address. Paste the value from MAX here (and make sure that it is still formatted correctly). Now you should be able to right-click the cRIO in the project and select 'Connect' with success.

 

I agree with Hooovahh that you are going to have a steep learning curve trying to use LabVIEW and CompactRIO for the first time without training. To make it a little easier, we do have some resources that can help you. First, since you are a student, if your school has an active Academic Site License (ASL), you can get free access to all of NI's self-paced online training resources. If you aren't sure if you have an active ASL, just ask your professor or IT division that handles your school's LabVIEW licensing. Since you are so new, I highly recommend you start with LabVIEW Core 1 & 2, and then proceed to Real-Time 1 and FPGA to learn how to use your CompactRIO.

 

If you don't have an active ASL, you can still follow some of the video tutorials for students for both LabVIEW and RIO, which should help you out quite a bit. Check out the link below. Lastly, I recommend becoming very familiar with the CompactRIO Developer's Guide (also linked below). This guide is a great resource for how to implement many different features and architectures in RIO applications, for both RT and FPGA.

 

Academic Online Training:

http://us.ni.com/academic/training

 

NI LabVIEW for CompactRIO Developer’s Guide:

http://www.ni.com/pdf/products/us/fullcriodevguide.pdf

 

Regards,

 

Ryan

Ryan P.
CLA
0 Kudos
Message 3 of 7
(4,562 Views)

Thank you so much Hoovahh and Ryan!

 

It was very helpful! I am currently learning labview core 1 & 2. I found labview is so interesting and fun!

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

I added IP address but now i have failed to connect chassis problem.

 

I think I have trouble from communication between ni softwares.

 

I attached the software list i found from MAX.

 

Can you advise me what i should remove or update?

 

 

Download All
0 Kudos
Message 5 of 7
(4,532 Views)

In MAX look under Devices and Interfaces, not Software and see if your hardware is listed.  That is what I was trying to say in my previous post.

0 Kudos
Message 6 of 7
(4,496 Views)

Hmmm, in your MAX screenshot the cRIO shows up under Remote Systems, just like it should, which means the drivers are configured correctly and the device is connected correctly as well. Are you sure you used the IP address displayed for the cRIO in the Network Settings tab of the its properties pane in MAX?

 

The other possibility is that the cRIO does not have the correct software installed, primarily the LabVIEW RT software, which is why you get the error message saying it cannot connect. To install or reinstall software onto your cRIO perform the following steps:

 

1. In MAX under Remote Systems, expand the arrow next to the cRIO to reveal the 'Devices and Interfaces' and 'Software' sub-items.

2. Right-click on Software and select "Add or Remove Software". This will open a new window.

3. Tin the new window, you should see the LabVIEW RT and RIO versions that you have available on your system to install software from.

4. Select the newest version, which for you is RIO 13.0, and press "Next"

5. This will take you to a list of all of the software that can be installed onto your RIO. For simplicity since you won't easily know what you need, I recommend just installing all the available options to avoid running into a future scenario of not having something that's required.

6. After the install, your cRIO will reboot. Now try to connect to the cRIO in your LabVIEW project with the appropriate IP address.

Ryan P.
CLA
0 Kudos
Message 7 of 7
(4,479 Views)