LabVIEW and Location of database

# 1   I have a simple LabVIEW application which needs a (DLL which in turn needs a) database. DLL and database do not (and cannot ) have absolute path.
# 2 LabVIEW puts limitation on me that I MUST have my database in the directory where LabVIEW.exe is located.
# 3 Next , I create a ‘standalone application’ from my program to run on a machine without LabVIEW. To run it successfully, again it’s made compulsory to me that
‘database’ must be located in the directory …
“..\\Shared\LabVIEW Run-time\6.0\”
Otherwise the database is not found.
So, to run the program on other machine withour labVIEW, I need to manually instruct him to put the database at above location. This is undesired.
#4 Other (dangerous) option is ….
At the time of standalone program installation , remove the LabVIEW run-time engine originally present on the customer machine, and to reinstall it to the directory where the database is present.
Sometimes it gives an error – “Internal Error 2355”.
Please note – absolute paths cannot be provided, since they may be given dynamically on site.
Sandeep

Sandeep,
Where are you placing your DLL in all of this? Is it always in the same directory the database is? If it is, then refer to this KnowledgeBase. This KnowledgeBase describes where LabVIEW searches for DLLs that it uses in VIs.
This answer has also been given to your sales representative as they forwarded the question to Applications Engineering (technical support).
Randy Hoskin
Applications Engineer
National Instruments
http://www.ni.com/ask

Similar Messages

  • Please Help me in Labview and MS Access Database Connective

    Please Help me in LabVIEW and MS Access Database Connective through an example . I am new to LabVIEW .I need simple example that take a data from a table and display it on front panel .
    thanks in advance .

    duplicate post

  • How to connect mysql database to labview and plot the graph

    Hi all,
     I am doing my final year project about labview. I need to connect my mysql workbench database to labview and plotting two sinwave in same graph. I can already connected my labview to mysql and showing the data in labview table.But I need to plot the two sinwave in on graph according to table data. Eg: table data:      timestamp   wind speed  wind direction
                                                      ​                                                  ​                                                  ​                                            2004-01-01         0.5                 56
                                                      ​                                                  ​                                                  ​                                            2004-01-01         0.6                 60
      The attachemtn vi is about inserting file and plot the graph. And now I  want plotting the sinwave using table data and the  wind speed Y-axis,wind direction Y-axis in both side of my graph and the X-axis is showing the whole day timing like 00:00:00-24:00:00.  Can anybody combine these 2 vi to polting the graph according table data not according to file data.Thanks
    Attachments:
    Mysql.vi ‏11 KB
    Insert File.vi ‏25 KB
    Wind Project.vi ‏24 KB

    Please don't start a new thread. Stick to the original.
    http://forums.ni.com/t5/LabVIEW/How-to-plot-wavefo​rm-or-graph-using-table-database-which/td-p/294036​...

  • How to uninstall Sharepoint Foundation 2010 and remove its databases

    Hello, 
    My company has Sharepoint Foundation 2010 installed on a Windows Server 2008 R2. I want to remove this server from our network. I'd like to know what are the steps to unsintall Sharepoint Foundation 2010 and remove its databases. The databases are located
    on a remote machine with SQL Server 2008 R2. I'm wondering if the Sharepoint uninstall process will remove its databases from the remote server or do the databases need to be removed manually. If the databases need to be removed manually, I'd like to know
    how to find out the name of the configuration, content, administration, search and user profile application databases that Sharepoint is using. 
    I appreciate any help that anybody can provide. Thanks!!

    Uninstall SharePoint via Programs and Features from the SharePoint server. Once that is done, drop/delete the databases from the SQL Server. Uninstalling SharePoint does not remove databases.
    Before you uninstall SharePoint, you can run:
    Get-SPDatabase | Select Name,Server
    That will list all database names and their associated SQL Server/instance.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Problems with Labview and Windows XP with error -214721786​5

    Hello. Im a new beginner in Labview and am having a problem with a error message
    I dont understand. Im running Labview on a pc-logger with windows XP.
    The program is written by a guy on my university, and logs voltage from
    a solar cell panel. He doesnt have the time to check in to it, so Im supposed to
    find out what's wrong.
    The error message is as follows :
    Error -2147217865 occured at Cmd Execute.vi->DB Tools Insert
    Data.vi->Solcelle.vi
    Possible reasons :
    Exception occured in Microsoft OLE DB Provider for ODBC Drivers,
    [MySQL][ODBC 3.51 Driver][mysqld-3.23.38-log]Can't open file :
    'solcelledata.MYD'. (errno: 145). in Rec Create - Command.vi-
    >Cmd Execute.vi->DB Tools Insert Data.vi->Solcelle.vi
    I really hope someone can tell me what's wrong and specifically what to do
    with it, or possibly guide me to someone who could suggest a solution to this
    problem.
    Reguards
    chrisdee

    Hi Chrisdee,
          (.. not to discount what TimoS has suggested, however...) 
    Embedded in the error information you provided:
    ... Can't open file : 'solcelledata.MYD'.
    Sounds like the program needs this file?  Has the program been moved to a new location?
    just a wild guess!
    Cheers
    Message Edited by Dynamik on 10-06-2005 04:53 AM
    When they give imbeciles handicap-parking, I won't have so far to walk!

  • Diappearing photos replaced by an exclamation point within a triangle.  Prior to loading Lion I could put the image number in finder and locate the original file for that photo.  How do I restore photos now?

    I had problems with photos disappearing and being replaced by an exclamation point within a triangle.  I can see the photo in the thumbnail summary but when you click on it, the screen goes black and the exclamation point within a triangle appears along with the info on the original image number (i.e., img_1120.jpg). Prior to loading Lion, I could go to Finder, enter the image number and locate the original file for that photo.  I could then restore it for editing, copying into Print Shop directly, etc.   That no longer works after installing Lion.   How do I restore photos now?  I have 100s of photos that I have been going back to the original files and restoring and I am frantic that I will no longer be able to get to the original files.  Please help!  Thanks

    The ! turns up when iPhoto loses the connection between the thumbnail in the iPhoto Window and the file it represents.
    What version of iPhoto? Assuming 09 or later:
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • Editing and Compling a Database Package from a file

    Hi,
    I'd like to know if there is a way to open and edit a database specification and body source code file from the filesystem, and also be able to compile this is SQL Developer.
    Currently I am able to open the .pks and .pkb files and I get 'Compile' and 'Compile for Debug' icons. However, when I hit these buttons they appear to do nothing. No messages are displayed to say if the package is compiled successfully or unsuccessfully. What I have noticed though is that the code is executed and the package is created on the database but there is no feedback. If I 'complile' a package that I know is invalid, the package becomes invalid in the database and vice versa. But I have no way of knowing this until I check the package on the database.
    If I am doing something wrong or there is another way to do this, then please let me know. I really want to be able to work on these files from the filesystem rather than the database.
    SQL Developer 1.5.1 on Windows 2000.
    Cheers,
    Jon.

    Jon,
    The current SQL Dev support for file based development in this area isn't wonderful. However, the output of "compiling" a PL/SQL file with the compile button (ie running as script) is shown in the Script Output tab of the Log dockable window. If you have the window docked and the Script Output tab selected, then it will normally display the following where the package body is invalid:
    Warning: execution completed with warning
    PACKAGE BODY MY_PACKAGE_PKG Compiled.
    To show the errors there, you will need to use something like after the CREATE OR REPLACE PACKAGE BODY statement:
    SHOW ERRORS PACKAGE BODY MY_PACKAGE_PKG
    The output doesn't always appear and the treatment of compilation errors is nowhere near as good as when compiling directly in the database where you can jump to the error location with a double click.
    theFurryOne

  • Large applications - Labview and other programming languages

    Hello Labview Users,
    as the forum saw this very interesting thread about large applications programmed in Labview
    (see: http://sine.ni.com/niforum/niforum?requireLogin=False&forumDU=http://forums.ni.com/ni/board/message?... ) I would like to ask the community about their experiences with Labview applications in combination with other programming languages.
    In advance: I have several years of experience in programming Labview applications starting from quick-and-dirty solutions which had to run within few hours and complex test solutions. I saw Labview growing and becoming better with the released versions and lot of things I missed in former times got implemented in the meantime. Actually I have to develop a complexe ATE solution with numerous equipment to control and numerous data to be captured and archived. Despite the Verison 8 I still feel still some drawbacks of the LV concept which let me hestitate to setup the solution completly in Labview:
    1) It is alway hard to re-use code of complex applications since it is not possible to do some kind of global search an replace of functions
    variables etc. It nearly impossible to re-use approved code structures (e.g a state machine) if the "inner part" is changing more the a little bit.
    2) If the application requires a certain flexibility (e.g. exchangeable test equipment of varying vendors) this is hard to implement since you have to define a lot of parameters through your hierarchy if you dont want use global variables which slow down your application and hide
    the code functionality.
    3) Despite modern PCs the look and feel of LV applications appears somewhat slow compared to other applications. For complex user interfaces the polling methode generates a lot of complex code. (I dont have expierence with the event-structure).
    Now my questions:
    Do you have experience of implemention of complex solutions dividingthe code modules using Labview and other languages? Which other
    languages did you use? Why did you use these languages (speed, flexibility of text based code, available library functions)? Did you found out this to improve your development time and code maintainibility?
    (I concider a solution where I do the single tests with Labview-VIs but delegate all the test sequencing and data collection stuff written in PERL which allows really very compact code)
    I'm curious what your experiences are.
    rainercats

    Given that you're asking these questions in a forum for LabVIEW users the opinions given are going to be somewhat slanted towards the general like of LabVIEW. I've been working with LabVIEW for a long time, ever since 2.something on a Mac. I've written numerous large-scale applications as well as "mundane" instrument drivers. As you've noted you're experienced with LabVIEW, so you know some of its strengths and weaknesses.
    To address your specific questions:
    (1) Yes, that has always been a limitation in LabVIEW, but I don't believe it is an overriding one to choose C over LabVIEW. Putnam provided one workaround for the search and replace of VIs. Once you've programmed in LabVIEW long enough you get used to doing it this way. Is it clumsy? Yes. As for the re-use of code structures, that's not entirely true. You can create a "template" VI (a regular VI, not a .vit) that contains the code you want to re-use and place in your palette with the "Merge VI" option set. That way you can select it from your functions palette, plop it down on your diagram, and you get the "template" VI's diagram placed right into your new VI.
    (2) This is not something that is specific to LabVIEW, as this exists with any programming language. It's not the language that limits you here, it's how you've designed your code. In a language like C++ you would go with classes. You can do the same thing in LabVIEW. IVI is another option (though not preferred by me).
    (3) As Putnam mentioned, you should be using the event structure.
    Other thoughts:
    The biggest strength I see with LabVIEW is that each VI is a miniature program, which allows development and debugging of functions a snap. With a language like C you have to write another program to call that function in order to debug it. The biggest weakness? I would say user interface. Yes, even with the event structure. Don't get me wrong, the event structure has vastly improved the way user interfaces and event handling in general are done with LabVIEW, but it simply doesn't hold muster to a program written in C or VB. ActiveX anyone? LabVIEW still doesn't do ActiveX properly in terms of actually getting the controls to work. Programming ActiveX controls is just plain aggravating what with all the property nodes taking up so much diagram space.
    It certainly makes sense to use the best tools available to you to get the job done. In my recent projects I had to write software to run automated tests on some products my company made. The test modules were written in LabVIEW. The tests executive was a proprietary engine driven by a SQL Server database. I had to write a "wrapper" DLL that interfaced between the LabVIEW code and the executive since the executive hadn't been designed to call LabVIEW DLLs directly. This allowed us to use LabVIEW as the preferred language for developing the test modules and let the guys who were fiddling with the test executive do their bit. Of course, TestStand's premise is basically that.

  • Move Mailbox database and Public Folder database from VMwar RDM drive to VMware VMFS/VMDK Drive

    Good Afternoon,
    So I have 1 DAG with 3 mailbox server (1 physical and 2 Virtual (vmware)).  The Vmware server Mailbox and Public folder databases/logs are currently on RDM drive.  I need to get rid of the RDM drives and use VMFS/Vmdk drives for mailbox and public
    folder databases.  I was thinking 3 options:
    1- Introduce new VM Members into DAG and simply give these new VMs VMFS/VMDK drives, add servers into DAG and have DAG replicate databases to new server.  I really don't want to do this.
    2-On current VM, delete RDM drive along with database, add VMFS/VMDK drive replacement and have the DAG copy database.
    3- On current VM, suspend replication, copy database/logs in temp location, delete the RDM drive, create the VMFS/VMDK drive, copy the database and logs to new drive, enable replication.  Do the same for public folder database/logs, but not sure how
    to stop/start replications, since its not in DAG?
    I'm looking for solution that will take least amount of time.  Option 3 seems best solution, but not sure if there any gotchas.. What are you thought??
    Thanks in advance for you help

        Take the database offline means stop replications to the the passive mailbox server?
    Also, what is procedure to take public folder offline.  We have public folder replicated on all 3 servers.
    Hi cuttabutta,
    Yes, take the database offline on the passive server can stop replication from primary server.
    you can also take the public folder database offline to stop replication.
    In addition, you can refer to the following article to configure public folder replication:
    https://technet.microsoft.com/en-us/library/bb691120(v=exchg.141).aspx
    Best regards,
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Niko Cheng
    TechNet Community Support

  • DataSource - difference between ejb-location and location

    Hi,
    Does anyone know difference between ejb-location and location attribute specified in datasources.xml for an emulated datasource.
    There are few connection leakage errors reported in log files though the connection and other database objects have been closed in finally block in all places.
    So just wanted to find out whether specifying the same value for location as well as ejb-location is not the root cause of connection leakage errors.
    Thanks in advance for any help.
    Regards,
    Smita

    Smita,
    Personally, I think you should make sure that all locations (in your "data-sources.xml" file) should be different -- although I can't tell you why.
    According to the documentation, the "ejb-location" uses a connection pool and I exclusively use the "ejb-location".
    Good Luck,
    Avi.

  • Overlapping events for resources and locations

    Has anyone been able to configure iCal Server's Resources and Locations to NOT accept invitations if the resource or location is busy?
    I am hoping the resource or location is intelligent enough to decline an invitation if it is already busy.
    Any help would be appreciated.
    Thank you,
    Ray

    I've run into this problem as well. I can't believe that there's no solution to this. It seems to me to be a pretty obvious need for any scheduling software.
    Why even have a location and resource database, if users can make any event appointment for that location or resource regardless if it's available or not?

  • Camera Raw cache size and location

    I've been using ACR for about 3 years now, and today it occurred to me that I'm not that sure I know what the cache is actually used for. I mean, I know what a cache is, but what is ACR caching, and why?
    I use Bridge for most of my photo work, displaying high quality thumbnails and previews, often full-screen ("monitor-sized previews" by default). Bridge has its own cache, which I understand contains jpegs of thumbnails, previews, and 100% views. Does ACR's cache have any bearing on Bridge's behaviour and performance, especially with thousands of raw images?
    What sort of size and location of ACR cache should I be using - what factors do I need to consider?

    Hi,
    I'm still not sure what size of cache I should use, and what are the advantages and disadvantages of bigger or smaller ACR caches.
    Maybe Eric can tell something indeep about the impact of a large cache.  I'm not sure about that myself, but don't believe a larger cache is a real disadvantage, as long the disk on which it reside is maintained: defrag often). Since Bridge and ACR work hand in hand here, it might depend to your workflow and to your hardware. Sorry, I can't give a clear answer here.
    As said I would put it just large enough for a certain number of RAW or some weeks work. Means, when there is a chance I'ld touch a certain RAW in six weeks again, than six weeks * x images per day I shoot.
    Not sure if you are a Pro. I'm not and usually have not much new images every month.  I always was fine with the default settings.
    I don't work with Bridge and open one RAW after another in ACR, or maybe 20+ in a row when doing panorama ;-)
    But Bridge has to do a lot of work on the fly when it generates the previews for all new RAW in a folder, like: "read the image from HDD", "process it by ACR, "write Bridge previews and metadata to HDD", "write to ACR cache " - not necessarily in this order.
    And it seems it does this and some additional steps always (not only when first time reading RAW), because it f.e. needs to check if there are already processing information in ACR database or XMP file for a RAW or if they have been created in "meantime". Means ACR settings could have be changed after Bridge did a first time generation of the cache data, maybe because the RAW was openene directly via PS or by another app.
    this process is fairly processor-dependent, especially now that ACR uses more sophisticated processing in version 6, and, depending on ACR defaults, this can be significantly slower than in previous versions.
    And Bridges eats huge amount of memory as well - seems it holds a lot of information in memory before flushing it to disk.
    After reading this post of yours I made a test with my 12k RAW the other day. I tried to let Bridge create previews for all of them in one step, but it ended up complaining that there is not enough memory after ~ half an hour.
    Bridge appears to generate previews unnecessarily sometimes, because every image is already cached.
    See above. Bridge/ACR checks for updated processing information in XMP or ACR database and metadata updates. If it find some it might need to rebuild its cached image.
    Why would I need to reset the cache with a new monitor profile? Surely this is not applied to cache JPEGs?
    You are right, sorry I mixed things up here :-(  I meant ACR camera profiles. Aside that I changed monitor profile a lot over the last weeks doing some tests, and after that Bridge often refused to start until the cache was purged…
    Your suggestion of a larger cluster size is very interesting, and I may try this when I have some spare time.
    All my disks meant for storing large files (images, music, scratch, temp-file) are formated with a larger cluster size. It speeds things up a bit.
    Supposedly Lightroom's catalogue system is superior, but I am yet to be convinced that putting all my XMP data in one basket is a good idea.
    Of course LR shares ACR's cache. I don't know much about LR, but I believe XMP are not only kept in one basket here, right? They are written to the images and in case of RAW to XMP files. Otherwise there wouldn't be an interoperability between LR and Bridge. Similar to Bridge LR stores previews in it own "cache" which is as well a folder and file based "database". Check "preferences".
    But as said I use another DAM, in which’s database all data needed for searching is kept, but I also write all metadata (IPTC,XMP) to the images, even for RAW files. By this I don't need a large ACR cache and also don't have XMP files around, which I hate. When saying database, I mean a real database, not a collection of files which are kept on disk. ;-)
    Aside other advantages, I can take my database with me on vacations and can work on my images like I do at home. I have all my keywords and categories with me in one file and when back, I just copy the database to my desktop.

  • When editing my photos in albums (in 9.4.3)I enter descriptions and locations. I have had 2 iPhoto crashes and when reopened the descriptions are gone. Locations survived.  Can I get them back? Or do I have to do over?

    When editing my photos I add descriptions and locations. I have had 2 recent Iphoto crashes. When relaunched the descriptions are missing but locations survived.  Can I get them back somehow?  Have I missed a "save" step on each entry? Using Iphoto '11 version 9.4.3

    backup your iPhoto library, depress andhold the option and command keys, launch iPhoto and use the resulting first aid window to rebuild your iPhoto database
    LN

  • User Account and Location

    How do I determine the user account and location so that I can track user changes?

    Are you asking how to audit changes to the database?
    Are users logging in to Oracle with distinct Oracle accounts? Or are they connecting with a shared Oracle account?
    What do you mean by "user location"? IP address? Host name?
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Install MATLAB after LabVIEW and SIT was installed

    I have installed LabVIEW 8.2 and simulation interface toolkit in my computer.
    The problem is I have Matlab 6.1 in my computer and it is not support by SIT so I updated it to the Matlab 2006b.
    In such case I installed the Matlab after I installed the LabVIEW and the SIT. In this way I can find the NI sink or any other NI functions in MATLAB.
    Is there any way to import the SIT to MATLAB besides reinstall SIT?
    If reinstall SIT is necessry, should I just reinstall SIT or should I also reinstall any others? (I have LabVIEW RT, FPGA, Vision module in this computer)
    Thanks,
    -Alex

    Alex,
    You are missing all the files that need to be in Matlab. So, you just need to uninstall SIT and reinstall again. This should fix the location of the files and you can have SIT working again.
    If you run into problems, let me know...
    Barp - Control and Simulation Group - LabVIEW R&D - National Instruments

Maybe you are looking for