LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Vision Builder 3.5 - Connection failed (server down)

Hi,
 
I had some problem inserting VIs inside my smartcam (for the "Run LabVIEW VI" step in Vision Builder) (http://forums.ni.com/ni/board/message?board.id=170&thread.id=327355).
 
Someone from NI told me that I needed LabVIEW RT 8.5 to do all the steps for "Save the VI for distribution" (in Vision Builder Help):
  1. Launch LabVIEW.
  2. Open the VI. If the VI is already open, save the VI.
  3. Select File»New Project.
  4. Add the VI and any dependencies to the project. If you want to run the VI on a remote target, you must first add the target to the project. Compete the following steps to add a remote target to the LabVIEW project:
  5. In the Project Explorer window, right-click the project root and select New»Targets and Devices.
  6. Select the target you want to add from the Targets and Devices section of the Add Targets and Devices dialog box.
  7. Click OK to add the target to the project.
  8. Save the project by selecting File»Save Project.
  9. Right-click Build Specifications underneath the VI you added to the project and select New»Source Distribution from the shortcut menu to display the Source Distribution Properties dialog box.
  10. Enter a Build Specification Name and Destination Directory.
  11. Select the Source Files category.
  12. In the Project Files list, select the top-level VI and any dependencies, and add the files to the Always Included list.
  13. Select the Destinations category.
  14. In the Destination type control, select LLB.
  15. Select the Additional Exclusions category.
  16. Enable the Disconnect type definitions, Remove unused polymorphic VI instances, and Remove unused members of project libraries checkboxes. Do not enable the Modify project library file after removing unused members checkbox.
  17. Disable the Exclude files from VI.lib, Exclude files from instr.lib, and Exclude files from user.lib checkboxes.
  18. Select the Preview category. Click Generate Preview to review the generated file hierarchy for the source distribution. To ensure the preview is accurate, save changes to VIs in memory before you create or edit a build specification.
  1. Click Build. You can find the resulting source distribution in the directory specified in the Destination directory control in the Information category of the build specification.

  1. Note
Note  Before you can use the new LLB on a remote target, you must first download the LLB to the target using FTP.

 

Today I did all this, plus I've changed some properties in the RT Desktop Target (VI Server: Machine Access, VI Server: Exported VIs, Web Server: Configuration (Enable Web Server), Web Server: Visible VIs, User Access). I've connect the RT Desktop Target and Deploy it (I thought that what the good things to do..)

Since that moment, I can't open Vision Builder with the camera ( Execution Target: 192.xxx.xxx.xxx NI 1742 and Configure Inspection). It says that the Connection failed and they give me some possible reasons (see picture above). I can ping my camera, I can see the camera with MAX and I can configure my camera in the Select Remote Target (in Vision Builder).

I don't think the reasons they gave me will solve my problem... so anyone know why I have this error message?

Thank you very much,

 

Stephanie

0 Kudos
Message 1 of 3
(3,069 Views)
Dear Stephanie,

Try to re-boot the Smart Camera and then connecting with VBAI. You may be running into the issue described in the following KnowledgeBase:

Vision Builder Will Not Connect with CVS After Opening LabVIEW
http://digital.ni.com/public.nsf/allkb/A9E00B554ED38B398625709D007D6572?OpenDocument

I know that the KB references the CVS, but the Smart Camera acts in much the same way as a remote target.

Let me know how it goes!

~Nate
0 Kudos
Message 2 of 3
(3,044 Views)
Hi,
 
Sorry for the delay, but I found a way to make it works. Now I only use RealTime 8.5.1 instead of Vision Builder 3.5 and RealTime 8.5 (I can detect the smart cam with RT8.5.1).
 
I don't know why, but when I'm connected to my device with RealTime, I can't connect to Vision Builder after that. I even format the SmartCam, it works once, but after that the problem came back (when I use RT).
 
It looks like the device can't deconnect completly to RT and that's why I can't connect to VBAI....
 
Even if I delete the .rtexe in the startup folder in the camera, close everything from LabVIEW, reboot the camera, reboot my computer, it doesn't work... what should I do now? Well I guess I need to use RT only 😉
 
 
If you find a solution it will be nice to tell me 🙂
 
Thank you again
 
Stephanie
0 Kudos
Message 3 of 3
(2,999 Views)