Record all the data acquired by DAQ

Hi all,
I have a problem when I tried to record all the data acquired by the DAQ card. My DAQ is NI 6259, and the Labview version is 2009.
Basically, what I need do is using multiple channels to get the voltages of different point, then I subtract values of two channel (V+ and V-) to get voltage value between two points. In my vi, the sampling mode is continuous and the rate is 100 KHz, DAQmx reading is inside a while loop, and the numbers of samples per channel is set to be 100. After each loop execution I would get 100 data.  I just used the format into file to write the data into a .txt file. It seems after 1 loop only the last one data is recorded instead of 100.  Previously I averaged the 100 data inside the acquisition loop to get one data, so the writing function is OK but it really slows down the program. So I want to write all the raw data to txt file so later I can process them in Matlab.  Is there any way to achieve this? Thank you very much.
The attached is the my vi for 2 channels voltage measurement and the current source control sub vi. I am new to Labview so the question really bothers me even after I read some similar topics in the forum.
Regards,
Hongxiang
Solved!
Go to Solution.
Attachments:
Dual Channel Voltage Measurement.vi ‏33 KB
Current Source 1.vi ‏49 KB

Thank you for you reply. I tried that, it actually record more data per pulse than before, but less pulses were  recorded (there should be 8 pulses in 20 seconds time but only 2 were recorded), I think it was because the for loop inside slows down the program execution, and sometimes the error 200279 occurred.  I think it would be better to separate the reading and recording process. Someone suggests me rather than writing to the file inside the loop, accumulate the data from all of the loop iterations to generate one large array containing all of the samples then pass that to Format Into File outside the loop. Do you know how to achieve that? I tried the as below, it seems totally wrong , only two data was written. 
(The subvi nameed 1 (see attachment) converts the 2D array to 1D ) Thanks.
Attachments:
2D_Data_Reader.vi ‏9 KB

Similar Messages

  • BI publisher report is not showing all the data

    Hi All,
    I have created a report using BI Publisher in R12. The report is not showing all the records.
    I have checked the result XML it is also not having all the data. My query returns 846 rows but my report only has 662 rows.
    what might be the issue.please give me some idea to resolve this issue.
    Thanks in advance.
    Regards,
    P.Kalidoss

    Hi Arun,
    In the following code: public SelectItem[] getAllPrinters() {
    if (allPrinters == null) {           // allPrinters is not defined. what type of object it is
    PrintService[] printers = PrintServiceLookup.lookupPrintServices(null, null);
    allPrinters = new SelectItem[printers.length];
    for (int i = 0; i < printers.length; i++) {
    SelectItem printer =
    new SelectItem(printers.getName(), printers[i].getName());
    allPrinters[i] = printer;
    return allPrinters;;;
    Variable allPrinters is not defined. what type of object it is?
    And also the same variable is referenced here <af:selectOneChoice label="Available Printers" partialTriggers="cb1"
    value="#{pageFlowScope.applicationPrinterBean.selectedPrinter}"
    id="soc1"
    autoSubmit="true">
    <f:selectItems value="#{pageFlowScope.applicationPrinterBean.allPrinters}" id="si1"/>
    </af:selectOneChoice>.
    Thanks.

  • Import package status with successful when all the data have been rejected

    Dear all,
       We use the import package to import some data files. We check that the status is successful , but all the data are rejected. Is it possible to set the status to error when there are reject records in the data file?
    Best Regards,
    Jeff

    Try to set the MAXREJECTCOUNT parameter in the transformation file to -1. This will create an error or warning if you have rejected records.
    Hope this helps.
    -Joost

  • Does client copy erase all the data in the target client or?

    hi
    experts
    does clientcopy erase all the data in the target client or except user master records.
    regards
    rajendra.

    It depends upon the profile you use for the client copy.
    if you use SAP_ALL
    All data is deleted from target client and source client data is copied.
    and therefore you shall see the profiles and understand them .
    SAP_ALL    All Client-Specific Data w/o Change Documents    
    SAP_APPL   Customizing and Application Data w/o Change Docs 
    SAP_APPX   SAP_APPL w/o Authorization Profiles and Roles    
    SAP_CUST   Customizing                                      
    SAP_CUSV   Customizing and User Variants                    
    SAP_CUSX   Customizing w/o Authorization Profiles and Roles 
    SAP_PROF   Only Authorization Profiles and Roles            
    SAP_UCSV   Customizing, User Master Records and User Variants
    SAP_UCUS   Customizing and User Master Records              
    SAP_UONL   User Without Authorization Profiles and Roles    
    SAP_USER   User Master Records and Authorization Profiles   
    Hope it helps.
    Thanks
    Amit

  • How to retrieve all the data from a BLOB using view-generated accessor

    I am using JDeveveloper 10g v. 10.1.3 and am storing an image in a database as a blob object and need to retrieve all of the data to get the entire image and store it in an ImageIcon. The code I have works partially in that it retrieves the correct data, but only gets a piece of it, leaving me with a partial image.
    AppModuleImpl am;
    ImageVwViewImpl vo;
    am = (AppModuleImpl)panelBinding.getDataControl().getDataProvider();
    vo = (ImageVwViewImpl)am.findViewObject("ImageVwView");
    ImageVwViewRowImpl ivo = (ImageVwViewRowImpl)vo.getCurrentRow();
    ImageIcon icon = new ImageIcon(ivo.getImage().getBytes(1, (int)ivo.getImage().getBufferSize()));
    jULabel1.setIcon(icon);I either need to know how to use a stream to get the data out (from BlobDomain method getBinaryStream()), or how to get the other chunks of data separately.
    edit: I know the problem is that getBufferSize() returns an int which is too small to hold all the data, but need to know what to use instead. Thanks!

    This is the code I'm using now. Same problem :(
    AppModuleImpl am;
            ImageVwViewImpl vo;
            am = (AppModuleImpl)panelBinding.getDataControl().getDataProvider();
            vo = (ImageVwViewImpl)am.findViewObject("ImageVwView");
            ImageVwViewRowImpl ivo = (ImageVwViewRowImpl)vo.getCurrentRow();  
            ImageIcon icon = new ImageIcon(ivo.getImage().toByteArray());
            jULabel1.setIcon(icon);

  • The hard disc of my laptop has crashed and i lost all the data. Now I want to take back up of my I phone and transfer contacts , messages and music back into my laptop , how can I do that. Pl help

    The hard disc of my laptop has crashed and i lost all the data. Now I want to take back up of my I phone and transfer contacts , messages and music etc back into my laptop , how can I do that. Also let me know how I can transfer the contacts into Windows contacts from I phone. Pl help

    Your content will only be where you put it.  It has always been very basic to always maintain a backup copy of your computer.
    You can transfer itunes purchases from your iphone: File>Device>Transfer purchases.
    You can import your pics taken with the iphone as you would with any digital camera.
    You can e-mail the other pics to yourself, they will never be of the original quality.
    You can out a unique contact and calendar entry on the computer.  You should get the option to merge the data when you sync.

  • Fire Fox sent not all the data in text form. Reached only piece of information. Where can I find the cache of sent text?

    Fire Fox sent not all the data in text form. Reached only piece of information. Where can I find the cache sent the text?
    For example, I posted an article on a news site, but found that only a small part of my article was posted.

    I'm not sure whether Firefox saved that information. There is a chance that it is in the session history file, especially if you haven't closed that tab yet. To check that:
    Open your currently active Firefox settings folder (AKA your Firefox profile folder) using
    Help > Troubleshooting Information > "Show Folder" button
    Find all files starting with the name sessionstore and copy them to a safe working location (e.g., your documents folder). In order to read a .js file, it is useful to rename it to a .txt file. Or you could drag it to Wordpad or your favorite word processing software.
    The script will look somewhat like gibberish, but if you search for a word in your article that doesn't normally appear in web pages, you may be able to find your data.
    Any luck?
    For the future, you might want to consider this add-on, although I don't know how long it saves data after you submit a form: [https://addons.mozilla.org/en-US/firefox/addon/lazarus-form-recovery/].

  • I lost all the data from 3g to 4g for apps, utilities, games etc. How can I get it without starting all over again

    When I synced the new phone, it gave me the icons for all the Apps but when I went to get on one it said I had never been there, the syc/restore did not give me all the data. I got pictures, but everything else is as if I just started. HELP

    for #1
    Frequently asked questions about Apple ID - Apple Support
    I have multiple Apple IDs. Is there a way for me to merge them into a single Apple ID?
    Apple IDs cannot be merged. You should use your preferred Apple ID from now on, but you can still access your purchased items such as music, movies, or software using your other Apple IDs.
    If you are wondering how using multiple Apple IDs relate to iCloud, see Apple IDs and iCloud.
    for #2
    Apple does not accept unsolicited ideas see Apple - Legal - Unsolicited Idea Submission Policy

  • Not getting all the data

    Hi,
    I have the below query, but the output data for the Unavailable column is not showing all the data with a condition_id that's not null.
    Does anyone have any ideas that I might need to try?
    SELECT I.SKU_ID,
    I.DESCRIPTION,
    TO_CHAR(I.EXPIRY_DSTAMP, 'DD-Mon-YYYY') expiry_dt,
    SUM(CASE WHEN I.CONDITION_ID IS NOT NULL THEN QTY_ON_HAND ELSE 0 END) AS Unavailable,
    SUM(CASE WHEN I.CONDITION_ID IS NULL THEN QTY_ON_HAND ELSE 0 END) AS Available,
    P_ILV.SUM_QTY_DUE + (NVL(P_ILV.SUM_TL,0) * NVL(S.USER_DEF_NUM_3,0)) AS Sum_Qty_Due,
    ROUND(ITXN_ILV.AVG_QTY, 2) AS Avg_Qty,
    ROUND(SUM(CASE WHEN I.CONDITION_ID IS NULL THEN QTY_ON_HAND ELSE 0 END)/CASE WHEN ITXN_ILV.AVG_QTY = 0 THEN 1 ELSE ITXN_ILV.AVG_QTY END,2) AS Days_Worth_Stock
    FROM INVENTORY I
    JOIN SKU S
    ON (I.SKU_ID = S.SKU_ID AND I.DESCRIPTION = S.DESCRIPTION)
    JOIN (SELECT P.SKU_ID, SUM (CASE WHEN P.TRACKING_LEVEL NOT LIKE 'C%' THEN P.QTY_DUE ELSE 0 END) AS SUM_QTY_DUE,
      SUM(CASE WHEN P.TRACKING_LEVEL LIKE 'C%' THEN P.QTY_DUE ELSE 0 END) SUM_TL
    FROM PRE_ADVICE_LINE P
    WHERE P.QTY_RECEIVED IS NULL
    GROUP BY P.SKU_ID) P_ILV
    ON (S.SKU_ID = P_ILV.SKU_ID)
    JOIN (SELECT ITXN.SKU_ID, SUM(ITXN.UPDATE_QTY)/(CEIL(TO_DATE($P{To_Date},'DD-Mon-YYYY') - TO_DATE($P{From_Date},'DD-Mon-YYYY')) + 1) AVG_QTY
    FROM INVENTORY_TRANSACTION ITXN
    WHERE ITXN.CODE = 'Shipment'
    AND ITXN.DSTAMP BETWEEN TRUNC(TO_DATE($P{From_Date},'DD-Mon-YYYY')) AND TRUNC(TO_DATE($P{To_Date},'DD-Mon-YYYY')+ 1) - 1/86400
    GROUP BY ITXN.SKU_ID) ITXN_ILV
    ON (S.SKU_ID = ITXN_ILV.SKU_ID)
    GROUP BY TO_CHAR(I.EXPIRY_DSTAMP, 'DD-Mon-YYYY'), I.SKU_ID, I.DESCRIPTION, P_ILV.SUM_QTY_DUE, NVL(P_ILV.SUM_TL,0), NVL(S.USER_DEF_NUM_3,0), ITXN_ILV.AVG_QTY, 2
    ORDER BY I.SKU_IDThanks, Sam.
    Edited by: Sam Mardell on 08-May-2009 06:25

    OK Sam, one thing I would question in the JOIN between INVENTORY and SKU is the JOIN on the DESCRIPTION column - I would reckon that SKU_ID should be enough (and it's not good design to have the DESCRIPTION in more than one place). I think that that could be causing this issue. I've also included the zeroes for NULLs in this.
    Try:
    SELECT I.SKU_ID,
         I.DESCRIPTION,
         TO_CHAR(I.EXPIRY_DSTAMP, 'DD-Mon-YYYY') expiry_dt,
         SUM(CASE WHEN TRIM(I.CONDITION_ID) IS NOT NULL THEN QTY_ON_HAND ELSE 0 END) AS Unavailable,
         SUM(CASE WHEN TRIM(I.CONDITION_ID) IS NULL THEN QTY_ON_HAND ELSE 0 END) AS Available,
         NVL(P_ILV.SUM_QTY_DUE,0) + (NVL(P_ILV.SUM_TL,0) * NVL(S.USER_DEF_NUM_3,0)) AS Sum_Qty_Due,
         NVL(ROUND(ITXN_ILV.AVG_QTY, 2),0) AS Avg_Qty,
         ROUND(NVL(SUM(CASE WHEN I.CONDITION_ID IS NULL THEN QTY_ON_HAND ELSE 0 END),0)/CASE WHEN  TXN_ILV.AVG_QTY = 0 THEN 1 ELSE ITXN_ILV.AVG_QTY END,2) AS Days_Worth_Stock
      FROM INVENTORY I
      JOIN SKU S
       ON (I.SKU_ID = S.SKU_ID)
      LEFT JOIN (SELECT P.SKU_ID, SUM (CASE WHEN P.TRACKING_LEVEL NOT LIKE 'C%' THEN P.QTY_DUE ELSE 0 END) AS SUM_QTY_DUE,
          SUM(CASE WHEN P.TRACKING_LEVEL LIKE 'C%' THEN P.QTY_DUE ELSE 0 END) SUM_TL
        FROM PRE_ADVICE_LINE P
       WHERE P.QTY_RECEIVED IS NULL
       GROUP BY P.SKU_ID) P_ILV
       ON (S.SKU_ID = P_ILV.SKU_ID)
    LEFT JOIN (SELECT ITXN.SKU_ID, SUM(ITXN.UPDATE_QTY)/(CEIL(TO_DATE($P{To_Date},'DD-Mon-YYYY') -  TO_DATE($P{From_Date},'DD-Mon-YYYY')) + 1) AVG_QTY
          FROM INVENTORY_TRANSACTION ITXN
       WHERE ITXN.CODE = 'Shipment'
          AND ITXN.DSTAMP BETWEEN TRUNC(TO_DATE($P{From_Date},'DD-Mon-YYYY')) AND TRUNC(TO_DATE($P{To_Date},'DD-Mon-YYYY')+ 1) - 1/86400
         GROUP BY ITXN.SKU_ID) ITXN_ILV
       ON (S.SKU_ID = ITXN_ILV.SKU_ID)
    GROUP BY TO_CHAR(I.EXPIRY_DSTAMP, 'DD-Mon-YYYY'), I.SKU_ID, I.DESCRIPTION, NVL(P_ILV.SUM_QTY_DUE,0), NVL(P_ILV.SUM_TL,0), NVL(S.USER_DEF_NUM_3,0), NVL(ROUND(ITXN_ILV.AVG_QTY, 2),0)
    ORDER BY I.SKU_ID

  • While creating the parameter it doesnot pull all the data of that particular column

    Post Author: pvds
    CA Forum: Data Connectivity and SQL
    Hi everyone.
    i am using a sql query with a join condition to pull data in to crystal reports. I got that data which i want in to the report. but when i was trying to create a parameter with a dropdown of all the database values to a particular column it is not showing all the data from the report.
    for example  i have a column called state
    the column has many states displayed in the report but when i select that column and select browse data it shows only 1 state. with this i am anable to create a parameter with a dropdown list of all the state. i can see different states in the report but y i am not able to see when i browse the data or create a parameter? can any one answer me?
    i already created another report with a query on same table but i never faced this problem before.

    Post Author: V361
    CA Forum: Data Connectivity and SQL
    There is a limit to the number of Parameters that will show in a drop down... You can increase using the following.
    Check this KBase article on how to increase the number.
    http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2017238&sliceId=&dialogID=19032644&stateId=1%200%2019034607

  • APEX_ITEM on Interactive Report losing all the data.

    Hi!
    I'm having some troubles with some apex_items on interactive report.
    The problem happens when i save the interactive report with apex_items and a validation in some of the items fail then i lose all the data entered.
    I made i test application to you guys see the problem and try to solve it.
    URL: http://apex.oracle.com/pls/apex/
    The scheme is Sn4k8
    User: guest
    Password: 123654g
    To see the application: http://apex.oracle.com/pls/apex/f?p=20135:1:
    The application is Interactive Report Example / Page number 1
    A example to test is type on the fields values and then type a start date bigger then the end date this is cause a validation error and you will see all your data entered lost.
    I tryed to find something on the web but i could not find nothing if you guys know something to help post it.
    Regards,
    Ismael Filipe
    Edited by: Sn4k8 on 25/03/2010 12:26

    I think there is a solution with java or pl/sql.
    Try to use the example application and type values in the fields and then type "d" at some date. This will cause a exception and will redirect to a apex erro page, if you click at "ok link", you will come back to the interactive report page and you will see that all your data remains intact.
    I think there is a solution...
    Regard,
    Ismael Filipe

  • HT201210 i have update and  restore my wife iphone to 7.0.4  and i lost all the data what to do now? all contacts and kids photos goooone , we have the same apple ID and when i tried to restore from i cloude , i restored my contacts not her???!!!!!

    i have update and  restore my wife iphone to 7.0.4  and i lost all the data what to do now? all contacts and kids photos goooone , we have the same apple ID and when i tried to restore from i cloude , i restored my contacts not her???!!!!!

    Looks like you restored your backup file to her phone. If you didn't back up your wife's phone first, then the data is gone, sorry.

  • I cant seem to download and install the latest iphone software update. I have tried since the release and have been unsuccessful on more than 7 occasions and lost all the data on the process. Anyone have that problem an how do I fix this problem?

    I cant seem to download and install the latest iphone software update. I have tried since the release and have been unsuccessful on more than 7 occasions and lost all the data on the process. Anyone have that problem an how do I fix this problem?

    Hi
    Thanks but I have tried doing the above - when I said 7 times I was modest, its more like 15 times.
    And I am referring to the 5.1 software update. I dont have wifi so I guess I will have to try that seeing that my husband also has the same problem - he has also tried downloading several times. It always times out en says that the connection is lost but yet there are always an internet connection and a decent signal once it stopped. Think it said error 32052 or something!
    I am disappointed because the update includes inprovement on the battery life - did you guys notice any difference?

  • How do I convert an Adobe PDF file to Word on my Mac with all the data intact?

    How do I convert a scanned Adobe PDF file to Word on my Mac with all the data intact?

    http://www.macworld.com/article/1162699/how_to_convert_pdfs_to_word_and_other_fo rmats_.html
    https://itunes.apple.com/us/app/pdf-converter-free/id422540367

  • My Iphone was sync with Itunes on a computer then this computer broke down and i purchased another one. I was able to extract all the data from the old one. now how can i sync my phone with the new tunes without loosing any data?

    My Iphone was sync with Itunes on a computer then this computer broke down and i purchased another one. I was able to extract all the data from the old one. now how can i sync my phone with the new tunes without loosing any data?

    Yes, windows to Mac too.
    iTunes: How to move [or copy] your music [library] to a new computer [or another drive] - http://support.apple.com/kb/HT4527
    Quick answer if you use iTunes' default preferences settings:  Copy the entire iTunes folder (and in doing so all its subfolders and files) intact to the other drive.  Open iTunes and immediately hold down the Option (alt) key (shift on Windows), then guide it to the new location of the library.
    Windows users see tip at: https://discussions.apple.com/message/18879381

Maybe you are looking for

  • Satellite C650-ICP Does it come with an internal mike?

    I have had my C650-ICP for several months but have only just got around to trying Skype. Internal mike not listed in the options for speaking. I was told when I bought the laptop that it had an internal microphone but no webcam. However I cannot get

  • Calling web service from applet

    Hi, I am trying to consume a .NET web service from a java applet. I use JDev9i and I generated a clientside-stub... It works fine in the development environnement, but I get this exception when executing from browser: java.lang.ExceptionInInitializer

  • Column Not Displayed in Universe

    Hi, I can't see column in Universe. I'm connecting to SAP Tables using ODBC. My database is MaxDB. My platform is Windows 32-bit. I'm using BO Edge XI 3.1. Here is my original PRM file. <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE DBParameters SYS

  • How to get a date range in JDBC sql

    I am using the following in my sql to get a date range... but what if the field is a timestamp will that still work or not... AND a.date>=? AND a.date<=?

  • Send email to each member of a group

    How can I send a mail to each member of a group with the Email activity? It seems I can only send the mail to the grup address...