LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

OPC error code -1950679030 ni_tagger_lv_Read

Hello,
 
I'm working on an application to extract data from a plc, using Omron OPC Server and Labview 8.2.1. When I run the application normally, I sometimes get the error "-1950679030 ni_tagger_lv_Read" at the moment when I want to read a shared variable. Each time this error happens, the reading of the shared variable fails. I already tried to look up this error code, but the only thing I could find, was "unspecified error".
Strange thing is that when I run the application with highlight execution, I don't get this error and everything is working properly, but slow.
 
Does somebody know what this error code means and how I can prevent this from happening while running the application normally?
 
 
Thanks in advance!
 
Kind Regards,
 
Gert
0 Kudos
Message 1 of 4
(3,966 Views)

Hi Gert,

Could you speak a little bit more about your program?

How many Shared variables are you using? , Are you working quickly? (Maybe slowing down you execution because you seem to say that you don't have this error when running in highlight mode...).

Give maybe your code (if it is possible to you)?

Best Regards,

Julien Roland - District Sales Manager
NI Belgium - Technical Support

Don't forget to rate a good answer
0 Kudos
Message 2 of 4
(3,947 Views)

Hi Julien,

 

First I want to thank you for replying on my question.

I'll try to give some more information. I've got 3 shared variables in the project. Two of them read data from the PLC: the first one is an array of 100 UINT32 variables; the other one is a only one variable of type UINT32. The third variable writes data to the PLC: one variable of type UINT32.

The application should execute as fast as possible. Therefore the highlight execution isn't an option.

For the communication between PC and PLC we use a bluetooth connection. Maybe this type of connection causes the datatransfer to be slow?

Hope this helps.

 

Kind regards,

 

Gert

0 Kudos
Message 3 of 4
(3,930 Views)

Hi Gert,

Maybe your application is running to fast for the variable engine. Have you tried to put some timing inside your loop? I mean the functions wait until next multiple ms or Wait functions. Give a try with function and a timing of 50ms. don't forget that the Bluetooth connection is nothing else than Serial communication and you can't achieve a very high rate.

You can maybe also try with a Ethernet/Serial cable (I don't know which is the possible type of connection with your PLC) to see if the you are running the same error.

Regards,

Julien Roland - District Sales Manager
NI Belgium - Technical Support

Don't forget to rate a good answer
Message 4 of 4
(3,915 Views)