LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using LabView shared variables with NI1752 smart camera

Hi,

     I am trying to use a NI1752 smart camera with just LabView without using VBAI.  I need to create a software trigger for running a vi on the camera.  I am unable to include the values from an OPC client on the target.  Is it possible to create a shared variable to which I can write the values from the PLC tag via OPC and the camera use this shared variable for trigger?

 

Best,

Gibin

0 Kudos
Message 1 of 7
(2,719 Views)

Hi Gibin,

 

How are you communicating to the OPC server from LabVIEW? Are you using the DataSocket API, the LabVIEW DSC Module, or the OPC UA toolkit? See this article for an overview of the different methods of communication.


Regards,

Regards,

Michael Whitten
Senior RF Applications Engineer
0 Kudos
Message 2 of 7
(2,673 Views)

Hi Michael,

    I am communicating using shared variable method as described in the link you sent me.

image.png

I tried using that shared variable under the camera VI but any changes to the tag is not being reflected.  When I use it in a vi in the host computer, it is working fine.

Best,

Gibin Joe

0 Kudos
Message 3 of 7
(2,669 Views)

Hi phoenix, 

 


 

I tried using that shared variable under the camera VI but any changes to the tag is not being reflected.  When I use it in a vi in the host computer, it is working fine.

 


Can you probe the output from the error out terminal on the shared variable? Are you getting any error when trying to read/write to the variables?

 

Do you have another computer with NI Software installed on the network? I'd like to verify that the shared variables are being published on the network - essentially, I'd like to validate that we can read/write to the shared variables on an any system (other than the host) before we figure out why the camera can't talk to them. 

 

If you do have another computer on the network with NI software, launch the Distributed System Manager, and find the host computer. Under the computer, do you see the shared library, and the OPC tags that you have created? Are the values updating, and can you successfully update them?

 

Regards,

Regards,

Michael Whitten
Senior RF Applications Engineer
0 Kudos
Message 4 of 7
(2,661 Views)

Hi, 

     Thanks for the reply.  I have checked the NI distributed system manager.  The shared variables on the host computer vi are being reflected there and I am able to update them. But a shared variable, that I created under the Camera and bound to the OPC tag shared variable, is not being shown there.  I tried with a simple floating value, without any OPC.  Even so, the shared variable under the camera is not shown in the distributed system manager.  I have attached the vi I used for testing.

image.pngimage.pngimage.pngimage.png

 

AS you can see from the above images, the shared variable 'test_variable' on the host computer, is being shown on the distributed manager but the shared variable 'test_Variable_Cam' bound to test_variable is not shown.

 

Can someone help me in this?

 

Best,

Gibin Joe

0 Kudos
Message 5 of 7
(2,651 Views)

Also,   I get the following error which I believe is some firewall issue.  I dont know how to solve this.  Would really

appreciate any help.image.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Best,

Gibin

0 Kudos
Message 6 of 7
(2,646 Views)

Hi Gibin,

 

In order to see the shared variables from your camera, I believe you should be looking under the IP address of the camera in the NI Distributed System Manager. If you try expanding the first element of the tree, do you see the shared variable there? 

T. Le
Vision Product Support Engineer
National Instruments
0 Kudos
Message 7 of 7
(2,642 Views)