LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

WM_SET_OCCURRENCE - How do I get it (without a CIN)?

I am attempting to have labview receive messages that are sent by DLL drivers for a 3rd party hardware device(Immersion MicroScribe DLX). These messages are sent via the "SendMessageTimeout" command. The Windows Message Queue example on the NI site is not able to "hook" these messages (it seems that since they are not "posted" they won't be hooked?). I have decided that I might write a "proxy" to receive the messages and then set an occurrence in labview. Unfortunately, I am using Metrowerks Codewarrior compiler - which doesn't support CINs for labview, so I am not able to call the function "GetLVAppWindHandle". Does anyone know of any other way to get the message ID, WM_SET_OCCURRENCE?
0 Kudos
Message 1 of 4
(2,852 Views)
I would check out the following developer exchange post: http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RNAME=ViewQuestion&HOID=506500000008000000DD170000&ECategory=LabVIEW.LabVIEW+General

There is an example on this post that illustrates getting a handle to a LabVIEW window.

Or, you may just want to try and get your hands on a copy of MS Visual C++.
0 Kudos
Message 2 of 4
(2,852 Views)
Thanks Matt. I'll check that out. I think that I also discovered another way, however. All I need to do is create a DLL, and then have labview pass the handle on to the program when it initiates it from the command line.

Niels
0 Kudos
Message 3 of 4
(2,852 Views)
I have an application need to receive wm_message from other window application, but don't know how?

Can you help? Thanks,


Wei-Chwen Wang
weichwen@bigfoot.com
0 Kudos
Message 4 of 4
(2,852 Views)