09-06-2008 10:15 AM
Everytime I connect cRIO to my laptop, MAX cannot communicate with it until I restart the laptop.
Is there a solution to this?
What I do:
1) My laptop is on.
2) I connect an ethernet crossover cable to the laptop
3) I power up cRIO
4) I open MAX. cRIO is listed as detected, but when I click on Advanced Ethernet settings, I get a time out (56) error.
4a) It does not matter if I get the RESET button of cRIO or hit Refresh in MAX
5) I restart the laptop while leaving cRIO connected and powered.
6) I open MAX again. This time cRIO is detected and there is no time out error.
- Thanks
09-08-2008 10:42 PM
I think this has to do with the fact that you are powering the cRIO after connecting and with the network card on your laptop. I have a few questions in regards to this.
1) what is the IP configuration of the cRIO and the Laptop?
2) what happens if you flip the IP reset switch to on and reset the cRIO? (this will clear the ip configuration and you will have to set it again)
3) Can you replicate this on a different computer?
4) What happens if you have the same set-up but rather than using a crossover cable you use a router? (IP configured accordingly)
09-09-2008 03:38 PM
At the moment I don't have another computer or router to try (3) and (4).
I tried this:
1) Power on cRIO
2) Connect the crossover cable to laptop while the laptop is off
3) Power on the laptop and open MAX
4) MAX shows that cRIO is connected and running, but when I click on Advanced Ethernet Settings, it times-out (56)
5) I toggle the IP Reset switch on the chassis and hit Reset on the chassis.
6) MAX detects cRIO and shows that it is unconfigured.
7) I use the suggested values, where the gateway values are left blank.
😎 Once I applied the values, MAX reboots cRIO.
9) The result of Step 4 is shown again.
10) I restart the laptop with everything else still connected.
11) MAX shows that cRIO is connected and Advanced Ethernet Settings is responsive.
When I was setting up the cRIO for the first time, I couldn't get it to work because of the time-out error (56).
I couldn't download any software to cRIO. Then I got the experience that restarting the laptop 'fixes' that
problem.
Also, when MAX says that cRIO is 'Running', the vi doesn't seem to be running. How do I compile or load the
vi so that cRIO could run it autonomously when I hit reset?
- Thank you
09-10-2008 09:39 AM
I still think this has to do with your network card on your Laptop because you say it works when you restart the laptop and that has nothing to do with the CompactRIO. Just out of curiosity, what IP settings are you using on the Laptop and on the cRIO?
As far as having a VI run when you reset the cRIO, you have to create an executable and set it as a Startup executable. You can do this from the Project Explorer by right-clickig in the Build Specifications (under the RT target) and selecting New » Real-Time Application. Once you create the executable you can right-click it and select Set as Startup. This will deploy the executable to the RT controller and it will run every time the controller boots up.