Several DLL thread with a GUI

I would like to create a DLL that is called within a c program.  The DLL would show a GUI that is updated when the C program passes 5 values.  The DLL would receive the values once every 0.1 s and update accordingly.  I wanted to use CVI, because as I understand it, I can create a GUI with CVI.  Mainly, the GUI requires no user interactation.  It displays only one card.

1. the machine - what is using that program c with the DLL is in need of any kind of runtime or software installed?  If so, is there another way to solve this problem?  I don't want to install a bunch of stuff in a workstation before the DLL can be used.  If the DLL is used, I installed on the test station 60, which is not desirable.

2. when the DLL is called (once every ~ 0.1 s), it must take place in another thread, so that the main program of C does not slow down the speed.  Is this possible?

3 can I still update once every 0.1 s or faster?

Hello

(1) application of CVI need its duration, oficialy:runtime must be installed.

There are also ' unoficial/supported no' way to do it. Just create the installer for your application of CVI IDE and select "install the runtime to the directory of the application. Then install this to any PC. You will get run-time CVI (GUI) library at this location. And (if you're a lucky - remember that it is an unsupported action) you can just copy this folder requests to any PC.

(2) I think that 'yes '. ICB has good support for multithreading, just spawn a thread and execute the RunUserInterface() function, then you can use the function such as PostDefferedCall() or PostDefferedCallToThread(), you can also use something like "thread safe queue" (glance at help for the function CmtNewTSQ)

(3) he has no problem with calling more frequently, especially with TSQ (ThreadSafeQueue).

You can simply feed TSQ at very fast speed, because it don't have to redraw immediately.

Then in the thread, you can get data of TSQ with independent rate for drawing (0.1 s or more) and process all of the incoming data as you want (graphics path or not). Beter reaction, you can set up a callback TSQ (CmtInstallTSQCallback), which will be called when there is some data in it (configurable).

Tags: NI Software

Similar Questions

  • Firefox 4 shows several message boxes with "uninstall all '. '. How can I stop this?

    Firefox 4 shows several message boxes with "uninstall all '. '. They may not be closed and they freeze Firefox. The only way to stop is to END of TASK through the Task Manager.
    OS: Vista) with all the service packs and updates as of April 21, 2011. All other browsers and applications are closed.

    This problem may be caused by an extension that is not working properly.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions of the origin of the problem (switch to the DEFAULT theme: Tools > Modules > appearance/themes).

    In Firefox 4, you can use one of them to start in the questions to troubleshoot Firefox in Safe Mode:

    • Help > restart with disabled modules
    • Hold down the SHIFT key while double-clicking the shortcut from the desktop Firefox (Windows)

    See:

  • Problem in creating several attributes XML with the same name of the attribute

    I am trying without success trying to create several attributes XML with the same name, as shown here in a Microsoft example configuration file:



      
         
         
         
      

    I'm calling the NewDocument GetRootElement functions and then "newelement" (appSetting), "newelement" (add)

    Then I call AddAttribute with add, key & Key0, then with add, value & 0.  This seems to work fine but when I try to add the second pair of key & Key1 and value attributes & 1 for item "Add" replaces ""and I find myself with"" only.

    I do something wrong or CVI is not able to create an XML of this type?

    Thank you

    Here's how you do it. I show not to keep things simple error checking.

    #include

    public static void CreateAddElement (mother of CVIXMLElement, const char * key, const char * value)
    {
    Add the CVIXMLElement;
    CVIXMLNewElement (parent, -1, 'Add', &add);)
    CVIXMLAddAttribute (add, "touch", key);
    CVIXMLAddAttribute (add, "value", value);
    CVIXMLDiscardElement (add);
    }

    void main (void)
    {
    CVIXMLElement root, and appSetting;
    Doc CVIXMLDocument.
     
    CVIXMLNewDocument ("configuration", &doc);)
    CVIXMLGetRootElement(doc, &root);)
    CVIXMLNewElement (root,-1, "appSetting", and appSetting);
    CreateAddElement (appSetting, "Key0", "0");
    CreateAddElement (appSetting, "Key1", "1");
    CreateAddElement (appSetting, "Key2", "2");
    CVIXMLDiscardElement (appSetting);
    CVIXMLDiscardElement (root);
    CVIXMLSaveDocument (doc, 1, "c:\\temp\\temp.xml");
    CVIXMLDiscardDocument (doc);
    }

  • can I create a DLL file for labview that has DLL library with inside?

    Hello everyone,

    I am developing an application for the cards PCI devicenet in labview (beginner to labview) environment.  Is there a DLL file for the PCI card from the provider. But it's too complicated for a beginner to call each function in the DLL of labview. Therefore, I'm trying to re - use a VC ++ program (working properly) that calls some sellers DLL library functions.    To do this, I created the DLL file which includes all headers and libraries the provider DLL, as indicated in the attached figure. But I couln can't see the effect on the device. is it possible to create a DLL file for labview that has DLL library with inside? If this is not the case, how can I implement the program shown in figure?

    I would like to wish a huge as to advance.

    It is not something I have a lot of experience in so I don't know all the details of the restrictions or requirements etc - but it is certainly possible to create wrappers for the dll and then use them in LabVIEW - this is sometimes necessary to convert some native types/data structures in C/C++ into something that you can switch to your other DLL LabVIEW.

    There is a link here: http://digital.ni.com/public.nsf/allkb/06ECDC689DDA0F3D862574440074CD95

  • How can I stop Outlook Express sends several empty messages with attachments

    How can I stop Outlook Express sends several empty messages with attachments

    Not a lot of information, but CrystalBall © says:
     
    Tools | Accounts | Mail | Properties | Advanced. Uncheck the box: "Break apart messages...". ».
  • When I'm accommodating the toolbar of the new option to arrange the icons on the toolbar toolbar change several tools come with the words "wrong tool" and have no icon associated with them. What are these missing tools 'bad '?

    When I'm accommodating the toolbar of the new option to arrange the icons on the toolbar toolbar change several tools come with the words "wrong tool" and have no icon associated with them. What are these missing tools 'bad '?

    I see you have fixed this now, but I was about to tell you that you could have accommodated in the 'Bad' by its shortcut "I" tool.

    To save a custom toolbar, get everything the way you want and click on the button space work, click new workspace

    Type a name for the workspace, and check all three options.

    If I have to use a single screen, I use a variant of the Essentials workspace with minor panels collapsed and dock for main panels.  I call this Essentials 2

    It also seems to me that with all these options, it's stupid not to take full advantage of them, so I separate my most used instruments for their own group and double column toolbar to adjust the screen.  I tried to drop in the groups for the most used tool near the document image (right). I love it, but it take some time remembering the new positions.

  • Can FrameMaker to create several Master Pages with sizes different pages in a single file of FM?

    Can FrameMaker to create several Master Pages with sizes different pages in a single file of FM?

    N °

    You must break your content between files and use the book feature to apply numbering to make look it seamless. Sometimes, if you can, re - organize the content so that all oversize pages come at the end of a chapter/file makes it easier to manage a such split files in the book.

  • Hello, I want to build several video clips with more than 500 images (pictures) of each clip. I need to apply a different video transition effect to each photo. It might even be random effects. I see that I can apply a unique to all p transition effect

    Hello, I want to build several video clips with more than 500 images (pictures) of each clip. I need to apply different transitions video effects by alternating each photo. It could be random effects. I see that I can apply a unique pictures transition effect at the same time, but how to apply different transitions not one by one? I could do a clip applying different transitions manually as I wish between hundreds of photos, but I would like to be able to repeat all the transitions of a new video by changing only the photos. Is this possible? Or a tool to apply random transition effects between photos? Or a way to automate the actions to apply different transitions similar to what we can do in Photoshop? Thank you!

    But how to apply different transitions not one by one?

    You can not.

    If you wish to make a slideshow with all the transitions better fantasies use something like Pro Show gold.

    Alt drag window project replaces clip/still on the timeline.

  • Is it possible to create a document merge pdf and mailing to several vendors (each with their own unique values) for them to individual e-sign?

    Is it possible to create a document merge pdf and mailing to several vendors (each with their own unique values) for them to individual e-sign?

    I have my letter and the data that is created in Excel and Word, so I want to create these data in a mail merge (by Word) and then saved in PDF format.

    I wish that each document merged PDF mail to have their signature / title / name of fields as fields of e-sign.  Is this possible? How can I configure my document as well what happends without me one in and edit every PDF document.

    Thank you ~.

    Hello Gallienterprises,

    It seems that you are looking to extract the values of your CSV file in the document of the multiple signatories. For this, you can use the MegaSign feature:

    https://helpx.Adobe.com/content/help/en/document-cloud/help/sending-megasign-using-CSV-fil.html

    Let me know if you need more information.

    Kind regards

    -Usman

  • Friends of Hy. I want to ask that I am looking to get a pdf split software to split a pdf file into several PDF files with my set of pages specified. As if a document is 22 pages then I will specify the number of pages that must be cut in half to separate

    Friends of Hy. I want to ask that I am looking to get a pdf split software to split a pdf file into several PDF files with my set of pages specified. As if a document is 22 pages then I will specify the number of pages that must be cut in half in separate PDF files. for example I entered that do three pdfs of 1-5, 5-7, 8-10 pages and it will result in me

    first pdf = 1-5 pages

    second pdf = 5-7 pages

    Third pdf = 8 to 10 pages.

    Y at - there no way to do it with adobe acrobat or any other software? I tried many software including adobe with extract and split option, but I did not get the results you are looking for. so please:

    I would like to know if any of you have any knowledge about it. I have

    Thnanks in advance!

    Hi minixain,

    Yes, you can do it using Adobe Acrobat application (Adobe Acrobat free trial downloadversion |) Acrobat Pro DC), please refer to this document for help KB split a PDF | Adobe Acrobat DC tutorials.

    Kind regards

    Nicos

  • Question about several popular vm with the same kernel version

    So, I have been informed that ESX is smart enough for to run several virtual machines with the exact same kernel that it loads only one instance of the kernel in memory for all of them so that it saves space in RAM. This seems quite remarkable to me, and I'd like to see if VMWare has any white papers or other documents on this. I'd like to believe it's true, but it seems incredible to believe.

    Is this really how ESX functions? If I have 10 XP SP3 machines with the same level and exact same version of the kernel patch, VMWware won't really load only one instance of the core XP in RAM to separate the 10 machines? If he does that, how handles when 10 machines all want access to the same statement in kernel mode at the same time separate?

    Welcoem to the Forums - ESX will actually 10 instances of the core of the customer even if they are the same OS - but once loaded using Transparent Page Sharing the vmkernel (the o/s of the ESX Server) can recognize identical pages and store them a time-read only memory - if the virtual machine tries to write to that page a copy and writing is done - if this new page is another page in memory that one instance is maintained. This saves a TON of memory-

    If you find this or any other answer useful please consider awarding points marking the answer correct or useful

  • Question about Threads with WHILE and FOR

    Hi all

    I have a question on threads with a loop on this topic sentece.

    Have the following class:
    class test{
    
    bool foundThing;
    PararellSearch(string [] lista, string s2find){
    while(!foundThing)
    {
    for(int i=0;i<lista.length;i++){
    if(s2find==lista){
    foundThing = true;
    break;
    }
    }
    }
    }
    If I start 10 threads which are using the PararellSearch method to look into lista, each of them inits into a different point, and when some of them found the right word then set foundThing= true. It will stop WHILE and FOR loop in all the threads? 
    If not, how could I do it?
    
    Thanks a lot for your help.
    David.
    
    Edited by: user13553506 on 27-dic-2010 12:15
    
    Edited by: user13553506 on 27-dic-2010 15:54                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

    When you post the code, you'll want to post a [url http://sscce.org] NBS so that it is clear that what you try to do it. For example:

    1. in the validation of code, put {code} before and after him, then he will be readable.

    2. the convention in Java must start with a capital letter class names, so test, could not test.

    3. the convention in Java is to start with lowercase letters, so parallelSearch, not PWhateverMisspellingYouHaveThere method names.

    4. There is no such thing as bool. It is a Boolean.

    5. it is a String, not string.

    6. never use == to compare the States of objects (such as the content of the strings). Use equals().

    To answer your question: If you create Test 10 objects, then, given that foundThing is an instance variable, there will be 10 variables entirely independent foundThing. An adjustment will not affect the other. In this case, the easiest thing to do would be to foundThing static, so that there is only one copy which is shared by the Test class as a whole. This isn't the only way, or even the best way in all cases, but you have enough other problems to face, so for now to keep things simple.

    Finally, when you have a variable that is shared by multiple threads, you need to either make all the access to this variable synchronized on the same lock (reads and writes), or you need to declare the volatile variable.

  • Several updates fail with 0x8007001F

    Windows XP, 2699988 and 2632503 updates fail with 0x8007001F error code. He had 11 updates fail, manually installed microsoft.com/download 10, but could not be the last of them. Follow-up of the diagnoses of FixIt to manually reset Windows update, the re-registration of the DLL and clear the distribution of software with several stop folder net start commands, no solution.  Added an optional update and it did not. Tried several profiles and reboots.

    The user has installed Real Player about two weeks ago. Symentec Endpoint Protection started Pavilion virus after that. Do you have a manual removal of Real Player. Scanned and cleaned with MalwareBytes and seven. No other problems not reported except this problem of Windows Update.

    I paid $49 for support chat. Anoop representative quicky identified a rootkit virus. Fixed with Kapersky anti-rootkit utility TDSSKiller and complete a reset of settings IE. One of the symptoms that identified, he was Manager of disc appears not all discs. Closed question.

  • c:\windows\system32\storprop.dll error with USB

    I had a problem with my USB flash drive (memory stick) that I bought recently.  I used a Sandisk U3 Titanium 2 GB flash drive with U3 technology.  I bought a Sandisk Cruzer 16 GB drive in addition to the another flash drive.  Now when I plug the new "Cruzer" it displays the following error message

    DEVICE SETUP ERROR
    Windows could not load the installer for hard drive.  Contact your hardware vendor.

    After clicking OK, the box NEW HARDWARE FOUND is displayed and when you select this option to locate and install the driver (recommended) it immediately returns the following:

    newdev.exe - incorrect Image
    C:\Windows\system32\StorProp.dll is not designed to run on Windows or it contains an error.  Try to install the program by using the original installation media or contact your system administrator or the provider of software for support.

    From there, you select OK and he repeats the MISTAKE of the DEVICE INSTALLER and then displays the NEW HARDWARE DETECTED again.  This time, it says to insert the disc that came with the device.  When you select that you do not have the disk, it asks if you want to find a solution.  Then he said: it could not install your SanDisk Cruzer USB device.

    At first I thought it was a problem with the "Cruzer" so I called SanDisk and crossed their tech support and finally, he recommended that I have to contact Microsoft as it was not a problem with their device.  This seems to think as my U3 device still works fine.

    Today, I went to plug my new external hard drive Seagate through my USB port and has received the exact same guests and error messages.

    I noticed also about a month when I inserted my SD card in my SD card reader, which is built into the laptop, I got an error message.  I went back today and he reinserted and received the same error messages that I described above.  I'm guessing that all of these mistakes probably revolve around the c:\windows\system32\storprop.dll file but I don't know what to do about this.  I tried looking online to find an answer, but could not find anyone else with similar information.

    In addition, once all the error messages are recognized, then the devices can be used, however for the SanDisk Cruzer, it you cannot use the software of the U3 technology.

    Anyone who can provide any assistance with this would be greatly appreciated!

    Hi not2l84u2,

    I found the following post that is similar to your problem with a possible fix:

    http://social.answers.Microsoft.com/forums/en-us/vistahardware/thread/a95812e8-6dec-4A9A-9277-0684f047fe34

    I hope this helps!

    Debra
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • Several applications crashing with Faulting Module "StackHash_"... »

    Hi, I'm new and this is my first post.
     
    I'm in this nightmare for several months, any help would be more then appreciated.
     
    Keep a huge list of demands on crash again and again, among them are: Windows Media Player - VLC - COM Surrogate - Photo Gallery Windows Live - VirtualBox - Microsoft Silverlight - Windows Explorer - XPS Viewer - Windows Live Mail - doPDF8 - PerformanceTest - HP SimplePass - TeamViewer - Windows support center - and many others.

    When you look in windows "Action center" in the "reliability monitor", most of them were listed in the field 'Fault Module name' something 'StackHash_' followed with four numbers or numbers. for example, "StackHash_7001" or "StackHash_4ac5". A few other applications overwritten is the module failed 'ntdll.dll '.

    IV ' e searched all around solutions to this unfortunate problem, the solution only so-called for it I found some answers so that he could have to do with DEP and they advised to turn off DEP for these applications crashing, but this isn't a solution at all because my system is 64-bit and so are most of the applications , and "you can not set DEP attributes on 64-bit executables."

    IV ' e had already restored my laptop to a factory State. but the same thing again later.

    PLEASE CAN SOMEONE HELP ME?

    I use Windows 7 Home premium edition, on my HP Pavilion dv6-6c13cl.

    UPDATE:

    Already found the cause of the problem, it's an update of windows as an option for the "Advanced Micro Devices, Inc. - Display, other hardware - AMD Radeon (TM) HD 6520 G. Uninstalled, and so far, everything is OK.

Maybe you are looking for