LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Arrays in NI OPC Client/Server?

uncle:

Time to move forward with the revolution !!.

Just kidding, have a great day and again thank you for your post.

Rudi N.

0 Kudos
Message 21 of 24
(1,157 Views)


@Rudi N wrote:

Bauch:

I agree that it is not possible to pass arrays of data to OPC using LabVIEW. Do you have any OPC client that can read arrays of data?. Also, in the last example that you posted, you are binding an array of double into a Shared Variable ("SGL Array") which is actually defined as a double precision variable. I added an indicator to read the value from the Shared Variable and was not able to read anything from the variable. Please let me know how you were able to make this work.

Regards,

Rudi N.

 



Thats it. You can not read it via NI-PSP -shared variables - but you can read that SGL Array defined as a DBL through the opc client I attached and it works for our OPC application too. You can also read it out in Labview. Just duplicate the array and change data binding  mode under properties to read. Crazy, i know.

For the application:

Open Local>Data Access V2> National Instruments Variable Engine

than "DA Browse" in the National Instruments Engine and look for the test library.

There you should find all four variables but you will only get three: DBL, SGL and SGL Array. These three are defined as simple single DBLs.

The shared variable "DBL Array" which is defined as a DBL-Array is not listed.

Message Edited by Bauch@Bessy on 03-16-2007 05:16 AM

0 Kudos
Message 22 of 24
(1,151 Views)
See modified attachment.
0 Kudos
Message 23 of 24
(1,144 Views)

Bauch:

Thank you very much for posting the files. I, now, can see what you have been eluding to. It is definitely a smart way to pass arrays of data through opc. I was able to verify it using your OPC client.

Regards,

Rudi N.

0 Kudos
Message 24 of 24
(1,133 Views)