Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

shared variables hosted in labview problems with accessing via vision builder ai

i have a problem with labview and the vision builder.

 

I want to host shared variables from a pc with a labview project.

I have an cvs1458rt which should connect via vision builder ai to the network variables.

When I simulate the cvs1458RT I have no problems.

 

First I created a variable in my project and publish it to the network. After that I switch into the Vision Builder AI and want to create a network variable. I add this one and search the path of it and find it and accept it with "okay". A black exclamation mark in a yelloy circle appears on the bottom of the variable manager window with the text: Variable Access Timed Out

 

The other way around I have no Problems. When I create variables on the CVS via the VBAI and publish them on the network. After that I can read and write via VBAI and LabVIEW VI.

 

I tried LabVIEW 2012 SP1

and LabVIEW 2014

 

I have the Vision Builder AI 2014 SP1

 

0 Kudos
Message 1 of 9
(5,209 Views)

Hi, I am not sure if I understand the problem. Did you follow the instructions?

 

How Can I Use Shared Variables to Transfer Data from Vision Builder for Automated Inspection (VBAI) to LabVIEW? - National Instruments
http://digital.ni.com/public.nsf/allkb/D492139A746F91A8862576E80051BBCE

 

0 Kudos
Message 2 of 9
(5,187 Views)

Hi Gregor,

 

Yes, I did follow the the instructions "Hosting the Shared Variables from LabVIEW"

My problem is that I get an error when I try to add the variable in the Vision Builder on the CVS (step 8-9 in the instructions).

But when I do this on a simulated CVS I don't have any problems. And I had the same problem the otherway around. But there was the DNS server the problem

Now for this application I have to host the variables from LabVIEW.

 

Best Regards,

 

Phil 

0 Kudos
Message 3 of 9
(5,183 Views)

It seems to be a Versioning Issue. Whitch Versions do you have installed on your Host and on your CVS, can you upload your MAX Reports and provide some Screenshots of the Error?

0 Kudos
Message 4 of 9
(5,179 Views)

On the Host is LabVIEW 2012 SP1 and LabVIEW 2014 and Vision Builder  AI 2014 SP1 installed

The CVS ist with the Vision Builder installed. Version 14.5

 

MAX Report and Screenshots i will upload tomorrow.

 

Best Regards,

Phil

0 Kudos
Message 5 of 9
(5,176 Views)

try labview 2014 SP1

0 Kudos
Message 6 of 9
(5,174 Views)

I would be interested if another machine could access the shared variable. Do you get errors from a simple LV VI on another machine connected to the same network when trying to read/write the shared variable? If that works, try using the Shared Variable API from that other machine to read/write the variable programmatically (this is what VBAI does). Do a search in the functions palette for "Open Shared Variable Connection" to find where it is in the palette and get info on how to use it. This should give you an idea of what problem VBAI is having when it tries to connect to the variable. I just tried using VBAI running on CVS 1458 with variable deployed on Windows machine and it worked fine for me, so there must be some network issue on your end or SW installation possibly.

 

Hope that helps,

Brad

0 Kudos
Message 7 of 9
(5,171 Views)

Hi Gregor,

 

I tried LabVIEW 2014 SP1 - same failure.

 

here are the MAX Reports and the Screenshot.

 

 

Hi  Brad,

 

I tried to get access to the variables with a SmartCam NI1772. There is the same problem.

 

I think you're right that the network settings or SW be the problem.

 

Best Regards,

 

Phil

0 Kudos
Message 8 of 9
(5,146 Views)

If you use another machine with LabVIEW to access the shared variables, you might get a helpful error code to explain why you're having trouble accessing the variable. Can you access the variable from the same machine where you have it deployed? Just some suggestions to try and get to the bottom of it. Might be worth trying another machine to see if it has the same problem.

0 Kudos
Message 9 of 9
(5,137 Views)