LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I configure an NI OPC server to accept numerical values as tag values?

 

How can I configure an NI OPC server so that numerical values (all floats)corresponding to amplitudes of certain frequency components are written to pre-defined tags during data acquisition using an NI DAQ card?

I have the NI OPC server installed. I will like to use the OPC server to monitor the performance of  a machine using vibration analysis. The examples that ship with Labview and related software mostly work on reading OPC tags using datasocket  but I have not seen any  that shows how values can be stored in those tags. Moreover, my approach is different in that I want to acquire  data, filter it and store some numerical values on the already defined OPC tags.  My problem is how to configure the NI OPC server so that I can store numerical values on these tags. I have attached two sample Vis for writing and reading to OPC tags to illustrate my problem. I configured the NI OPC server so that the string (opc://localhost/National Instruments.NIOPCServers/A.B_Tag1) has as channel name (A), device name (B) and tag name (tag1). The NI OPC server is installed in my machine (localhost). When I run the Read_from_OPC_server Vi, the values are all zeros. I know that the problem is probably from this configuration but I do not know how to fix it.  In particular, I do not know how to specify the device since I am not using a traditional PLC as is often the case. Is this even feasible? I shall be happy for any help.

Thanks

Download All
0 Kudos
Message 1 of 2
(2,662 Views)

Hi Cyprian,

 

How have you configured your OPC Server tags?  Are they strings of floating point type?  What type of server is being created?

 

Also, what's the end goal of this?  Generally speaking NI OPC Servers is used to communicate to a PLC as you have seen.

Jared S.
Applications Engineering
National Instruments
0 Kudos
Message 2 of 2
(2,644 Views)