Sending custom windows messages (SDK) with LabVIEW

To communicate with other applications, especially LabWindows/CVI I want to send and receive windows messages. In LabWindows/CVI that can be done quite simple. But for LabVIEW I only found ways to receive messages (standard messages like WM_MOUESEMOVE etc.). Every standard message has a number, so I would like to send a message with my own number.
For the communication between CVI and LabVIEW, NI recommnends to use ActiveX or Datasocket. Windows Messages would be much faster. Can someone help me out?

Just yesterday Ed Dickens showed me an example that listed many of the C datatypes and their LabVIEW version. I am not sure what version of LabVIEW first had this, but it is in 7.1.
In the example finder (Help -> Find Examples), search for DLLs. The one that you want to look at is Call DLL.vi.
Hope that this helps,
Bob
Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
DISTek Integration, Inc. - NI Alliance Member
mailto:[email protected]

Similar Messages

  • Using Global Mapper SDK with LabVIEW

    I am actually new to using any SDK with LabVIEW.The basic idea behind the whole thing is to plot lat and long coordinates into global mapper cutomized app through Labview.I mean I am acquiring data in labview, but i want to display the coordinates in global mapper.For that what I have to do.I don,t have much idea abt MFC too.
    Solved!
    Go to Solution.

    Hello sets,
    I found some resources on the Global Mapper site that you may find helpful. They seemed to have the same questions as you, and an employee helped answer some questions.
    Global Mapper SDK for LabVIEW Software: http://www.globalmapperforum.com/forums/technical-support/8917-global-mapper-sdk-labview-software.ht...
    Global Mapper and LabVIEW: http://www.globalmapperforum.com/forums/sdk/9116-global-mapper-labview.html
    Are you using LabVIEW, LabWindows/CVI, or Measurement Studio? This is a Measurement Studio board, but if you have LabVIEW questions, I suggest posting to the LabVIEW board. (http://forums.ni.com/t5/LabVIEW/bd-p/170)
    Regards,
    Jason D
    Applications Engineer
    National Instruments

  • Send custom error message using IDoc conversion rule?

    Hello,
    I am using an Idoc conversion rule in BD79 to load cost centers.  In my conversion rule I use a conversion exit function module to concatenate 2 specific characters and sending cost center value together and then this output value placed in the receiving cost center field.  This works fine, but now I want to send a custom error message to the idoc and fail the idoc if the sending cost center value is greater than 8 digits. 
    Does anyone know how to send an error message or update an idoc with an error message using a conversion rule (bd79)?
    Thank you,
    Rhonda

    Hi Rhonda,
    Any luck on the below.. i have a similar issue...
    Sorry to hijack your thread...

  • Windows 7 Compatability with Labview 8.0 and missing files while interfacing the FPGA with LV

    I am trying to use an FPGA (PCI-7830R) with Labview 8.0. The computer has Windows 7 OS. I installed LV 8.0 in the proper order with the FPGA Module and labview is able to see the FPGA when I open a .lvproj (the FPGA is in the tree) however there is a warning symbol next to the FPGA selection and when I try to open a .vi file that is used on the other stations in my lab (it works on all the other stations), labview is unable to find a whole bunch of files. There are some pictures.
    Missing File (there are a bunch more but this is the fist one).

    According to this LabVIEW Compatibility LabVIEW 8.0 is NOT compatible with Windows 7
    Visualize the Solution
    CLA
    LabVIEW, LabVIEW FPGA

  • Custom error messages impossible with jsf ea4??

    Hello,
    Does jsf allow custom error messages for built-in validators?
    I was told by a member of the jsf team that what is described in the tutorial applies only to future versions of jsf.
    Is this a bug? If it isn't and if it is indeed possible to have your own error messages for built-in validators, I would be grateful for someone of the jsf team to help me.
    I have already posted some messages asking for help but I never got any answer.
    Julien

    If a validator wants to add an error message to the current page, it has to call FacesContext.addMessage() with a javax.faces.application.Message argument. The design intent is that you can look up localized messages (defined in the config file) via MessageResources -- that's the part that does not work right now.
    In the interim, though, you can construct your own Message instances by leveraging the MessageImpl class:
    context.addMessage
    (new MessageImpl(Message.SEVERITY_ERROR,
    "You goofed",
    "Here are the gory details..."));
    or look up the message strings from a resource bundle.
    Craig

  • Windows virtual machine with labview on a Mac

    I am about to buy a Mac laptop with virtualization software (either VMware or Parallels), then create a Windows 7 virtual machine and put Labview for Windows Professional on it.
    I searched the board and found some discussion of this configuration but it is several years old.
    I would just like to hear from people who have done this and learn from their experiences.  Are there any pitfalls, features that don't work, performance problems, setup difficulties, whatever.  Also, do you prefer VMware or Parallels. 
    One other thing:  I would like to create at least four virtual machines (Windows with Labview development, Windows without LV to test the applications in a non-labview environment, and similar for MacOS}.  Is this a reasonable thing to do?
    Regards,
    David

    Hi David,
    As indicated above I have been running a windows virtual machine using VMware on a 17 inch macbook pro for quite a while now.  I have not experienced significant problems.  Labview and labview generated apps work fine in the virtual environment.
    But would I do it again?  I think not.  The economics don't work.  You can buy a quite capable Windows laptop for less than $500.  The virtual machine alternative costs $200 for a copy of Windows, $80 for virtualization software (Parallels or VMware) plus extra memory on the Mac (I have 8 gb) plus a more powerful machine, etc.  I ended up paying over $3,000 for the Mac hardware and extra software.  The alternative would have been $1,500 for a 15 inch Mac plus $500 for a Windows laptop.
    Also, there is definitely a performance penalty.  Virtualization is not free.  Start up and shutdown times for Windows are more than twice as long under VMware than with a cheap HP laptop.
    It is nice having all my files (Mac and Windows) on the same machine but I could have easily networked the Mac and Windows and had effectively the same result.  Expected benefits, such as a single backup disk for both operating systems didn't work out.  Apple's time machine software views the entire Windows environment as a single lump, so I am still stuck with two backup drives.
    So the good news is that it works.  The bad news is that the costs (in my opinion) exceed the benefits.
    David'

  • Implement a SOAP Request in an SSIS Package that sends a SOAP Message (Env) with Authentication Info, Receives XML FIle?

    We need a small SSIS package to pass a SOAP message to a SOAP server and receive the response xml message. 
    We have the SOAP Endpoint, SOAP Action, and SOAP Message (which contains authentication elements). They work in a Talend Data Integration job (using
    Talend's tSOAP component). A screenshot showing the Talend job and the configuration of the tSOAP component
    is attached.
    We need to implement the same thing in a Microsoft SQL Server 2012 SSIS package but haven't been able to get an SSIS Web Services task to work. 
    We haven't been able to configure it to pass the SOAP Action and SOAP Message.  
    How should this be accomplished in SSIS?
    kholberger

    I guess I was not clear.  The Talend job works perfectly (and it took only a few minutes to configure). 
    I need to replicate the SOAP request function in an SSIS package.  I've been trying to configure an SSIS Web Services Task to do that without success. 
    The SSIS Web Service Task asks for the .wsdl file, which I provide (though the Talend component
    does not ask for it), but the SSIS WST does not ask for the SOAP Action or SOAP message.  The target web service is protected by a security gateway that rejects the SSIS WST request.  Somehow, the Talend tSOAP component sends the
    SOAP message, which contains the security definition and authentication credentials (you can see part of that in the screen shot) which the endpoint accepts.
    The question is: "How does one implement a SOAP web service request in an SSIS package that sends the SOAP Message".
    Thanks.
    kholberger

  • How to send an Email Message along with a PO PDF Attachment in Word.

    I want to send an Email to a customer. The subject of the email is the PDF attachment of the Purchase order.
    Then in the Body of the email, we need to put a small Mesasge in the Body of the Email: Example
    Hello,
    Please see attached Purchase Order.
    thank you...
    Does anyone have a suggestion on how to do this? Best approach?
    thanks
    Walter Poe

    Hi Walter,
    In NACE transaction, select Application EF , then select your P.O Message ( standard is NEU ) .
    Then in "processing routing" parts check that there is an entry for medium 5 ( external send ) , if not please set it with corresponding print program, from routine and forms to use .
    Then in "Mail Title and Text" parts  you can define your mail title with variable and your mail body . Please find below a sample for this. To define the mail body just click on the icon for text ( it's like sapscript text ).
    Mail Title : "Your P.O &EKKO-EBELN"
    Mail Body : "Please find enclosed our P.O &EKKO-EBELN....."
    That's all for NACE parts.
    After this you have to define thru condition that the medium will be used for each P.O. For this check with functionnal consultant if everything is ok and the same that for medium 1.
    Then when you create a P.O, SAP will generate a mail with supplier e-mail adress define in his masterdata . The forms will be converted according to your customizing in transaction SCOT ( node SMTP , Support address type parts) .
    Of course you also have to define a job for sending the mail .
    Hope this help you
    Regards
    Bertrand

  • Send To context menu arguments with LabVIEW executable

    Hi,
    I am have written a VI (and built it as an exe) to perform operations on a file, or array of files.  I get the list of files as application arguments.  I have added my exe to the Send To folder in windows so it appears in the context menu when I right click on a file.  The problem is, LabVIEW opens the file with its registered application.  I have read that Send To will pass the file selected to the application as arguments.  The question is how do I set up LabVIEW (or Windows) to pass the selected file(s) as an argument rather than launching it?
    Thank you,
    Michael.

    Problem solved.  I had forgotten to check the box 'pass all command line arguments to application' when I built the VI.  What I find strange is that LabVIEW intercepted the argument I was passing and tried to open it using the program registered with windows. I guess there is some reason this is expected behavior.  I have attached the VI which does not work (wrong settings) just for interest. (built with LV2010)
    Thanks,
    Michael.
    Attachments:
    Application.zip ‏359 KB

  • Can anyone send about ALE-MESSAGE CONTROL with real time scenario?

    hi friends,
    i have doubt on ALE-MESSAGE CONTROL METHOD.
    SO, anyone can explain with a real time example.
    If have a chance please send with screenshots or with navigations

    Check out this blog:
    Message Control (Output Control) for ALE
    Raja

  • NXT Custom Block Developmen​t with LabVIEW 8.2.1?

    I'm trying to develop a custom NXT block using
    LabVIEW 8.2.1.  Is this possible?  I am having trouble importing the finished block into
    the Mindstorm environment.  My block is always greyed out in the import
    list.  My block seems to compile just fine.  In fact, if I create a new
    example block from a template and try to import that without
    modifications, I get the same behavoir.
    Any ideas on how I can debug this?
    P.S. Hopefully this actually goes to the LabVIEW Friends of LEGO group ; )

    Eagles Coach is right on the money here.  Because the MINDSTORMS environment is built on LabVIEW 7.1, that's the only version you can use to create custom blocks for the environment.  LabVIEW 8.0 and 8.2 are useful if you plan to do all your programming in LabVIEW itself, but won't help you create blocks for MINDSTORMS.
    You could use the "Save for Previous" feature of LabVIEW to backport your code to 7.1, but that would require you to have both LV 8.0 and LV 7.1.
    James Blair
    NI R&D

  • How do I programmatically remove a Windows system font with LabVIEW?

    Is there a way to programmatically remove a Windows System Font?
    Thanks!

    If you know the font name, you should be able to just use the Delete function. On NT, Win2K, the fonts are stored in the WINNT\Fonts folder. I think you'll have to have admin rights to delete files there.

  • Handling windows messages within an event structure

    Hello all.
    I've got an event driven VI which makes use of an event structure. I'd like my VI to be able to respond to some custom windows messages (i.e. WM_USER) sent from a separate process that listens on a telemetry card (sends a message when it receives data).
    I have tried modifying the Windows Messaging Queue VI example provided by NI so that the VI will process windows messages during the timeout event in the event structure but this doesn't seem to work.
    Any suggestions?
    If labview events and windows messages don't mix then I guess I could do away with the event structure and go entirely with windows messages. This could be done by defining some custom messages that replace the labview events (e.g., W
    M_STOPBUTTON_PRESSED = stop button, value changed event) and have the VI post these messages using PostMessage from User32.DLL and then catch these messages in the same manner as the NI Windows Messaging Queue VI.
    My preference is to make use of the event structure if I can because its more inline with the labview methodology.
    This is really interprocess communication question so if there are other ways of achieving the same result (sockets, named pipes, shared memory?) I'm keen to listen.
    cheers,
    Novak.

    These 'sockets' sound interesting. What exactly are they? Could you direct
    me to an example?
    Thanks
    Denis
    "VI Guy" wrote in message
    news:[email protected]..
    > LabVIEW Events and Windows messages don't mix. To implement as such,
    > you would have to do as you describe.
    >
    > Using sockets as an inter process communication scheme works great.
    > And on a single machine, they dont leave the computer (i.e. no round
    > trip on the network). Also, its cross platform compatable, not to
    > mention it adds the possibility of being able to seperate your
    > processes across several machines. Add to this that sockets are as
    > easy to code as serial communication (with the benefit of "sleeping"
    > waits instead
    of "serial polling") and you get a solution fits many
    > applications and needs.
    >
    > Get the idea I am sold on sockets?
    >
    > Good luck.

  • Accessing DLL buffer data after receiving Windows Message

    Hi,
    I am programming MS4404 bar code scanner using LabVIEW. This is a miniscan and does not have trigger button. So we need to trigger it using Software. 
    Could communicates with scanner to enable. disable, beep, etc....issue is with the decoded data.
    DLL put data in the allocated buffer, and send a windows message WM_XXXX to application. Problem is to check these windows messages and copy the buffer data into application..............struck up here..........There was an example for this scanner but that is in VC and it is using ON_MESSAGE function to catch windows message and memcpy() to copy buffer data into local.........................Not sure how to go ahead in LabVIEW
    Appreciate any help from fellow members...........
    Thanks in advance
    Anil Punnam
    CLD
    LV 2012, TestStand 4.2..........

    Little advancement in the issue......
    I am able to capture windows messages using Windows messages queue library (found on ni.com), Now the issue is with creating buffer for DLL and pulling data from that DLL on successfull Decode of data from scanner.
    I think I am going wrong in giving cirrect data type while creating buffer here.
    Below is the description of the function from manual
    SSIDLL_API int __stdcall SetDecodeBuffer(int nComPort, unsigned char *pData, long max_length);
    where:
    . nComPort is the COM port number used in the call to SSIConnect. pData is a pointer to the destination buffer for decode data returned from the scanner
    . max_length is the size in bytes of the destination buffer 
    I am sure I am going wrong about the pData parameter.
    I need to create this buffer before decoding, so the scanner fills this buffer with decoded data.
    Thanks in advance for your help.
    Anil Punnam
    CLD
    LV 2012, TestStand 4.2..........

  • Text Message sent from LabVIEW using ActiveX and Internet Explorer

    I am fairly new to LabVIEW and I am trying to make a VI that will be able to text me and let me know when a test is about to be done or if something has caused it to shutdown.  My VI uses www.onlinetextmessage.com but I can't get it to click the Send Message button. 
    I can get it to insert text in the text fields.  I just can get it to click send.
    Can you help me?
    Solved!
    Go to Solution.
    Attachments:
    My Texting.vi ‏38 KB

    MoonMan wrote:
    Well it sure seemed like that should have worked but no luck. When I try to add the FormElement with submit in my VI after I wire in the reference wire it automaticaly changes to a regular Element.  Then it wont run because submit is not an option for Element, I have to change the submit back to click. 
    I dont understand, it really seems like the click should work, and it seems like the submit should have also worked.  Getting text into the different fields was easy enough.
    Did you try my modified version?  That uses IHTMLFormElement properly.  If you then change the element name from "Send Message" to "txtmsg" (the name of the form), it appears to work - or at least, it pops up an advertising window in Internet Explorer (I didn't fill in any of the fields as I don't want to give out my phone number or email address to some random website, especially one that pops up advertising).
    When you try to change to FormElement, what steps are you taking?  Are you changing the type of the "type" input to Variant to Data?  You'll need to right-click on that constant, Select ActiveX Class... and choose IHTMLFormElement.
    As a LabVIEW style note, you should close all the ActiveX references you open.  That means all the references (IHTMLFormElement, IHTMLElementCollection, etc) need a Close Reference when you're done with them.
    Again, I think sending an email is a better way to send a text message from within LabVIEW, and for that matter, you might be able to find a better website for doing it.  TMobile allows their subscribers to send SMS messages through their website and it appears that AT&T provides a similar service; Verizon provides a web page to send SMS to their users.
    EDIT: by the way, the submit button is not a named element (it has a "Value" property but not a "Name" property) so you can't get a reference to it by name.  If you probe the item output of the IHTMLElementCollection property node, you'll see it returns an empty variant, which is why "click" has no effect.

Maybe you are looking for

  • CD line item separately in Customer Line item

    Dear Experts, My client requirement is Cash Discount line item can be separated for Customer Line Item. Standard setting: When customer pays the invoice and cash discount is there on invoice the entry will be as below in Standard SAP Bank Inco A/C Dr

  • Mail sound changed by itself; can't get previous one back

    My "New mail" sound has always been the "incoming jet" sound I suppose we're all familiar with. Today, for no reason I can discern, it changed to something resembling a harp. (I've neither seen nor installed any Apple 10.5.6 updates today.) Checking

  • Best SSD for T410 at the moment?

    Hi, short questions: What is the best/fastest SSD for a T410 at the moment that i can order from Lenovo? And if i dont order the ssd from lenovo but buy one from market what is the best that fits in the 410? T410 only supports 1,8" right? Are there a

  • How to resize columns in iTunes store?

    Hey guys, I've had this problem since I upgraded to itunes 9 and up but I can't resize the columns in the itunes store which I used to be able to do before they changed the interface in version 9? I currently have itunes 9.0.2.25 installed. Is this a

  • Question about the new firmware for Zen Mi

    Does the recent update for the Micro allow the user to use Zen Micro Media Explorer unlike the update from December?