LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Register Event on Real-Time Target using LabVIEW 2012

Solved!
Go to solution

Hi to everyone,

 

it looks like LabVIEW 2012 RT doesn't support User Events anymore. VIs are not listed in the function palette and the LabVIEW help says that this is not supported. In LabVIEW 2010 everything seems to be fine.

 

What happened? We need this feature.

 

Thanks in advance.

Certified LabVIEW Architect
0 Kudos
Message 1 of 7
(3,596 Views)

Sorry, here is the correct version.

 

LabVIEW 12.0f3 (32bit)

 

 

Certified LabVIEW Architect
0 Kudos
Message 2 of 7
(3,593 Views)

Have you tried running existing code containing user event registration nodes on LV RT 2012? Does it work?

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

Hi,

 

we tried this and it works like a charme.

 

I have attached both versions (LabVIEW 2010 and LabVIEW 2012).

If you open existing code VIs are still executable and functionality is OK.

 

Sounds curios...

Certified LabVIEW Architect
0 Kudos
Message 4 of 7
(3,583 Views)

Well, there seems some confusion with the palettes and the documentation. I think that there went something wrong when deciding which functions are to be available on the palettes for LV 2012 and how they should be documented.

 

That this is not very consistent shows the fact that:

a) Event Structure itself is still available on RT palettes

b) Register for Event ist NOT available

c) Both elements have the following note in their help:

(Real-Time Module) You cannot use this structure in VIs that run on RT targets.

d) The Event Structure adds the following in the help right after it:

Real-Time Module Details

The following details apply when you use this object in an RT target VI.

Event structures on RT targets do not support events associated with user interface objects, such as VI panels or controls. For example, associating the Value Change event with a control does not work. RT targets support only user events.

 

This somehow does not make much sense.

For your question: With the updated VI, you should be able to copy and use the Register for Event node in your LV 2012 RT application development. Is that a good-enough workaround for you right now?

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 5 of 7
(3,577 Views)
Solution
Accepted by topic author TylerDurden

Hi,

 

thank you very much. We will use this work-around, which is not much work if you know what to do. Developing a VI on My Computer and switching the execution target in left down edge also implements the correct block diagram objects as well as functionality.

 

This might be fixed in the next Hotfix-Patch because many users might by irritated by this behaviour?

 

Thank you

Tyler

 

Certified LabVIEW Architect
0 Kudos
Message 6 of 7
(3,573 Views)

Tyler,

 

thanks for pointing out the issue. It really seems to be a little mess up in the development environment.

I filed CAR #382460 for this.

 

Norbert

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