Unit gain setting for DAQ6063E in VB6

I have written a simple application in VB6 to capture analog data on channel 0. I wish to use a gain setting of 1, however if I set the GAIN parameter to 1 for functions such as DAQ_Start I find that the captured voltages are only half the known applied voltage. The correct voltage is recorded if I use a GAIN setting of -1, supposedly a gain of 0.5. I am using DAQ_VScale to scale the binary data and I'm sure all other parameters are fine. Are the datasheets just wrong? Are there any problems using VB which doesn't support unsigned variables? Thanks for your help.

All the documentation I have read online and about NI-DAQ states that a gain setting of 0.5 results after entering -1 as a parameter not 1. You need to refer to the documentation for your particular card and its supported gain settings for each measurement type.
In order to determine if you has a hardware fault, visit http://www.ni.com/support/selftest/selftest.htm in order to test all of your cards gain settings. This utility also performs a self calibration just in case your device needs adjustment prior to testing.
Hope this helps

Similar Messages

  • AffineTransform - Is there a way to glean units of measurement for pixels?

    Assuming I get a pointer to a java.awt.geom.AffineTransform from:
    java.awt.geom.AffineTransform CurTransform = ((java.awt.Graphics2D)this.getMainFrame().getGraphics()).getDeviceConfiguration().getDefaultTransform();
    Assuming I've gotten the right AffineTransform... How do I get, or can I get, the scaling factor between horizontal pixels and vertical pixels for the current screen (or whatever device). In other words I want to place components... buttons, textboxes, etc. in a dialog box so that they are "square". i.e. 10 units in x look on the screen equal to 10 units in y.
    Once I know what the "square pixel scale factor" is I can then worry about making the units relative to whatever font size.
    This question is usually posed as "How do I get dialog units?". I haven't done that because of the "legacy problems" associated with what most people think dialog units come from. It is true that way back when dialog units were derived from a textmetrics ONLY, but unless I'm mistaken, Charles Petzold, was describing something that could only be gotten that way at that time (circa 1990).... The width of the fixed system font by the height of the fixed system font ended up being as close to a unit that was 8 units high looked like 8 units wide in the screen. The object of the exercise is to most importantly get units of measurement that translate to pixels and look "square" on the screen. Secondarily, but not unimportant, is to be a unit that has some relevance to the current font size. It's been a long time dialog units in windows maybe a 2:1 ratio. I made my own cDialogUnits so long ago I can't remember what the "standard windows" dialog unit is. In windows I can very easily get the screen dpi x and y, I think it's a devicecontext but Java's "devicecontext" only gives one dimension of the dpi?
    Also this query is mute if I was "painting" on a device. The units are for pixels NOT points and are (mostly) for placing controls on the screen. I am aware of and have used the various addPreferredGap and setAutoCreateContainerGaps available in a GroupLayout... Great gizmos but, still dialog units would be very handy for setting the prefered width of a textbox/label with too much text. (Note: dialog units are NOT for calculating the height of text... )
    I did search the sun forums for an answer first... It might be here I just didn't find it. It seems to be a question either avoided like the plague or considered a dumb question in Java.

    This might be OK?
    BE AWARE!! This is NOT a painting gizmo. It is used in conjunction with the Layout gizmos. It drives me crazy that the Layout gizmos have "default" gaps and spacers of some kind and yet ALL the tutorials immediately and unabashedly trash any "device independence" by mixing in pixel measurements... Not to mention I don't like the size of the gaps and spacing provided with the Layout gizmos anyway.
    Does anyone know if this will fail? I am aware of the caveats provided... "Information about the device is only as good as has been provided." However if there is bad information in the device info I doubt using these units will do anything much different that the end user experiences with the errant device anyway.
    AGAIN... This is NOT a painting gizmo. It's a helper when Laying out controls usually in conjunction with a Layout and only for spaces and gaps.
    public class DialogUnits
        private double m_x;
        private double m_y;
        public DialogUnits( java.awt.Graphics2D g2 )
            java.awt.GraphicsConfiguration gc = g2.getDeviceConfiguration();
            java.awt.geom.AffineTransform at = gc.getDefaultTransform();
            at.concatenate( gc.getNormalizingTransform() );
            double fs = g2.getFont().getSize2D();
            m_x = at.getScaleX() * fs;
            m_y = at.getScaleY() * fs;
        public int CalcX( double units )
            return (int)Math.round( ( units * m_x ) / 8.0 );
        public int CalcY( double units )
            return (int)Math.round( ( units * m_y ) / 8.0 );
        public int ContainerGapX()
            return this.CalcX( 8.0 );
        public int ContainerGapY()
            return this.CalcY( 8.0 );
        public int FontSize2dX( int crude_columns )
            return (int)Math.round( crude_columns * m_x );
        public int FontSize2dY( int crude_rows )
            return (int)Math.round( crude_line_height * m_y );
        public int X( int units )
            return this.CalcX( units );
        public int Y( int units )
            return this.CalcY( units );
        } // end of class DialogUnits

  • Unit of measure for calculation type C must be completed

    Hi All
    When releasing some contracts in SRM , we are getting the error message as above.
    The error message doesn't specify any particular part and the contract has more than 3000 parts.
    There are no conditions at header or item level.
    There is no Target quantity also. Just a Target value for the contract and prices for individual items are maintained.
    We are using extended classic scenario and the contract is manually created in SRM.
    I have checked the OSS notes for this error, but they are mostly for contract creation in Bidding and not for a manually created SRM contract.
    We checked the UOMs for all the contract parts with the UOMs ( Base and Purchasing) in ECC Material Master and they are OK.
    In our scenario , MM changes in ECC are replicated to SRM in real time
    Any pointers towards pin pointing the error will be rewarded!
    Regards
    Kedar

    Hi,
    We encountered this error message and resolved the problem by applying the following 3 SAP Notes:
    a)     Note #1022928 - Unit of Measure for Calculation Type C Must Be Completed
            (Previously Mentioned)
    b)     Note #1702484 - Unit of Measure for Calculation Type C Must Be Completed
    c)     Note #1517648 - Default Conditions Added for Product Category Item Type
    Although the contract required is similar to a "Limit" item, but had to be placed for bid, then the RFX PS Item Type was set to "Service" to receive the bid responses.  After accepting the bid response, then we created a contract from the bid response.  Since it was to be a "Limit" type contract, then we immediately removed the data from the following fields:
    Remove the Quantity
    Remove the Unit of Measure
    Remove the Price
    Remove the Price Condition
    After removing the values from these fields, then we switched the PS Item Type from "Service" to "Product Category".  We added the Guaranteed Minimum and account assignment data to encumber the funds.  We were able to "Release" the contract successfully.
    Bob Zinsmeister

  • Units field MEINS for field TOTQTY of DataSource  ... is hidden

    hI,
    I am getting "Units field MEINS for field TOTQTY of DataSource ZDS_BEALO is hidden
        Message no. R8147 "
    error message while creating the generic extration using fuction module...
    Please help to slove this

    I solved this problem myself by writing ABAP program.
    REPORT  ZTEST.
    TABLES ROOSFIELD.
    DATA: ITAB LIKE ROOSFIELD OCCURS 0 WITH HEADER LINE.
    SELECT * FROM ROOSFIELD INTO TABLE ITAB
                           WHERE OLTPSOURCE = 'DATASOURCE_NAME'
                                 AND FIELD = 'WAERS'.
    *update ROOSFIELD set SELECTION = 'X'.
    *ENDSELECT.
    Create a report program and update the value of field "SELECTION" as above.
    Then try to make changes in RSO2 as it needed.
    Let me know if you need my help..
    Thanks,
    Hanuma

  • Customer unit coming in for repair

    Hello All:
    I am hoping I am posting this in the right forum So I am posting in a few places....I am in desperate need of help...we are at our year end and have an issue that I need to clear up badly.  We are using ECC 6.0
    Scenerio
    When we perform an inbound delivery on a customer unit coming in for repair, it automatically creates the service order in (IW31).  The technician then releases it and repairs the unit.  At times he may need material from the stock room for the repair.  He adds this to his service order and it creates an automatic reservation.  The stockroom issues the material in MIGO to the service order.  If the technician decides he does not need the material he will then take it back to the stockroom for them to cancel the goods issue to the service order.  We learned that the stockroom when doing the cancellation was cancelling the document to the order and not cancelling to the material document number....
    Problem
    When cancelling to the order it was putting this in a different GL account.
    Goods issue to GL account 5XXXXXX
    Cancellation to GL account 6XXXXXXX
    So when we were doing the DP90 (billing request) the GL account number 6XXXXXX was popping up saying that the cost element is without combination odf the ZProfile (ODP1).  The set up of the ODp1 is not the problem as we are not maintaining any of the cost elements there.
    We tried to reverse the cancellation that was done to the order and cancel to the material document number so that it grabbed the correct GL account number...however the service order still shows the account number 6XXXXXXX in the actual costs...and when I try to run the DP90 again I get the same error.....I am not sure how the cost center is being derived in the service order for this as the technicians do not enter a cost center/element at all.  They do chnage the account indicator at times but that is it.
    Please give me any guidance as where to look so I can get this fixed. 
    I have tried to get with consultants but they are at a lost.

    Hi JP and thanks for your response.
    I am understanding what you are saying however when I am looking at the OBYC and OPUU I see different things..
    First to start my valuation class is 7901
    OPUU does not appear to have the profile set up for the service orders...I am only seeing two:
    T&M-Fixd-R&D-Exp NW Profile w/Act. Asgmt
    and
    Capital NW Profile w/Act. Asgmt
    In the OBYC transaction I do see the 5XXXXX with the GBB general modifier VBR only
    In the OBYC transaction I do not see the 5XXXXX or the 6XXXXX  with the BSX the valuation class 7901 starts with 13XXXX
    Any more help?  Is this a finance issue?

  • CRMD_BUS2000108 - organizational unit and attributes for org. unit

    Hi all!
    As I'm customizing Lead creation (and in a second step lead generation)
    I would like to receive tips about "selection of organizational unit and attributes for org. unit".
    I expected that, by entering a BP number of a prospect or sold-to party, the organizational unit and its attributes would be displayed automatically on the tab "organization".
    This is not the case. When I start the lead creation, there is a pop-up screen inviting me to choose the organizational unit. afterwards a pop-up screen for the attributes of the org unit. Only after setting a flag in both pop-ups, I see the actual "lead" transaction. When I enter a BP number, the sales assistant and sales rep are found automatically.
    Could anybody please explain how to change the customizing?
    I would like to see the lead transaction (create) first, enter a bp number and than have the org unit and its attributes, the sales rep and sales assistant found automatically.
    Any usefull answer (would make my day ), will be rewarded.
    Thank you very much for your suggestions and time in advance!
    I. Van Acker

    hi
    this is happening because you have not done the org data determination in your transaction,just go to SPRO and there in org data determination ,you have many standard ORGMAN rules available which you can use which will pick the data according to the user ,BPs etc.
    it will enable you to first give BP and then the org data will be driven automatically from the system according to the rule in org data determination.
    so first go and use rule ,try using rule ORGMAN_12
    then attach this rule to the org data profile and then add this org data profile to the transaction in basic settings in transaction where you have defined your lead transaction.
    it will solve your purpose
    best regards
    ashish

  • What is the dot gain setting in the US Web Coated Swop v2 profile?

    Hey guys,
    This might seem like a bit of a n00b question, but I really can't find this info any which way I Google it.
    What is the default dot gain setting in the US Web Coated SWOP v2 profile?
    Allow me to explain my dilema:
    My printer told me to use the US Web Coated SWOP v2 this profile for a catalog we're printing. 4/4 on 100# gloss book stock. However I've used that profile in the past and the prints came out darker than I expected them to. I don't have a high enough quality printer to be able to test this in-house, but I'm pretty sure my monitor is not overly bright or set to an overly high contrast level. They indicated to me that their standard dot gain is about 10-15%
    I assumed the SWOP v2 profile accounted for 20% dot gain as that appears to be the default for many of the other color settings, but I've never known for sure. I'm trying to decide if I need to use a custom profile with a higher dot gain setting.
    Thanks for any help!
    Kenzier

    Hello Kenzier,
    the ICC-profile US Web Coated SWOP contains a tone reproduction curve  (TRC)
    which cannot be characterized accurately by Dot Gain or Gamma.
    For the entry in Color Settings > Gray we can proceed as follows:
    Color Settings > Gray > Load gray > (click on) USWebCoatedSWOP.icc > Save gray
    This saves a 'Black-ink-profile' with a similar name, which replaces Dot Gain
    or Gamma settings.
    This profile can be interpreted by the program ICC Profile Inspector (free):
    Here we have kTRC (black ink tone reproduction curve), the red line.
    With the auxiliary black diagonal one can read the effective  dot gain 20%,
    the blue line.
    The printer should tell you a profile which is representative (a good approximation)
    for his actual process.
    Best regards --Gernot Hoffmann

  • Lanovo ix4 300d and european character set for samba shares

    Hi,
    I am installing a couple of IX4-300d at a client site, struggling to set and fix the samba character set for the Windows shares. Here in Italy everyone is used to put western european characters into filenames (for example è ò ° €) but the NAS acts wierdly when it finds such caracters in folder names and file names.
    As you know samba gives the possibility to declare dos charset= ISO8859-1 and unix charset= ISO8859-1 in the smb.conf file but the option is not present in the IX4 setup pages.
    Is there an easy way to circumvent the problem and fix this option? As it is now the machine is fearly useless, at least if you need to migrate files and folder from a server or storage with ISO8859 charset already applied.
    thanks a lot
    np
    Solved!
    Go to Solution.

    This issue has been raised on all iomega drives since day 1. although 'documented' it is still shame, that units sold to 'r-o-w' means rest-of-world, outside US, are stuckto Aa-Zz09 basically wheras client systems ( windows, linux, ios ) don't care and take what they are supposed to do.
    Take it or leave it. ( I mean, take another vendor), I do not believe someone ever has taken that seriously or will do it......
    Various PCs / Laptops ( sorry I still really love Dell and Fujitsu ;-))
    Supporting Customers ix2s and ix4s -- Love Networking ( not only technically ).
    I am not a Lenovo Employee.
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"!

  • Unit of Measure for Cases issue

    Hello all,
    We are working with APO as the source system. In one of extractions we are getting cases information and the unit maintained there is CV. Now when i am trying to load the data into BW it is saying that for CV SID generation problem. When i checked the T006 table there when I give CV in the unit of measurement and display the content it gives me a record with CS. When i check the SPRO setting for unit of measurement, I found there is an entry wherein Unit is CS, Commercial Unit is CV. Now if i want to resolve this issue what is procedure i need to follow.
    Regards
    Vijay

    Try reload units of measure from source system and do correspondin cheks for 0UNIT in RSRV transaction

  • High (Maximum) Security Setting for FIOS Firewall

    If you set the maximum security setting on the Verizon FIOS Firewall then whenever Verizon decides to swap its IP's you are screwed; the unit will not get the new IP.
    To compensage for the maximum settings I have enable all of the verizon unit (SBU's) to have unrestricted access aka ANY but this does not do the trick.
    Verizon in its ultimate wisdom has not bothered to document anywhere what are the minimum outbould settings should be that would enable this communication in the High (Maximum) security mode.
    Does anyone from Verizon read this stuff?

    So, I'm pretty much convinced now that the problem with low-quality LR previews seems to be mostly isolated to the previews that LR generates after you make edits in the 'Develop' module.
    Upon first import, this image looked fine in the 'Library' & 'Slideshow' modules. After making some edits (color, tone, etc.) in the 'Develop' module, I ended up getting this hideous preview in the 'Library' & 'Slideshow' modules:
    http://web.mac.com/rishisanyal/Lightroom/07-0310_BandingBlocking.jpg
    You people with LCDs will be able to see the JPEG artifacts better than those with CRTs, since LCDs tend to be sharper.
    So, the obvious question is this:
    Does LR, when *re-generating* previews for edited images, ignore the quality-setting for JPEG previews (which I have set to 'high')??

  • WMM setting for Wi-Fi

    Does anyone know of any issues with Wi-Fi on BlackBerry handsets when using WMM?
    I have an 8320 and an 8900. I've tried both on two different routers, a home D-Link 625 and a commercial unit from Colubris. In each case, the phone either won't connect to the router (8320), or it will establish a connection, but will not use the Wi-Fi connection for data, browsing, or UMA voice (8900).
    In both cases, the remedy is to simply disable WMM at the router, and everything works as expected.
    I've read in all the specs that these units support WMM and WMM power-save, but my experience says otherwise.
    Has anyone else had a similar experience?
    CB

    @John_Clark, I was originaly posted here http://supportforums.blackberry.com/t5/BlackBerry-​Curve/WMM-setting-for-Wi-Fi/td-p/139707
    Click if you want to Thank someone. If Problem is resolved, so that others can make use of it.

  • Assignment of handling unit to materials for TO

    Hello,
    Can anyone tell me how to assign handling unit to materials for transfer orders?
    Thanks.
    Regards,
    Patrick

    Hi,
    Try this SPRO>Master Data>Business Partner>Integration Business Partner>Organization Management --->Set Up Integration with Organizational Management.
    Regards
    GK.

  • LOW Gain Antenna for WRT54G

    Does anyone know if they make a low gain antenna for a WRT54G wireless router?
    I have used the wireless router for over a year with any problems.  Suddenly the wireless quit.  Bought a new WRT54G but had the same problem.  Hardwired connection works fine.  Discovered that a nieghbor got a wireless system.  Tried all 11 channels but wireless still quits working when it sees the other network.  Tried 3 different laptops so I know its not the PC card.  Want to try a lower gain antenna so my router doesn't see the neighbors. 

    What is the version of your WRT54G?    It is unlikely that a weaker signal from your router will help your problem.
    A more likely explanation for your problem is that the wireless adapter in your computer is getting "drowned" by your neighbor's signal.  A high gain antenna on your router would help your router to overcome the effects from your neighbors.
    There are several other things you can do to try to improve your wireless connection:
    First of all, give your network a unique SSID. Do not use "linksys". If you are using "linksys" you may be trying to connect to your neighbor's router. Also set "SSID Broadcast" to "enabled". This will help your computer find and lock on to your router's signal.
    Poor wireless connections are often caused by radio interference from other 2.4 GHz devices. This includes wireless phones, wireless baby monitors, microwave ovens, wireless mice and keyboards, wireless speakers, and your neighbor's wireless network. In rare cases, Bluetooth devices can interfere. Even some 5+ GHz phones also use the 2.4 Ghz band. Unplug these devices, and see if that corrects your problem.
    In your router, try a different channel. There are 11 channels in the 2.4 GHz band. Usually channel 1, 6, or 11 works best. Check out your neighbors, and see what channel they are using. Because the channels overlap one another, try to stay at least +5 or -5 channels from your strongest neighbors. For example, if you have a strong neighbor on channel 9, try any channel 1 through 4.
    Also, try to locate the router about 4 to 6 feet above the floor, in an open area. Do not locate it behind your monitor or near other computer equipment or speakers. The antenna should be vertical.
    Also, in the computer, go to your wireless software, and go to "Preferred Networks" (sometimes called "Profiles" ). There are probably a few networks listed. Delete any network named "linksys". Also delete any network that you do not recognize, or that you no longer use. If your current network is not listed, enter its info (SSID, encryption (if any), and key (if any) ). Then select your current network and make it your default network, and set it to automatic login. You may need to go to "settings" to do this, or you may need to right click on your network and select "Properties" or "settings".
    If the above does not fix your problem, download and install the latest driver for your wireless card.
    If you still have trouble, download and install the latest firmware for your router. After a firmware upgrade, you must reset the router to factory defaults, then setup the router again from scratch. If you saved a router configuration file, DO NOT use it.
    Hope this helps.

  • Using MIO-16XE-10, I am trying to relate per gain setting the resultant actual voltage range.

    I have tried to find the conversion table for gain setting and resultant voltage. I am a programmer, and am having trouble understanding the relationship, or better yet, an algorithm, so I can programmably set a gain, based on the current voltage returned after a measurement. The idea is, to get the most reliable resistance measurement by assuring that the current measurement taken with a specific gain setting, is not taken on the lower 1% of that gain.
    bookieb

    Hi Bill:
    Thanks for contacting National Instruments.
    The best way to use the most appropriate gain is to set the voltage range of the incoming signal and let the NI-DAQ driver choose the best gain to apply for that range.
    The DAQ card has some predefined gain settings which the NI-DAQ driver selects from depending on the input limits.
    To find out what input ranges correspond to what gain, please refer to Appendix A Specifications of the E Series User Manual. Table on page A-2 shows the relationship between the input signal ranges and the channel gain that the NI-DAQ driver chooses.
    I hope this helps. Please do not hesitate to to contact me back if you need additional information.
    Re
    gards,
    Bharat S
    Applications Engineer
    National Instruments
    Penny

  • Units field WAERS for field NAVALUE  is hidden for DataSource ..

    Hi,
    I am trying to change the DataSource but getting the error "Units field WAERS for field NAVALUE  is hidden for DataSource ..".
    It is not allowing me to get the field list to change after that.
    Can anyone throw somelight on this issue please..
    Thanks,
    Hans

    I solved this problem myself by writing ABAP program.
    REPORT  ZTEST.
    TABLES ROOSFIELD.
    DATA: ITAB LIKE ROOSFIELD OCCURS 0 WITH HEADER LINE.
    SELECT * FROM ROOSFIELD INTO TABLE ITAB
                           WHERE OLTPSOURCE = 'DATASOURCE_NAME'
                                 AND FIELD = 'WAERS'.
    *update ROOSFIELD set SELECTION = 'X'.
    *ENDSELECT.
    Create a report program and update the value of field "SELECTION" as above.
    Then try to make changes in RSO2 as it needed.
    Let me know if you need my help..
    Thanks,
    Hanuma

Maybe you are looking for

  • 2 LDAP users with same Tel Number

    if i dial from jabber . which display name will it detect?

  • Replacing Type and Creator in InDesign Mac

    Hello Everyone: Our plant uses a process that FTPs InDesign files to Unix servers for storage and then FTPs them back down to local Macs for work. In the process the file is stripped of filetype and creator. I have been tasked with writing a module t

  • Is a save step neccessary in a Process Chain when loading hierarchies with an ABAP program?

    We are loading hierarchies using the ABAP routine found here in the SDN.  We have come accross the issue where the process chain loads successfully, but does not update the hierarchy (this problem is documented in the SDN).  It is not a consistent is

  • Taking family macbook to college, can I restore it to factory settings?

    My mom has a macbook air with mountain lion that the whole famly uses (1.86 GHz Intel Core 2 Duo, 4 GB 1067 MHz DDR3). We all have a login with documents, files etc stored on it. To save money I'm going to take it to college instead of buying a new o

  • Progress Indicator

    I have an infinite progress indicator for lengthy reports.  It works well for loading of datasets and then displaying the report. However I have one dataset that is quite large, and I am trying to determine when the report is displayed. I set the Dat