Compile the LabVIEW code in DLL?

Is it possible to create a DLL using only LabVIEW? Such that the DLL can be installed on a non-labview system and used by other languages such as C? -L'application would be low-level for use by other platforms as LabVIEW for the development of hardware drivers, and since I am much more experienced LabVIEW c, I prefer to develop the DLL using LabVIEW 8.6 Professional. (Windows VISTA/XP)

Also please read this.

Tags: NI Software

Similar Questions

  • Compile the external code with Microsoft Visual C++ 2008 Express Edition

    Hello

    I'm trying to compile c code to work with Labview (CIN or dll). In the past I did without problem using visual studio. I'm having a really hard time compiling the code with

    Microsoft Visual C++ 2008 Express Edition. I'm trying to compile one of the examples that come with Labview (multiply 2 numbers for example).

    I don't know how to set the project with Microsoft Visual C++ 2008 Express Edition. I read on the web something make a folder of lvm with Labview makefile. Is this really necessary? If so, how to create this file?

    Thank you

    Eyal

    Thanks for your reply.

    In fact, I found a way to create a dll on the web:

    http://decibel.NI.com/content/docs/doc-1690

  • Impossible to compile the Java Code using the Oracle API

    Hi all

    I use the following code for use in Oracle 11 g. What pots of IOM should I include to get this to compile? I seem to have all the necessary jars, except the one that contains Thor.API.Operations... If someone could point me in the right direction for this, I would be very grateful.

    package AdTest;

    Thor.API import. *;
    Import Java.util;

    public class {AdTest

    public void AddProcessChildData (long pKey) {}
    try {}
    tcFormInstanceOperationsIntf f = getUtility ("Thor.API.Operations.tcFormInstanceOperationsIntf") (tcFormInstanceOperationsIntf);
    tcResultSet childFormDef = (f.getProcessFormDefinitionKey (pKey), f.getProcessFormVersion (pKey)) f.getChildFormDefinition;

    childKey long = childFormDef.getLongValue ("Structure Utility.Child Tables.Child Key"); If there is only 1 child for the form table parent on the other you have to iterate over the result set

    Map attrChildData = new HashMap();
    String NUGroupe = "someValue";

    attrChildData.put ("UD_ADUSRC_GROUPNAME", NUGroupe);

    f.addProcessFormChildData (childKey, pKey, attrChildData);
    } catch (Exception e) {}
    e.printStackTrace ();
    }
    }
    }

    xlAPI.jar

  • Compile the LabVIEW .vi for VXWorks .out file

    Is it possible to use LabVIEW to compile a .vi in a .out to use file as a model of Simulation VeriStand for a target of VXWorks still?

    Unfortunately, there is not a way to do it. LabVIEW does not support construction of the screws in the files as it's dll, and it is the mechanism used to create the LVModels.

    This is more work, but you can call screws by creating customized for VxWorks targets devices.

  • Histogram updated the LabVIEW Code

    Hi all

    I have a simple algorithm that I need to put in LabVIEW. I already have the pseudocode seized upward, and it works when I coded in Java, but for some reason, the translation into images gives me a hard time. Basically, I want to do some manipulation of table so that I can get a quasi histogram. However, I do not want the histogram to tell me all the occurrences in the table - just how many times it occurs in a row. I'll give you an example below:

    Entry: Fuel = {3900, 3900, 3900, 3900, 3900, 3900, 5000, 5000, 5000, 4000, 4100, 3900, 3900, 3900, 3900}

    Output: Value = {3900, 5000, 4000, 4100, 3900}

    FREQ = {6, 3, 1, 1, 4}

    There is a post over there that tells me how to generate a histogram, however, I need slightly modified so that it is not to go through the entire table, but rather keeps a going against and insert it into a new table whenever he finishes counting how many values have been set in that.

    Here is my start of the solution (see a PNG image and a VI)

    Hi ruthnan,

    It is a simple counting you need:

  • How can I get a picture back to labview from opencv dll code?

    Hi, I use the vi below to acquire an image of labview, then move to opencv dll code via, first getting pointer to image pixel and then passing the result parameters to create a "carpet" in my c code ++. Up to this point, everything works. Now I make opencv image treatment final resultiing I want to bring back to LabView. That I can't understand it. (btw, the image is a binary image). How can we get this image? Help, please

    P.S. actually what I get image3 is the same image I captured of LV

    Hello

    a simple example:

    OpenCV code:

    using namespace std;
    use of names cv;

    extern C
    extern "C" {}

    __declspec (dllexport) int CannyEdges (unsigned char * imageIN, int line, int cols, double lobbyist1, double Seuil2, kernel_size int, unsigned char * imageOUT);
    }

    __declspec (dllexport) int CannyEdges (unsigned char * imageIN,)
    int lines,
    int cols,
    statement1 double,
    Seuil2 double,
    int kernel_size,
    unsigned char * imageOUT)
    {
    check the size of the odd kernel
    If (kernel_size % 2 == 0) return-1;
    allocate memory
    Matt Image_input (rows, columns, CV_8U, & imageIN [0]); IT IS THE IMAGE, THE POINTER TO THE DATA ENTRY
    Matt Image_output (rows, columns, CV_8U, & imageOUT [0]); THIS IS THE OUTPUT IMAGE, POINTER TO DATA
    blur before ruse
    Blur (image_input, image_output, Size (3,3));
    Canny
    Canny (image_output, image_output, lobbyist1, Seuil2, kernel_size);
    return 0;
    }

    You can use directly on the "imageIN" by eliminating the image_output and replace them with the image_input.

    LabVIEW code:

    I enclose the Labview code (2013) and the file .dll for you to test.

    I hope this helps.

    Kind regards

    K

  • Newbie needing help to compile the code example

    Hello

    I know this is a newbie question very.
    Could someone please help me on how to compile the example code?

    [root@localhost getting_started] # gcc-I/usr/src/db-4.7.25.NC/build_unix gettingstarted_common.c example_database_read.c
    /tmp/ccMnYv8b.o: in function 'open_database ':
    gettingstarted_common.c: (.) Text + 0xeb): refers to 'db_create' the undefined
    gettingstarted_common.c: (.) Text + 0xFC): refers to 'db_strerror' the undefined
    /tmp/ccMnYv8b.o: in function 'databases_close ':
    gettingstarted_common.c: (.) Text + 0 x 513): refers to 'db_strerror' the undefined
    gettingstarted_common.c: (.) Text + 0 x 565): refers to 'db_strerror' the undefined
    gettingstarted_common.c: (.) Text + 0x5ba): refers to 'db_strerror' the undefined
    collect2: ld returned 1 exit status


    Thank you very much.
    JB

    Libraries are probably located in the .libs subdirectory (/ usr/src/db-4.7.25.NC/build_unix/.libs). You should probably run "make install" before attempting to use the library, it makes things a little easier.

  • LabVIEW code 3 error: could not load façade.

    Hello

    I was the second time the "LabVIEW code 3 error: could not load before sign.» When you use the development of LabVIEW 2009 SP1 environment.

    It's really annoying that I waste time as I have to go back to previously saved code.

    Does anyone know where it comes from and how to avoid it?

    Thank you

    Pawel

    Pawel,

    If the façade is damaged, there is little that we can really do about it. So the best thing is to make sure that the front will never get corrupted at all.

    You can write a small VI using VI Server to check the position of the element in your VI. If there is way to positions of reposition before saving the VI.

    Another reason could be much, duplication of controls (including the faulty XControls?)...

    hope this helps,

    Norbert

  • Return to the last code position

    When I am looking through a structure of great event or matter to study the LabVIEW code, it would be useful to be able just to go back to the last position within the code. (as in c# with "STRG +.") Even better would be to go back along the history of positions.

    This has actually already been proposed as an idea: http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Create-anchors-and-shortcuts-inside-LabVIEW-code-for/i...

    Note that in the comments for this idea you see many related ideas.

  • What is the right method to access the functions in a DLL compiled with a target of THIS (Arm)?

    I tried without success to access functions in a DLL that is meant for Windows CE.  My Labview application objective is a touchscreen the arm-based device.

    All, thank you very much for all your help.  I was still unable to find a method that did not produce an error when compiling... calls for a vi or a C file to be included.  (ex: [feature] is a missing file vi or C).  I also tried including the import library for the DLL, as shown above in the email from Paul, but I still received the same error.  This has been a problem for me, while testing with Win32 non-targets... in this case a device of THIS 5.0 touch screen based on the arm.

    However, I found a solution feasible and quite simple:

    Instead of trying to register the import library DLL as a file depending on the vi, I changed to build a DLL (and associated import lib) to build a static library (.lib) and included while .lib file as a dependent in the build specification.  This had the effect of linking statically, object code rather than wait for the vi compiler to compile the C source code or link a DLL import for a non-Win32 target library.  It is also not necessary to include an additional step in the installation of the DLL on the target device.  The library, I created is just a simple interface to another DLL already on the target device, which had struggled to interface directly to Labview.  Given that it is only a role of simple interface, this solution of library static woked well because it was not essential to have its available as a separately scalable DLL functions.

  • Complete mapping and the library of labview code order

    I worked with a Schneider Electric M258 Logic Controller (PLC). I already used an Ethernet cable to connect, recognized as a device of TCP/IP network OR max. Recently, I used a Schneider Electric TSX C 485 USB cable to connect via a COMPOTE. This connection is also recognized in NI MAX, as well as the fact that I can actually open a panel of test VISA this way.

    I'm looking for help step by step how to use LabVIEW to scan the logical controller for the command codes, it is used to control other instruments (heaters, pistons, etc.), can fill a library in a project, LabVIEW myself with these commands, so that I'll be able to control these instruments from my laptop.

    Hello

    Unfortunately, there are currently no tools or methods for the analysis of the controllers for control with LabVIEW codes. For a list of commands using the PLC, I reference the manual for the device or contact the manufacturer.

    Many instruments are prefabricated screw to control these instruments available on the NI Instrument Driver Network (www.ni.com/idnet) that were created by the manufacturers or other users. I searched for the Schneider Electric M258 Logic Controller (PLC), but sees not all drivers. If you are interested in a person having to create these screw driver for you, we have the Alliance partners who can help you with that. (http://www.ni.com/alliance/)

    Once find you the commands from the manual or the manufacturer, you can develop your own screw driver for the device and, if you feel so inclined, download them to idnet. Information on the creation of instrument drivers for devices to use in LabVIEW in the following link.

    https://www.NI.com/DevZone/IDnet/development.htm

    Good luck with your instrument driver development!

    -Eric

  • What version of the Visa Runtime executable files compiled in LabVIEW 7.1 require?

    We have an old executable that was written in LabVIEW 7.1 and uses the serial port communication.  We are licensed with LabVIEW 2010, however our company policy requies a lot of paperwork so he should recompile.

    The executable program has worked well over the years.  The computer on which it is running has to be replaced. Any software included in the CD 'Install' is not enough, and now there is no communication with the serial device.  I guess the problem would be DURATION VISA European Commission.

    Does anyone know which version of the Runtime VISA is required for executable files compiled in LabVIEW 7.1?  Is this something of "Legacy"?

    Thank you in advace for assistance.

    Glen

    Aside: I ask: anyone actually trying to make a search more? This must be the fourth issue that I saw this morning that could have been answered easily if a simple search had been made before posting.

    http://digital.NI.com/public.nsf/allkb/E7C93038169B6E7686257847004B8B9C

  • Error launching of the ' LabVIEW.Application [error Code:-18001]

    Hello
    I have a TS 3.4 mind sequence LabView 8.21 - Teststeps.
    The sequence is called from a Labview-OperatorInterface.
    In a step that run 100 times before without problem I receive all of a sudden the error message:

    ErrorMessage: Error running substep 'run '. Unable to launch the "LabVIEW.Application" ActiveX automation server [error Code:-18001]

    After a restart of the software al NOR-everything works normally again.
    What is this error, and what should I do with it?
    Should I ignore the error and try to execute the step again or not this average tht the ActiveX server has been lost forever?
    How can this problem occur?

    Thanks for your help


  • RT code works since the LabVIEW environment, but not when I create and deploy

    I think there are a lot of reasons why this can happen, but I can't seem to pin one.

    I have a classic controls program that runs on a cRIO. We recently decided to change the communication of a ProfiBus comsoft on Ethernet/IP card. (Industrial Protocol for Allen Renaud automata). For various reasons, we put the fuse in communication in the control loop.

    Now when I run the LabVIEW now, it works fine. I can see data going to and coming from the controller. I can sniff packets and they look good. I get about 30 milliseconds on the loop, which is long, but since I am running in the IDE, I think is not bad. (In other words, I get data in and out every 30 milliseconds).

    When I compile and set the binary on the cRIO, it breaks. I can still sniff packets, but what I'm getting now, is that all traffic to the controller of read requests. My write requests are missing. In addition to reading queries are poorly trained. Rather than ask 43 items in a table, they ask 1.

    A test that I tried was to disable the read request. For the binary file, I don't see any traffic. For the IDE, I see write queries.

    I use LV 2009 SP1. I have the version of NOR-Labs of the Ethernet/IP driver. (We have a request for a quote, but do not have the official driver.) In the meantime, faster I get this done, the happier everyone will be ;-)

    Any suggestions?

    Attention to the nodes of property which is usually my problem when it happens.  Some who say they work in RT do not work in compiled RT

  • Calculate the intensity calculation of labview code

    How to calculate the intensity calculation of an in terms of no. labview code. operations? Also please guide me how to find the number of fixed and floating point indicates the operations.

    Thank you

    As far as I know, there is no tool to explicitly measure the number of operations performed under the hood. An option that could give you a more general overview of the complexity of your code using the VI Analyzer Toolkit. There are many tests that may give you some guidance on performance issues. I would check these items:

    http://www.NI.com/white-paper/3588/en/

    http://zone.NI.com/reference/en-XX/help/371361K-01/lvvianalyzerhelp/complexity_metrics_tests/

    http://zone.NI.com/reference/en-XX/help/371361K-01/lvvianalyzerhelp/vi_metrics_tests/

Maybe you are looking for

  • Recovery HP 2000 - 2b89WM w / HP discs, update BIOS using XP 32 bit

    HP 2000-2b89WM, product c2m42ua #aba, apparently Win8, 64-bit. I'm trying to help a friend with a dead laptop. Hard drive has been damaged and the machine does not start. Got a new hard drive and the discs of HP recovery, but the recovery discs just

  • Error

    Pav 500-123w H6U69AA 4CE33703DS (R0 Intel Graphics HD Earn 8.1 64-bit D3D_ERORR_DXGI_ERROR_DEVICES_ERROR _REMOVED Only victory play multiplayer Arma3 am I missing something!  Only the updates is normal Windows and java for home security camera.

  • closing my account

    I want to close my account, because I always have problems of signature in my devices. I have a laptop computer under my email address and professional and it never fails that microsoft always crashes on my computer and cell phone, saying: my passwor

  • item (s) unknown in Netstat

    When I started Netstat - good to start my computer, the following wre appears: TCP 192.168.1.64:1035 windows\system32\WS2_32.dll component (s) unknown [svchost.exe] TCP 192.168.1.64:1036 windows\system32\WINHTTP.dll [svchost.exe] What is "unknown or

  • We have creative cloud for business our creative cloud for the client company cannot access the plan portfolio Typekit fonts

    We have Creative Cloud for businesses.Our creative cloud for the client company (= users) cannot access the Typekit portfolio plan, only the free fonts.Best regardsMatti [email protected]