Quantcast
Channel: NI TestStand topics
Viewing all articles
Browse latest Browse all 6524

Enqueue Teststand cluster to Labview, return a cluster by notification

$
0
0

Hello all,

 

I'm getting very very frustrated as I cannot find a way to pass

an asynchronous VI with a Teststand cluster that mirror a LV

cluster using a queue.

 

It works if you wire the Teststand cluster to the VI is there is

a suitable command to link to. Yet the VI doesn't have any

connector, it waits for a queued cluster, read it from the

PropertyObject through 'GetValVariant, 'perform some magic

and is supposed to return another cluster to Teststand using

a notification

 

I can read single elements of the enqueued cluster, but can't

cast it into a LV cluster using, say, the good old 'VariantToData'

that indeed works beautifully withing LV.

 

Same happens when I try to return a cluster to Teststand

using  'SetValVariant' even though both the Teststand cluster

and the LabView cluster are of the same format and structure.

The Teststand 'Wait' notifier action is linked to the right cluster

property, but Labview fails at 'SetValVariant' because not of

the right type, even if I casted the data to variant.

 

I'm wondering if I'm doing wrong or Teststand and Labview

are just not engineered to transparently work together.

 

Here's the example I'm trying to set up, but reading the

cluster fails, while the 'False' alternative works (123.00)

 

Setting the notifier cluster fails too, but setting the

elements indivualy fails also because Labview doesn't

know what are 'Conformité' and 'Commentaires' in

the 'True' alternative, even though I tested the whole

hierarchical tree.

 

capture_002_16122014_154835.png

 

You might have figured it out, but I really really need to

get this working, and I cannot understand where the

failure is (beside between chair and keyboard) because

the principle works in LabView.

 

David Koch

 


Viewing all articles
Browse latest Browse all 6524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>