LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Doubt using thr Read Tag .vi

I,m having some difficulty trying to understand the following:

The manuals I´ve read tell that to use the Read Tag.vi it´s not necessary to previously start the Tag Engine using the Engine Launch.vi.

But, when I try to read the value of a discrete tag using the Read Tag.vi, the error output turns on. Because of this I decided to start the Tag Engine usung the Engine Launch.vi before reading the tag but, to my dismay, the error persisted.

Seeing this happen make me start to think that the problem was that the engine hasn´t yet initialized when the Read Tag.vi ran; so, I decided to wait an certain amount of time - in this case, 4000 ms would suffice - before reading the tag value and, with this, no error occurred. Could anyone pelease
tell me if my assumption is correct ? If not, why is this happening ?

PS :

It´s necessary to wait the time interval just the first time the tag is read. Afterward, no errors occur.
0 Kudos
Message 1 of 2
(2,536 Views)
Hi Giovani,

I believe you are correct in your work so far.

The tag engine takes some time to start. I seem to remeber an applicatin with 6000 tags taking a minute or more to start up.

You can use the "Get Engine Status.vi" to determine when the engine is up and running. This will work more reliably that a fixed wait time.

So,

You are correct!

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 2
(2,536 Views)