Windows Message Queue Library

Publish Date: Mar 14, 2012 | 20 Ratings | 4.05 out of 5 | Print | 15 Customer Reviews | Submit your review

This collection of VIs allows VI code to receive and process windows messages. The examples can be used to intercept messages that normally go exclusively to the LabVIEW window (such as mouse messages). It can also intercept custom messages posted by other applications, much like our DAQ Events can post messages to applications.

If you are interested in the underlying DLL code, it is also provided. A firm grasp of C++ is necessary. The code also serves as an example of how to set an occurrence from a DLL.

Please read all documentation starting with the readme.txt file in the zip file.

See also the Example Program on 32-bit Windows Utilities (linked below).


Related Links:
Windows Utilities (32-bit)

Back to Top

Customer Reviews
15 Reviews | Submit your review

new Version available  - Jan 15, 2016

Hello, User "domasm" has createt a new Version of it: https://decibel.ni.com/content/docs/DOC-41403 or search "Windows Messages for Labview"

new link  - Oct 29, 2015

this link might make people happy https://decibel.ni.com/content/docs/DOC-41403

Here is 64-bit version  - Feb 17, 2015

https://decibel.ni.com/content/docs/DOC-41403

Didn't work for me either  - Nov 3, 2014

A message box "LabVIEW: VI version is too early to convert to the current LabVIEW version. An error occurred loading VI 'Windows Message Queue Example.vi'. LabVIEW load error code 10:VI version (5.0) is too old to convert to the current LabVIEW version (13.0.1f5)." I need this and was told Labview has this feature. Now what do I do?

LB 2011 or 2012?  - Jun 24, 2013

I've tried to compile the source, but can't get past the errors to make this library up-to-date. Has anyone else been able to update this project to a more recent version of LV?

labview 8.6 version  - May 3, 2013

Any chance to have a labview 8.6 version?

  - May 2, 2013

Put in another vote for 64 bit support.

Nice...but  - Feb 17, 2012

It's nice, but only works in x32 windows (and no C source so I cannot recompile for x64). When is the event structure going to be extended to include most of these messages (that's where they belong)

  - Mar 11, 2011

@1 To post a message you simply call the Windows API's PostMessage() or SendMessage() @2 Yes pointers are very tricky. Since LabVIEW can't generically copy pointer data (each message has a specific format if it contains pointers and what they contain) it could only provide the pointer value itself but that pointer is only guaranteed for the time of the function call, so wouldn't work either. Therefore the only solution is to modify the message library C code and add your specific message type handling to it if you need that.

64 bit version  - Feb 3, 2011

Any chance to have a 64 bit version?

64-bit version of DLL  - Dec 13, 2009

Please also provide 64-bit version of "Windows Messages for LabVIEW.dll". Thanks!

Version too old  - Apr 14, 2009

Any chance of reposting these vis as a newer version? LabVIEW 8.6 won't load 5.1 vi's!

Limitation With Pointers  - Aug 5, 2008

There is no support for messages that contain pointers to data, e.g. WM_COPYDATA. And even though the pointer itself can be obtained from lParam, and if LabVIEW provided a way to access the memory at it, the data it pointed to may not be valid anymore since it appears that messages from SendMessage() are already responded to.

Limitation On Return Value  - Aug 5, 2008

A return value cannot be specified for messages from SendMessage(). LabVIEW apparently returns 0.

  - Aug 1, 2005

It would be more useful if it showed how to *post* windows messages as well

View more reviews

Bookmark & Share


Downloads

Attachments:

Windows Message Queue Example.
vi

Requirements

Windows Message Queue Example.
vi

Requirements

Windows Messages for LabVIEW.c
pp

Requirements


Ratings

Rate this document

Answered Your Question?
Yes No

Submit