LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Modifying HL_Triggered_Grab for using PLC tags as trigger

Hi,

    I am using a NI1752 smart camera.  I would like to trigger it using a PLC tag value.  On the forums, it was suggested to modify the HL_Triggered_Grab example.  I have some doubt in the example. 

 

a) In the IMAQ property node, the boolean value from the control is set to a property named 'Send Software Trigger'.  I cannot find such a property in the list.  Am I understanding it wrongly?  I have attached a screen shot. 

 

b) What is the trigger line number?  How do I set up the trigger for PLC tag ?

 

I am accessing the tag value using OPC client.  If someone could tell me how to modify that example, it would be of great help.

 

Best,

Gibin

0 Kudos
Message 1 of 6
(3,425 Views)

Hi Gibin,

 

You need to use the TrigIn/IsoIn(0)+ andTrigIn/IsoIn(0)- inputs to trigger an acquisition. 

 

NI 17xx Smart Camera User Manual and Specifications
http://www.ni.com/pdf/manuals/372429c.pdf

 

Could you attach the example? I can't find it in my system, and finding it would be useful to help you troubleshoot.

 

Best,

 

Rey

0 Kudos
Message 2 of 6
(3,350 Views)

Hi Rey,

    Thanks for the reply.  I believe that the TrigIn/IsoIn(0)+ andTrigIn/IsoIn(0)- inputs are for hardware trigger.  I would like to make a software trigger which can be triggered from a VI on the host system.  

Best,

Gibin

0 Kudos
Message 3 of 6
(3,348 Views)

Again, could you attach the example? It would be useful in order to help you troubleshoot.

 

-Rey

0 Kudos
Message 4 of 6
(3,342 Views)

Hi,

    I have attached the vi.  I am not able to see the shared variables on the NI distributed systems manager also.  I get the following error message.

image.png

I believe this is the error when firewall settings are not matching.  I dont know how to solve this.  Would appreciate any help.

 

Best,

Gibin Joe

 

Best,

Gibin Joe

0 Kudos
Message 5 of 6
(3,334 Views)

Joe,

 

Have you already tried the steps in the KB below? I looked over the code, and can't find any glaring issues.

 

Warning -1950679034 when Reading a Shared Variable
http://digital.ni.com/public.nsf/allkb/238D4F85D7EF6A0F86257536006F7718

0 Kudos
Message 6 of 6
(3,327 Views)