run without end c - dll and use GUI in parallel

Hello

I want to start a function from a c - DLLs in LabVIEW (which works fine) and during execution of this function (it can be run for

very long time), I want to collect entries from the interface (e.g., a change in a digital control) LabVIEW.

I put these two tasks in two unrelated while loops, but still, as long as the c function is market I can't

collect the GUI changes (at least the changes do not appear, the c function once stopped, the)

the changes are visible).

If in the course of execution of the function of the c - dll completely blocks the LabView graphical user interface. Can anyone give me a tip

How can I run those two things at the same time?

Thank you

FC

You must change the configuration of the node function call library of 'Run in the user interface thread' to 'run in any Thread. '.  Normally, this option should be used only when you know that the DLL is re-entrant (thread-safe).  However, if you use only a function of the DLL, and it runs continuously, it will stay in the same thread for the duration of the call then it won't matter in the thread which you call it.  Allowing it to operate in any thread you will free the UI thread to handle the user interface.

Tags: NI Software

Similar Questions

  • How to call external functions without one. DLL (just using a.) H and. LIB file)?

    Hi all

    in fact, I am facing difficulties on how to get an external function is called in CVI (Version 2009).

    I was delivered with a. H file and a. LIB file to call an external function of my project CVI. The. H file looks like this:

    void exportedFunction(double *parameter);
    

    As far as I know, the external function was written with MS Visual C++ 6.

    So, I tried to link statically to the al extern like this function:

    -Add the. H file and the. LIB file to the CVI project

    -#include the. Folder H when I needed to call the external function

    -do the external function call

    During construction I get unresolved CVI external function call error, so this seems not work.

    I did some research autour and stood up with two possible problems. Maybe one of you can help me get a bit further and do work things out.

    (1) of the code of the 'real' function inside the DLL file that was not delivered to me. Or y at - it a way to get concrete results (calling external functions) with just one. H and a. LIB file (with none. Included DLL file)?

    (2) the external function does not export according to the rules of Style 'C '. The signature of the function in the. H file shows some things don't like

    extern "C" __declspec(dllexport) void __stdcall ...
    

    Or maybe it's a combination of these two issues (missing. DLL + bad export style function)?

    I guess I could get around the incorrect service export style when I managed to write a wrapper around the original function that actually uses Style C exporters. But I guess I need to the. DLL file for this test as well.

    Thank you very much for your answers.

    Best regards

    Bernd

    There is no need for the stuff of dllexport. There is also the option of a static library without any DLL.  But the "extern"C"' is essential, because it forces the C++ compiler, which was probably used to compile the library to use the C calling convention.

    If you are unable to ask the library vendor to provide a version that was compiled using C calling convention is the way to write a wrapper with VC ++ 6 around this library that functions using C calling convertion reexports. Something like

    extern 'C' myfunc1 type0 (type1 arg1,...) {

    Back to func1 (arg1,...);

    }

    for each function, you must use.

    BTW. "unresolved symbol" is the error message from the linker, you can expect if you try to bind the C code against a generation of library with the C++ calling convention.

  • call VB DLLs in one registry LW the dll and use invoke node

    Hello

    How is possible to call Visual basic labview DLLs. I read articles about it, I should do first of all a "open Automation" and "invoke the node."

    How can I tell witch dll will be used for the call? With the registration of regsrv32 or how?

    I downloaded sample application but does not work.

    Problem is solved.

  • How can I find what is access to the Internet on the iPad (which runs 4 times a day) and using my data while traveling plan? Thank you

    My iPad access the internet 4 times per day (9 am/pm and 3 am/pm) and I need to know what it is and fix it as it uses all my data plan when you travel. Thank you

    A possibility: go to settings > cell phone and scroll down to "cell using data for. Under each name of app, it will show the amount of data used by this application since the last reset. You can reset the statistics at any time by scrolling all the way to the bottom of this screen and tapping reset statistics.

  • Hi, can I buy without problem After Effects and use on a 1366 x 768 screen? I do not have another monitor, than that, so I want to use after effects, but the requeriment to a 1080 p monitor, scared me

    Well, I want to buy adobe AE, but if I need a new monitor, unfortunately I have to give up, I live in the Brazil, everything here is expensive price or I buy a new monitor or get with Adobe AE, the problem is if I use monitor with 1366 x 768 without problems

    This monitor does not meet the minimum requirements of the system. It will not work for After Effects. Some elements of the user interface will not fit. That's why the dimensions in pixels of the screen are listed in system design.

  • I run Mac 10.5.8 and use firefox for a while. Recently, perhaps after have downloaded you an upgrade, my attatchments not open in the correct application, all files are downloaded in .ashx, which is a real pain. Can you help me?

    See:

    Bug 703015 - Outlook attachments access web download like .aspx
    Bug 704989 - add workaround for handling attachment Outlook Web App (OWA) broken

  • Satellite Pro A200/PSAE7 - turn volume change without end, not smooth Volume control

    Hello

    On my newly purchased Pro A200/PSAE7 control (hardware) volume - front, as soon as speaker - turns without end and when you use the volume does not change "smooth" - more "brutal". For this reason, there is no possible to 'fine tuning '.

    Q: is - that someone else has the same side material (without end of turn) and the software side (without smooth volume change) situation?

    Thanks a lot for any response in advance!

    Best regards
    Andreas

    Hello

    'problem' of the abrupt volume changes when turn the volume control has disappeared. I don't know if it's based on disable "TDispVol.exe" as startup service or another reason.

    Best regards
    Andreas

  • OfficeJet 7610 frequently performs maintenance printer minutes and using the ink

    Since I got this printer, he managed frequent printer maintenance pretty much everytime I go to print a page. That in itself would not be a total problem outside waiting, but it seems to use ink. I've printed a single page of color since I got new ink cartridges. Whenever he did the interview, he uses more ink color. I already get messages saying that I need to replace the Cyan. It's ridiculous! Is this normal?

    Hello @DarinP1965,

    Welcome to the HP Forums!

    I understand your Officejet 7610 running maintenance of the printer and use the ink. I will do my best to help you! Just so you know, usually when a printer keeps clean the print head, it indicates that something is wrong with your print head.

    I recommend the continuation of this entire document of HP ink trails fixing faded prints and other common Print quality problems

    Try cleaning the printhead by yourself a few levels to see if that makes a difference. If this does not help, you should then contact HP technical support for further assistance. Click here to read: worldwide Contact HP. Good luck.

  • How to remove the trial version of Acrobat DC 30 days that I have somehow on my MacBook Pro?  I don't want the dang thing, and it prevents me from using my Acrobat Pro 11 software.  Trying to access using the tree without end of support for Adobe is reall

    How to remove the trial version of Acrobat DC 30 days that I have somehow on my MacBook Pro?  I don't want the dang thing, and it prevents me from using my Acrobat Pro 11 software.  Trying to access using the tree without end of support for Adobe of really making me cranky.

    Hi thomh65004143,

    You simply drag the Acrobat DC application from the applications folder to the trash to uninstall.

    Then restart your system & install Acrobat XI Download Adobe Acrobat products. Standard, Pro | DC, XI, X.

    Let me know if you are still having a problem.

    Kind regards

    Nicos

  • When I start my laptop (running vista 32-bit) upward and the connection, get this error message "error loading c:\users\Appdata\Local\Temp\sshnas.dll".

    When I start my laptop (running vista 32-bit) upward and the connection, get this error message "error loading c:\users\Appdata\Local\Temp\sshnas.dll".

    Hello

    Download update and scan with the free version of malwarebytes anti-malware

    http://www.Malwarebytes.org/MBAM.php

    You can also download and run rkill to stop the process of problem before you download and scan with malwarebytes

    http://www.bleepingcomputer.com/download/anti-virus/rkill

    If it does not remove the problem and or work correctly in normal mode do work above in safe mode with networking

    Windows Vista

    Using the F8 method:

    1. Restart your computer.
    2. When the computer starts, you will see your computer hardware are listed. When you see this information begins to tap theF8 key repeatedly until you are presented with theBoot Options Advanced Windows Vista.
    3. Select the Safe Mode with networking with the arrow keys.
    4. Then press enter on your keyboard to start mode without failure of Vista.
    5. To start Windows, you'll be a typical logon screen. Connect to your computer and Vista goes into safe mode.
    6. Do whatever tasks you need and when you are done, reboot to return to normal mode.
  • My iMac cursor is stuck in the upper left corner of the login screen and I can't move it and now I can't use my iMac. What can I do? My iMac is a 27-inch 2014 release (one thin without retina display) and uses the keyboard and wireless mouse.

    My iMac cursor is stuck in the upper left corner of the login screen and I can't move it and now I can't use my iMac. What can I do? My iMac is a 27-inch 2014 release (one thin without retina display) and uses the keyboard and wireless mouse. It runs OSX Mountain Lion (not sure which version) and is a model 27 inches.

    have you tried to change the batteries in the mouse?

  • I run Ad-aware software, I get the message found: MyWebSearch (918) 97\a0223553.dll, and 4 other items

    I have Windows XP with update 3, when I run the software Ad-aware, I get the message they found:
    MyWebSearch 97\a0223553.dll (918), more it found 4 other items on my C:\System volume information\_restore (more a bucnh of #s ending with .dll extensions and the other in a rp22) will type stuff here, but have a record of them, if you want...
    McAfee, windows defender and malwarebytes can't find it when I run their analyses, which is this, is it invade my computer, and how do I get rid of him.  Ad-aware scan results, it will not let me delete these.  Other items like cookies are able to remove on the result screen.
    Can you givje me answers.  Thank you

    MyWebSearch is actually a toolbar and also out of a search engine (powered by Google) of Mindspark Interactive Network, Inc. According to their home page.

    You have toolbar installed - try UN-installing it. Go to start Orb > Control Panel > programs > programs and features and try to find and uninstall.

    With regard to these elements in C:\System volume information\_restore - they are probably not viruses. You don't see the file in C:\System volume information\_restore folder as it is protected - it inquires then would not be possible. Any ways, everything on C:\System volume information\_restore is stored in a state similar to the functionality of an antivirus quarantine. All files in the file C:\System volume information\_restore can be read or executed, even if some malicious software is there that it will not run--unless you do a system restore.

  • My CC desktop application does not open and shows a spinning wheel of progress without end. It also doesn't show Menu: home, applications, files, fonts, community.

    My CC desktop application does not open and shows a spinning wheel of progress without end. It also doesn't show Menu: home, applications, files, fonts, community.

    I use Windows 7. I tried several times the instructions here: App does not open. Wheel of progress turn continuously

    I am able to ping adobe.com and three other Adobe servers I found on a site help, but can't find them now.

    I can't do a ping activate.adobe.com

    Hi Michael,

    You can see the threads below where this issue has been addressed:

    Adobe Creative Cloud / Desktop App / Home Screen: constant spinning wheel

    Creative Cloud Desktop App taped blue spinning wheel after update.

    Kind regards

    Sheena

  • VMware Workstation running without the GUI

    I used to use VMware Server and configured to start some VM, I need on-site at startup. I went to the workstation to work with our ESX VM, so now I wonder if there is an easy way to get a similar behavior.

    There is no a lot of information about this in the manual, I tried running ' / usr/bin/vmware - blah.vmx x ' when when I connect, but the graphical interface starts too. If I can remove the GUI and I have just the tray icon, I'd be a happy man.

    Once my session X crashed and the VM kept working well, so I guess that there is a process that is actually running the virtual machine independent of the GUI somewhere can I drill to get the virtual machine started?

    N ° workstation is designed for interactive virtual machines.  6.x and newer, the ability was added to maintain a virtual machine running in the background AFTER it was launched upward - however the GUI should be started to start/run prompt, AND user must stay connected (i.e. the virtual computer is running as a user process).  If you want to run virtual machines under services, using VMware Server.

  • Hello I (IPAD MINI DEVICE) and problem in my memory I have 12.5 GB, and using less of it and A Nofticate it indicates your size will end soon, or something like that I deleted the apps and that he got 100 MB and after all the Nofticate come back and some

    Hello I Have (IPAD MINI DEVICE) and have problem In My Memory I have 12.5 GB, and using less of it and A Nofticate it indicates your size will end soon, or something like that I deleted the apps and got 100 MB and after all in the Nofticate come back and something has my size and it says Iam using fully 12.5 GB and I amnt Iam using just use it 4 or 5 GB

    Try to provide the exact text of the message you see. "size will end or something" identifies not enough information for anyone to be able to solve the problems.

    In addition, check if reference is made to the size on the device, called space iCloud.

Maybe you are looking for