Analog data to digital data conversion in labwindows

Hi
Is there any library function available in Labwindows for converting Analog data to Digital Data..
Thank You

shoukat,
could you please provide some more information about the background of this question? Is there any link to motion control (this is the Motion Control forum)?
I don't understand exactly, what you are looking for. All data that you use in a programming environment are digital data - regardless of the data type. Are you looking for a data conversion from floating point to binary (e. g. a boolean array) or are you looking for data acquisition hard- and software?
Regards,
Jochen Klier
National Instruments

Similar Messages

  • 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

  • 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/

  • I want to send the digital data to the tlv1572

    hi i am characterizing the tlv1572 adc.  i need to capture the 10 bit digital data generated by the tlv1572. can anyody help me in doing this. i am using daq 6251 and scb 68 connector

    Hi Ravi,
    You can generate analog voltage of the AO line and read in the o/p of ADC using the digital line on 6251. There are some good online example plus tons of example in Labview to multiple task simultaneously.
    -lab

  • 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

  • The ADO NET Source was unable to process the data. ORA-64203: Destination buffer too small to hold CLOB data after character set conversion.

     We developed a SSIS Package to pull the data From Oracle source to Sql Server 2012. Here we used ADO.Net source to pull the records from Source but getting the below error after pulling some 40K records.
      [ADO NET Source [2]] Error: The ADO NET Source was unable to process the data. ORA-64203: Destination buffer too small to hold CLOB data after character set conversion.
    [SSIS.Pipeline] Error: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. 
     The PrimeOutput method on ADO NET Source returned error code 0xC02090F5. 
     The component returned a failure code when the pipeline engine called PrimeOutput(). 
    The meaning of the failure code is defined by the component, 
    but the error is fatal and the pipeline stopped executing. 
     There may be error messages posted before this with more 
    information about the failure.
    Anything that we can do to fix this?

    Hi,
      Tried both....
      * Having schema type as Nvarchar(max). - Getting the same error.
      * Instead of ADO.Net Source used OLEDB Source with driver as " Oracle Provide for OLE DB" Getting error as below.
           [OLE DB Source [478]] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
           [SSIS.Pipeline] Error: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on OLE DB Source returned error code 0xC0202009.  The component returned a failure
    code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.  There may be error messages posted before this with more information about the
    failure.
    Additional Info:
       * Here the Source task is getting failed not the conversion or destination task.
    Thanks,
    Loganathan A.

  • 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

  • How do I update Date Time Digitized to match an updated Capture Time for a DNG file?

    I am updating capture time based on GPS Time (a bit OCD, I know) but when I change Capture Time the Date Time Digitized value does not change. This in in LR 4.3 and is not affected by whether on not the Catalog is set to 'Write date or time changes into proprietary raw files'. Maybe this is a problem for DNG files only.

    GreSep wrote: I saw another LR discussion that said that with LR 4.3 updating Capture Time would also update Date Time Digitized but it does not do so for me on my DNGs (and as of last month ALL my images were converted to DNGs).
    One or two intermediate versions of LR 3 (perhaps Lr 3.6) set DateTimeDigitized when you gave the Metadata > Edit Capture Time command. But for people managing scans in which the capture time of the original image was different than the scan time, this behavior overwrote their scan times, so Adobe backed out of that change.  Before and since those versions, the Metadata > Edit Capture Time command just changes the EXIF:DateTimeOriginal and related fields in XMP and IPTC.

  • Date format in XML conversion

    Hello,
    I am using oracle8i. The date format is not giving the proper date values in XML conversion..
    create table test(dt date);
    insert into test values(sysdate);
    insert into test values(sysdate);
    insert into test values(sysdate);
    TEST.WORLD> select * from test;
    DT
    28-NOV-04
    28-NOV-04
    28-NOV-04
    set autoprint on
    set long 100000
    set linesize 100000
    set longchunksize 100000
    var g_clob clob
    declare
    l_ctx dbms_xmlquery.ctxType;
    l_clob clob;
    begin
    l_ctx := dbms_xmlquery.newContext('select dt from test');
    dbms_lob.createtemporary(:g_clob,true,dbms_lob.session);
    dbms_xmlquery.setdateformat(l_ctx,'yyyy-mm-dd');
    :g_clob := dbms_xmlquery.getXml(l_ctx);
    end;
    Here is the output . It is dispalying the 03 For the month november.
    <?xml version = '1.0'?>
    <ROWSET>
    <ROW num="1">
    <DT>2004-03-28</DT>
    </ROW>
    <ROW num="2">
    <DT>2004-03-28</DT>
    </ROW>
    <ROW num="3">
    <DT>2004-03-28</DT>
    </ROW>
    </ROWSET>

    When you call DBMS_XMLQUERY.SETDATEFORMAT, you must supply the mask using the syntax defined by java.text.SimpleDateFormat.
    You need to use "yyyy-MM-dd".
    In your case, "yyyy-mm-dd", the lower case "mm" is the mask for minutes.

  • 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

  • JSObject returns wrong date. How can I extract correct date from digital signature?

    I'm trying to extract name and date from digital signatures by using JSObject in Excel VBA, but JSObject returns wrong date. Year, month, hour and minute are correct, but only day is incorrect.
    Here is my code. I'm using Acrobat 8.1.3.
    Please tell me what's wrong with this code and how I can extract correct date from digital signatures.
    Public Sub sbTest()
    Dim oApp As Acrobat.acroApp
    Dim oPDDoc As Acrobat.AcroPDDoc
    Dim jso As Object
    Dim f As Object
    Dim sig As Object
    Dim strFileName As String
    Set oApp = CreateObject("AcroExch.App")
    Set oPDDoc = CreateObject("AcroExch.PDDoc")
    strFileName = "C:\Test.pdf"
    If (oPDDoc.Open(strFileName)) Then
    Set jso = oPDDoc.GetJSObject
    Set f = jso.getField("Signature1.0")
    Set sig = f.signatureInfo()
    Debug.Print sig.Name
    Debug.Print sig.Date
    End If
    Call oPDDoc.Close
    Call oApp.Exit
    End Sub

    Hi
    You can use TDMS file format to save the data. I have attached a reference Vi.
    On button click you can log the data or remove the case structure and continuous log the complete acquisition data.
    Thanks and Regards
    Himanshu Goyal
    Thanks and Regards
    Himanshu Goyal | LabVIEW Engineer- Power System Automation
    Values that steer us ahead: Passion | Innovation | Ambition | Diligence | Teamwork
    It Only gets BETTER!!!
    Attachments:
    Data Save in File.vi ‏35 KB

  • How do I change Digitized Date

    I need to change the digitized date in some of my photos in iPhoto '08. The Adjust Date & Time function only changes the original date/time and the Batch Change function doesn't offer an option to change the digitized date either.

    I believe that digitized date corresponds to the EXIF Capture Date if the photo is from a digital camera. If the photo has been copied to other media or emailed it may lose that date in the process. You will have to use an EXIF editor like PhotoInfo to change it. If the photo has been scanned or form some web sites it may not have that EXIF field in the file and cannot be changed.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • How to find photos with no original or digitized date?

    I have probably 500-1000 photos that have neither Original or Digitized Date info. They are scattered all throughout my iPhoto library (30,000). They do have Modified and Imported Dates; but of course, not only do those dates differ (sometimes substantially) from when the photo was taken, iPhoto seems to use the Modified Date for sorting purposes if the Original Date isn't there. That means these "dateless" photos are way out of sequence when View, Sort Photos is set to By Date.
    What I need is some way to easily find these photos. I can't set the date search feature to a "null" value, nor can I create a smart album that filters for a null date value. If I slowly scroll through all my photos and watch the numbers carefully, I can usually see which photos have no Original Date because they're out of sequence, but with 30,000 photos, that's going to take forever.
    Does anyone know any tricks or third-party software for this?
    Thanks!

    If a file doesn't have an EXIF date then the file created/modified date is used by iPhoto. Files that have been scanned or optimized for web use fall into that category.
    The demo version ofMedia Expression can catalog an iPhoto library and then with a search for Date is after 1/1/84 you will find all files with an EXIF date. After applying a label to all found you can display all files without a label which would be your files. How you would then identify those so that they can be found in iPhoto I don't know. Any keywords you might add or other metadata would not be recognized by iPhoto unless they were reimported. If you are interested in trying that post back and I can give you a workflow. It would involve creating a new library and importing the Originals folder of the old library after you run Expression Media on it to embed the keywords (those from iPhoto and those you add to the dateless files), titles and comments to the files. It can be done but might be a bit involved.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. Just put the application in the Dock and click on it whenever you want to backup the dB file. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
    Note: There's now an Automator backup application for iPhoto 5 that will work with Tiger or Leopard.

  • Change Digitized Date on Photos

    I was wondering if there is a way to change the digitized date on photos. If you look at my web gallery http://gallery.mac.com/s.krasi#100001 you will see in the lower right hand corner a date on the photo when the picture was taken. Is there anyway to make this disappear from the photo without causing any damage to the photo. I am not the great at Photoshop but I have a feeling you might be able to do it in there. Any help is appreciated. Thanks

    Krasi:
    You can use the Photos->Batch Change menu option to change the date on files and have the original files changed also. The only problem with it is you have to set the time and have a user specified interval between photos. So if the photos are from different times during the same day they will all be at the same time but with the interval selected. If it's the date that's important then the time thing is not critical.
    For batch changing the EXIF Capture Date outside of iPhoto you can use PhotoInfo. It will batch change a folder of photos by a user given time differential, i.e. 1 day, 1 hour, etc. It's very good. But you will have to reimport those photos into iPhoto before the change will be registered. That's why it has to be done outside of iPhoto.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Date Time Original & Date Time Digitized bug

    I have noticed that in Lightroom (1.1 or 1.2, doesn't matter) my photographs display WRONG Date Time Original & Date Time Digitized in the Metadata section. Both are exactly 30 minutes behind the actual time the photos were shot - eg., if I have shot a photo at 7:00pm, it will be shown as though it was shot at 6:30pm. Bridge correctly displays both this info. Any suggestions on how to rectify this info in Lightroom? Thanks,

    If you are shooting RAW, take care with "Edit capture time". There is
    evidence that it causes a rewrite of the RAW file by LR. This
    kind of a rewrite is dangerous, sometimes causing corruption. See
    this thread for a discussion:
    http://www.adobeforums.com/webx/.3c0331a6
    --Milt--

Maybe you are looking for

  • Dynamic Header Text

    I would like to set some of the Header Text on one of my pages dynamically via an iten set on another page. So far I've tried: <script src="http://foo.com/apps?file=api&v=1&key=#MY_ITEM#" type="text/javascript"></script> using the #MY_ITEM# syntax -

  • Subquery in the Where clause

    Can I put a subquery in the where clause, on the left side on the operator? This is a multi-row query. Like this,    select a.col1, a.col2, b.col1, b.col2,              my_function(a.date1, b.date2) AS GROSSDAYS    from table1 a    where ( select ( a

  • Pasted smart objects are distorted in CS6

    Any time I paste an object from AI into PS, it's getting horizontally squashed. Here's an example: 1. 12x12 pixel circle in Illustrator, aligned to pixel grid. 2. Pasted into Photoshop as a Smart Object, it's visibly distorted (12x11), but the W/H is

  • In my contacts, I have three iCloud folders?

    In my contacts sidebar I have three icloud folders, two contain the exact same folders and one is more complete!  Yet when I was searching for someone I know was in my contacts, I could not find them until I went to the sidebar and chose all contacts

  • CSAP_MAT_BOM_CREATE and Sales Order

    Hi, I need to use CSAP_MAT_BOM_CREATE in my application, since BAPI_MATERIAL_BOM_GROUP_CREATE is unavailable in version below 4.6C (if I am right). Do you know whether I can use BOM created with function CSAP_MAT_BOM_CREATE in Sales Order?? Any usefu