NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use LabView's created notifiers in Teststand ?

Solved!
Go to solution

Sorry, but i think these block diagrams are a little too big....

 

Nevertheless, you pick up the TS Sync Manager in your "instrument" VI. As this is not the GUI for your TS application, i wonder if you do pick up the correct context at all.

Can you verify if the "alreadyExists" parameter of the CreateQueue invoke node is TRUE?

I would expect it to be a FALSE.

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 11 of 17
(3,085 Views)

Yeah, the blocks are rather big, but since I'm fed up resizing things

everytimes I'm asked for a new feature, I left enough space around.

 

I do like pixel perfect positionning.

 

Anyway, it's rather hard to understand how things are supposed to

work together as there are only short example availables out there,

not complete/complex interprocess communication example.

 

Just what I need.

 

Could you point me such working example I can base my wrapper

upon ? Because right now, I don't see how I would fit everything

together from scratch.

 

Yet I succeeded with LabView.

 

David Koch

 

PS : here's the updated main LV GUI to control the IO interface.

0 Kudos
Message 12 of 17
(3,083 Views)

Hello,

 

I'm wondering, where exactly should I create my queue and notifier ?

 

In Teststand and keep a 'Locals.' reference ? Then how to pass this reference to Labview ?

 

In Labview using the ISyncManager and access them 'transparently' through Teststand ?

 

I read that I should prefix my queue and notifier names with a star, hence "*tcsqueue" and "*tcsnotifier"

 

Is that right ?

 

David Koch

0 Kudos
Message 13 of 17
(3,059 Views)

Strangely, I cannot get access to an existing teststand notifier using the ISyncManager, while it works for a queue.

0 Kudos
Message 14 of 17
(3,046 Views)

David,

 

there is the difference between the notifier code and the queue code?

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 15 of 17
(3,016 Views)

Hello Norbert_B,

 

yes, there is indeed a slight difference :

 

capture_001_17122014_161426.png

 

The Queue code catch the 'Mux_CAN.Configuration'

cluster enqueued in TS through the use of 'GetValInterface'

and cast it to a 'TS.PropertyObject' I can copy into a

temporary object I just created, then access the data

members inside using 'GetValNumber' by specifying

the 'lookupString' with the right name.

 

I'd like to cast the whole 'PropertyObject' into the

suitable cluster format using 'VarianToData', just

like in Labview.

 

The Notifier code is more tricky and I have trouble

finding its usage because I might use the same

principle of the Queue code, which is catch the

input (here output) cluster format (perhaps using

'GelValInterface' and cast it to a 'TS.PropertyObject')

then send the Labview cluster using 'SetEx'.

 

The main question here is how to format correctly

the destination cluster forwarded to TS ?

 

Pretty tough job...

 

I've isolated the problem in this topic :

 

http://forums.ni.com/t5/NI-TestStand/Enqueue-Teststand-cluster-to-Labview-return-a-cluster-by/m-p/30...

 

David Koch

0 Kudos
Message 16 of 17
(3,010 Views)
Solution
Accepted by topic author Kochise
0 Kudos
Message 17 of 17
(2,828 Views)