Continuous Labview program run with non-contin​uous DAQ connection

I am using a wireless DAQ, NI 9191 chassis with 9205 module, to measure strain in a system. The DAQ is not being run on standard power so it will occasionally not be powered. The DAQ automatically reconnects to the computer when power is reestablished, but when the DAQ loses power the program encounters an error and stops the program.
What I want to do is create a Labview program that will run continuously by ignoring the errors, recording data when the DAQ has power and recording an NA or zero when there is no power. 
If anyone knows or has had this problem before let me know if there is a solution ASAP. 
Thanks

The program propably (hard to tell without any code to review) only stops because you have not wired the error putputs of your DAQ-vis. Wire them through to a case structure. In the "no error" case pass your aquired data to whatever postprocessing you deem appropriate (you said something about recording). Set the outgoing tunnel with the data to "use standard if not connected" (I don't have the english version of LV available, so this might be called slightly different). This way it will allways pass on zero when there's an error in your data aquisition.
Regards
Florian

Similar Messages

  • Case study: "Large?" labview programs flooded with different VIT's

    Case study: "Large?" labview programs flooded
    with different VIT's
    Type of application:
    Computer with loads of individual hardware connected or other software (either
    onsite (different buses) or offsite (Satelite/GSM/GPRS/radio etc.).
    Hardware
    description: little data "RPM" but communications to all devices are intact.
    More "RPM" when many VITs are involved.
    Size: 1000+
    VITS in memory (goal). Total software has been tested and simulated with 400.
    I'm posting
    this post after reading this thread (and actually I cant sleep and am bored as
    hell).
    Note: I do
    not use LVOOP (but sure post OOP examples, am starting to learn more and more
    by the day.)
    Things I
    will discuss are:
    Case 1: Memory usage using a plugin
    architecture
    CASE 2: memory usage using VITs (!)
    CASE 3: updating datastructures:
    CASE 4: shutdown of the whole system
    CASE 5: stability & heath monitoring
    CASE 6: Inifiles
    CASE 7: When the hardware is getting crappy
    Total
    application overview:
    We have a
    main application. This main application is mainly empty as hell, and only holds
    a plugin functionality (to register and administer plugins) and holds an
    architecture that holds the following items:
    Queue state
    machine for main application error handling
    Queue state
    machine for status messages
    Queue state
    machine for updating virtual variables
    Event state
    machine for GUI
    Some other
    stuff
    Other
    global functionality is:
    User
    logins, user configurations and unique access levels
    Different
    nice tools like the good old BootP and other juicy stuff
    Supervision
    of variables (like the NI tag engine, but here we have our own datastructures)
    Generation
    of virtual variables (so that the user can configure easy mathematical
    functions and combining existing tags)
    Licensing
    of plugins (hell we free-lance programmers need some money to don't we?)
    Handles
    all communication between plugins themselves, or directly to a plugin or vice
    versus.
    And now we don't
    talk about that (or marketing) the main application .
    Message Edited by Corny on 01-20-2010 08:52 AM

    CASE 3: updating datastructures:
     As we do NOT use clusters here (that would
    just be consuming) we only use an 1D array of data that needs to be updated in
    different functional globals. If the the number of VITS exceeds so that the
    updating of this datastructures becomes the bottleneck, this would cause
    delays. And since in this example we use 250 serial interfaces (lol) we do not
    want to disrupt that by any delays. When this happends, does anyone know a good
    solution to transfer data?
    A thought:
    perhaps sending it down to the plugin and let the plugin handle it, this should
    save some time, but then again if more VITs are added again this would become a
    bottleneck and the queue would fill up after a while unable to process it fast
    enough. Any opinions?
    CASE 4: shutdown of the whole system
    Lets say we
    want to close it all down, but the VITs need perhaps to do some shutdown
    procedure towards the hardware, that can be heavy.
    If we ask
    them to shutdown all together we can use an natofier or userevent to do this
    job. Well, what happends next is that the CPU will jump to the roof, and well
    that can only cause dataloss and trouble. The solution here was to let the
    plugin shut them all down one by one, when one has been shutdown, begin at the
    next. Pro; CPU will not jump to the moon. Con's: shutdown is going to take a
    while. Be ready with a cup of coffee.
    Also we
    want the main application not to exit before we exit. The solution above solved
    this as the plugin knows when all have been shut down, and can then shut itself
    down. When all plugins are shutdown - the application ends.
    Another
    solution is to use rendovous (arg cant spell it) and only shut the system down
    when all rendezvous have met.
    CASE 5: stability & heath monitoring
    This IS
    using a lot of memory. How to get it down. And has anyone experienced any
    difficulties with labview using A LOT of memory? I want to know if something
    gets corrupt. The VITs send out error information in case, but what if
    something weird happens, how can I surveillance all the VIT's in memory to know
    one is malfunctioning in an effective way/code (as backup
    solution  so the application knows
    something is wrong?
    CASE 6: Inifiles
    Well, we
    all like them. Even if XML is perhaps more fahionally. Now Ive runned some
    tests on large inifiles. And the labview Inifile functions use ages to parsing
    all this information. Perhaps an own file structure in binary format or
    something would be better? (and rather create an configuration program)?
    CASE 7: When the hardware is getting crappy:
    Now what if
    the system is hitting the limit and gradually exceeds the hardware req. of the
    software. What to do then (thinking mostly of memory usage)? Needing to install
    it on more servers or something and splitting configurations? Is that the best
    way to solve this? Any opinions?
    Wow.  Time for a coffee cup. Impressive if someone
    actually read all of this. My goal is to reach the 1000 VIT mark.. someday.. so
    any opinions, and just ask if something unclear or other stuff, Im open for all
    stuff, since I see the software will hit a memory barrier someday if I want to
    reach that 1000 mark hehe

  • Interaction between 2 labview programs running on two distinct computers

    hi
    i have two distinct computers and 2 labview programs running on each computer. in one computer labview program is prepared for data acquisition and saving acquired data. now i want to send these acquired data by cable to another computer to be processed. first i am searching for the best protocol for sending data between these two computers. it is important for me to diliver data near real time approximately in milisecond. and finally is there neccessary to have any special kind of software?
    best regards
    Message Edited by farashi on 01-30-2010 01:36 AM
    Solved!
    Go to Solution.

    Farashi-
    A real-time system doesn't mean an instantaneous system, or a fast system.  It actually means a deterministic system, or a system that you know exactly how long it will take to complete a process.  As was mentioned before, even Gigabit ethernet has latency, and that latency is not deterministic.
    If you want a real-time system over the network, here is a KB that has the software and hardware setup you would need to do.
    http://zone.ni.com/devzone/cda/tut/p/id/4720
    Mostly, to accomplish what you want to do, you won't be able to use windows, because there is non-determinism there.  You will get latency problems when windows decides to use the processor for something other then your application.  For the best real-time systems, look into the Compact FieldPoint of a Compact Rio system that you can deploy your code to.
    Scott Wiest
    Applications Engineering
    National Instruments
    National Instruments
    Applications Engineer

  • Will oracle 8.3.7 Pro *c Programs run with 10g?

    Hi all,
    This may not be suitable for this forum but please advise me
    We are planning to upgrade the oracle 8.3.7 to 10grel2
    This is in AIX 4.3.We got MQSeries version 5.2 installed.
    Our PRO *C programs are compiled in 8.3.7..
    will the PRO *C programs will run and communicate with 10g.We receive messages from MQ and manipulate the database.
    Will the existing programs run with 10g
    Help needed URGENT
    Thanks

    Your Pro*C will need to be version 9.2 compliant, to run against 10g so may need some reworking. See here for more detail:
    http://oraclesvca2.oracle.com/docs/cd/B14117_01/win.101/a96111.pdf

  • Modification of Global channels In NIMax while Labview Program running, not updating in Labview

    Hello,
         Okay, here is my issue.  I have a program that reads data from a device using global channels in MAX.
    Step 1:  I open MAX with the systemExecute.vi with the parameters to wait till program finishes.
    Step 2:  I Modify a channel in Max, for example change the assigned daqMX Scale, or Min Max values.
    Step 3:  Save channel in Max.
    Step 4: Exit MAX with the file exit.
    Step 5: The Labview program continues, and I re-read the available global channels and global scales in the Labview vi but the properties have not changed to match what I change in MAX.
    If I stop the VI then start it again and read the global channels then the properties get updated.  How can I get the channel properties to update in Labview after changes are made in Max without stopping the labview vi and starting it again?

    Many properties of the channel can only be modified when the task is not running.  Have you tried stopping the task in LV before modifying the parameters, and then re-starting the task?
    Dan

  • Can Labview Programs run from the Windows System Tray?

    Does anyone know if Labview Runtime executables can be run in the Windows System tray? Any help would be appreciated.
    I'm creating a program that I want to run in the background, not visible on the desktop or taskbar.
    Thanks,
    Tom

    Requirements    Price: $29.95
     Application Software:
    LabVIEW 7.0+
     Toolkits Software:
     Additional Software:
     Language's:
    LabVIEW
    INVtray LabVIEW Toolkit allows the programmer to create a LabVIEW program that can be hidden from the task bar and accessed through the System Tray.  Comes with a sample VI that demonstrates all the features of the toolkit.

  • LabVIEW 2009 program runs with no issues .exe does not

    Hello,
    We have been doing some new LabVIEW development.  We started turning them into executable.  Errors occurred during the build in a File I/O vi.  This was resolved by copying the diagram into a new vi.  This seemed odd given that it was the same vi.  Any thoughts on this?
    There are problems with the program operation once we create and run the .exe.  The vi runs fine.  Hum? Some of the issues are......  (1) some of the setup .vi for our test equipment no longer setup the equipment correctly (2) sub .vis that were set to show must be set in the vi properties of the vi instead of in the calling vi.  I've read that the executable run quicker than the vi.  ....most of our communication to instruments is through GPIB.  Are there any suggestions on how to control timing when using GPIB?
    THANK YOU!

    Why can't I run an executable created in LabVIEW 2009 and later, and how do I fix it?
    Theres a good KB article that should set you straight.
    Jeff

  • How to compile and link the LabView program(G) with some function written in C?

    Before, some employee in our company developed some program which was written in LabView (G). Now we want to add some new function with has already been done in C++. Can we combine them together? how to do it?

    Hi;
    To use external code in LabVIEW, you can create a dynamic link library (.dll) that you can call from LabVIEW or a Code Interface Node (CIN). The instructions on how to make any of those are in National Instruments manual Using External Code in LabVIEW, which is included with LabVIEW, or you can download it from NI website.
    Also, in the knowledge base there is a "External Code for LabVIEW - CIN / DLL - Starting Point" page.
    If, on the contrary, you want to use LabVIEW code on your C application, you can build dll's in LabVIEW. Depending on your version of LabVIEW, you may need Application Builder to do so.
    Of course, you can also use other techniques like, for example, making that your LabVIEW application save the data in a file and then your C++ application read the file and continues from there, or vice versa. You can also use the "System Exec.vi" in LabVIEw to do that, assuming your C code is an executable.
    Regards;
    Enrique
    www.vartortech.com

  • RSAU_UPDR_REACTIVATE_ALL program running with transport

    Hi,
    We have a newly built dev BW system . As part of the post steps we have run the necessary programs but when we are trying to run the program RSAU_UPDR_REACTIVATE_ALL we are asked with transport creation request .If the transport number is provided and continued we get QAS system doesn't exist .Since dev being newly built there is no QAS . Can the program be run without the transport request?
    Regards,
    Anup

    In RSA1 --> Transport connection --> EDIT --> Transport --> Switch off standard.
    Check this then try to run this program.

  • Problem installing program running with Java

    When i start to run a program appear a window witj following message: "preparing to run java virtual machine"..after that appear next small window with installshield wizard. When make a transition between this small windows to start to install the program, nothing happens it is he does not make this transition.
    I already download the new version without results.
    Do have any ideia what could be the problem.?
    Thanks
    Jorge

    Which JRE is bundle inside your application ?
    Is it International or US only ??
    I have a reason to believe that US version is
    throwing NullPointerException when installing it
    on windows 2000 server
    When you starting the installer, The installer is unpacking the JRE - so check which directory it expanded and than Try running java.exe from the JRE that was installed.
    Maybe its currupted, You dont need to run any code
    even if your run java.exe without anything the
    exception is thrown
    If exception is thrown try the international version of JRE

  • How do I fix mojibake on Japanese PC program running with Winebottler on OS X?

    I'm trying to run a PC game on a 27" iMac running OS X Mavericks. I have successfully created a .app package using Winebottler, and the program seems to run just fine. However, since the game was intended for Windows computers with the system language set to Japanese, all dialog boxes appear as mojibake instead of Japanese text. I tried changing my OS sytem language to Japanese, and that didn't affect the app. Is there anything I can do to remedy the situation?

    Your Mac cannot read a PC game designed for Windows unless you use virutualization software such as VMware or Parallels
    Or partition the hard drive using Boot Camp.
    BootCamp requrires purchasing a Windows installer disc.

  • Get error 66, when try to make labview program communicate with arduino uno+ wifi shield.

    I have a sever VI, keep sending data use TCP VIs. The client side is my arduino board (uno+ wifi shield), which can receive data wirelessly. I run both, they can successfully communicate once. At the 2nd time, the sever VI will close itself, because TCP write VI gets error 66. In VI server, I have allowed access of localhost, and IP address of my arduino.

    Actually, they can communicate not only once, sometimes the VI can pass data several rounds, but suddenly the error 66 appears in TCP write, the loop will stop. And if I rerun the program, things happens again. can anybody tell me why the error come out? Thanks

  • Will this program run with amd duron processor in English

    I have very old lap top it has AMD Duron processor. It only has limited hard drive.
    Need to know if this program will function on this lap top. It has windows XP I got it
    In 2001 Do not want to download until I know it will function
    thank You

    See:
    * http://www.mozilla.com/firefox/system-requirements.html - Firefox 3.6 System Requirements
    * http://www.mozilla.com/firefox/system-requirements-v3.html - Firefox 3 System Requirements

  • Problems with non-Apple Router's connection

    Hello everyone,
    Hope all of you have a nice day.
    I just bought a new airport Express, but i do not know how to configure the AE to connect internet.
    My situation is: i'm living in a dormitory, and connecting to internet via my university's network. Therefore, in my room. there is only 1 LAN
    cable for you to plug in to your computer. The computer has to be set into static ip address.
    Here is the information:
    IP address: 141.2.179.79
    Sub: 255.255.254.0
    default gateway: 141.2.179.254
    dns: 141.2.22.74
    i pluged the LAN cable to WAN port of AE, and manually configured the AE as:
    1. Connect to internet using: Ethernet
    2. Bridge mode
    3. manual TCP/IP:
    IP address: 141.2.179.79
    Sub: 255.255.254.0
    Router address: 141.2.179.254
    DNS: 141.2.22.74
    After the configuration, the LED goes green - means everything should be fine. But i still cannot connect my computer to internet when pluging the cable from the LAN port (AE and my laptop).
    Hope someone has solutions for me
    I appreciate your helps.

    I'm wondering if it's possible to get the Airport
    Express and/or Airport Extreme to extend my wireless
    network. I would like to keep my internet connection
    going into the Belkin Router.
    No this is not possible with your Belkin router.
    However you could create a roaming network with the AEBS (Airport Extreeme Base Station) and the Belkin (join them via cable) and then extend the AEBS wireless part of the network with the Airport Express.
    Cable Connection -> Belkin Router (on channel 1)
    Belkin Router -> AEBS
    AEBS (on channel 11) - ))))) Airport Express (also on channel 11) via WDS
    You would need to ensure that the AEBS was configured to not distribute IP addresses.
    You might as well use the Airport Extreme and extend it with the Airport Express and leave out the Belkin router.

  • CPU usage is 98% when running my exe labview program

    Hi
    I have made an executable and installer for my labview program. When I install and run, the program uses a lot of cpu - almost 100%, even when the program is not computing. I recently changed over to LVIEW 8.2 from LVIEW 7.1. I had none of these issues with 7.1.
    Programatically, I use a state machine to continuously execute the program. I also use a couple of while loops as slaves to plot the results processed in the main loop. In all while loops I have a 'Wait' until next ms' vi to prevent the program using all the cpu, but it doesnt seem to be helping in LVIEW 8.2. This is somewhat strange.
    Can someone suggest what may be happening? and are there any methods that I can use to reduce cpu usage of my program?
    Cheers
    RVR

    It will be impossible to really troubleshoot this without a lot of additional infomation.
    Is the CPU usage only high in the built application, or is it also high if you run the same program in the 8.2 development environment?
    Was the 7.1 program exactly the same, or did you make any modifications since?
    Are you running 8.20 or did you upgrade to 8.2.1?
    What does the program actually do? Does it interact with DAQ hardware? File I/O?
    What does the program do when it is "computing"? Is the CPU use even higher then?
    Is there also a wait statement in the main while loop?
    What is your OS (windows, linux, mac, etc.)
    Is your computer reasonable for the task. Enough RAM, etc.
    How do the various loops communicate with each other? (queues, local-, global-, shared- variables, etc.)
    How much data is exchanged between the loops? At what rate?
    Do you use fixed or variable size arrays?
    Can you give us a more detailed overview of the code?
    How is the memory usage?
    have you done any profiling?
    LabVIEW Champion . Do more with less code and in less time .

Maybe you are looking for

  • Problem of where downloads/attachments go in Mail

    Mail Attachment Download I use the Mac's mail application, Mail. The default setting for where attachments are found is HOME >> Library >> Mail Downloads. I went into Mail Preferences and changed the downloads location to a folder I created, Attachme

  • Howto export and import SLD data to different SLD's

    Hi All, I have a landcape with 4 SLD's. A central SLD within Solution Manager and 3 SLD's for resp. XI dev,qas,prd. The central SLD is version 7.0 and the XI versions are 2.2. (model versions are the same, CR are different -> XI SAP_CR 2.18 -> Solman

  • Tri-color spry menu bar

    Thank you for viewing my post! I am having trouble editing the default spry menu bar .css file How do I edit the spry menu .css file to display two different roll over colors for the menu and submenu? My goal is to have a blue menu bar with gray roll

  • I need to boot up a mac book via firewire cable

    I need to start up my macbook via a firewire cable from my imac. is this possible and what cable do I need exactly.

  • Trouble importing third party classes & using linked list in j2me

    Hi! I need to use the linked list data structure in a j2me application im developing. Al long as I know, it is not included in standard libraries. I found the "workaround", the substitution in Jade Laepaddon. This is actually a set of classes in a di