How to properly reference libraries when building executable

Hi guys,
So I've been working on porting a VI developed on 2009 Labview on Windows over to 8.2 on Linux. Initially I was having some problems because the program seem to have broken after the port but we realized it was some compatiblity with the TCP communcation functions. We solved it by writing some new TCP open/send/recieve/close functions in C and called the functions through a sub VI calling a library function node.
Now, the program runs completely fine on labview on the development machine where I have all the files. However, things seem to break down when I build the program as an executable to be run on a machine without labview. 
From what I can tell, it seems as though the library function node is unable to find the proper .so file to reference. However, I've tried numerous methods of passing the correct path of the .so file to the library function no but nothing seems to work. I've tried implementing path on the sub-vi level then up to the vi level but the results are all the same, the program works in labview fine but the TCP communcations break when i compile.
So can anyone tell me or point me to a good tutorial on how to properly implement and build with library function nodes and also properly referecing the required .so files?
Thanks guys,
Jason.

Hi Jason,
If you open example finder in LabVIEW (Help>>Find Examples…)  and search DLL, you may find the “External Code (DLL) Execution.vi” to be helpful.
There is some thorough documentation on how to use external code in LabVIEW at the following link:
http://www.ni.com/pdf/manuals/370109a.pdf
I would double check to make sure you are compiling the C code to the correct format.  To run it on a Linux machine the .so file must be in the ELF file format, not the PE format (which is what DLL files use).
I am also wondering why you need to re-write the TCP functions, there should be a Linux LabVIEW equivalent function for each of the LabVIEW Windows functions.
Regards,
Shane C
Regards,
Shane C
Applications Engineer
National Instruments

Similar Messages

  • How do you access 'finder' when building Smart Previews in Lr5.

    How do you access 'finder' when building Smart Previews in Lr5

    C,
    What type of backup was it? I'm hoping you were using Time Machine or creating a Bootable Clone using Super Duper or Carbon Copy Cloner. If that is the case then I'd recommend starting over so you can restore all your data, applications, settings etc... You missed your first chance when you turned on the new system and it asked if you had another Mac you wanted to migrate from. You can get a  second chance to do this and migrate. Please carefully look over Pondini's Lion Setup Assistant tips beginning where he talks about Second Chance....and make sure you have the proper cable before starting. If your backup EHD has a USB connection that will be fine if it has a FireWIre 400 connection you will a cable like this one from Amazon.
    You can find these at your local computer store, Walmart, Radio Shack etc..

  • Language Problem when building executable

    I'm having a weird issue when building executables.  Labview seems to forget the english language.  I have tried selecting English exclusively as the run time language but when i do that i get a "No supported languages installed!" error. Everthing works fine in the development environment.  It only seems to apply to application menus and not custom user menus.  Thanks for any insight.  
    Solved!
    Go to Solution.
    Attachments:
    Language.png ‏3 KB

    Hello Jed394,
    I took a look into the issue, just to be sure the error thrown was “No support Language Installed,” correct?  Check to see if the language of your operating system and the language LabVIEW is using is English.  If these are both English, then it looks like this is an error due to installation issues in the run-time engine.  Try to perform a repair by going through the install menu of LabVIEW.  The following link will help you with the repair: http://digital.ni.com/public.nsf/allkb/FE6B641E86E55AF2862576DE00038001?OpenDocument
    If you have any further issues, please let me know. Thanks!
    Matt S.
    Industrial Communications Product Support Engineer
    National Instruments

  • How to include help files when building installer

    Hi!
    How can I include my application help manual (in .pdf format) when building the installer such that the file goes into a designated folder and its link appears in the Start>Programs>App folder ?
    Thanks,
    Gurdas
    Gurdas Singh
    PhD. Candidate | Civil Engineering | NCSU.edu

    Gurdas,
    Add the .pdf as a support file in your executable
    Create an installer for the executable
    Under the "Files" button on the "Installer" tab select the .pdf and select "create program item".
    This will place the .pdf in the start menu program group.
    cheers,
    Brett

  • Why are unwanted vi files produced when building executable?

    I'm using LabVIEW 9, and when I build an executable, it creates 3 unwanted folders containing a number of .vi files that I don't want to have.  The 3 unwanted folders that are automatically created are:
    NI_HTML, NI_report, and NI_Standard Report
    Why are these folders with numerous .vi files created automatically, and where is the option to exclude these when building the .exe?  Ok thanks
    Solved!
    Go to Solution.

    I assume this is a executable build description is created in LabVIEW 8.6 (or earlier), look in your LabVIEW 2009 build settings, there should be an option 'Use LabVIEW 8.x build layout'  (or something similar), this is probably checked, please uncheck.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • How to include external files when building installer for a standalone executable?

    Hi,
    I was trying to build a stand alone executable from my Labview project and I was able to do it successfully.  Now I would like to include a few external .txt files in the installer. Those .txt files have parameters/constants that will be used by the program, and my program needs to load/read them when running.  For now I have to manually copy/paste them into the target machine, but I really hope the installer can do it automatically.  I see there is a "data" folder in the installer, and that's where I hope those .txt files can be added into.
    How can I do it? Can anyone give me some suggestions? Thanks!
    Rgds
    Harry
    Solved!
    Go to Solution.

    Norbert,
    I could not find "Add file" when right clicking the project. See attached image please. Under "Project" I do have a "Add to project" but there is no option for external files. I did not find "Source" location either.
    What did i do wrong? Is there any version requirement here? I have a 2010 base version. Thanks for your help.
    Rgds,
    Harry

  • Error 1003 when building executable

    Hi, I'm using Labview 2010 on Windows 7 and I'm getting an error when I try to build an executable:
    Error 1003 occurred at Open VI Reference in AB_Engine_EXE_Call_Write_Icons.vi->AB_EXE.lvclass:​Build.vi->AB_Build.lvclass:Build_from_Wizard.vi->A​B_UI_Frmwk_Build.lvclass:Build.vi->AB_UI_FRAMEWORK​.vi->AB_Create_Build_Application.vi->EBUIP_Global_​OnCommand.vi->EBUIP_Global_OnCommand.vi.ProxyCalle​r
    Possible reason(s):
    LabVIEW: The VI is not executable. Most likely the VI is broken or one of its subVIs cannot be located. Select File>>Open to open the VI and then verify that you are able to run it.
    VI Path: C:\Program Files\National Instruments\LabVIEW 2010\vi.lib\Platform\icon.llb\Read Icons from ICO File.vi
    This happens even when I try to build a simple vi, like a random number generator.

    Same problem here. Error 1003 and error 8 I encoutered often.
    For error 8 during build process, I needed to save the executable on a higher level in the file hierarchy.
    For error 1003, I did not find a solution. Restarting LabView does not help. Sometimes (but not always) restarting the computer helps. Sometimes I need to reinstall the labview system.
    More details: I have a first vi, starting the actual vi with a hidden front panel (second vi). This vi can also be started directly. Sometimes, the build process runs smoothly then  when I include the second vi as main vi to start the program.
    The program runs fine when the build process succeeds, and it runs fine in LabView.

  • Name collision error occurs when building executable

    hi
    I was attempting to build an executable of my project including .m file with mathscript of course  , but a warning showed up while building and here is what it was showing:
    A name collision occurred during the build.  VIs were renamed to protect the build.  If any dynamic calls were made to the following VI(s), unexpected behavior may occur:
    C:\Program Files\National Instruments\LabVIEW 8.2\vi.lib\Analysis\Matrix\Support\ComplexMatrix\ComplexMatrix.ctl
    A name collision occurred during the build.  VIs were renamed to protect the build.  If any dynamic calls were made to the following VI(s), unexpected behavior may occur:
    C:\Program Files\National Instruments\LabVIEW 8.2\vi.lib\Analysis\Matrix\Support\RealMatrix\RealMatrix.ctl
    A name collision occurred during the build.  VIs were renamed to protect the build.  If any dynamic calls were made to the following VI(s), unexpected behavior may occur:
    C:\Program Files\National Instruments\LabVIEW 8.2\vi.lib\Analysis\Matrix\Support\RealMatrix\Methods\Numeric.llb\Multiply - RM,RM.vi
    A name collision occurred during the build.  VIs were renamed to protect the build.  If any dynamic calls were made to the following VI(s), unexpected behavior may occur:
    C:\Program Files\National Instruments\LabVIEW 8.2\vi.lib\Analysis\Matrix\Support\RealMatrix\Methods\Numeric.llb\Multiply - RM,R.vi
    A name collision occurred during the build.  VIs were renamed to protect the build.  If any dynamic calls were made to the following VI(s), unexpected behavior may occur:
    C:\Program Files\National Instruments\LabVIEW 8.2\vi.lib\Analysis\Matrix\Support\ComplexMatrix\Methods\Numeric.llb\Multiply - CM,CM.vi
    A name collision occurred during the build.  VIs were renamed to protect the build.  If any dynamic calls were made to the following VI(s), unexpected behavior may occur:
    C:\Program Files\National Instruments\LabVIEW 8.2\vi.lib\Analysis\Matrix\Support\ComplexMatrix\Methods\Numeric.llb\Multiply - CM,C.vi
    A name collision occurred during the build.  VIs were renamed to protect the build.  If any dynamic calls were made to the following VI(s), unexpected behavior may occur:
    C:\Program Files\National Instruments\LabVIEW 8.2\vi.lib\Analysis\Matrix\Support\RealMatrix\Methods\Numeric.llb\Add - RM,RM.vi
    A name collision occurred during the build.  VIs were renamed to protect the build.  If any dynamic calls were made to the following VI(s), unexpected behavior may occur:
    C:\Program Files\National Instruments\LabVIEW 8.2\vi.lib\Analysis\Matrix\Support\RealMatrix\Methods\Numeric.llb\Subtract - RM,RM.vi
    A name collision occurred during the build.  VIs were renamed to protect the build.  If any dynamic calls were made to the following VI(s), unexpected behavior may occur:
    C:\Program Files\National Instruments\LabVIEW 8.2\vi.lib\Analysis\Matrix\Support\RealMatrix\Methods\Comparison.llb\Equal - RM,RM.vi
    A name collision occurred during the build.  VIs were renamed to protect the build.  If any dynamic calls were made to the following VI(s), unexpected behavior may occur:
    C:\Program Files\National Instruments\LabVIEW 8.2\vi.lib\Analysis\Matrix\Support\ComplexMatrix\Methods\Numeric.llb\Add - CM,CM.vi
    A name collision occurred during the build.  VIs were renamed to protect the build.  If any dynamic calls were made to the following VI(s), unexpected behavior may occur:
    C:\Program Files\National Instruments\LabVIEW 8.2\vi.lib\Analysis\Matrix\Support\ComplexMatrix\Methods\Numeric.llb\Subtract - CM,CM.vi
    what is this all about and how can i avoid this , i tried to pass it away but the .exe seems to be not running like it should be ( i have to get a treated wavfile as an output)
    Please help me to resolve this .
    thanks.
    Attachments:
    Documents.zip ‏196 KB

    Duplicate
    You might want to check this link and check if you have conflicts and solve them
    Hope it helps.
    Regards.
    Mathieu Steiner, Test System Engineer, Safran Engineering
    CLD, ISTQB

  • Labview: resource not found error code 24 when building executable using 8.20 and dsc module

    I am trying to build an executable and I keep getting and error and cannot seem to figure out what is wring.  The whole error is "LabVIEW: resource not found.  An error occured loading "interface 3.vi"  Labview load error code 24:  this vi cannot be loaded because it is broken and has no block diagram."
    I am using LV 8.20 and DSC 8.2.  I am trying to create an executable that has the web server running for using remote panels, i have netowrk published shared variables, connecting to a fieldpoint unit, and I am using the NI system tray icon vis to load the program to the system tray.
    I have my shared variable library added as a support file, as well as the lvdsc.ini, and the tray icon files.  I have sleected "Enable Enhacned DSC run time support" in the app builder, did not remove any type def,etc.
    I cannot get the .exe to run on my development machine or another machine, I get the same error.  I tried creating an installer that installed the 8.2 runtime, dsc,fieldpoint, variable engine and manager and MAX.
    I could not find anything in the help files on the dsc, maybe someone else has some hints.  thanks
    Kenny

    Hi Kenny,
    I hope you are doing well today! What is interface 3.vi? Is it possible for you to post your project over here? Also, I would recommend creating a simple DSC application; and would like you to build it. Do you still get errors?
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies

  • How do I combine libraries when there are 3 accounts?...

    Hi, I need help. I have an XP computer at home, and it has several accounts on it. 2 of them, however, are the ones that we use for itunes. one is an administrator account and one is for the kids. We want to move all of the songs into one library (particularly into the kid's account). How do we do that?
    PC   Windows XP  

    Hi, mandapanda5514.
    Have a look at this article in the Apple Knowledge Base.
    Scroll down to the Windows section when following the instructions, look to C:\Documents and Settings\All Users\Documents\My Music as "a publicly accessible location" for the Shared Music folder.

  • How can I start multiple Labview build executables in a sequence

    I need to start several executables in a certain order with pauses between them.
    How is this done.

    Why don't you make a new vi which contains a sequence structure and their you put in the program you want to run first (inserting a sub.vi) and then a pause or the second program and so on.
    I attached a screenshot by which i think you want to have your program.
    If you want to open other executables (for example ms exel and after few seconds open ms word) then its also possible to use the sequence structure.
    I hope i understand the question correctly, and this will help you solve your problem
    Attachments:
    sequence.JPG ‏24 KB

  • How to get DDIC information when building your fieldcatalog manually

    Hi guys!
    I try to build ma alv fieldcatalog manually. For each field i want to set a DDIC Dataelement.
    I tried this way.
    Data:
    lt_fcat type lvs_t_fcat,
    ls_fcat type lvs_s_fcat,
    ls_fcat-ref_field = 'ZZ_MY_DATAELEMENT'
    *... and some other information
    append ls_fcat to lt_fcat
    ...but it's not working the the column text is provided by the data_element.
    I know about the lvc_fieldcatalog_merge function, but i need to find a way to do this manually!
    thanks for your help

    hI
    There are field for the short, medium an long text too, are't there?
    SCRTEXT_L
    SCRTEXT_M
    SCRTEXT_S
    Max

  • How to reatain package structure when building wid ant??

    i want to compile the src files in the same directory structure as they were in the src directory. for example i have a directory structure like this,*src.com.package1.package2.myfirstprog.java* and i want to get it in the same directory structure in build direcory, so the output i want is build.com.package1.package2.myfirstprog.class, and likewise for other java files in different folders...wat extra thing i wd need to do???
    Edited by: abhishek_kunal.iips on Jul 24, 2009 11:27 AM

    You need to see if the specific class you need is located in the JAR file. In the case of your JAR file, you could run the following
    jar tvf ldapjdk.jarIf you're using Linux/Unix, you can try this command to make it easier:
    jar tvf ldapjdk.jar | grep netscapeIf no classes in the netscape.ldap.* package are in your JAR, you'll need a different JAR if you're going to use the netscape.ldap package.
    If the necessary netscape.ldap.* classes are in the JAR, you should be able to put it in the WEB-INF/lib directory of your web application or WAR file.

  • SQL SP works, then throws 0x80040E14 after trying to build executable

    I have test software in LabVIEW 2011 that logs results into our SQL Server database with a stored procedure.  Once I got it working consistently, I checked it into our Visual Sorce Safe.  It was working until I tried to build the software into an executable.  Upon trying to log results in the executable, I received the following -2147217900 error when trying to execute the stored procedure (the ati_sp_InsertProcedureRun stored procedure) to create the procedure run in the database:
    NI_Database_API.lvlib:Cmd Execute.vi->DBAccess.vi->AgilentQCTool.vi->ATIEOL.vi<ERR>ADO Error: 0x80040E14
    Exception occured in Microsoft OLE DB Provider for SQL Server: Syntax error or access violation in NI_Database_API.lvlib:Rec Create - Command.vi->NI_Database_API.lvlib:Cmd Execute.vi->DBAccess.vi->AgilentQCTool.vi->ATIEOL.vi
    What's really odd is that I began receiving this error in the development environment.  On multiple computers.  I have verified that the code is still the same as before; I pulled the VI from Source Safe, which predated the last time I successfully logged results.
    I don't know if attempting to run as an executable was the precipitating event.  Around the same time, I attempted to solve a problem where the test software kept referring to VIs from the 2010 Database Connectivity Toolkit by uninstalling the 2010 Database Connectivity Toolkit and letting LabVIEW update the called VIs to the 2011 versions and saving.  I've also since tried repairing and then uninstalling and reinstalling the 2011 Database Connectivity Toolkit.
    Attached is a standalone implementation of my database logging code, a little sanitized for proprietary information.  Has anyone encountered similar mysterious errors when changing from 2010 to 2011 or when building executables?  The code I'm using is the same, and IS assures me that there have been no changes to the database.
    Thank you for any help or insight,
    John
    Solved!
    Go to Solution.
    Attachments:
    DB_UT.vi ‏10 KB
    DBAccessUnitTest.vi ‏83 KB
    DBAccessUTGenericDialog.vi ‏21 KB

    Hello,
    So far I have been unable to see anything that gives me a lead as to what the problem could be.  For this I am sorry.I think both of us will have one of those face palm moments.
    I have a question and comment for you,  does the Code still work on the original computer?
    Second,  I think it would help if you compiled a version of code with the ability to highlight execution. after being installed as an executable.  Try running the executable (in highlight mode) on the other computers and see where it breaks.
    Could you also send me a version of your code in Highlight execution mode?
    As for me I downloaded your code and I was unable to get it to even run on my computer.
    Dano
    Highlight Execution debuggable executable.
    http://ae.natinst.com/public.nsf/web/searchinternal/3087d91eeadbaf3d862571d1004af192?OpenDocument

  • How do i change libraries in itunes (latest version) in windows 8.1

    How do I change libraries when signing into iTunes(latest version) on Windows 8.1
    marvin

    Same as always. Press and hold down shift as you launch iTunes.
    tt2

Maybe you are looking for