How to write data from 24 bit card DAQ card unscaled

Hello
I have a PXI 4462 Data acquistion card to record data. It is 24 bit card. I have two questions about writing data from this card.
1) When acquiring the analog signal the card changes the analog to digital and when writing it scales back to analog signal. I want to write the analog signal in the digital form. How can i do that.
2) PXI 4462 is a 24 bit card, but there is either 16 bit or 32 bit when writing it. So if i write it in 32 bit a byte is not used. only 3 bytes will be used to write the data and one byte wont have any data in it. It takes space on the hard disk. Is there any way to save this one byte so that I will be able to write just 24 bit data without loosing that one byte which would save me plenty of space.
The sampling rate is usually 96Ks/sec.
Thanks in advance
Regards
Nitin

If you want to write 24 bits instead of 32, then you have to change the hi(x) to 8 bits instead of 16. The lo(x) will stay at 16 so the 8 plus 16 equals 24 bits. Simple arithmetic. You asked how to get rid of the upper 8 bits and if you leave it at 16, then you haven't gotten rid of anything.
Why do you think you have to write to separate files? I said do a write of the 16 bit and then a write of of the 8 bit component. It's just two Write File functions to the same file. You could also bundle them together and do a single write but I think there would be a little additional overhead with that.
Message Edited by Dennis Knutson on 04-06-2006 07:15 AM
Attachments:
write binary.JPG ‏5 KB

Similar Messages

  • How to install data from an external sd card onto my tablet (a5500-f)

    how to install data from an external sd card onto mt tablet (A5500-F).

    Choose Computer from the Finder's Go menu, double-click the drive, and drag your documents back.
    (111169)

  • How to write data from query into Real time cube?

    Hi All,
    Can anyone explain me step by step how to write data into a real time cube from front end queries.
    Thanks in advance

    Hi
    You can do this using Integrated Planning
    You need to create a aggregation level on the Real Time infocube and can create Planning function/sequence, Variables if needed.
    Then you can create query on this aggregation level and you can make the keyfigures Input ready in property pane and you can change the data and save it into cube.
    Please find below help link which clearly explains step by step about Integrated Planning like creating input ready queries etc.,
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/43/0c033316cd2bc4e10000000a114cbd/frameset.htm
    Regards
    Ravi

  • How to write data from Basic Cube to Transactional Cube

    Hi experts,
    My problem is the following: I have a Transactional Infocube (IC1) and a basic Infocube (IC2). They have both the same structure. IC2 is loaded with data and other data is keyed in IC1.
    I would like to write data from IC2 to IC1 and eliminate data redundancy if there can be some.
    Can anyone tell me how I can do that?
    Thanks in advance

    Hi,
    Yes , you have to create a multiplanning area ..
      In the planning level , filter the value which you want to copy from basic to transactional cube .
    Fields to be changed : Planning area and others as per your need..
    Field for condition :  if you want to copy data from 2006 then give calyear as field for condition.
    Parameter group : give the value 'from' as basic cube  'to' as your transactional cube ..

  • Sample of how to write data to NI 9802 SD Card C-Module

    I have basic knowledge of LabVIEW but now I want to go into Real-Time and FPGA. I want to learn how to write a data read from an analog input to a SD card using NI 9802.  For the purpose of learning data rate does not matter, as long as I can write something to the memory card.  I read some documents online but I have not found an example so I can understand how to do it.  I will much appreciate if there is any help.
    My settings:
    - cRIO 9073
    - Slot 0: NI 9229 (reading only AIO)
    - Sot  1: NI 9802 (Memory card is inserted to slot 0) - must be used in FPGA mode only.

    Hi,
    To getstarted with, you can first attempt to mount and unmount the NI 9802 using the invoke methods "Mount SD Card" and "Unmount SD Card" in the RT vi. For this you only need to open an FPGA reference to the FPGA vi. After Mounting, you can obtain the drive letter and use it to create the file and write data.
    Best Regards,
    Gogineni
    Kudos are welcome

  • How to write data from planning folder into a planning cube in BPS

    Hi All,
    I have an issue in writing data from planning folder to planning cube.
    I updated the excel sheet in planning folder in UPSPL tcode.
    After clicking on save button in the excel sheet the data did not get updated into the cube.
    I set the real time cube to planning mode.
    Please let me know if there are any settings to save the data to cube or how can it be done.
    Thanks in advance.
    Regards,
    Lavanya.

    Hi Lavanya,
    What do you mean by "the data did not get updated into the cube" ?
    Don't you find a yellow request in the cube administration transaction ? What happened if you set it to green ?
    Regards,
    Fred

  • How to write Data from INI file to Ring control

    Hai,
    I need to write the Data read from INI file to a RING control.While doing this operation using Variants i am getting error.
    I will be pleased if somebody help me.I have attached the Particular INI file and the VI. 
    Solved!
    Go to Solution.
    Attachments:
    Read Serial IO INI data.vi ‏34 KB
    Serial IO paramters.ini ‏1 KB
    Serial Engine Initialize.ctl ‏6 KB

    Adding data to ring
    Kudos are always welcome if you got solution to some extent.
    I need my difficulties because they are necessary to enjoy my success.
    --Ranjeet
    Attachments:
    Adding data to ring.vi ‏10 KB

  • How to store data from Host.vi in cRIO-9074

    TejasKumar Patel
    I implemented a advance Measurement and Control system using cRIO-9074
    with c-Series I/O cards( NI 9217, 9411, 9264)
    I have some questions about it,
    (1)- Data rate from FPGA targate to host vi is too low. how can I increase
    it, when I run my host VI, sometimes all temperature sensor update at
    same time and sometimes one by one, can you please give me some hint, how
    can I correct it, I used two FIFOs for NI-9411 digital pulses, I put all
    Digital input and all analog output and input in a seperate while loop in
    FPGA targate VI.
    (2)- I have to write that data to analyse for further result. I tried all
    possible way to write data including wite to spreadsheet.vi, write to
    text.vi, Data storage.vi, Write to measurement.vi. All this VI work
    efficientlywhen it run individualy, But when I connect this VI to
    writedata from FPGA host VI. than it always give empty file.
    I saw your post in NI discussion forum about how to write data from
    Host.vi, But still I am confuse that how can I creat a protocol between
    host VI and Fpga target vi. to write the data in a file. I have nearabout
    38 channel to write data.
    (3)- I have to measure time difference between two digital pulses, to find
    a flow rate. I am using counter for it with risisng edge shot.vi, but when
    i get a timestemp when there is risisng edge for the second rising edge
    how can I get timestemp. Its like i have to measure time between two
    pulses, I triend waveform measurement.vi to find cycle period. but it not
    worked. any other was to measure it.
    I am stuck in this question since from last one month. I already followed
    NI-discussion forum solution but it doesnt work. I think the way I applied
    is may be wrong. 
    Looking forward to hear from you soon.
    Plese send an additional email copy to [email protected]
    Thank you and Best Regards, 

    Thanks Joseph for your support,
    1-      If I count the ticks between the pulses it always seems different ….because this method I already tried, but it does not work,  like some times it shows 9099 tick and at the second pulse it shows like some more or less ticks not the same ticks every time. To complete my project, the biggest problem is the data storage.
    2-      As you gives the solution in NI forum, “low level file I/O Vis such as Write to text file” FPGA target not support this VI. And mainly I want to write data from HOST.vi, because I am process those data …and I need to store it. For to figure out my result.
    3-      If I use “Write to text file. VI (Sub-VI ) to FPGA.vi, it not support because it support string data and I have FIXpoint data. And can you explain me what is low level file IO, and how can I use in fpga.vi??
    4-      Yes, for my project time stamp it really necessary, for data analysis.
    5-      I need the time stamp to find out what was the system response at the time.  As our project based on weather temperature, I need time stamp.
    Waiting for your reply,
    Thanks and Regards,
    Patel

  • How to backup and restore alien formatted data from/to a CF card - just binary data, not mountable

    I'm trying to make a safety backup of data from a Compact Flash card and be able to restore this data to the CF card again in the event of disaster.
    The data on the CF is in a non-standard filesystem format - I just want to make a 'bit-for-bit' copy of the data on the CF to a backup of some sort held on the Mac and be able to put it back on the CF again if need be.
    I connect the CF card to the Mac using a USB type external adapter box.
    I have tried using Disk Utility. I made a ".dmg" Disk Image from the CF apparently OK, but it will not restore the image back to the CF. I get message "Restore failure. Could not validate source - device not configured".  I've not managed to find any
    After much fruitless digging it's in danger of turning into a second career trying to sort out how to do this - so a cry for help...

    Thanks jsd2 - that did help with one part of the puzzle - how to find what the 'dev' was to use in the 'dd' command! When I listed the /dev dir I couldn't see clearly what was what, and could feel a load more googling coming on, but this tool made it clear the CF I wanted was identified as '...disk2'.
    I'm trying "dd-ing" a .bin file I extracted from the .dmg backup onto the CF using the dd-GUI tool  - but it is very slow, currently indicating another 4 hours to finish the write!  I'm not sure the best way to abort.
    I wonder if it could be made to go faster if I used the actual dd command from the console, with the right parameters.
    Unfortunately I'm also not convinced that the ".bin" format will be any good - it was a choice between that and ".img" so I tossed a coin, for the sake of trying something.
    I think it is more likely to work if I used the 'dd' command (via the tool or from the command line) in both directions, ie. to make the copy and then to copy it back - that way presumably the raw byte format should be consistently packaged in each direction at least - but if it takes >4 hours each way with this 32GB CF card then it's not bearable!

  • Write data from Oracle 9i 64 bit to Oracle 32 bit through database link

    Hi to All:
    We are using following Oracle 64 bit application.
    Operating System: Sun Solaris 5.9
    Database: Oracle 9i (64 bit)
    Machine: Sun Server Spark V890
    Now my questin is that I want to move data from the production database running in Oracle 9i 64bit on Sun server to Oracle 9i 32 bit on Windows Server 2002 thru database link.
    I heard that it is not possible to write data from oracle 64 bit to oracle 32 bit, no matter what operating system we are using.
    Please confirm me that whether we can write data through database link from Oracle 9i 64 bit to Oracle 32 bit.
    Please specify every possible solution or any site from where I can have the solution.
    Thanks in advance.
    Hassan Raza Khan Lodhi

    Create a test table ( in 64bits db) , add some data
    From 32bits create a dblink
    Execute the following query
    create table test_32
    as select * from test64@dblinkto64;
    Michael

  • HOW TO UPLOAD DATA FROM EXCEL TO INTERNALTABLE

    HI,
    HOW TO UPLOAD DATA FROM EXCEL TO INTERNALTABLE?  & WITH EXAMPLE.

    hi,
    chk this, put the data into an excel file.
    fields inside it are name and age.
    sample excel sheet.
    coloumn 1 is name and column 2 is age
    name age
    A     8
    C     13
    D     55
    DATA : int_excel LIKE alsmex_tabline OCCURS 0 WITH HEADER LINE.
    data : record like db_name_age occurs 0 with header line.
    DATA : v_start_col TYPE i VALUE '1', "starting col
           v_start_row TYPE i VALUE '1', " starting row
           v_end_col   TYPE i VALUE '2', " total columns
           v_end_row   TYPE i VALUE '10'. "total no of record
    FORM f_upload .
      CLEAR : int_excel, int_excel[].
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          filename                = wf_filename
          i_begin_col             = v_start_col
          i_begin_row             = v_start_row
          i_end_col               = v_end_col
          i_end_row               = v_end_row
        TABLES
          intern                  = int_excel
        EXCEPTIONS
          inconsistent_parameters = 1
          upload_ole              = 2
          OTHERS                  = 3.
      IF sy-subrc <> 0.
    *Message is 'Unable to upload data from  '  wf_filename.
        MESSAGE e169(zm050) WITH wf_filename.
      ELSE.
        SORT int_excel BY row col.
        REFRESH : record.
        CLEAR   : record.
        LOOP AT int_excel.
          CASE int_excel-col. "go thru each column.
            WHEN 1.
              record-name  = int_excel-value.
            WHEN 2.
              record-age = int_excel-value.     
          ENDCASE.
          AT END OF row.
            APPEND record.
            CLEAR record.
          ENDAT.
        ENDLOOP.
    *inserting into table
    modfiy db_name_age from table record.
      ENDIF.
    <i><b>ANOTHER EXAMPLE</b></i>
    TYPE-POOLS truxs.
    types: begin of t_tab,
    col1(5) type c,
    col2(5) type c,
    col3(5) type c,
    end of t_tab.
    data : itab type standard table of t_tab,
           wa type t_tab.
    data it_type type truxs_t_text_data.
    parameter p_file type rlgrap-filename.
    data ttab type tabname.
    at selection-screen on value-request for p_file.
    CALL FUNCTION 'F4_FILENAME'
    EXPORTING
    PROGRAM_NAME = SYST-CPROG
    DYNPRO_NUMBER = SYST-DYNNR
    FIELD_NAME = 'P_FILE'
    IMPORTING
    FILE_NAME = p_file
    start-of-selection.
    CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
    EXPORTING
    I_FIELD_SEPERATOR =
    I_LINE_HEADER = 'X'
    i_tab_raw_data = it_type
    i_filename = p_file
    tables
    i_tab_converted_data = itab[]
    EXCEPTIONS
    CONVERSION_FAILED = 1
    OTHERS = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    end-of-selection.
    loop at itab into wa.
    write : wa-col1,
            wa-col2,
            wa-col3.
    endloop.
    rgds,
    anver
    <i>if hlped pls mark points</i>

  • How to extract data from Chart History?

    Dear all, I have read a lot of posts, but still don't understand how to extract data from Chart history.
    Suppose you acquired 1024 points of data every time, then use "build array" to build an array, then send to intensity chart to show, then save the history into a .txt file,  but how to extact data from the file?
    How Labview store the data in the 2D history buffer?
    Anybody has any examples?

    The simplest would be to save the 2D array as a spreadsheet file, the read it back the same way.
    Maybe the attached simple example can give you some ideas (LabVIEW 7.1). Just run it. At any time, press "write to file". At any later time, you can read the save data into the second history chart.
    If you are worried about performance, it might be better to use binary files, but it will be a little more complicated. See how far you get.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    IntensityChartHistorySave.vi ‏79 KB

  • How to load data from a  flat file which is there in the application server

    HI All,
              how to load data from a  flat file which is there in the application server..

    Hi,
    Firstly you will need to place the file(s) in the AL11 path. Then in your infopackage in "Extraction" tab you need to select "Application Server" option. Then you need to specify the path as well as the exact file you want to load by using the browsing button.
    If your file name keeps changing on a daily basis i.e. name_ddmmyyyy.csv, then in the Extraction tab you have the option to write an ABAP routine that generates the file name. Here you will need to append sy-datum to "name" and then append ".csv" to generate complete filename.
    Please let me know if this is helpful or if you need any more inputs.
    Thanks & Regards,
    Nishant Tatkar.

  • What is a cube? how we store data in that? how we fetch data from cube?

    Hi,
    What is a cube? how we store data in that? how we fetch data from cube?
    Regards.
    venkat

    >
    venkey B wrote:
    > Hi,
    >
    >
    > What is a cube? how we store data in that? how we fetch data from cube?
    >
    >
    > Regards.
    >
    > venkat
    Hi Venkat,
    I guess you mean an infocube from the SAP BI product. I propose to look at the forum for Business Intelligence to find your answers.
    E.g. SAP POS DM writes the sales data in infocubes.....

  • How to select data from cluster table

    hi experts,
                   I have a report which picks data from bseg (cluster table ) for a month report it is taking around 4 minutes to process.I feel it is not good when take the report after some months.
    how to select data from these table???how to declare itab for these cluster tables????can we include any search condition or any other kind of internal table???
    please advice.
    mani

    Hi Manikandan,
    The following code may be helpful to understand how to select the data from cluster table.
    Types: Begin of ty_kna1,
    Kunnr type kna1-kunnr,
    adrnr type kna1-adrnr,
    end of ty_kna1,
    begin of ty_bseg,
    belnr type bseg-belnr,
    kunnr type bseg-kunnr,
    end of ty_bseg,
    begin of ty_final,
    belnr type bseg-belnr,
    kunnr type kna1-kunnr,
    adrnr type kna1-adrnr,
    end of ty_final.
    Data: it_kna1 type table of ty_kna1,
    wa_kna1 type ty_kna1,
    it_bseg type table of ty_bseg,
    wa_bseg type ty_bseg,
    it_final type table of ty_final,
    wa_final type ty_final.
    Select kunnr adrnr from kna1 into table it_kna1 where....
    if sy-subrc = 0.
    select belnr kunnr into table it_bseg for all entries in it_kna1 where kunnr = it_kna1-kunnr.
    endif.
    sort it_kna1 by kunnr.
    Loop at it_bseg into wa_bseg.
    move wa_bseg-belnr to wa_final-belnr.
    read table it_kna1 into wa_kna1 with kunnr = wa_bseg-kunnr binary search.
    if sy-subrc = 0.
    move: wa_kna1-kunnr to wa_final-kunnr,
    wa_kna1-belnr to wa_final-belnr.
    endif.
    append wa_final to it_final.
    clear wa_final.
    endloop.
    Loop at it_final into wa_final.
    write: / wa_final-belnr, wa_final-kunnr, wa_final-adrnr.
    endloop.
    Reward if useful.
    Thankyou,
    Regards.

Maybe you are looking for