I want to run my program with continuous aquisition and write data to file when a button is pressed and get the most recent samples from the DAQ board.

This is an update to a question I asked earlier. I am still trying to solve the problem. I have included a zip file with a library file. The file to open in pj_pushbutton.vi. I have placed comments explaining the issues and problems in this vi and the subvi's.
When I push my button to write the data to file I think it is writing the data that has already been stored in the buffer and writing to file all at once. I want the data that is taken from the DAQ board from the time that I press the Write File button. How do I do this?
Attachments:
pj_pushbutton.zip ‏692 KB

Hi,
1. In AI read, you need to set the Read/Search option to "Relative to End of Data".
2. Next you should not start AI Read VI until you press the Write to File. I am attaching an example VI below. Please see if it helps.
Regards,
Sastry V
applications Engineer
National Instruments
Attachments:
MostRecentAcquiredData.vi ‏97 KB

Similar Messages

  • I want to de-install mac-excel test version and get the error message: you have not the privileges to de-install. Please login with the Mac-OS account you have installed mac-excel originally'. I don't know this account anymore. I am sysadm

    I want to de-install mac-excel test version and get the error message: 'You have not the privileges to de-install. Please login with the Mac-OS account you have installed mac-excel originally'. I don't know this account anymore. Possibly it does not exist anymore. anybody out there who can help ?

    Hi, I may suggest to activate the root account and try the uninstall process from that account. To do so, you have to:
    Go to System Preferences a open up the Users pane;
    On the left side of the pane, you shuold see Login Options;
    Enabled editing option clicking on the lock (it will ask your password);
    Once the pane is enabled, you should see something like Server Account Network (sorry my OS is in italian, so I don't exactly know the right translation), and right next to it a button;
    Click on that button, and a new pane shows up. Click on Open Directory Utility, and on the upper bar of OS X click on Edit;
    Select Enable Root Account (you can set a password, or not);
    Done that, you should log out and when the login window show up, type on the user field "root" and the password you choose;
    Theorically, from this account you will be able to unistall the application.
    After completing your task, I reccomend you to disable the root account, just by loggin in your personal account and repeating the steps I described before. Hope it helps

  • If i want to give in my iphone 4s 16gb and get the iphone 6 16gb how much would it be? or how much credit would i get forgiving in my iphone 4s?

    if i want to give in my iphone 4s 16gb and get the iphone 6 16gb how much would it be? or how much credit would i get forgiving in my iphone 4s?

    You need to ask your carrier this question.  Many of them are offering some decent trade in deals, but it varies from carrier to carrier.

  • I want to run a vi for 4 days and save 360,000,000 samples in a file

    Hi
    I want to run a vi for 4 days and save samples to a file.
    I use the Ni EX save to file.vi example provided by LabView and change the Trigger mode to "immidiate ref trigger" as I am measuring a DC voltage.
    The application runs correctly when min record length is 2048 however when I change the min record length to 2,000,000 I receive the following error message and nothing get saved:
    Error occurred at:  niScope Multi Fetch.vi
    <err>Driver Status:  (Hex 0xBFFA2003)
    Maximum time exceeded before the operation completed.
    Possibly no trigger received. Buffers done: 0, Points done: 0.000000.
    I appreciate if you help me in this regard,
    Maryam

    Maryam,
    Have you tried increasing the timeout?  What is the exact name of the vi that you are using. Also, what hardware are you using?  What driver versions do you have installed?  Actually, the more information you could give us, the better.  Thanks and have a great day!
    Regards,
    Lon A.

  • Xcode is not wanting to run a program with "3.1" included in filename

    I have been having a strange problem with Xcode lately. The other day I was writing a program as a Cocoa Application Project and I named the file prog3.1. This was a simple command-line program that would just display some values that had been stored in variables; it's being used as an example to teach somebody Objective-C. Unfortunately, whenever I try to build and run the program I will not recieve any of the printed text or the confirmation that the program has exited successfully. The screen says that the build was successful but that's it.
    I've tried using different code that I know for sure compiles and runs correctly but if it is stored in the prog3.1 file it will not output anything. I have also discovered that using 3.1 in any project name will result in this strange behavior. I can get the code to run in a file of another name, but I'm afraid that the person learning this would become too confused as to why it needs to be done this way.
    Is this an unknown bug? Does anybody have a suggestion as to how I can remedy this?
    iBook G4 Mac OS X (10.4.6) 933Mhz G4, 640mb RAM, Airport

    Hi Joe,
    The period character is used by Mac OS X to separate the file name from the file extension. It seems likely that the system cannot tell what type of file you are using because it thinks '.1' is the extension.
    Perhaps '3-1' or something similar will keep things clear for your student.
    PowerMac G5 1.6Ghz   Mac OS X (10.4.6)   4 gig RAM & NVidia 6800 Ultra

  • How to run two programs with one PC and two monitors

    Good Morning,
    I have a requirement to run a parallel loop and update the progress in two monitors with one computer.
    For ex: its a two test stage, the process and progress of the 1st stage needs to displayed in monitor1 and similarly for 2nd stage to monitor 2 with program running with one computer.Would it be possible to do that.
    Thanks in advance

    Hi Parker,
    yes, it's possible. You also have properties to set windows to specific monitors...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • I'm trying to download the latest version of iTunes and get the message "There is a problem with this Windows Installer package. A program required for this install to complete could not be run." I have no clue what to do with this.

    I'm trying to download the latest version of iTunes and get the message "There is a problem with this Windows Installer package. A program required for this install to complete could not be run." I have no clue what to do with this to resolve the issue. Thanks for any help!

    Repair your Apple software update.
    Go to START > ALL PROGRAMS > Apple Software Update. If it offers you a newer version of Apple Software Update, do it but Deselect any other software offered at the same time. Once done, try another iTunes install
    If you don't find ASU, go to Control Panel:
    START > CONTROL PANEL/ > Add n Remove Programs, highlight ASU and click CHANGE then REPAIR

  • How to Install crystal run time programs with out designer.

    Can anyone suggest me  how to install crystal run time program with out installing entire designer software.
    Is it coming along with CR software package, which we have to do custom install or is it coming as a different package.  
    Currently my client is using only the run time programs to trigger crystal  report from VB app but developers have installed entire software for development.  We need to figure out how this install can be done, as it was done long time before and folks who have done it left the company.  
    Any suggestion on this would be of great help to me.

    See this wiki:
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsforVisualStudio.NETRuntimeDistribution-Versions9.1to12.0
    Ludek

  • I want to run dual monitors with my hp compaq dc5800 small from e7400 @ 2.8ghz

    I want to run dual monitors with my hp compaq dc5800 Small From e7400 @ 2.8ghz.  Will it work and what video card do you recomend?

    Yes, I see that I was in error when I posted that.  Sorry.
    The quickspecs for any dc5800 state that it has a:
    (1) low profile PCIe x16 (SDVO/ADD2) slot.
    Accordingly, the only card you can install would be this one...
    https://h10057.www1.hp.com/ecomcat/hpcatalog/specs/provisioner/99/DY674A.htm
    I have edited my original reply to represent the correct info.

  • I want to run java program on windows environment as background process

    Hi all
    I want to run java program on windows environment as background processSo command prompt return after executing java command and program on background In Linux we can do this easily �but I do not how to do this in windows
    for example look this programe
    import java.io.*;
    import java.util.*;
    public class TestClass {
         class ravi extends Thread{
              public void run(){
                   try {    
                        String target_file = "ravind.txt";
                        File targetfile = new File(target_file);
                        PrintWriter writer = new PrintWriter(new FileWriter(targetfile)) ;
                   for (int i =0 ; i < 100 ;i++ ){
                        Thread.sleep(10000);
                        writer.println(" ravindra shukla ");
              } catch (Exception e) {               
                             e.printStackTrace();
         public static void main(String[] args) {
              TestClass test1 = new TestClass();
              TestClass.ravi r1 = test1.new ravi();
              r1.start();          
    System.out.println(" return from main ");
    first i compile this
    javac TestClass.java
    then i run this by using this command
    java TestClass
    but becouse i put sleep on threads run function so it takes to much time to get return on command promt .... i want to run this programe as background process so command promt return as soon as i execute java command

    Thanks dude
    This solution �start java TestClass� works fine �. But it does not solve my problem
    It opens another black window and that black window persist till the life time of my program
    Is it possible application run on complete background without opening another black window �as in Linux

  • What is the best spec to run multiple programs with photographs?  Includes:  Lightroom, PhotoMechanic, and Internet DAM system?

    What is the best spec to run multiple programs with numerous photographs?  Includes:  Lightroom, PhotoMechanic, and Internet DAM system?
    For a Macbook Pro.  What's the least amount I need to process, upload, download images using these 3 programs?
    Thank you.
    pt

    That's a nice system Kevin, and it will work very nicely with Photoshop.  I do take it that you have 16Gb RAM in Total?
    250Gb SSD is a good size, but you can still run short, and that will affect Windows performance.  When you get your system, instal WinDirStat which gives you a graphic display of everything on your drive, like below. Clicking on any of the large areas will tell you what and where they are, so you can think about moving cache folders etc. to one of the HDDs.
    Leave the Pagefile.sys on the boot drive.  Think about disabling Hyphenate as it takes a ton of space, and too often crashes on wake up.
    My Documents
    Desktop
    Downloads
    Look at Bridge cache
    iTunes backup
    Other stuff like that.
    Think about another 500Gb drive just for Photoshop Scratch.  Drives are cheap as chips nowadays
    Do yourself a favour, and invest $100 in Shadow Protect (or similar if there is such a thing) SP saves incremental backups every 15 minutes (you can set the interval, but it has no impact on performance with a system like yours).  If you have a problem you can mount the back up at any of those 15 minute points, and open files from it.  You can also make a bootable DVD image of your C drive, and be back up and running five minutes after disaster strikes.
    Optimize Performance in Photoshop
    Photoshop CC and CC 2014 GPU FAQ
    For more ideas, swing by the Premiere Pro Hardware forum.  Those guys are serious good at this stuff, and you'll find links tips and ideas.
    Happy computing, and have fun with your Creative Cloud® apps.

  • PLSQL WANTS TO RUN  WINDOWS PROGRAM FROM PLSQL PROCEDURE

    WANTS TO RUN WINDOWS PROGRAM FROM PLSQL PROCEDURE.
    I want to run EXE file from pl/sql program , i have tried host it does
    work in pl/sql .
    Is there any Solution to this problem
    Thank you

    Hi,
    It sounds like what you are trying to do, is run one mapping in a pre-mapping process of another mapping. You use a wrapper that implements sqlplus_exec_template.sql in PL/SQL. Is that correct?
    I don't think that by the way you execute this mapping, it ends up in the context of the process flow. The reason is because according to Warehouse Builder the mapping is being invoked standalone (through the wrapper that implements the template). As a result, the context in which Warehouse Builder would log the messages is lost.
    What I suggest you do (assuming I understand the problem correctly), is run the mapping as a separate mapping in the process flow. Because in the current release we do not support passing output parameters in the process flow, you will have to (temporarily) store the results of the first mapping in a table and pick it up from there in the other mapping. In the next major release (autumn 2004) we will support passing parameters between activities.
    Thanks,
    Mark.

  • Running report and get the report result with coding

    Hi all,
    In our R/3 system, there is a custom sales report.
    My question is: is there possibility to get data by running this report and grab it the result with code and store it in internal table?
    Sorry if my question too basic because I am not abaper
    I am just wondering to find new solution for my project.
    Regards,
    Steph

    My requirement is: I want to get the result from this report
    (rather than try to get the data from SAP original table, because this report is very complicated with a lot of selection data) and use it this result into my new program.
    The mechanism that I want is pull the result from the current report, not to add some code in current report to push into new program, to avoid changed the report.
    Btw, the output of this report not only the excel file, we can also run this report on foreground mode and see the result.
    The report is not ALV report.
    Regards,
    Steph

  • When ever I use Adobe reader 11 with a USB device, I cannot safe remove the USB device and get the following message (or similar one) in system log:  The application \Device\HarddiskVolume1\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe with pr

    When ever I use Adobe reader 11 with a USB device, I cannot safe remove the USB device and get the following message (or similar one) in system log:  The application \Device\HarddiskVolume1\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe with process id 6620 stopped the removal or ejection for the device USB\VID_05DC&PID_C75C\20131215015821328FC8.
    I am running on Windows Server 2012 R2 in Desktop Experience mode.
    Any ideas?
    Roger

    In addition to that symptom, I discovered that even though I had closed all Adobe Reader sessions, the processes kept running and used up 90%+ of my CPU.

  • Acrobat 7 mandatory update failing with error 16820 and blocking the use of the program

    Acrobat 7 mandatory update failing with error 16820 and blocking the use of the program

    Sorry I can't get the screen print to upload
    It says
    Mandatory Update Available
    A Mandatory version of this application is available for download. Application can't continue without installing this version.
    Application:     Acrobat_com
    Installed version: 2.0.0.0
    Update Version : 2.3.0.0
    Download now                    Quit
    Release notes ( this is blank)
    After selecting 'Download Now' I get the following message;
         Download failed
         There was an error downloading the update. Error #16820
         Close

Maybe you are looking for

  • How do I delete a file from my USB Stick

    I have a new MacBook Pro with retina display. I have just put in my USB flash drive which contains some movies (MP4 format). I am unable to even move the files to the trash. When I "double click" I only get options to open/ create alias etc When I ho

  • IPHONE 3GS This device isn't eligible for requested build

    Well with all the crazy troubles with iOS 5 I thought I'd share some help with the community since I finally got mine to work. I have a iPhone 3Gs and 4.3.5 never jailbroke it but I did install Tinyumbrella as a precaution just incase I ever needed t

  • SOAP.request  URL issue

    Im using the below webservice script in my PDF, it is working fine. but, If the URL is wrong then the below code is not executing the remaining statement. If the URL is wrong or the server is down, I hav to show message, How should I catch that error

  • Query to get batch GLBATCH name for the invoices of AP and AR

    Please provide a query to get GLBatch name for an invoice of AR and AR. From one cursor iam getting invoice number and invoiceID of AP and AR. I have written query but it is taking much time select distinct gjb.NAME from gl_je_headers gjh, gl_je_line

  • No messages by perfoming a Function After Data Change - Web Interface Build

    Hey Xperts, I have a problem to see messages, when I perform a Function via WEB - Function After Data Change. You can select by costomizing a Subcomponent "Layout" that a Function can be performent by the feature "Function After Data Change". But whe