ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting a data type error and can't work out why

LabVIEW NXG 5.0

 

I have a simple bit of code that reads a tag and writes a new value to it, but it fails on a data type error at the Read Tag Node and Write Tag Node:

Code to run.png

"All Notifiers" is a gtype: a cluster containing a "Reference" to a Notifier.

 

The value of the nodes:

Probe Values.png

Wire definition, for wire at Probe 1/3:

Wire defn Probe 1.png

Wire Definition for wire at Probe 2/4:

Wire defn Probe 2.png

The Tag Definition:

Tag Defn.png

 

And the actual error:

Error message.png

 

I can't work out why it's an invalid data type.  I've done something similar but with Event and Message Queue types - exactly the same setup - and they are fine.  

 

Has anyone got any idea why or how I can debug further?

0 Kudos
Message 1 of 3
(1,554 Views)

It'll be tough without your read as well.

Why are you using a sequence structure here?

0 Kudos
Message 2 of 3
(1,464 Views)

I don’t understand what you mean about it being tough?

 

(and don’t worry about the sequence structure)

0 Kudos
Message 3 of 3
(1,459 Views)