LabVIEW, MSAcess, and Database Toolkit (Exclusivity Problem)

Hi all,
I have recently developed an application that's used for testing production products and sends the final test data to a MS Acess database via the database connectivity toolkit.  We've run into a problem with it though.  This program needs to be able to run at all times, its a high flow production line.  During production though, we have a large group of engineers that need access to this data.  Its set up so that only myself and one other person have write access to the directory containing the database, everyone else can only open it as read only.
The problem I'm running into is that whenever the database is open by one of the two engineers with write access OR any one of the other people just going in to review data as read only - the production tester isn't able to save records their creating in LabVIEW.  No warning or notice is given to the user in form of error to indicate the data wasn't stored.
I'd like to get this problem fixed but the last time I tried to use the Username/Password inputs on the connectivity VI I ended up locking up access and we finally resorted to just making a new database.  Given the amount of data in there now, you could say I'm a little "gun shy" about randomly fooling with the security settings again without a good idea of how to accomplish fixing this.
Basically I just want for that database to be opened exclusively by labview, and prempt anyone who is logged in (aside from one of us with write access...its a small enough group we are fine with just closing the test program for a few minutes while we make changes)
Any ideas on how to do this?
LV7.1, LV8.5

Hi Dennis,
Our IT guys tend to push SQL also.  How much work is it to switch over to the other?  
You know I'm not sure if its worth it at this point, at most we only have 1-2 people on the database at once.  The test computer is always on which brings that number to 1, and it only happens maybe once a day that someone looks at the database and only to check some values in 1 record - then they close out.  Aside from the tester, no one else is in there for more than 1-2 minutes tops maybe once every other day.  Its just during that time if the user submits his report in that 1-2 minute window - we don't find out about it until someone needs to view that record.  
A worst case scenario though is if someone gets in for their 1-2 minute window and gets a call or gets distracted and forgets its open :-/
I did try some quick research....it looks like one recommendation might be to make a "front end" basically another database with a form linked to the data stored in the tables of the original one.  That way anyone viewing doesn't go into the storage database itself.  I haven't tested this yet though...one question comes up -if they are in this front end thats linked...I wonder if that is considered a "constant connection" to the storage database and we'd still run into the same problem with the storage one "thinking" its open anyhow...
I dunno this database stuff is a bit loopy imho.
LV7.1, LV8.5

Similar Messages

  • Database Toolkit compile problem

    We are using the
    Database toolkit with Labview 8.2.
    If a vi that calls a Database vi is used on
    several computers then Labview will ask to save it with the following changes :
    VI recompiled and sub vi calls modified.
    This happens even if nothing was
    changed.
    This does not happened
    on the computer on which the vi was formerly saved but systematically on all
    other computers.
    The software configuration
    is exactly the same on all computers. The entire Labview directory has been
    mass compiled on each of them.
    This is very annoying
    as we have a lot of database vi’s in our program and all the changes applying
    to them hide the real changes to other vi's.
    Moreover we are working with an SCM tool
    (perforce) which oblige us to have exactly the same vi’s on each machine.
    Thank you for your
    help.
    Nicolas

    Hello,
    For those following this issue, this was reported to R&D
    (#41EBTL3Q) for further investigation.  As
    it turns out, the problem is that the database toolkit is using strict type
    definitions.  This would normally not be
    significant, except that there is a small problem with LabVIEW recompiling the
    typedef when it has already been mass compiled (as is required for the database
    toolkit in LabVIEW 8.2). 
    There is another workaround:
    1) Install LabVIEW and the
    database toolkit on all your development machines
    2) Mass compile the database
    toolkit (vi.lib/addons/database) on all the machines
    3) Copy the vi.lib database
    folder of one of these computers (usually found at: C:\Program Files\National
    Instruments\LabVIEW 8.2\vi.lib\addons\database) to a CD (or media of your
    choosing)
    4) Replace this folder on all of
    the other computers with the folder from the CD
    5) Use the toolkit as normal
    If this doesn't work, you can
    also probably check in the toolkit folder to perforce, and just have the users
    check it in/out each time, but this situation is a little less than ideal, and
    we have not tested it.
    This problem will NOT affect the execution of the toolkit
    (or LV in
    general).  Most users will only be inconvenienced
    by this problem when using Source Code Control.
    Have a great weekend!
    Travis M
    LabVIEW R&D
    National Instruments

  • LabVIEW 2011, and Excel 2010: saving problems

    Hello to all! I am a student of Mechanical Engineeringfthat very little has been using this software. I present the problem: for a matter which is called Biomechanics, I and my colleagues, we have developed the design of a rheometer, which is controlled by LabVIEW2011. Since we are still at the experimental stage, always has been simulated using labview: the whole experience. So, labview, at present, not only controls the stepper motor through the frequency sets, but also simulates the output (in the specific, the response to the torsion of the cartilage, simulated with a low pass filter of the second order). All this was done by my colleague more experienced than me, who today passed me the finished project that in his pc works perfectly while not in mine (we have the same version of labview, but different version of office). In practice, the program is fine (there is no arrow "Run" broken) and the simulation with the creation of the sine graph (response of the cartilage) is done perfectly. My colleague then set labview in order to save the data to an excel sheet at the end of the simulation, asking the user where to put it (the excel file must already exist, labview does not create it). The excel file should contain two columns and a scatter plot (one column represents the frequency, f, of the stepper motor, the second represent the shear modulus G, which increases as the frequency increases and the graph represent the trend of G in function of f). As soon as I decide to save the data, excel opens, for an instant appear the scatter plot and data in columns but immediately after the graph disappears and remain only the columns with data (so I have to make the graph "manually") and labview gives me the following error:
    Error -2147023170 occurred at Property Node (arg 2) in NI_ReportGenerationToolkit.lvlib:Excel_Insert_Char
    t.vi->NI_Excel.lvclass:Excel Insert Graph.vi->NI_ReportGenerationToolkit.lvlib:Excel Easy Graph.vi->SaveExcelFile.vi->Progetto 2.0.vi
    This error code is undefined. Undefined errors might occur for a number of reasons. For example, no one has provided a description for the code, or you might have wired a number that is not an error code to the error code input.
    Additionally, undefined error codes might occur because the error relates to a third-party object, such as the operating system or ActiveX. For these third-party errors, you might be able to obtain a description of the error by searching the Web for the error code (-2147023170) or for its hexadecimal representation (0x800706BE).
    What can I do?
    Thanks. Regards
    Solved!
    Go to Solution.

    The LabVIEW Report Generator in LabVIEW 2010 and more recent versions does, indeed, work very well with Excel in Office 2010.  I helped someone about two weeks ago with a problem saving a series of measurements to a (new) Excel Workbook.  Your problem differs in two ways -- you want to save in an existing Excel file (why? Aren't you worried about overwriting data, or are you trying to add a new WorkSheet, or append to the end of an existing WorkSheet?) and making a Chart.  I've not tried charts, so don't have advice right now.
    Judging by your error message, it is the Chart feature that is giving you trouble.  Can you see how your code runs if you eliminate the Chart functions?  [You can do that by putting a "Diagram Disable" Structure around the Chart code, clicking on the top of the structure and wiring the wires through in the Enable case].
    Give that a try and let us know what happens.

  • SHARED MEMORY AND DATABASE MEMORY giving problem.

    Hello Friends,
    I am facing problem with EXPORT MEMORY and IMPORT MEMORY.
    I have developed one program which will EXPORT the internal table and some variables to the memory.This program will call another program via background job. IMPORT memory used in another program to get the first program data.
    This IMPORT command is working perfect in foreground. But  it is not working in background.
    So, I have reviewed couple of forums and I tried both SHARED MEMORY AND DATABASE MEMORY.  But no use. Still background is giving problem.
    When I remove VIA JOB  parameter in the SUBMIT statement it is working. But i need to execute this program in background via background job. Please help me . what should I do?
    pls find the below code of mine.
    option1
    EXPORT TAB = ITAB
           TO DATABASE indx(Z1)
                FROM   w_indx
                CLIENT sy-mandt
                ID     'XYZ'.
    option2
    EXPORT ITAB   FROM ITAB
      TO SHARED MEMORY indx(Z1)
      FROM w_indx
      CLIENT sy-mandt
      ID 'XYZ'.
       SUBMIT   ZPROG2   TO SAP-SPOOL
                      SPOOL PARAMETERS print_parameters
                       WITHOUT SPOOL DYNPRO
          *_VIA JOB name NUMBER number*_
                       AND RETURN.
    ===
    Hope every bidy understood the problem.
    my sincere request is ... pls post only relavent answer. do not post dummy answer for points.
    Thanks
    Raghu

    Hi.
    You can not exchange data between your programs using ABAP memory, because this memory is shared between objects within the same internal session.
    When you call your report using VIA JOB, a new session is created.
    Instead of using EXPORT and IMPORT to memory, put both programs into the same Function Group, and use global data objects of the _TOP include to exchange data.
    Another option, is to use SPA/GPA parameters (SET PARAMETER ID / GET PARAMETER ID), because SAP memory it is available between all open sessions. Of course, it depends on wich type of data you want to export.
    Hope it was helpful,
    Kind regards.
    F.S.A.

  • Build application labview 8.5 database toolkit

    Can someone help me on how to build an application and installer for a vi that uses the database connectivity toolkit in labview 8.5?
    I know how to do it in Labview 7.1 and the pdf user manual explains the 7.1 method but I have had no luck in finding anything for 8.5. The problem is that you need to load a build script and I cannot find a way to do this in 8.5....
    I know this is not hard at all, I just dont have the information...
    Thanks a million in advance.

    When you select Tools>>Convert Build Script, a dialog will appear asking you for the .bld file you want to convert. It also will ask you to enter a path to a new LabVIEW project. Once you convert, a LabVIEW project will be opened and will have the Statup VIs added and well as a build specification for the EXE. If you had an installer configured in 7.x, a build specification for it as well. In LabVIEW 8.x, you use build specifications to configure build information. You can then right-click on the build specification and select Build.
    Message Edited by gmart on 09-11-2008 06:54 AM
    George M
    National Instruments

  • Labview 2010 and internet toolkit 2012

    We at our company are using labview 2010 for creating quick test applications.
    I've recently created a program that uses features that are linked to the internet toolkit.
    When creating an installer and installing the application on another system it didn't work, i later found out that you need internet toolkit installed in order to use these features.
    In order to install the toolkit i have to install labview. Is it also possible to just have the runtime engine installed (2010 version) together with the interInternet toolkit 2012 in order to use these functions?

    Like mentioned before the internet toolkit does not have to be installed on the target PC. If VI where missing from the executable, it will not run at all and return an error stating it is missing VI's. What I think happens is that the toolkit VI's are in an error state but since you do not stop the loop on an error the loop will just continue to run and because of the error it is not doing anything. You can do a couple of things:
    1. Debug the executable. How that is done is described in the following KB:
    http://digital.ni.com/public.nsf/allkb/8DA679805915DE40862572D5007B2F70?OpenDocument
    When you are connected to the running executable you can use the normal debugging methods like probes to see what happens. Especially the error line would be good to monitor.
    2. Let the loop stop on an error. The executable will then show the error (if any) in the error cluster.
    3. Monitor the error line within the loop to see if there is an error occurring.
    Let me know what the outcome of one of these actions is.
    Regards,
    Rik Prins, CLD
    Applications Engineering Specialist Northern Europe, National Instruments
    Please tip your answer providers with kudos.
    Any attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system,
    or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject
    to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense

  • Mapping ejb and database - primary key problem

    I'm trying to map some ejb's to an existing database. Unfortunately, when I load the db schema into deploytool, the table I'm interested in is not available because it doesn't have any primary key defined.
    Is it impossible to map an ejb to a db table without primary key ?
    Is it a sun-specific feature, or can I expect the same behaviour from other application servers vendors ?
    Thanks for the help.

    Hi Maxime,
    In J2EE RI 1.4, you can't map beans to tables w/o primary keys. I don't know, how other other products treat this issue.
    Regards,
    -- markus.

  • Database toolkit install

    Database toolkit install problem – multi versions
    I have 2 versions of LV installed on a W7 box. The Database Connectivity Toolkit runs fine for the 2009 version. The 8.6 version has broken VIs. Error message - expired or invalid licence.
    The tool was not installed properly but every time I try to install it the installer tries to overwrite the 2009 version instead of the 8.6 version. When I do a custom install and try and set the correct location, the installer overwrites the location I set and adds a  LV2009 directory.
    How can I install it to the correct version of LV?

    DKA wrote:
    How can I install it to the correct version of LV?
    By taking the same version of the Toolkit as the version of LabVIEW is where you want to install it.
    Christian

  • Sound and vibration toolkit using Keithley Card

    Hello everyone,
    Might be doing a project soon using the LABVIEW Sound and Vibration Toolkit(1/n octave vibration analysis required) with LABVIEW 6.1(Sorry, try convince my Boss to upgrade). We have a Keithley KPCI-3101 card avaliable to us for the analog input.
    Do any of you forsee a problem using a non-NI card with the sound and vibration toolkit? I can find very little on the internet discussing using non-NI cards with the toolkit.
    This might sound like a stupid question but I need to be
    100% sure that there are no problems.
    Thank you for any help you can offer :-)
    Cheers
    Jurgen

    Hello Jurgen,
    Of course the integration with National Instruments boards (PCI-4472 or 445x boards) is best suited with the Sound and Vibration Toolkit. However it is possible to use the toolkit without National Instruments hardware. Most of the examples that ship with the toolkit use NI-DAQ data acquisition calls. You need to remove them from the examples and substitute them for the driver vi's that your board uses. There are also a couple of examples that use simulated signals (so there is no hardware at all involved).
    One thing to be aware of is the sample rate. Recommended sample rates, that are used in most examples are 51.2 kS/s. You may need to check if your board is capable of doing this.
    Also all the functions use the waveform datatype, (which include
    s timing information), so you need to convert your array of data to this datatype, using the build waveform function.
    Hope this answers your question.
    Best regards,
    Erik vH.
    Applications Engineering
    National Instruments

  • Application doesn't work after build (database toolkit and report gen toolkit).

    I wrote an application using database toolkit and report gen toolkit to retrieve some data from a database,  put into a Word doc, save the Word doc and print it.  It works fine when I run the vi, but when I build and run it, it does nothing.   I have tried all of the settings in Projec Manager that I think might help but it still won't work right.  Labview 8.2.1, XP.
    Thanks,
    Charlie
    Solved!
    Go to Solution.

    Thanks for the help.  I finally abondened the Word append table and used the regular report gen append table and got it to work fine.  The error was 214682314.  That led me to the thread about column numbers must vbe between 1 and 63, but like I said, my coulumn number is 7 so don't know what is going on.  Anyway I got the vi to work and do what I want so I guess now the problem is solved (moot).
    Charlie

  • Using SQLplus command in LabView Database toolkit

    Hi ,
    I would like to ask something but before that this is my set up background
    OS          : Win 7,
    LabVIEW : 2012
    I have successfully connected with Oracle database using Labview Database toolkit.
    The problem now is since I need to query the data from the database,
    it will takes time for the labview to process it (since there is so much data in a specific table),
    let say that the table in database is "Serial Number", and the data that I want from that table is "SN123"
    if I query the data from that table, the labview will process it in a long time since it will not only give me "SN123" but also other data inside the "Serial Number" table.
    (Refer to attachment)
    but if in SQLplus, there is a command that can be execute to specifically call the "SN123" data,
    For the SQLplus, the steps to retrieve the data is like this:
    1. Key in the command to get the ID of the "SN123"
    2. Key in the command "SN123" ID to retrieve the data.
    I wonder if there is a way to put this command on labview database so it will be faster to retrieve the data.
    Attachments:
    Database.png ‏84 KB

    An  instrument driver written in Labview, is not the same as a instrument driver used by say Windows. A Labview instrument driver uses standard Labview functions to send SCPI commands to the instrument. You can learn a lot about the instrument by looking into the Labview instrument driver, and how it sends the commands to the instrument. But having the instrument programming manual at hands is also important.
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • Oracle 64-bit and database connectivity toolkit

    Hello- I am attempting to connect to an Oracle database by interfacing the databse connectivity toolkit with the Oracle 10.2.0.3 64-bit that my customer uses. I am running LV13 32-bit on their machine. I am unable to connect to the database. Are there any known issues with this type of setup? 

    There's some discussion about an unsupported method to use the Database Connectivity Toolkit with 64-bit Windows here: http://forums.ni.com/t5/LabVIEW-Idea-Exchange/64-bit-Database-Toolkit/idi-p/2170088
    That may help with the problem you're seeing.  Something else to consider is the manual (page 1-2):
    The Microsoft ODBC driver for Oracle and the Microsoft OLE DB
    Provider for Oracle do not support BLOB (binary) data types. You
    cannot use Oracle with the Database Connectivity Toolkit for binary
    data with these drivers. Instead, use the OLE DB Provider and ODBC
    driver that Oracle provides. Refer to the Oracle Web site at
    www.oracle.com for more information about the OLE DB Provider
    and the ODBC driver that Oracle provides
    Jeff B.
    Applications Engineer
    National Instruments

  • Problem with Dataguarg   ORA-01102: cannot mount database in EXCLUSIVE mode

    Hi,
    I'm trying to create a physical standby database on my Oracle9i DB runing
    on WinXP.
    Note: I have both Primary and Standby on the same system.
    Actually everything went well .... I did created the standby DB but the problem
    is I can not start my primary DB if my standby DB is mounted.
    I get this error:
    ORA-01102: cannot mount database in EXCLUSIVE mode
    And when I read about the error message I learnt that I should start my DB in
    compatible mode ... please how do I do that?
    Or possibly how can I make this work.
    Regards,
    Cherish

    Actually, I remember doing that in the Pry pfile but cannot really remember if I do that in the standby pfile.
    I'll check and get back to you.
    I'm very grateful for that.
    Regards,
    Cherish

  • PMON and ORA-01102: cannot mount database in EXCLUSIVE mode error

    hello all
    I have been asked to look into a problem server with the following details
    OS: sunOS 5.8
    Oracle: 10.2.0.1
    sys user password is not available !
    backgrround processes for the instance(sid=test) are running
    only schema credentials available and with that user is able to connect.
    verified all oraenv parameters(ORACLE_SID is same as the running instance(test)).
    only one instance is configured in this server(verified all tnsnames.ora, data files etc).oratab is empty
    the issues are,
    when I tried to connect to the server using "oracle" user using conn / as sysdba
    1. Tried to shutdown using , shutdown immediate
    ORA-01507:database not mounted
    ORACLE instance shut down
    still able to see the background processes and user is able to connect
    2. Tried startup command,
    In the nomount state I can see more than one PMON process with the same sid
    when tried to mount/open
    ran into the error,
    ORA-01102: cannot mount database in EXCLUSIVE mode
    Eventhough the background processes for the "test" instance are running I am not able to shutdown the instance using "oracle" user
    please help
    newbie

    hi
    i renamed lk* file but the issue still remains,
    with the oracle user
    1./ as sysdba
    2. shutdown immediate
    this leads to
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    SVR4 Error: 2: No such file or directory
    still not able to identify the running oracle instance.
    there is only one oracle home and the oraenv details are set with the correct values
    verified the alert log(ora home details are matching with the env details), details of the oracle processes which are active are in the alert log along with the startup failures(mount errors) at the tail end
    oracle sysdba is not able to identify the already running instance?
    please help
    newbie

  • Database toolkit & Oracle 11g, problem with timestamps

    I tested my application, based on the Database toolkit, with Access and Oracle XE (10g) databases and all was ok. After moving my database to a Oracle 11g server, i get this error for any query involving a TIMESTAMP WITH TIME ZONE or TIMESTAMP WITH LOCAL TIME ZONE column:
    ADO Error: 0x80040E21
    Exception occured in Microsoft OLE DB Provider for ODBC Drivers: ODBC driver does not support the requested properties.
    The error is raised by the "Execute" invoke node in "DB Tools execute query.vi".
    Using Labview 2009 and up to date Oracle ODBC drivers on Windows XP

    Hi SnamProgetti,
    I don't have any useful information about this error. You can try to read this and this document.
    Have a nice day,
    Simone S.
    Academic Field Engineer - Med Region

Maybe you are looking for

  • Close Window.Open after InfoPath 2013 submit form

    Hi, I've made an InfoPath 2013 'new' form in SharePoint 2013, but when the form is committed, it should close. So I've made a button on the form to submit it. In the rules in InfoPath, I said that it should close after submitting. I open this form fr

  • No Duplicate file?

    I thought I remembered a contextual duplicate command when I was using the SDK in eclipse.  Is there not a duplicate command in Flash Builder?  Thanks.

  • Adobe Reader Won't Download On Windows 7

    Worked ok on Vista, After installing Windows 7 (Clean & Install) Adobe Reader won't install on windows 7, goes through the process says 100% installation complete, then nothing. Any ideas.

  • When I try to download a message appears to say my download manager is fake

    I live in Thailand - land of fakes - I recently had my comp. repaired - new motherboard. Now when I try to download something a message appears to say that my Internet Download Manager is registered with a fake number.

  • Update from iOS 4 to 6. Do I have to sync apps?

    I'm helping out someone with updating his iPhone from iOS 4 to 6. I synchronized his iPhone with my laptop (only music, so no apps). Now if want to update it says that all apps will be deleted while updating, so I have to update using the same comput