How can I obtain the coefficients m, b from MAX scale?

I use CWAI ActiveX for acquire data. Also, I use MAX to set the virtual channels for CWAI. When I try to use scale option of MAX (for exemple y = 0.5x + 3 to transforn volts in my phisics values) I obtain true data from ScaledData (phisics values), but I can't obtain true data from (BinaryCodes x GetScaleMultiplyer) + GetScaleOffset. How can I obtain true value from binarycodes?
How can I obtain m and b from ActiveX?

drg,
The GetScaleOffset & GetScaleMultiplier refer to the hardware factors used by the driver to transform the binary values produced by the ADC converter to actual Voltage values (not physical units of the Virtual Channel).
The documentation (NI-DAQ 6.9.3) for the ScaleMultiplier property mentions this:
"Returns the slope in the linear scaling formula for converting the binary codes of the analog-digital converter to voltages. The CWAI control multiplies the binary code by the ScaleMultiplier and adds the ScaleOffset to convert a binary code to a voltage.
(BinaryCode * ScaleMultiplier) + ScaleOffset = Voltage"
If the signal range was, for example +/- 5 V, the multiplier for a 12 bit board would be approximately 0.00244141 so that:
2047 * 0.002441
41 = 5V
NOTE: The 12 bit range (4096 words) is divided into +2047 / -2048
Unfortuantely there is not a function or method in the CWDAQ API to obtain or set parameters from the Custom Scales used by the Virtual Channels.
The reason for this is probably due to the fact that once Virtual Channels are created, most users would read in scaled values directly rather than reading binary values, getting the scale constants and applying the custom scale themselves. Since the user specifies the values for the custom scales anyway, the application could as well store the scaling constants as part of its configuration.
Still, it would be nice to have this functionality so I thank you for pointing this out. I will create a suggestion indicating the need for such functions.
The ways to achieve the results you desire are:
1) Use Virtual Channels and read scaled data
or
2) Use the ScaleMultiplier and ScaleConstants to transform binary values into actual voltage values. Once
you obtain the voltage values you can manually apply the same custom linear scale you had created through MAX.
Regards,
Alejandro Asenjo
Applications Engineer
National Instruments

Similar Messages

  • How can I obtain the first 10 charcter from field and the last 4 characters

    Hi
       I need to obtaind the first 10 characters from field AWKEY from BSEG table, and the last 4 characters, how can I obtain certains position from field??
        Example:
      AWKEY field from BSEG can be for example :
    51000573112002
       This mean that you can obtain separately:
    5100057311 - BELNR (field)
    2002- GJAHR (field)
        As you can see, the first 10 positions are BELNR and the last 4 positions are GJAHR.
         But sometimes you find in old rows:
    5100057312US502001
         This mean that you can get from this field:
    10 positions for BELNR : 5100057312
    4 positions for BUKRS or WERKS : US50  - in this case, I don´t know if its is BURKS or WERKS...for this reason only I want to take only the first 10 positions and the last 4 position to compare.
    4 posiition for GJAHR: 2001
       I rewards all the answers.
       Thank you.
    Alicia

    Hi, thank you for yours answers
    Let me try to explain more what I need to do:
    I have a Internal Table that I create with EKBE table:
      SELECT  MANDT EBELN EBELP GJAHR BELNR BEWTP BUDAT
              MENGE WRBTR WAERS WERKS SHKZG DMBTR
              ZEKKN VGABE BUZEI
        INTO CORRESPONDING FIELDS OF TABLE LIST_EKBE
        FROM EKBE
          WHERE EBELN IN R_EBELN
            AND BEWTP IN ('E','Q','R').
    The result is all the rows that have this conditions..then with this internal table I need to looking for each BELNR in BKPF table, but sometimes you can find the row compare EKBE-BELNR with BKPF-BELNR...but in many cases, you don´t find the row in this way, you need to add EKBE-BELNR and EKBE-GJAHR and looking for in BKPF with field AWKEY..
    For this reason I CONCATENATE in this way:
    LOOP AT LIST_EKBE.
        V_BELNR = LIST_EKBE-BELNR.
        V_GJAHR = LIST_EKBE-GJAHR.
        CONCATENATE V_BELNR V_GJAHR  INTO V_AWKEY.
        SELECT SINGLE MANDT BUKRS BELNR GJAHR AWKEY
        INTO (BKPF-MANDT, BKPF-BUKRS, BKPF-BELNR,
             BKPF-GJAHR, BKPF-AWKEY)
        FROM BKPF
        WHERE AWKEY = V_AWKEY.
    ENDLOOP.
      But I saw that sometimes you don´t find the record in BKPF because the AWKEY is formed with BELNRBUKRSGJAHR....or may be with BELNRWERKSGJAHR ...I don´t know if is BUKRS or WERKS the second field...for this reason I try only read in the select..if its posible the first 10 postions and the last 4 positions...but Im not sure if its possible..
      The reason for that I looking for the BELNR field in BKPF field for AWKEY its because sometimes de BELNR in BKPF its different..example:
    In EKBE you have:
    BELNR: 5105618260
    GJAHR: 2006
    If you looking for in BKPF you don´t find sometimes exactly the field BELNR : 5105618260.. then you need try looking for the AWKEY field then you need to add BELNR+GJAHR..example:
    BKPF:
    BELNR: 5105611111
    GJAHR: 2006
    AWKEY: 51056182602006
    But in other cases... I found that in AWKEY exist for example:
    BELNR: 5105611111
    GJAHR: 2006
    AWKEY: 5105618260US502006
    In the last case I supouse that I can divide in:
    AWKEY: 5105618260-US50-2006 ... but I don´t know what its the field that have the information US50..may be is BUKRS or may be its WERKS
    May be some people know what its exactly this field and can help me..
    With the solution that some of yours give me..I don´t know the how I can make the select? and if its posible make in this way
    Thank you a lot

  • How can I obtain the primary key of a table for an entity relation?

    hello everybody
    I am doing a consultation to a table in my data base, good this table has alone two fields, the first one is the code or pk and the second one is the description, to be presisos they are names of city and code.
    From the beginning!!: This method this one in another class that is a Dialog that is going to call to the class SelecPlace ();
      SelecPlace sl = new SelecPlace();
    public void capturarLugar(){  //  Simple void method in the mentioned class
            String place = txtProcedencia.getText() ;  //  a JTextField
            sl.executeStatement(place) ;                  
        }ok, now we see part of the code of the class SelectPlace
    public class SelecPlace extends AbstractTableModel{
        Connection con = null;
        Statement sentencia = null ;
        ResultSet rs = null;
        ResultSetMetaData rsmd = null ;
        String[] nameColum = {} ;
        Vector datos = new Vector() ;
        public SelecPlace() { }
        public void executeStatement(String query){
          try{
             con = DBManager.getConnection() ;
             sentencia = con.createStatement(rs.TYPE_SCROLL_INSENSITIVE,
                                                                          rs.CONCUR_UPDATABLE) ;
             String sql = "select * from Place where descripcion like %"+query+"%'";
              rs = sentencia.executeQuery(sql) ;
              rsmd = rs.getMetaData();
              int nroColumnas = rsmd.getColumnCount() ;
              nameColum = new String[nroColumnas] ;
              //obtengo los nombres de columnas en cache
               for(int colum = 0; colum < nroColumnas; columna++){
                    nameColum[colum] = rsmd.getColumnLabel(columna + 1) ;
               datos = new Vector();
                while(rs.next()){
                    Vector newRow = new Vector();
                    for(int i = 0; i < getColumnCount(); i++){
                    newRow.addElement(rs.getObject("place_ID"));
                    newRow.addElement(rs.getObject("description"));
                    datos.addElement(nuevaFila);
                fireTableChanged(null);
            }catch(SQLException e){
                System.err.println(e);
                e.printStackTrace(System.err);
                System.out.println("error in statement");
            }catch(ClassNotFoundException cnfe){
                System.err.println(cnfe);
        }Ok, this code me works and I obtain in this case the field description of the table Place
    Now my question is, how can I obtain the primary field of my table?
    I need this value of this field that in the base of information in a bigint, and to take it to the first class before mentioned, for that I am working with a data base related

    Certain duffymo and everyone!!, good I give you my scheme:
    And generalizing my question, I want to obtain the value of the primary key of a table in the database, I obtain more values of the same row, but I need the primary key, and you see one with the primary key I want to turn a Long and it to insert with code java in foreign clave in another table of the database
    Good of this form I believe that it would not be breaking the integrity relacional of the tables

  • Trying to install Acrobate 8 Standard on PC with Windows 7, 64 bit. During the installation I was asked to provide "File Adobe PDF.dll for Windows Vista. How can I obtain the required file?

    Trying to install Acrobate 8 Standard on PC with Windows 7, 64 bit. During the installation I was asked to provide "File Adobe PDF.dll for Windows Vista. How can I obtain the required file?

    Nothing in the Acrobat 8.x product family is compatible with Windows 7 (or any contemporary OS).
    The Acrobat 8.x product family passed into End of Support way back -- (November 2011).
    The current release of Acrobat (XI) is compatible in Windows 7.
    Be well...

  • How can I obtain the value of a database column in a JSP variable ?

    How can I obtain the value of a table column in a JSP variable?
    For example the <jbo:ShowValue datasource="cl" dataitem="Cont" ></jbo:ShowValue>
    I need to have it in a variable like this:
    <% String cnt=<jbo:ShowValue datasource="cl" dataitem="Cont" ></jbo:ShowValue>; %>
    But it is not workig this way.
    Please help me to obtain the value.
    I am using JDev RC2.
    Thanks.

    Try something like
    String cnt = c1.getRowSet().getCurrentRow().getAttribute("Cont").toString();
    -A
    How can I obtain the value of a table column in a JSP variable?
    For example the <jbo:ShowValue datasource="cl" dataitem="Cont" ></jbo:ShowValue>
    I need to have it in a variable like this:
    <% String cnt=<jbo:ShowValue datasource="cl" dataitem="Cont" ></jbo:ShowValue>; %>
    But it is not workig this way.
    Please help me to obtain the value.
    I am using JDev RC2.
    Thanks.

  • Hi,  I lost my serial number for PS Elements11 following computer crash. Os is W7. I have the cd installation disc but there is no serial number with it or in the envelope  ..  How can I obtain the serial number please?     Thanks

    I lost my seriel number for PS Elements 11 following computer crash. Os is W7
    Peter Jones Aug 27, 2014 5:36 AM   
    Hi,
    I lost my serial number for PS Elements 11 following computer crash. Os is W7. I have the cd installation disc but there is no serial number with it or in the envelope
    How can I obtain the serial number please?
    Thanks

    If you registered the software you should be able to find the serial number thru your Adobe account online.
    To locate the serial number:
    http://helpx.adobe.com/x-productkb/global/find-serial-number.html

  • How Can I obtain the tables of one schema and the record size???

    How Can I obtain the tables of one schema and the record size???
    Example:
    TableName Record Size
    Tabla1 12500
    Tabla2 7800
    Tabla3 2046

    This is not an OWB question, but you can obtain bda-type information on tables by using the system view dba_tables.
    Regards:
    Igor

  • How can I obtain the resources in jar?

    How can I obtain the resources in jar if the class that to want this resource is static?
    I don't succeed use like:
    getClass().getResourceAsStream("/" + name)
    because my class is static.
    Thaks

    You could do this
    new Object().getClass().getResourceAsStream("/" + name)
    or
    Object.class.getResourceAsStream("/" + name)

  • How can I obtain the web site template of the ''Imvelo Safari Lodges'' that appears on the Site of the day web page?

    How can I obtain the web site template of the ''Imvelo Safari Lodges'' that appears on the Site of the day web page?

    Hi Ginette,
    The site that you are referring to does not appear to be a template that you can get your hands on, however, I will suggest that you contact the owner via their contact us page and see what can be done.
    - Abhishek Maurya

  • How can I obtain the Pages app which I previously purchased from the App store for Snow Leopard? The only download now available is for Mountain Lion which my computer can't run. Thanks

    How can I obtain the Pages app which I previously purchased from the App store for Snow Leopard? The only download now available is for Mountain Lion which my computer can't run. Thanks

    Try Amazon but look for the iWork suite of software. It's only sold separately as Pages, Keynote, and Numbers from the App Store.

  • How can I move the ODI Work Repository from one server to another server?

    How can I move the ODI Work Repository from one server to another server?

    Hi,
    If you would like to move your source models, target models and project contents from Work repository 1 to another work repository.
    I.e. Dev. server to Prod Server.
    1. Firstly, replicate the master repository connections i.e. with same naming conventions manually
    2. Go to Dev. Server work repository -> File Tab -> Click on Export work repository (save it in a folder)
    3. After exporting, you can view the xml files in the folders.
    4. Now, Open the Prod. server and make sure you already replicated mas. rep. details.
    5. Now, right click on model and import source model in synonym mode insert_update (select source model from the folder where your xml file located)
    6. Similarily, import again target then Project.
    Now, check. It should work.
    Thank you.

  • I have about 800 more songs on my nano than itunes, due to a crash. How can I get the songs onto itunes from the ipod, or at least get the new music ive gotten since the crash onto my ipod without deleting all the other songs when it syncs?

    i have about 800 more songs on my nano than itunes, due to a crash. How can I get the songs onto itunes from the ipod, or at least get the new music ive gotten since the crash onto my ipod without deleting all the other songs when it syncs?

    It has always been very basic to always maintain a backup copy of your computer for just such an occasion.  Use your backup copy to put everything back.
    If you have failed to bakup, then you can transfer itunes purchases from an ipod: File>Transfer Purchases

  • Mail -- How can I change the default email account from which my messages go, without having to change it each time I draft a message?  It currently assumes an email account that I rarely use. Thanks.

    How can I change the default email account from which my messages go, without having to change it each time I draft a message?  It currently assumes an email account that I rarely use. Thanks.

    sorry, but I can't find the mail preference in the latest Yosemite OS. Do you know where I can find it?
    Thank you
    Don

  • HT2729 I have limited space on my new ipad. How can I limit the number of songs from my itunes on my imac from going to my ipad when I connect the two?

    I have limited space on my new ipad. How can I limit the number of songs from my itunes on my imac from going to my ipad when I connect the two?

    you can do this by keeping the external hard drive connected and doing the following
    -hold shift key down on computer while opening iTunes and a prompt will appear to choose a library
    -select choose library, iTunes should bring up your explorer windows where you can search for the external HD
    -after you find the external HD find the iTunes folder you just copied to it
    -after opening the iTunes folder look for the file that says iTunes library.itl or if you can't see that extenstion just look for a document looking thing in the iTunes folder that shows up as a database file
    -double click the database file and boom iTunes should load your library without having to copy it to the computer
    PS: do make sure that if you are going to do it this way, make sure that the external HD is connected at all times, because if you don't then you will get exclamation marks next to your iTunes songs
    double PS: if you are unsure how to find out if the iTunes library file is a database file just right click it and choose properties and under the type it should say database file
    hope this helps:)

  • How can I sync the calendar and contacts from my icloud account to the new icloud account we set for him.  I have already set up the Family connections.

    How can I sync the calendar and contacts from my icloud account to the new icloud account we set for my husband on his iPad and iPhone 5S?  I have already set up the Family connections but they are not syncing.
    Thanks.
    Jenny

    Oops my bad...I see that during my troubleshooting I inadvertently left Ringtones unchecked in iTunes.

Maybe you are looking for

  • Acrobat 9 transfer from older computer to newly purchased computer

    I am trying to transfer Acrobat 9, which I downloaded for the initial installation, to a new computer I just purchased. Adobe no longer has a link for downloading anything older than Acrobat 10. What would be the best way to transfer the application

  • Report Designer - Query with variable

    Hi! When testing the report designer, we have found an issue - it’s not possible to embedding queries with variables. We have found note https://websmp107.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=012006153200000232982006 that suggest a solutio

  • Is it possible to use google images in iphone5?

    The camera icon is missing.

  • IPad mini stuck on "plug in itunes" screen after ios7 update

    I planned on updating to ios7 through wifi, but now it's asking me to plug into itunes (black screen with itunes icon and plug pointing towards it). I can't plug into itunes because I'm on an laptop with 10.5.8 on it (so itunes hasn't been updated in

  • Very Very Slow Macbook Pro Yosemite 10.10

    I have to say this is the slowest my Mac has been on a long time. Because the internal drive is toast right now I'm running the Mac off an external drive through a Firewire cable. Not ideal. But after I upgraded to the 10.10 patch - my machine has be