Should the LabVIEW program be reduced to the speed of data collection?

I'm using a LabVIEW program created by Ocean Optics for a
Spectrophotometer probe with is run through the USB port. The problem
occurs when we attempt to collect data over a time frame of one
second. For some reason the whole LabVIEW program will begin to
operate at the speed of data collection when we try to run the VI with
an integration time of +500 ms. If anyone would be able to offer any
kind of explanation or theory it would be greatly appreciated. Thanks
for any and all help.
Daniel

Dear Daniel,
since LV has no support for USB this must be done through a DLL or Active-X control. A call to a DLL or Active-X method is a synchronous node in LV, that means LV will go on executing when the call completes.
My theory of your problem is that the program makes such a call and it would take that time to collect the data in the DLL or Active-X control. If you have only one loop in the program and do not use dynamic loaded VIs through the VI server than the program seems to hang on each of this calls.
I hope this helps
Waldemar
Waldemar
Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions

Similar Messages

  • Error when running the LabVIEW program

    hello...........
    I'm newbie in LabVIEW....I have a problem when i'm running the LabVIEW program...i want to analyse data using the LabVIEW through the real experiment....
    My problem is, there is an Error when i try to start the program...This Error forced me to restart the program several times until it can run.......By the way, i'm using Picoscopes 3206 to connect the LabVIEW program in PC with the real experiment.....
    Here, I'm attached the picture that I snap when the Error occur....
    Attachments:
    error.JPG ‏222 KB

    You have to try to isolate the problem...
    Use 'Diagram disable' or 'Case' structure to run special part of code or try write a specific code to access and manage your equipment.
    Several questions could help: 
    - Are you up to date with your hardware driver?
    - Do you call external ressources (ex: dll)? perhaps with instability
    - Do you properly close connection with your equipment after using? 
    - With your offline mode, do you load all the code, including hardware driver or do you use a special method without no loading the specific code?
    - When you are able to run after many tries, is the program stable? Can you re-start it without exiting LabVIEW?

  • I have some software problems of running matlab script node in the LabVIEW program.

    Hi there,
    I wrote a simple matlab code, like x= 1, y = x*2. Then I tried to put them into matlab script node in LabVIEW.
    However, when I ran the program, I couldn't run and Labiew show some error. 
    Then I tried the method talked before on this forum. Please see the following link.
    http://forums.ni.com/ni/board/message?board.id=Mat​hScript&thread.id=571
    I followed the instruction and open the "command prompt," type some commands then I could run the program, and simultaneously, the LabVIEW program open "Matlab command line window" and run my labview code. However, if I didn't use the command prompt, the  "matlab command window" will not be opened by running the labview program. It would just show some error. And even if I turn on the matlab program in advance, I still couldn't run the labview program.
    Is there any effecient way to deal with this problem without using "command prompt?" Because I try another PC with both matlab and labview installed on it, I "can" run my simple matlab script node on it, and it will open the matlab command line window automatically by running my code. Therefore, I thought there might be some software linking problems in the previous PC I used . Do you have any ideas?
    Thanks in advacne.  

    This board is for Mathscript, but you seem to have a matlab problem. You should probably post in the LabVIEW forum instead.
    What is your LabVIEW version? What is you matlab version?
    LabVIEW Champion . Do more with less code and in less time .

  • Once running the labview program which contain DAQ Assistant ,the message of "ERROR-50405....." appear.

    Once running the labview program which contain DAQ Assistant and can be run without any error before, the message box of "ERROR-50405....." appear which capture down in the attachment. We use PCI6221 and LabVIEW 8.0 in Windows XP. I also found that the Device Manager of Window have recognized the PCI6221.
    Any help on this situation would be great.
    Attachments:
    labview error.JPG ‏145 KB

    Hi~
    This error is due to signal interference between the device and the computer. This could be environmental or due to the PCI Controller. You can on a different computer to see whether this problem persists.

  • HP4275A can not pass self test after running the labview program

    I am using Labview to control HP4275A LCR meter. The Labview program is just the instrument driver for the HP4275A, and it works great. Before running the program, the instrument can pass both Open and Short test perfectly. But after running the program, it can not pass self test, neither Open nor Short. I don't know why?? Is it relative to my Labview program??
    Thanks

    Thank you so much for your help. Yes, the instrument is in Local after running the instrument driver. In normal Open self test, just choose Capactiance as the Display A, and leave the four output terminals open then press the Self Test button. The Open self test will start and "OP" will be shown in the DIsplay A window, after 2 seconds, the open test will be finished. If something abnormal, the number of the abnormal step is displayed in Display A. Similar with the Short test.
    The problem I had was: before running the instrument driver, the self tests pass; but after running the instrument driver, the Open and Short test show abnormal, Open test is abnormal at step 17, and Short test is abnormal at step 24.
    And the instrument driver is only write commands into the instrument and then read back measuring values from it. Nothing else. So I am not sure if the problem is my instrument driver.
    The weird thing is the problems happened several times and then if I do the Open and Short self test again after running the instrument driver, both pass. I am not sure whether the problem will come back or not.
    Ia there any help??
    Big thanks

  • CS2, I loved it but now after a computer death and a new install on a new PC the registration program won't take the code and continually needs to bee registered, how do I fix it without buying a new version.

    Some time back I was in college and purchased a copy of CS2, I loved it but now after a computer death and a new install on a new PC the registration program won't take the code and continually needs to bee registered, how do I fix it without buying a new version.

    Oh, for Pete's sake, folks!  The forum FAQs state very clearly that posters should always perform a forum search BEFORE POSTING.
    This question has been asked and answered here ad nauseam here.  I'll bet there are dozens of such questions here in the last few months.
    How To Get Help Quickly
    Before you Post:
    Firstly - have you really checked the 'help' option in the program? Many problems can be solved far faster by getting the answer from the Help File.
    Secondly - check the Forum FAQ folder. There's advice there on many common questions and problems
    Thirdly - use the 'Knowledgebase Search' option near the top of this page. Or you can click here to go to the relevant page and enter your search words there - or just search for 'Photoshop' there to see summaries of all the relevant items.

  • I purchased Acrobat Standard, not realizing it is not compatible with MAC. I need to exchange. I just chatted with a so-called "specialist" who told me to sign in and download the same program. I got the same blasted message. I need help. I need to exchan

    I purchased Acrobat Standard, not realizing it is not compatible with MAC. I need to exchange. I just chatted with a so-called "specialist" who told me to sign in and download the same program. I got the same blasted message. I need help. I need to exchange this program for one that is compatible with my MAC. The standard is of no use to me at all. I feel like I have been ripped off

    Hi Kargi,
    We are working on getting things straightened out for you. You should be hearing from a Customer Care agent shortly.
    Best,
    Sara

  • What are the steps to make it seamless for a customer to use the install program and then use the installed program?

    I wrote an install program (.exe) that is downloaded from a website.  When run, it 1) leads a customer to browse to a directory, and 2) copies files (.exe, .dll, etc.) from a website to that directory.  When I run, the installed program works.
    What are the steps to make it seamless for a customer to use the install program and then use the installed program? 
    bhs67

    This site https://msdn.microsoft.com/en-us/library/vstudio/2kt85ked%28v=vs.110%29.aspx provides a basic description of the Visual Studio Windows Installer. 
    Near the bottom of the page is "You can unlock all the features of InstallShield by paying to upgrade to the full version of InstallShield."  Where do I find info that describes the differences between the "free" and the "full"
    versions?
    bhs67
    Hello,
    The default feature does support the task for your requirement, so there is no need to pay for the other features unless you want to use some feature which is not free.
    In addition, as this thread
    InstallShield LE not available with VS 2012 RTM? shared, even through there is a link to InstallShield LE in the New Project dialog under Deployment solutions, but it belongs to third-party that I would recommend you consider posting this issue
    at the following forum to get supports about InstallShield.
    http://community.flexerasoftware.com/forumdisplay.php?133-InstallShield
    Regards.
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Trying to update creative cloud, comes error: The installation program could not access the important files / directories. Try to run the installer again. (Error code: 43), please contact customer support. The same error comes updating Muse. Mac 10.9.5. W

    Trying to update creative cloud, comes error: The installation program could not access the important files / directories. Try to run the installer again. (Error code: 43), please contact customer support. The same error comes updating Muse. Mac 10.9.5. What shall I do?

    Alauda_positos I would recommend reviewing your installation log files to determine the exact directory which the installer is unable to access.  You can find details on how to locate and interpret your installation log files at Troubleshoot install issues with log files | CC - http://helpx.adobe.com/creative-cloud/kb/troubleshoot-install-logs-cc.html.  You are welcome to post any specific errors discovered to this discussion.
    For information on how to adjust file permissions please see Error "Exit 6" or "Exit 7" | Install log | Read, write, system file errors | CS5, CS5.5 - http://helpx.adobe.com/creative-suite/kb/error-exit-6-exit-7.html.

  • Just installed Lion and iCloud. Now I'm not able to open the Mail program. What's the problem? Thanks. Andrew

    Just installed Lion and iCloud. Now I'm not able to open the Mail program. What's the problem? Thanks.
    Andrew

    Dear Ralph, thank you for your lightspeed answer!
    When I had installed the app, there was been written: "open", and when I pushed this, NO reaction of the iPad! And crazy too: I am NOT able to find the app itself at any screen of the iPad!!! I can see it only in the list "bought" items. With other words: The app is neither to be seen nor I am able to open it in the "list".
    Thank you in advance for your advice
    Best greetings from Austria (Wien, Vienna)
    Wiener Schnitzel

  • Error 25109 : The install program could not create the config data store. Is this a know issue with a solution?

    Hi I cant install the Management Console.
    I keep getting
    Error 25109 : The installation program could not create the configuration data store. Please see the installation log for more info.
    Has someone come across this problem before?
    I am using
    MS Server 2008 Std x86
    SQL Server 2005 SP2 Std x86
    MDOP 2008 R2
    APP-V 4.5
    Please can someone help.
    Thanks

    I'm running into the same problem myself, I have an almost identical setup.
    Trying to do a clean install of App-V Management Server 4.5 from the MDOP 2008 R2 CD.
    Server OS: Windows Server 2008 Enterprise SP1 (Has WDS and IIS installed (IIS 6 Management Compatibility too), as well as .Net 3.5 SP1 Framework)
    Database: Microsoft SQL Server 2005 Enterprise (Version 9.00.3068.00) (Note: SQL server is running on a different server than the server App-V is being installed on.)
    Installer gets to the point where it starts creating the database than dies, reporting a 25109 error.
    Checked out the logfile the installer created, here's a snip of the last few lines before is starts rolling back the install:
    1
    [2008-12-23 15:58:35] (2284:3084) SQL state: ``01000'', Native: 0, Text: ``[Microsoft][ODBC SQL Server Driver][SQL Server]<<< CREATED TRIGGER dbo.TR_U_SYSTEM_OPTIONS >>>''. 
    2
    [2008-12-23 15:58:36] (2284:3084) SQL state: ``42000'', Native: 18058, Text: ``[Microsoft][ODBC SQL Server Driver][SQL Server]Failed to load format string for error 16873, language id 1033.  Operating system error: 122(The data area passed to a system call is too small.). Check that sqlevn70.rll is installed in C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\Resources\1033, where 1033 is the language ID of US English, or the appropriate folder for the locale in use. Also check memory usage.''. 
    3
    [2008-12-23 15:58:36] (2284:3084) SQL state: ``01000'', Native: 3621, Text: ``[Microsoft][ODBC SQL Server Driver][SQL Server]The statement has been terminated.''. 
    4
    [2008-12-23 15:58:36] (2284:3084) ::SQLExecDirectW error 0xffffffff. 
    5
    [2008-12-23 15:58:36] (2284:3084) Failed to execute SQL ``/* ------------------------------------------------------------------------- *\ 
    6
        Copyright (c) Microsoft Corporation.  All rights reserved. 
    7
    8
        Description: 
    9
            This script creates all user-defined messages. 
    10
    11
            The types of messages allowed (and their severities) are: 
    12
            FATAL   - SQL Server Severity = 17; ours = 1 
    13
            ERROR   - SQL Server Severity = 16; ours = 2 
    14
            WARNING - SQL Server Severity = N/A; ours = 3 
    Can anyone help me shed some light on what's going on here?

  • Hi, I've just downloaded Aperture 3.2 and transfered all my iPhoto Library but now when I use the Aperture program it runs at the slowest speed possible and is almost impossible to work with. It is constantly processing why is this?

    Hi, I've just downloaded Aperture 3.2 and transfered all my iPhoto Library but now when I use the Aperture program it runs at the slowest speed possible and is almost impossible to work with. It is constantly processing why is this?

    You can click on the text that says 'processing' in the main windows and it will open (toggle) the Activity Window, (can also be accessed via the Window menu -> Show Activity.
    It will tell you what Aperture is doing with more precision and perhaps even how many photos it still needs to process. It is generally best to wait until all that processing is done before you start working with the photos (well it is best to first turn of options what you dont want to use, perhaps Faces or Previews and then let it process the new photos).

  • To exit the Labview program

    I am working with drivers of a instrument in LABview and want to completely exit/stop the whole Labview program is something goes wrong. Like, indefinate execution of some while loop..etc.. How can I do that?

    This is exactly the discussion I was hoping to stimulate. (I
    hope interesting, educational and possibly controversial). I think that the
    most valuable part of the discussion to date is your experience and issues with
    the application of the Exit vi.
    I suspect I may be about to commit heresy to many. But in suggesting what
    follows, I hope you will keep in mind a British comedy that I like called
    'Black Adder' with Rowen Atkinson. I am applying this to many levels in this
    response. I admit to brevity again here....
    He is struck with a dilemma of forbidden love and cares what the world will
    think and goes to the 'Wise Woman' for advise on his problem: -
    She gives him three possible solutions: -
      Kill yourself - 'No' says he.
      Kill the object of desire - 'Not really' says he.
      Kill everyone else - 'Not really practicable' says he.
    He elects not to take the advice of the 'Wise Woman' - It transpires that there
    was a solution, as there was an error - he just didn't have all the
    facts..........
    To add one small part to the story, I would like to add that everything dies
    eventually!
    So here it comes.... Everyone SHOULD be putting in at least one EXIT vi in a
    production application!
    Still sat in your seat?
    I propose - For exactly the reason that has been pointed out with regard to the
    hardware and safe shut down. That is to allow the software (LabVIEW) to do the same. To
    explicitly and formally state when and where the application terminates - Even
    if in principle it is not actually intended that it should - the exit point and
    software shut down sequence should be clearly indicated. I would suggest there
    should be normally one exit point for a classical application.
    To this end the example posted would be modified to include the EXIT vi - when
    the designer has, resolved all issues or just can't cope any more.
    What one tends to see, both in this forum and in released applications; is
    development code or applications that were never reviewed to completion. Effectivley Beta applications.
    NI don't put the EXIT vi's in Examples; as it, of course, EXIT's LabVIEW
    cleanly and completely!!!! (bit of a pain for a novice). But as a result neither do many others.
    So are you a convert to the cause?
    Now my questions to the forum are: -
      Do you allow for and provide, a single point of software shutdown;
    clearly stated and explicitly defined for production applications (would you
    admit you don't / haven't)?
      If you don't; what do you do?
      How do you go about trying to assure clean up of any problems (I have
    yet to meet the perfect systems designer, I live in hope).

  • How can I lock the Labview program in runing mode?

    Hello
    I want lock my program in running mode. can you help me to know how it is possible?
    when we design a program for a user, maybe a child or ane person change the program or stop it, or change the value like an array. is it possible to lock the progran in running mode?
    thank you
    Best Regards

    behzad1 wrote:
    Hello
    I want lock my program in running mode. can you help me to know how it is possible?
    when we design a program for a user, maybe a child or ane person change the program or stop it, or change the value like an array. is it possible to lock the progran in running mode?
    thank you
    Best Regards
    I have attached a primitive example, it should give you some idea, maybe it helps. Of course i put it together quick, so the style is not nice
    The password is a string, visible on the block diagram, so password protect the block diagram via the "VI properties". Also, change the "Window appearance" to custom, where the closing "cross" is disabled ("Allow user to close window"), and you also hide the abort/pause buttons...
    Of course if you build an exe, the story is different...
    These steps should give a minimal protection against children and evil colleagues 
    Attachments:
    lock_unlock_FP.vi ‏42 KB

  • How to deallocate memory used by the labview program?

    Hi,
    I have bulit a large application in labview 2012 that uses a couple of subvis, local and global variables, some uninitialized shift registers (functional global variables) and some c++ and .net dlls as well. When I open my application the memory usage shown at Windows task manager is around 1.4GB. After running the application and enabling all processes used in the application, the memory usage goes up to 1.55GB but when i stop the application, memory is never released/deallocated until i close the application plus exit labview. Can you suggest how to deallocate this memory? and how can i use the request deallocation function for this application? labview help says i have to place it inside a subVI for which i want to deallocate memory. But i have a lot of subVIs used in my application. I tried placing it in the top level VI and called it after stopping all processes but it didn't work... I am also closing references to all of the .net dlls at the end. Any workarounds??
    Thanks

    sandee wrote:
    When I open my application the memory usage shown at Windows task manager is around 1.4GB. After running the application and enabling all processes used in the application, the memory usage goes up to 1.55GB but when i stop the application, memory is never released/deallocated until i close the application plus exit labview.
    You already got some good advice. One thing that was not clear was how you are measuring memory. Since the task manager is capable of showing the memory used by LabVIEW alone (you simply need to look elsewhere), and you said that the memory gets released when you exit LabVIEW, you gave the impression that the 1.4GB was the LabVIEW portion.
    OK, so a couple of hundred MB used by LabVIEW is really nothing to worry about. Are you running into memory or other performance problems? What are the symptoms?
    sandee wrote:
    I have bulit a large application in labview 2012 that uses a couple of subvis, local and global variables, some uninitialized shift registers (functional global variables) and some c++ and .net dlls as well.
    We really need to see some code. It is very well posssible that you have a lots of unecessary data copies in memory due to sloppy programming. How big are the data structures? Do you use local variables for big data structures? What does the program actually do?
    LabVIEW Champion . Do more with less code and in less time .

Maybe you are looking for