Record digital data

I am having a problem writing digital data to a file. I am using the example VI Multi-Function-Synch AI-Read Dig Chan.VI
I am aquireing 6 channels of digital and 15 channels of analog synchronusly (at the same rate), and I need to write the time stamped digital data to a file ordered in columns. When I convert the data to analog then use the Write LVM express VI it records all the data into one column. I just need to save the time stamed digital data to a file. It should not be that hard to do, I just can't figure it out.
Thanks
Scott Donahue

Scott,
I took a look a the example program you mentioned and have made some edits to it in order to get the digital data and analog data in the same file with the "time stamps". The time stamps can actually be calculated by looking at the T0 and adding dT to it depending on which sample you're concerned with. For example, if T0 = 12:01:00.00 pm and you are sampling at 10 samples per second, then dT = 0.1 seconds and the fifth sample's time stamp would be 12:01:00.50 pm. Hopefully the attached code will act as a guide to solving the problem and may even completely solve the problems itself. Post if you have any more questions.
Best Regards,
Chris C
Applications Engineering
National Instruments
Chris Cilino
National Instruments
LabVIEW Product Marketing Manager
Certified LabVIEW Architect
Attachments:
Multi-Function-Synch AI-Read Dig Chan edit.vi ‏246 KB

Similar Messages

  • How do I skip footer records in Data file through control file of sql*loade

    hi,
    I am using sql*loader to load data from data file and i have written control file for it. How do i skip last '5' records of data file or the footer records to be skiped to read.
    For first '5' records to be skiped we can use "skip" to achieve it but how do i acheive for last '5' records.
    2)
    Can I mention two data files in one control file if so what is the syntax(like we give INFILE Where we mention the path of data file can i mention two data file in same control file)
    3)
    If i have datafile with variable length (ie 1st record with 200 charcter, 2nd with 150 character and 3rd with 180 character) then how do i load data into table, i mean what will be the syntax for it in control file.
    4)if i want to insert sysdate into table through control file how do i do it.
    5) If i have variable length records in data file and i have first name then white space between then and then last name, how do i insert this value which includes first name and last name into single column of the table.( i mean how do you handle the white space in between first name and last name in data file)
    Thanks in advance
    ram

    You should read the documentation about SQL*Loader.

  • I have made a burn folder with photos exported from I-photo.  It now shows in information, that the date is created and modified is different from the original digitized date.  How can I get the original date to show in the info from Finder?

    I have made a burn folder with photos exported from I-photo.  It now shows in information, that the date  created and modified is different from the original digitized date.  How can I get the original date to show in the info from Finder?

    The Finder reports File information. The date and time of the photo are in the Photo's Exif metadata. The Finder has no awareness of this. All photos apps on any system do.
    Regards
    TD

  • I can record midi data from my Mason & Hamlin Piano Disc Pro Record through my MOTU Traveller into Logic but Logic won't send midi data out to the MOTU Traveller to the Piano Disc player

    Hello All,
    I can record midi data from my Mason & Hamlin Piano Disc Pro Record through my MOTU Traveller into Logic Pro 9.1.8  but Logic won't send the midi data back out to the MOTU Traveller and thus to the Piano Disc player. I got it to playback one time but have no idea how and when it did it was looping or something because the velocity was way high coming back in and the damper pedal was slamming down. When I play a key on the piano the midi "in" light on the Traveller lights up. When I play the track back on my computer no lights blink on the Traveller and when I did the apple midi studio test in utilities when I play a key I get the confirmation signal noise and the Traveller blinks when I click on the down arrow of the Traveller in the Apple midi studio test the midi out light on the traveller never lights and the signal light on the piano does not blink either. No outbound signal at all...
    I have messed with every possible parameter I can find and and have had help from one of Piano Disc's premier editors but no luck. The piano was prepped for me on Logic so it would work with my studio.  I'm positive it's my fault and I'm overlooking something really simple and stupid but what!??!
    Somebody please help.  Thank you all in advance for ANY ideas you might have!

    Blues Piano,
    I'm not sure if this will be a help or not.  I'm so Logic Pro wet behind the ears that I make newbies look experienced.  However, I'm not expecting many on the Apple support forums have a PianoDisc system, much less one with the new optical record strip.  While I don't have any record strip on my PianoDisc, I do have a PianoDisc iQ that's only a month old.  I've been playing converted paper scrolls from hundred year old player pianos through it via the MIDI in port of the PianoDisc CPU.  I've found I have to open the MIDI file in Logic Pro (10.0.4) then go to <Track><New External MIDI Track> then copy the existing track to that new external track.  Only then can I see in the Track inspector (defaults left side of screen with the Icon for the instrument) the "Port" parameter.  Then I can select my external MIDI device in that Port selector. 
    I've also encountered problems with the PianoDisc not using enough force on the notes or using too much force.  To get around this problem, until I understand Logic better, I've been setting minimum and maximum volicities.  To do that I right click on the track and select "Select All."  Then I right click again and select "MIDI" then "MIDI Transform"  then "Velocity Limiter."  In the resulting pop up window in the center is a drop down and you can play with the velocity from "MIN" to "MAX" along with "ADD" "SUBTRACT" etc. 
    I hope this helps.  I envy you your Mason & Hamlin.  If you need more help on this just email me at pfleischmann at mac dot com.

  • Function to return a value of a object based on last record by date

    Post Author: Tned
    CA Forum: Desktop Intelligence Reporting
    Can anyone assit with a method/formula to return the a value of an object based on the last record by date. BO 5 or XI. See example below. Query structure is not an issue. Only need help with the last record function or aggregate.
    Data Table         
    ID / Serial #
    Date
    Status
    Condition
    Abc1
    01/01/08
    1
    A
    Abc1
    01/02/08
    1
    Z
    Abc1
    01/02/08
    3
    Z
    Abc1
    01/04/08
    2
    D
    Abc1
    01/05/08
    5
    E
    Abc2
    01/01/08
    1
    F
    Abc2
    01/02/08
    2
    Z
                                                                                    Desired query results. Only the values of the latest records returned.                      
    ID / Serial #
    Status
    Condition
    Abc1
    5
    E
    Abc2
    2
    Z

    Post Author: Tned
    CA Forum: Desktop Intelligence Reporting
    Thanks Prashant
    However, when i add either the status or condition variables to the report all lines related to the ID are returned not just the last entery by date.
    Thanks again.Terry

  • Code for capture digital data when change of state

    Dear Sir,
    I had written a program to capture the digital data when it change of state.
    It work well when I check the check box "Lock file for faster access".
    But error occur when it unchecked.
    Because I need to open the tdm file at the vi running, thus I need to uncheck it.
    Please kindly to advise any solution for it.
    The program is attached.
    Thank You.
    Attachments:
    datalogcos.vi ‏53 KB

    Hi Jayme,
    Sorry for late reply.
    The screen capture of error message is attached.
    Thanks for your helping.
    Poly-Alex
    Attachments:
    error.jpg ‏24 KB

  • Save Digital Data to a Text File

    I have digital data collected from two ports simultaneously as N number of samples in waveform that I do calculations on to get a result. I would like to save the raw data in a text file so that it can be easily viewed in an external program, like Excel.  This file would be used as verification of the result calculated in my program. I would think this would be a simple thing to do in labview but as yet have not figured it out. I’ve tried to change the digital to analog and then save as a text file but the data no longer gives the same results when recalculated in an external program. Thanks for any input on this subject.
    Tessa

    I am using 8.20. 
    Thanks, Tessa
    Attachments:
    Cannon Screenshot2.JPG ‏154 KB

  • Problem when recording the data using BDC for Tcode CJ02.

    Dear Experts,
    When i am trying to record the data for TCODE : CJ02 i need to enter the project  Definition and enter the WBS element it takes me to the screen then i should select the WBS element and attach a file for that selected WBS element . The option for me to attach the attachment of file  will be available on the application area(Services for the Object).
    Now the problem when i try to do recording in SHDB this option like create attachement is not visible in the recodring . Kindly suggest me what can i do such that i attach the file for the particular project def and WBS element.
    Either suggest any function module or other procedure .......
    Regards,
    Sana.

    Hi,
      in BDC each and every action is recording. If your press enter in same screen that also recorded once aging may be this is your case repeating field values will appear. we can solve the problem for repeat fields like below.
    suppose in your excel having repeated field X1 X2 X3 the X2 contains repeated field X3 means delete the X3 field.
    Now In your itab having X1 and X2 fields. While in the LOOP the ITAB pass the X2 field to repeated the fields.
    LOOP at ITAB to WA.
    CLEAR bdcdata_wa.
    bdcdata_wa-fnam = 'BDC_CURSOR'.
    bdcdata_wa-fval = 'RM08M-EBELN'.
    APPEND bdcdata_wa TO bdcdata_tab.
    CLEAR bdcdata_wa.
    bdcdata_wa-fnam = 'INVFO-BLDAT'.
    bdcdata_wa-fval = wa-X2." 1st time pass the X2 fields
    APPEND bdcdata_wa TO bdcdata_tab.
    CLEAR bdcdata_wa.
    bdcdata_wa-fnam = 'INVFO-BLDAT'.
    bdcdata_wa-fval = wa-X2." pass the same value to repeated field
    APPEND bdcdata_wa TO bdcdata_tab.
    Endloop.
    Hope you can understand.
    Regards,
    Dhina..

  • Find record insert date and time in a table

    Hi All,
    I want to get record insert date and time in a table. There is no datetime column in my table. Are there any possibility to get date and time for each record?
    Thank You

    Thats not easy. If your transaction info still resides on active portion of the log you can use fn_dblog to read out the time at which the transactions occurs. This is useful only if you try it shortly after transaction.
    the code would look like this
    SELECT *
    FROM fn_dblog(null,null)
    WHERE [Transaction Name] LIKE 'INSERT%'
    OR [Transaction Name] LIKE 'UPDATE%'
    Also see
    http://www.mssqltips.com/sqlservertip/3076/how-to-read-the-sql-server-database-transaction-log/
    http://solutioncenter.apexsql.com/read-a-sql-server-transaction-log/
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Recording Digital Audio via Optical Line-in

    Hi,
    I've been trying for the past hour to record Digital Audio from my XBOX 360 via an Optical Cable, into my MacPro's Optical line-in.
    However all I get it huge amounts of noise / static / clicking all of the time.
    Any ideas?
    Thanks,

    I suspect the audio from your XBOX is encoded in surround sound. The Mac will not decode this type of audio directly from the optical in port. You may need to try and change your XBOX preferences to standard stereo.

  • Recording digital audio from satellite recei

    I'm considering the purchase of an Audigy 2 NX. I've found several postings on recording digitally, but I'm still not sure if satellite audio can be recorded. By connecting the optical audio toslink from my satellite receiver to the Audigy 2 NX, can the music stream be digitally captured via the USB connection to the computer without undergoing a conversion to analog? Does the Dish Network (or DirecTV) signal include copy protection bits that prevent this type of recording? Are there any other known issues? Thanks.

    buzz wrote:
    I'm considering the purchase of an Audigy 2 NX. I've found several postings on recording digitally, but I'm still not sure if satellite audio can be recorded. By connecting the optical audio toslink from my satellite receiver to the Audigy 2 NX, can the music stream be digitally captured via the USB connection to the computer without undergoing a conversion to analog? Does the Dish Network (or DirecTV) signal include copy protection bits that prevent this type of recording? Are there any other known issues? Thanks.
    I record to a Audigy Platinum ZS through my satellite reciever (DTV-Hughes receiver)and have had no problems with DRM or encrypted bits. I do however have an annoying background hum present. I'm using RCA to a 3.5mm connector to the line-in port with a cable length of about 25'(?)but other than that, usually record at 48khz, 6bit with nice results (Nero Wave Edit)

  • TDMS digital data

    Hello,
    we are developing datalogging system for our customer and we need to save analog and digital data to TDMS file. There is probably no problem with analog data streaming. But on the other side writing digital data inside TDMS file looks like a problem... So we tried to use background streaming (DAQmx Logging) where size of file is acceptable (8xDI(1B) x 512samples + TDMS header). But we need to log analog and digital data with timestamp channel so we can not use DAQmx background streaming instead we must program our application. When we used TDMS write for digital waveform, digital data result in TDMS viewer and DIAdem is OK but file size is (8x1B for each digital channel). We also look at TDMS by DAQmx logging where internal file structure (attached file  tdms_tsdata.png) contains parameter NI_DigitalLine which is bit in data byte index (i think). Another parameter is NI_DataType = 5 (UInt8). From these two params I deduced some ideas and do some tests with unsatysfying results. Only one of tested ways was to write direct UInt8 of DI (entire port) to ensure file size ... 8xDI=1B x samples. However those TDMS can not be correctly read by TDMS Viewer as structure of digital inputs but only as number.
    Is there any chance to write manually and effectively digital data in TDMS file (like DAQmx logging)?
    Thank you in advance for any hint.
    Michal.
    Attachments:
    tdms_tsdata.png ‏40 KB

    Hi kel072,
    You are right, you can not write just as one  byte and expect Diadem, or TDMS file viewer to interpret directly as 8 lines boolean data.
    This is an expected behavior because there is no information about the number of lines.
    Therefore, I have two suggestions:
    1. You can build your custom TDMS file viewer (pack your data as u8 bit, transfer it into the TDMS file and later build your own VI that will read from TDMS, reconstruct the data in boolean 1D array and display the data). In this scenario, Diadem will still not be able to interpret them as 1 bit data.
    2. Write your data to a binary file in the format you specify. Then you can read it directly in LV or any other programming language that supports that format, or you can build a data plugin for Diadem that will allow it to interpret the data in the particular way you want ( and use it for your application). This method requires the most programming but gives you the most flexibility (packing data, display in Diadem, display in LabVIEW etc).
    Check the links bellow for more information on the data plugin:
    1. http://www.ni.com/white-paper/13803/en/
    2. http://www.ni.com/example/29822/en/

  • SQL*Loader-510: Physical record in data file (clob_table.ldr) is long

    If I generate loader / Insert script from Raptor, it's not working for Clob columns.
    I am getting error:
    SQL*Loader-510: Physical record in data file (clob_table.ldr) is long
    er than the maximum(1048576)
    What's the solution?
    Regards,

    Hi,
    Has the file been somehow changed by copying it between windows and unix? Ora file transfer done as binary or ASCII? The most common cause of your problem. Is if the end of line carriage return characters have been changed so they are no longer /n/r could this have happened? Can you open the file in a good editor or do an od command in unix to see what is actually present?
    Regards,
    Harry
    http://dbaharrison.blogspot.co.uk/

  • Present a record by date through an Abap Rutine

    Hi Gurus,
    i got in the cube the next records for example:
    calday Material Quantity
    01.01.2011 A 10
    15.01.2011 A 20
    if i present in the query these IO an KF the query will show these 2 records, now i want just show the last record by date
    calday Material Quantity
    15.01.2011 A 20
    i tried in the query with a calculate KF with exception aggregation , MAX with Reference to calday , but, i need to show 0CALDAY for that reason this doesnt work, so i was thinking in an ABAP  rutine that read all the active table of the ODS and compare record by record whats the last date by material and this record must be marked with a vaalue in another Infoobject, before the load to the cube, then i filter in the query for this mark IO, now how will the code be? can you help  to build this code, or some advice or idea?,  i appreciate it

    Thanks for helping me.
    Currently, my application provides users a feature to sort all the ThreadBean retrieved from the database according to two criteria:
    1. sort by
    thread_last_post_date, thread_creation_date, message_sender, thread_reply_count, thread_view_count
    2. order by DESC or ASC
    Therefore, my existing query string looks like:
    String query = "SELECT ...... FROM message_thread WHERE message_receiver = ? ORDER BY " + sort + " " + order;According to your advice, I simply add another criterion; say, articleTitle to my query string.
    A. Will this added criterion articleTitle have any impact on the feature that the application provides to users; namely, sort and order? (Now, all messages will be presented to users in categories; i.e. articleTitle.)
    B. Where should I add the articleTitle to the query string
    B.1: before sort and order?
    String query = "SELECT ...... FROM message_thread WHERE message_receiver = ? ORDER BY " + articleTitle + " " + sort + " " + order;or
    B.2: after sort and order?
    String query = "SELECT ...... FROM message_thread WHERE message_receiver = ? ORDER BY " + sort + " " + order + " " + articleTitle;

  • How to Save Multiple Records In Data Block

    Hi All,
    I Have Two Blocks --> Control Block,Database Block
    Please Any Idea How to Save Multiple Records In Data Block when User changed Data in Control Block.
    Thanks For Your Help
    Sa

    Now i have to use each record of control block(ctl_blk) as where condition in data base block(dat_blk)and display 10 records from database table.>
    Do you want this coordination to be automatic/synchronized or only when the user clicks a button or something else to signal the coordination? Your answer here will dicate which trigger to put your code in.
    As to the coordination part, as the user selects a record in the Control Block (CB), you will need to take the Key information and modify the Data Block's (DB) "DEFAULT_WHER E" block property. The logical place to put this code is the CB When-New-Record-Instance (WNRI) trigger. You code will look something like the following:
    /* Sample WNRI trigger */
    /* This sample assumes you do not have a default value in the BLOCK WHER E property */
    DECLARE
       v_tmp_dw    VARCHAR2(250);
    BEGIN
       v_tmp_dw := ' DB_Key_Column1 = '||:CONTROL.Key_Column1||' AND DB_Key_Column2 = '||:CONTROL.Key_Column_2;
       Set_Block_Property('DATA_BLOCK', DEFAULT_WHER E, v_tmp_df);
       /* If you want auto coordination to occur, do the following */
       Go_Block('DATA_BLOCK');
       Execute_Query;
       /* Now, return to the Control Block */
       Go_Block('CONTROL_BLOCK');
    END;
    The Control block items are assigned with values in Form level (Key_exeqry).If your CD is populated from a single table, it would be better to create a Master - Detail relationship (as Abdetu) describes.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

Maybe you are looking for

  • Error: Load operation failed for query 'GetAuthenticationInfo'. The remote server returned an error: NotFound.

    Hello, I have a lightswitch web-application in development, which I need to copy from one computer to the other. I have tried doing it both through Git and by simply copying the solution and opening the project on another machine. The project builds

  • Looking for the help with preflighting in Acrobat X

    I need some help creating a prelight that checks for: 1: All images are CMYK and not using an RGB colour space. 2: Image resolution is 300+ 3: That the document has been given bleed if necessary and that all document objects that been given bleed if

  • Help! Off completely lumia 920

    Hi!   Two days after I bought phone Touch phone does not work! I guess the software testing problem of touch screen mobile phone it's not working after the hardware test, and absolutely silent and only vibrate played After a few days does not vibrate

  • Read blob 's data and write them to a table

    I've managed at last to upload a blob to a table database (thanks to KUBA's) Now I want to retrieve the blob from the database table , read it's contents and insert them to a new table. I want to do this after the upload process finishes... the blob

  • Setting up an iPad mini when I already have an iPad 2

    I bought an ipad mini today. I already have an ipad 2 but will be passing it on to my three year old. I have many apps that are both suitable for myself and ones that are suitable for my three year old. As a result of this I want to use the same appl