Measurement slightly incorrect with raw data measurements

Hello everyone,
I am reading raw data continuously at a sample rate of 10 kHz at 16 analog channels between 0Volt and 5Volt. The voltage is supplied by the 5 Volt output of the DAQ device. Because I am reading raw data, I have to calculate the real value in Volts. When I do this I only get to 4,9 Volt. Is this normal when running in raw data mode, because the scaling cannot be changed? Could anyone please help me with this problem?
Thanks in advance,
Souza
By the way, I am using the following hard- and software:
NI6220(PCI M-series)
Visual Studio 2003 C#

Souza,
I am curious as to what formula you are using to scale your raw values into voltages.  One thing to keep in mind is that your M-Series device is software calibrated.  Therefore using a formula such as (AI Range/2^ADC resolution)*raw value read may not give a correct result, as there is some additonal scaling that needs to be done by software.  However, you should be able to query the driver to determine what scaling coefficients to use by calling DAQmxGetAIDevScalingCoeff on your task.  From the DAQmx C reference help:
Analog Input >> General Properties >> Advanced >> Device Scaling Coefficients >> Device Scaling Coefficients
Data Type:
float64*
Description:
Indicates the coefficients of a polynomial equation that NI-DAQmx uses to scale values from the native format of the device to volts. Each element of the array corresponds to a term of the equation. For example, if index two of the array is 4, the third term of the equation is 4x^2. Scaling coefficients do not account for any custom scales or sensors contained by the channel.
Restrictions:
Not Settable
You can get this property using: 
  DAQmxGetAIDevScalingCoeff
Hope this helps,
Dan

Similar Messages

  • Creating BI Publisher report with raw data XML

    Hi Guys,
    Can anyone please point me to a link or tutorial where we can do reporting using raw data XML as a datasource and defining the Parameters for filters.
    Thanks,
    Aash

    Thanks for your reply.
    I'm just add a new data set from BI Analysis, I select the Analysis and press OK, pop-up closed and in the data set I see the box with the message... nothing else.
    If I try to use a simple Analysis, the new data set works.

  • Displaying an internal table with raw data in an ALV

    Hi Experts,
    Can you please help me out I'm retrieving an ABAP Report List which i submitted to memory, I'm using the function module LIST_FROM_MEMORY to retrieve the list from memory and storing it in an internal table. The problem is i'm struggling to display the List using an ALV coz the internal table contains raw data. Your help wil be much appreciated.

    My ASCII internal table is empty. Below I have included a code sample of what I want to do.
    Type-pools slis.
    DATA: MTAB_REPORT_LIST LIKE ABAPLIST OCCURS 0 WITH HEADER LINE.
    DATA: BEGIN OF MTAB_REPORT_ASCII OCCURS 0,
            LINE(255) TYPE C,
          END OF MTAB_REPORT_ASCII.
    START-OF-SELECTION.
    *-- Submit a report.  This one is the chart of accounts
      SUBMIT ZPRINTREPORT
        EXPORTING LIST TO MEMORY           " Save list in memory
        AND RETURN.    " Return control to this program
    END-OF-SELECTION.
    *-- Get the list from memory
      CALL FUNCTION 'LIST_FROM_MEMORY'
           TABLES
                LISTOBJECT = MTAB_REPORT_LIST
           EXCEPTIONS
                NOT_FOUND  = 1
                OTHERS     = 2.
    if sy-subrc <> 0.
      write / 'unable 2 retrieve list from memory'.
    else.
    "REFRESH MTAB_REPORT_ASCII.
    CALL FUNCTION 'LIST_TO_ASCI'
    TABLES
    listasci = MTAB_REPORT_ASCII " list converted to ASCII
    listobject = MTAB_REPORT_LIST
    EXCEPTIONS
    empty_list = 1
    list_index_invalid = 2
    OTHERS = 3.
    if sy-subrc = 1.
       write 'list ASCII list empty'.
    else.
    WRITE: MTAB_REPORT_ASCII, ' ff'.
    " perform build_alv tables MTAB_REPORT_LIST.
    endif.
    endif.
    "CALL FUNCTION 'WRITE_LIST'
    "      TABLES
    "           LISTOBJECT = MTAB_REPORT_LIST
    "      EXCEPTIONS
    "           EMPTY_LIST = 1
    "           OTHERS     = 2.
    FORM build_alv tables MTAB_REPORT_ASCII.
    ALV required data objects.
    "DATA: w_title   TYPE lvc_title,
    "        w_comm    TYPE slis_formname,
    "        w_status  TYPE slis_formname,
    "        x_layout  TYPE slis_layout_alv,
    "        t_event    TYPE slis_t_event,
    "        t_fieldcat TYPE slis_t_fieldcat_alv,
    "        t_sort     TYPE slis_t_sortinfo_alv.
    data int_fcat type SLIS_T_FIELDCAT_ALV.
    Layout
      x_layout-zebra = 'X'.
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
           EXPORTING
                I_PROGRAM_NAME         = sy-repid
                I_INTERNAL_TABNAME     = 'MTAB_REPORT_ASCII' 
                I_INCLNAME             = sy-repid
           CHANGING
                CT_FIELDCAT            = int_fcat
           EXCEPTIONS
                INCONSISTENT_INTERFACE = 1
                PROGRAM_ERROR          = 2
                OTHERS                 = 3.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
           EXPORTING
                I_CALLBACK_PROGRAM = sy-repid
                IT_FIELDCAT        = int_fcat
                I_SAVE             = 'A'
           TABLES
                T_OUTTAB           = MTAB_REPORT_ASCII
           EXCEPTIONS
                PROGRAM_ERROR      = 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.
    ENDFORM.

  • How to read a file with value of RAW data type? Please help

    Hi Experts,
       I  have a file with RAW data like DE864E48833BFFF1B805001CC4EF4BFA
       I am using GUI_UPLOAD.
       But this FM is throwing error.
       I tried by giving FILETYPE as ASC. The output internal table for this FM contains a field of type c size 32.
       Now it is able to read the file but I want to assign this value to a RAW data type variable.
       This it is unable to do. How to convert the char value to RAW data type?
    Please help!
    Thanks
    Gopal

    Hi,
    The documentation for the function module contains an example for RAW upload.
                begin of itab,
                      raw(255) type x,
                end of itab occurs 0.
               CALL FUNCTION 'GUI_UPLOAD'
               exporting
                  filetype =  'BIN'
                  filename = 'C:\DOWNLOAD.BIN'
               tables
                 data_tab = itab.

  • Formula Created in BI Query appears in Universe as Measure with No Data

    Hi,
    I have created the universe on top of SAP BI Query(Which is built on Infoset).
    There are some formulas created in BI Query as mentioned below:
    Eg: Status1=
                        If Completion Code = null then Status1 = 0 
                        If Completion Code = =10,11,18 then Status1 = 1
          Status2=
                         If Status1= 1 and Field Completion Date <= Regulatory Due Date then Status 2 = 3
                         If Status1= 0 and Report Date <= Regulatory Due Date then Status 2 = 4
    In the Universe I get Status1 and Status2 as Measures.
    When I use these Measure Objects in WebI report, I donu2019t see any Data for these objects in WebI Report. Both the columns for Status1 and Status2 appear Blank with no data in it, although I get the data in SAP BI Query for both Status1 and status2.
    Is there any issue with the formulas to be used in SAP BI Query?
    Are Formulas supported in Business Objects from SAP BI Query?
    regards,
    Nisha

    Hi Ingo,
    I tried running the standard test MDX in MDXTEST and I got the data for those calculations.
    But I wonder why there is no data in WebI for those formulas(Key Figures)?
    In Standard test MDX the MDX Query is as Follows:
    SELECT
    [Measures].MEMBERS ON COLUMNS,
    NON EMPTY [Z_WM_IS01___F98].[LEVEL01].MEMBERS ON ROWS
    FROM ZWM_M02/Z_ZWM_M02_Q001 SAP VARIABLES
    [!V000001] INCLUDING [Z_WM_IS01___F15].[3]
    Based on above Query I created the WebI report which includes the objects as described below:
    one Dimension Object Notification Number which is equivalent to [Z_WM_IS01___F98].[LEVEL01].MEMBERS  from above query.
    Selected All the measures objects available in query which refers to [Measures].MEMBERS
    And  one Prompt on Region which is equivalent to [!V000001] INCLUDING [Z_WM_IS01___F15].[3]
    Why there is no data for Calculation columns (Key Figures Status1 and Status2) in WebI Report???

  • What VI can read raw data from a TDMS file with scaling information entered?

    I would like to use scaling with my TDMS files so that the end user will
    only see engineering unit values, however, within my Labview application, I
    want to retrieve the raw data.  Is there a way to read the raw data using
    one of the Vi's in Labview?

    The scaling information in a TDMS file is stored as properties of the channel.  One trick (that I haven't mastered yet) is you can change the properties of the TDMS file (set properties) and set all the scales to have a offset of 0 and a scale of 1.  This will apply a scale that has the engineering units be the same as the raw values.  Then you can read the data like normal and you'll get the raw values.
    There are several issues to be aware of, the first is changing the scale and forgetting to change it back, or some how modifying the data to be incorrect units and not knowing it.  For this reason I'd recommend making a copy of the TDMS file to a temporary location to make the modifications to the properties, read it, then delete the temporary TDMS file when you are done.  
    This is the only way I know of to get the raw readings from a scaled TDMS channel.  
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • Issue with Oracle LONG RAW data type

    Hi All,
    I am facing some issues with Oracle LONG RAW DATA Type.
    We are using Oracle 9IR2 Database.
    I got a table having LONG RAW column and I need to transfer the same into another table having LONG RAW column.
    When I tried using INSERT INTO SELECT * command (or) CREATE TABLE as select * , it is throwing ORA-00997: illegal use of LONG datatype.
    I have gone through some docs and found we should not use LONG RAW using these operations.
    So I did some basic PLSQL block given below and I was able to insert most of the records. But records where the LONG RAW file is like 7O kb, the inserting is faliling.
    I tried to convert LONG RAW to BLOB and again for the record where the LONG RAW is big in size I am getting (ORA-06502: PL/SQL: numeric or value error) error.
    Appreciate if anyone can help me out here.
    DECLARE
    Y LONG RAW;
    BEGIN
    FOR REC IN (SELECT * FROM TRU_INT.TERRITORY WHERE TERRITORYSEQ=488480 ORDER BY TERRITORYSEQ ) LOOP
    INSERT INTO TRU_CMP.TERRITORY
    BUSINESSUNITSEQ, COMPELEMENTLIFETIMEID, COMPONENTIMAGE, DESCRIPTION, ENDPERIOD, GENERATION, NAME, STARTPERIOD, TERRITORYSEQ
    VALUES
    REC.BUSINESSUNITSEQ, REC.COMPELEMENTLIFETIMEID, REC.COMPONENTIMAGE, REC.DESCRIPTION, REC.ENDPERIOD, REC.GENERATION, REC.NAME,
    REC.STARTPERIOD, REC.TERRITORYSEQ
    END LOOP;
    END;
    /

    Maddy wrote:
    Hi All,
    I am facing some issues with Oracle LONG RAW DATA Type.
    We are using Oracle 9IR2 Database.
    I got a table having LONG RAW column and I need to transfer the same into another table having LONG RAW column.
    When I tried using INSERT INTO SELECT * command (or) CREATE TABLE as select * , it is throwing ORA-00997: illegal use of LONG datatype.
    I have gone through some docs and found we should not use LONG RAW using these operations.
    So I did some basic PLSQL block given below and I was able to insert most of the records. But records where the LONG RAW file is like 7O kb, the inserting is faliling.
    I tried to convert LONG RAW to BLOB and again for the record where the LONG RAW is big in size I am getting (ORA-06502: PL/SQL: numeric or value error) error.
    Appreciate if anyone can help me out here.
    DECLARE
    Y LONG RAW;
    BEGIN
    FOR REC IN (SELECT * FROM TRU_INT.TERRITORY WHERE TERRITORYSEQ=488480 ORDER BY TERRITORYSEQ ) LOOP
    INSERT INTO TRU_CMP.TERRITORY
    BUSINESSUNITSEQ, COMPELEMENTLIFETIMEID, COMPONENTIMAGE, DESCRIPTION, ENDPERIOD, GENERATION, NAME, STARTPERIOD, TERRITORYSEQ
    VALUES
    REC.BUSINESSUNITSEQ, REC.COMPELEMENTLIFETIMEID, REC.COMPONENTIMAGE, REC.DESCRIPTION, REC.ENDPERIOD, REC.GENERATION, REC.NAME,
    REC.STARTPERIOD, REC.TERRITORYSEQ
    END LOOP;
    END;
    /below might work
    12:06:23 SQL> help copy
    COPY
    Copies data from a query to a table in the same or another
    database. COPY supports CHAR, DATE, LONG, NUMBER and VARCHAR2.
    COPY {FROM database | TO database | FROM database TO database}
                {APPEND|CREATE|INSERT|REPLACE} destination_table
                [(column, column, column, ...)] USING query
    where database has the following syntax:
         username[/password]@connect_identifier

  • Can I change incorrect time and date with

    Hello,
    I used my digital camera in a different time zone and forgot to set it accordingly. Now a bunch of photos have the incorrect time and date. Can I use Photoshop CS4 (11.0.2) to change this? I only found instructions on the Internet for Elements, which I do not have.
    Windows Live Photogallery was only mildly successful. In the Windows 7 Explorer the date is shown correctly, but when I go to open the file in Adobe Photoshop, the old, incorrect date is shown. That's why I hoped that I could change this for good with Photoshop.
    Thanks in advance!
    Aiiyana

    There are several dates in the metadata.  THe date shot is set by the camera and I know that you can not change that in Bridge.  There are programs out there on the web that will do it.

  • Working with raw Microphone data...

    so I'm creating an audio recorder and I'm writing the floats from the SampleDataEvent to a byteArray.  Everything works fine locally, but we need to store these files on our server.  I have tried to use Sound.load with the url of the byteArray however I get an IO Error which I assume is prob. because this file is not an mp3.  What I need to do is either find out what type of file the byteArray actually is, so that we can have our backend re-encode from this file type to an mp3, or I need to convert on the front end, to an mp3 and just send that new byteArray along.  I found Thibalt's WaveEncoder library, but this encodes to Wav files, not mp3's.  Any help or suggestions out there about how to resolve this issue?
    Thanks,
    BK

    It is not in a popular format.  It is simply RAW audio data in FLOATS.
    A WAV file is really a container, not a format in it self, it can store multiple types of formats, with or without compression.
    Do note the second sentence.  A good part of audio conversion tools expect raw audio data to be in integers, while the raw data that you get from the mic is actually in FLOAT, which is not the same a DOUBLE.  Flash's Number is a Double.
    You also have to be carefull with Endianes of your ByteArray, as this is also very important.

  • "Cannot Decode Raw Data" Message with Ebay

    Regularly when i'm using Ebay Safari fails to load the web page with the following error:
    Safari can’t open the page “http://my.ebay.co.uk/ws/eBayISAPI.dll?MyeBay&gbh=1&&_trksid=m38&guest=1”. The error was: “cannot decode raw data” (NSURLErrorDomain:-1015) Please choose Report Bugs to Apple from the Safari menu, note the error number, and describe what you did before you saw this message.
    This happens all the time on Ebay, but has never happened on any other website. Has anyone else run into this before? Any ideas what is the cause?
    I am using a Macbook Pro with Leopard 10.5.4.

    So, it's almost impossible to find anything on the 'net or on the Apple site regarding this problem. This puts a major cramp in my browsing activity as, in order to bookmark a page using delicious.com I would need to copy and paste everything into Firefox and go from there, bouncing back and forth between the two on a regular basis. Soooo, until then, I guess I will be giving Firefox a try.
    This is another bug that could really use some immediate attention. It's affecting eBay and delicious, for sure. Who knows what else is being affected.

  • D600 raw data with CS5

    how can I edit raw data from nikon D600 with CS5

    You can't. RAW support is version specific. You need to upgrade to CS6. otehrwise you casn of course use the free DNG converter in the interim...
    Mylenium

  • Display Raw data image with JSF

    Hi,
    I have a raw data image in bytes and I need to display this image using JSF.
    How to do?
    Thanks
    Jamil

    The best approach is to use a servlet that gives you back an image, using setContentType("image/...") and setContentLength(...)

  • Is there an issue with incorrect tracking of data usage?

    I just upgraded from a 4gig shared plan to 6. I never went over the previous plan, but now that I have more data, I've gone over. There is no difference in how we are using our phones, and when I look at the data usage for each phone on the plan (there are 4, all different phones) the times don't make sense - in some cases it appears that data is being used in the early morning hours when we are sleeping. In other cases, the are duplicate entries for the same dates and times. What the hell is going on? I don't even dare try to call Verizon customer service b/c I know I'll be on the phone with them for hours with no resolution or explanation that makes sens to me (it makes perfect sense to them, however). Anyone else experienced this?

    Although I am not a conspiracy theorist I am reading more and more on the web that ever sense the Unlimited data went to shared or metered data, people that never exceeded data use previously are now seeing high overages. Of course Verizon will tell you nothing is wrong and it is all your problem. I can remember the old days when people were seeing phamton charges of data use at 99 cents and in the lawsuit that followed Verizon admitted it was an error. They made millions on that error but the class action settlement was peanuts. They still made millions even after admitting the practice.
    I personally do not believe that the data counters are 100% accurate. Amazing that people on unlimited that used a few gigs of data if that n ow complain of excessive data over 3, 4, and 8 GB and up. Yeah the phones that were not using a whole lot of data before are suddenly data hogs. again I am sure there is a logical reason for the data jumps.
    And no lets not just blame the users, or the device brand this situation is happening across all brand lines. Some more than others such as iPhone's but again this is all about the money.
    And don't fall for the Verizon now has plans with double data for the same price, it is a ploy to garner more business. They see this as their answer to the Sprint & T-Mobile and now AT&T plans being offered.
    You see with 99% cellular penetration Verizon and other providers have to do anything they can to get and keep customers.
    It is big business. You must expect they have ways to generate as much money out of you they can.
    Good Luck

  • How does my application save the raw data to binary file?

    Hi all,
    At first, please look at my attachment. There is the part of my code (it is inside of a while loop) which saves a raw data from my firewire camera. I am thinking how does this saving process work? How does it save the data in each while loop's iteration time (pixels, rows and columns)? For example if I use 100x1000 8-bit image. There is also Set File Position.vi which makes next line after iteration (at least I think so?). It is important to know when I'm processing the data later with Matlab.
    My second question:
    If I set height = 100 and width = 1000 as parameters, image indicator from IMAQdx Grab's image out says that the image is "only" 1000x96 8-bit image. Where are "missing" 4 bits?
    B R,
    Jick
    Attachments:
    binarysave.JPG ‏40 KB

    Hi again,
    Here is my whole CameraSoftware. It is a part of the bigger measurement program.
    I hope you can find the solution of "lost 4 bits"
    B R,
    Jick
    Attachments:
    camerasoft.JPG ‏162 KB
    save&grab.JPG ‏48 KB
    confcam.JPG ‏38 KB

  • Processing raw data in different ways depending on some condition

    Hi,
    I am receiving a raw data stream through a UDP port. The values contained in the raw data are all stored in 32 bits but are of different formats i.e I have 16 bit signed integer, 32 bit signed integer, 8 bit unsigned integer and 32 bit single precision floating point number. I have a spreadsheet which tells me the measured parameter, the data type and the address of the parameter within the stream (ie parameter 1 is address 1 and is the 1st 32 bits, parameter 2 is address 2 and is the following 32 bits, and so on...) I need to use the "data type" column from the spreadhseet as a condition to a case structure which will then display the 32 bits of data in the correct format. Ideally I want my output to be an array of numbers under each Parameter (or address) so I can save to a TDMS file. I have an idea of how to do this part but I am struggling to link the 'data type' condition and case stucture successfuly. Any ideas or pointer would be greatly appreciated. I have attached my VI so far...
    Attachments:
    UDP_Case_Struct.vi ‏24 KB

    TGL wrote:
    At the moment the input to the case structure is an array of data types. Is this maybe causing a problem as a single data type is not being fed into the selector terminal?
    You are indexing out a 2D array, thus you need to wire both indices to get a scalar element suitable to be wired to the case structure. If you leave one index unwired, you get an entire row or column respectively.
    How often does the file change? If it is always the same, it would be sufficient to read it once before the loop.
    LabVIEW Champion . Do more with less code and in less time .

Maybe you are looking for

  • How to setup iCal on a Lion server and its client machines?

    I recently bought a new mini server (running Lion) in order to share our iCal calenders (like in the Apple presentations). I thought this would be an easy process but apparently it isn't. So what was I already able to achieve: 1) Set up 5 different c

  • How to extract attachment from ABAP proxy and store in archive link....

    Hi Experts, I need to consume an incoming email attachment in the ABAP Proxy program (POP Mail  --> PI --> ABAP Proxy) and then store this file in the IBM content management server through the Archvie Link connection. Any idea how to implement this p

  • Update 10.1: Can't find my projects after updating

    Hi, I updated all of my media/projects to 10.1 (By having it search the drive for old media/projects)--and I have access to my events/clips in the new FCPX library system (including from my external HD), but I can't find any of my old projects... it'

  • Report based on depot plants

    Hi, Can you plz help to get a report based on Depot plants. I have transffered materials frm one main plant to 8 different Depot Plants.Can u plz help me to get  reports that helps me to get the detailed list of stocks in depot plants and to know how

  • OS10.9 and Avaya B159 conf phone

    Using Skype on a new iMac running OS10.9.4 and an Avaya B159 conference phone. On the old mac (iMac running 10.6) I was able to select the Avaya phone in the preferences of Skype and everything worked sweet, now (in 10.9) the Avaya is no longer recog