LabVIEW can create DLLs 'returning '?

Can LabVIEW create reentrant DLLs; I mean, there a dll that maintains state information between calls? If so, how are you implementing it?

Thank you

Maintain state information can be done through a registry to offset the.  This also works in a LabVIEW DLL.

Make sure that the DLL is not unloaded between the function of other calls he will lose his memory.

Tags: NI Software

Similar Questions

  • Why can I not use my labview controls created dll in labwindow CVI?

    I created a DLL in LabVIEW for run of LabWindows/CVI.  The DLL is started very well but I have no control on the GUI.  Why and how can I use this GUI controls?

    I found the solution on the following thread.

    http://forums.NI.com/NI/board/message?board.ID=180&message.ID=36951&query.ID=314335#M36951

  • 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

  • Create DLLS in labview and call it from another application

    I have an application built using Labview. I wanted to create a DLL out of it. At the request

    two string entries start and stop buttons and two indicators of the State.

    1 how to itegrate start and stop buttons to a function prototype?

    2. what Labview created dll requires the labview runtime engine if it must be called from other applications?

    Can help with that.

    Hi Yuvish,

    (1) they must be entered Boolean to your VI. But, it is a good idea to make a stop at the beginning of your VI contribution? (THINK THE STREAM!)

    (2) Yes, LV - RTE is required...

  • is it possible in LABVIEW to create an output EXE as VC ++

    Ghislain IAM. new to LABVIEW IAM.

    I have 1 + years of experience in VC ++ 6.0.

    Is it possible in LABVIEW to create an output EXE as VC ++.

    If it please suggest me how to create...

    I don't know what a "release mode" exe's, but to create an exe of a VI:

    If you have LabVIEW 7.1 or earlier:

    Go to tools > build executable

    Use the wizard to create the executable file or the installer.

    If you have LabVIEW 8.2 (I think) or later:

    You must have the VI and all of the Subvi in one project.

    From there on, you build a dll.

    Just search for 'build executable' in the forums, you should get dozens of hits.

  • En5.1: Cannot create a DVD disc or DVD folder, but can create a Flash version that works according to the needs.

    Yet 5.1 cannot create a DVD disc or DVD folder, but can create a Flash version, including a Manger Menu HD & HD submenu nursery that works as required.

    The script contains two M2v with AVI files associated files.

    An anomaly, when rendering > motion menu is executed, the Menu made progress has elapsed time: indicator checking the time, but nothing happens. I cancelled the progress to return after 8 minutes window.

    The Flash version works fine. How should I proceed with the DVD disc or DVD folder versions?

    two M2v file with the associated AVI files.

    Do you mean associated wav files?

    M2v files show that "do not transcode" for DVD transcoding status?

    What happens when you try to build on the record?

  • You can create an index on a map?

    I have a few questions that I can't understand, or find a viable for example. You can create an index for a card, contained in a nested object, and if so, how would you do that? I have currently a filter inspected this criterion in the cache, but I am unable to understand to create an index of usabe for the custom filter. I use coherence 3.5.2 - any help would be most appreciated. I don't know if / what should I do with the SimpleMapIndex...

    Here's the Basic object below map. My filter retrieves all objects of ClientType with a client in his collection that contains the past in integer value in the customer's card. So can you create an Index on a card (and a nested to it) and how do you this? The index should be on the nested customerValues hashmap.
    class CustomerGroup
    {
        Set<Customer> customers ;
    }
    
    class Customer
    {
        Map<Integer, CustumerValue> customerValues;
    }

    If you write a custom, ValueExtractor you need to create an index, then you will not have a custom filter.

    Depending on how effective it must be custom Extractor you can use POF and don't have to deserialize the entries to create the index, or it can deserialize the class, which will make the code simpler.

    For example, without the use of POF

    public class MapKeyExtractor extends EntryExtractor implements PortableObject {
    
        public MapKeyExtractor() {
        }
    
        @Override
        public Object extractFromEntry(Map.Entry entry) {
            Set keys = new HashSet();
            CustomerGroup group = (CustomerGroup) entry.getValue();
            Set customers = group.getCustomers();
            for (Customer customer : customers) {
                keys.addAll(customer.getCustomerValues().keySet());
            }
            return keys;
        }
    
        @Override
        public boolean equals(Object obj) {
            return (obj instanceof MapKeyExtractor);
        }
    
        @Override
        public int hashCode() {
            return MapKeyExtractor.class.hashCode();
        }
    
        @Override
        public void readExternal(PofReader in) throws IOException {
            super.readExternal(in);
        }
    
        @Override
        public void writeExternal(PofWriter out) throws IOException {
            super.writeExternal(out);
        }
    }
    

    The extractor above returns a collection of all the integer values in the keys to all the customerValues of all customers in a ClientType (I guessed you have some accessor methods on classes that you posted).

    You can then use a ContainsFilter for your query. For example to get all values in the cache where the customerValues card contains a 19-key...

    Set results = cache.entrySet(new ContainsFilter(new MapKeyExtractor(), 19));
    

    You could write a version of the MapKeyExtractor which uses POF and wouldn't not deserialize values, but it's more complicated code, because should extract the POF of value stream map and go down the keys and values extract the key. It's doable, but not worth it unless you're really worried about the execution of updates of the index.

    Discalimer I wrote the code over the top of my head so have not compiled or tested, but it should be OK.

    JK

  • Can a function returns a cursor?

    Hello
    can a function returns a cursor, or it may just return simple data types? If she can return a cursor which version is it possible?
    Thank you!

    Hi Mark,

    Some examples of the REF Cursor code.

    CREATE OR REPLACE FUNCTION emp_by_job (p_job VARCHAR2,p_deptno NUMBER,pv_table VARCHAR2)
    RETURN SYS_REFCURSOR
    IS
        emp_refcur      SYS_REFCURSOR;
    BEGIN
        OPEN emp_refcur FOR
        'SELECT empno, ename FROM '||pv_table||'  WHERE job = '||''''||p_job||''''||' and deptno= ' ||p_deptno; --Dynamic String where table name column values are parameters
        RETURN emp_refcur;
    END;
    
    DECLARE
      emp_refcur_local      SYS_REFCURSOR;
      empno NUMBER(4);
      ename VARCHAR2(30);
    BEGIN
      --Calling the function using parameters
      emp_refcur_local:=emp_by_job('MANAGER',10,'EMP');
      LOOP
      FETCH emp_refcur_local into empno,ename;
        EXIT WHEN  emp_refcur_local%NOTFOUND;
        DBMS_OUTPUT.PUT_LINE('Employee no: '||empno||'/ Employee name: '||ename);
      END LOOP;
    END;
    
  • Compressor can create subtitles

    Or compressor can create coded subtitles do I need a separate program for this?

    Yes it can.  Everything is in the user manual.

    http://help.Apple.com/compressor/Mac/4.2/#/cpsr9a2e9329

  • I tried to adjust my police going into the choice of pixel and now it's so small that I can not yet return to

    I followed the instructions online and reset the pixels the wrong way and now the police is so tiny that I can't even see fit.
    I tried to reinstall firefox, but it does not work

    You can edit the prefs.js file in the profile folder of Firefox with a text editor such as Notepad and remove the line with the layout.css.devPixelsPerPx pref or change the value 1.0

    • user_pref ("layout.css.devPixelsPerPx", "1.0");
    • C:\Users\ < user > < profile > \AppData\Roaming\Mozilla\Firefox\Profiles\.

    The "Application Data" in XP/Win2K folder and the folder "AppData" in Windows Vista, Windows 7 and later versions are hidden folders.

    Alternatively, you can create a file user.js and place the above posted user_pref() line in the user.js file and start Firefox once to reset the pref.

    After you have done this and have restarted and closed Firefox, you can remove the user.js file because otherwise you cannot make changes to this pref that will last.

  • I'm used to be able to refresh a page by pressing the F5 key. Which doesn't seem to work. Y at - it a keyboard shortcut for editing, or I can create a?

    I'm used to be able to refresh a page by pressing the F5 key. With 4.0.1 which doesn't seem to work. Y at - it a different keyboard shortcut, or I can create a?

    Try CTRL + R

  • I can create a document that uses cells from another document

    I want to have a single numbers document that pulls the numbers by a lot of other documents.

    Each pay period, I have a different document with hours of work on the different "stuff".  This document has formulas in the cells that add columns, create totals, show the amounts of money, etc...  Now, I want 1 document where I can create a cell with a formula (?) that allows you to view the totals for all other documents.  Is this possible?

    Thank you!

    You can pull numbers from other tables, even tables that are not in the same spreadsheet (tab).  But without a script a bit bulky will not pump you the values of a separate document numbers.

    In number because it is easy to have multiple tables on a single sheet, and there may be multiple sheets in a document, I recommend you organize your time-past data is self-contained in a single document.

    In addition, it is much easier to build a summary information in a table, it is to consolidate data from different tables. Then you might consider making your time spent in a table entries.  Then you can extract summaries of project, etc. a table.

    Recommend to have a look at the model of "Personal Budget" file > new to see how it would work. You would add "hours" instead of "dollars", but the principle would be the same.

    SG

  • "labview can't stand this VI.

    Hello

    I am pursuing a project made 3 years ago. The guy who did me a lot of VI for the project. My problem is with some VI, labview can't stand the (such as the file.vi of open_creat_replace). I insert an image of the block diagram.

    I already made some changes regarding the acquisition of data, because now I use DAQmx (he used the traditional DAQ). Is there a VI to do the same thing for the recording of data? the other problem I have is that it saves the data to a file with the extension. Is SCL, still possible in labview 8.2? This is important because I need a file. SCL to other VI.

    Thank you very much for your help, I tried to find the solution but without success...

    Sophie

    I finally found the solution by mixing examples and the VI of the man in front of me. I am trying to write to a binary file using these examples: .vi Cont acquire & voltage - graphics file (binary) to save my RAW files and acquired graph of the binary data for the beginning of my other VI to extract data.

    Sophie

  • LabVIEW can not detect the network drive so that other applications can.

    All network drives are mapped correctly and another application such as micro soft office or windows explore can see the correct mapping LabVIEW can not see the mapping? No idea how to solve this problem?

    -VS

    The solution: Add EnabledLinkedConnections to the registry

    https://TechNet.Microsoft.com/en-us/library/ee844140 (v = ws.10) .aspx

  • Service Manager Console 2012 can create tickets via email through any kind of process/workflow?

    Original title: create tickets by e-mail

    Hey guys,.

    I need to create a support metric and most of our users are used for sending emails to the support mailbox and do not connect a ticket. Service Manager Console 2012 can create tickets via email through any kind of process/workflow? I know another system that can - I did not know if the MSC can?
    I hope that makes sense.  THX,

    This issue is beyond the scope of this site and must be placed on Technet or MSDN

    http://social.technet.Microsoft.com/forums/en-us/home

    http://social.msdn.Microsoft.com/forums/en-us/home

Maybe you are looking for