How to specify "single ended" or "different​ial" data acquiring in NIDAQmx c++

Dear all,
i wrote a program in VC++ which acquires some analog voltage channels using NIDAQmx. By means of the "DAQmxCreateAIVoltageChan()" function it works properly, but I've faced a question:
When I measure a sine wave as a input channel whith diffrential terminals (pins) on NI-Device, there is no problem but if I connect the input signal in single ended form (connect input signal to each single terminal and connect GND of NI-Device and Signal generator together), there is a irrigular and alternative offset (DC value) in aqcuiered data that shows there is an error in connection of GND's. (I'm sure about function generators)
Is there any specific function to assign exactly that input data should be measured in differential or single ended form?  I mean, should I write seperate codes in C++, if I want to measure input signal in both forms of differential and single ended or does the mentioned function satisfy both needs (when the answer is positive wherefrom does this fault emerge)?
Thanks a lot for your helpfully replies in advance,
sincerely yours,
Mohammad Harati

Hi Harati,
I'm not sure what your question is, but I have some questions too:
1) Which device are you using?
2) Did you connect the AI GND pin (in single ended)?
3) As you called DAQmxCreateAIVoltageChan(), what parameter did you set for terminalConfig in eiter cases?
Here is the documentation for DAQmxCreateAIVoltageChan()
http://zone.ni.com/reference/en-XX/help/370471W-01​/daqmxcfunc/daqmxcreateaivoltagechan/
This whitepaper may also help you:
http://www.ni.com/white-paper/7113/en/
Kind regards
Heinz

Similar Messages

  • Labview How to specify 1d array of clusters as data types for variant to data

    Hi, I'm new to labview. Can anyone tell me how to specify 1d array of clusters as data types for variant to data?

    First of all, you should be sure that there is such a data type within the variant; otherwise, you will run into errors.
    I recommend you to create the cluster and create a type definition from it. Then drop an array shell from the array palette and drop the cluster type into that array.
    Connect that constant to the data type input of the Variant To Data function.
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • How to specify Single in memory instance of a jar in an ear

    i have an ear, containing 3 wars and 2 jars. these jar files are utility jar. and one of them has business logic lets say it application.jar. All the three wars use this jar. When ever a war file uses this jar, it gets its seperate memory instance. i want to make all the three wars use same single in memory instance of application.jar. but i dont know how to specify it. i am using websphere6.1. it will be great if someone can help me. thnx
    Ehtsham

    It's a pity !
    My problem is I tryed to save a FXG file containing images into a swf that will be able to change images sources dynamically.
    To do that, I create an empty FLA document (using JSFL), I import the FXG file into the scene.
    If I export my file into SWF in which I have injected this ActionSctipt :
    for (var x = 0; x < numChildren; x++)
      var e = getChildAt(x);
      trace(e + " " + e.name +" is "+getQualifiedClassName(e));
    I have this trace : [object MovieClip] _IMG_ is flash.display::MovieClip
    I think I cannot change the source of a MovieClip using ActionScript. Maybe I'm wrong ?
    So I would like to replace these objects (using JSFL) with UILoaders and setting the same x,y,width,height,source and then I will be able to change their sources using ActionScript.

  • How to connect single ended connection​s?

    I am new in this field. I am trying to accquire single ended data on
    single channel using the following configuration(see fig A and fig B in the
    attached figure) . It works all right when i take input from signal
    generator. please notice specially the power/signal connections. I have
    chosen NRSE settings.
    For my application I have to to test the same settings when the input
    signal is taken from 4* 1.5 V pencil cells ( see figure B). In this setting
    however it does not work at all. I have again chosen NRSE settings. What is
    the problem? What is NRSE and RSE? What is the difference?What should I
    choose in this case?
    Can anybody help?
    [Attachment diagram.doc, see below]
    [See first answer for additio
    nal information]

    [Attachment(s) for question]
    Attachments:
    diagram.doc ‏73 KB

  • How to specify the sheet name while writing data into excel

    _Workbook workbook = (_Workbook)(excelapp.Workbooks.Open(@"E:\ScriptTest\c.xlsx"));
    workbook.Sheets.Add();
    _Worksheet worksheet = (_Worksheet)workbook.ActiveSheet;
    Line 1 Selection of excel sheet
    Line 2:I am intersted in Adding the new sheet
    Line3:Selection of Sheet
    I want to select may be sheet 2 or sheet 3 like that
    How to specify ?
    And instead of just Add() can we specify name of sheet to be created also If yes how ?

    Hi,
    Please try the sample code:
    Dim aSheet As Worksheet
    Set aSheet = Worksheets.Add()
    aSheet.Name = "myWorksheet"
    Worksheets("myWorksheet").Activate
    http://msdn.microsoft.com/en-us/library/office/ff821537(v=office.15).aspx
    PS:
    This forum is for general questions and feedback related to Microsoft Excel, if you have more Excel develop issue, I recommend you post to MSDN forum
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=exceldev&filter=alltypes&sort=lastpostdesc
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • How to use single button for different operations

    Hi
    I am using one button with image having 4 controls like left right up and down...
    How to use the single button for 4 different operations??
    Is there any way of defining hotspots on single button to do four different operations...
    Please have a look at the attached image, u can understand my problem better...
    Please let me know ASAP...
    Thanks and Regards
    Aruna.S.N.

    Here ya go:
    http://code.google.com/p/flexlib/wiki/ComponentList
    If this post answers your question or helps, please mark it as such.

  • How to receive single item for different concentration in Inventory

    If we are receiving different concentrated item in our inventory from supplier then how can we maintain same product with different concentration in OPM?

    Hi Paul,
    Thanks for the reply.
    Isnt there any user exit, we can use for this.
    If there is no user exit available, can you give some more input on custom development.
    This is a highly critical requirement for us right now.
    Thanks in advance.
    Regards,
    Piyush

  • How do I set the PXI 6031E for single ended or differential input?

    6030/1/2/3 E manual states that the 6031 and 33E has software selectable single ended or differential input per channel.  How do I set it in labview?  I have been unable to locate the property.

    Are you using traditional daq or DAQmx??
    look at this VI  to understand how to select this feature for both Versions of DAQ
    any doubts, do get back
    Regards
    Dev
    Message Edited by devchander on 03-08-2006 10:30 PM
    Attachments:
    mode.vi ‏23 KB

  • So how to specify different answer file for different install images in WDS snap-in?

    hello
    in WDS snap-in, in properties on server name, on client tab, we can define an answer file for unattended windows installation on WDS clients.
    my question is, maybe we have added multiple images in WDS snap-in (win xp image, win 7 , win 2008,...)
    now this one answer file applies to all of them ?
    so how to specify different answer file for different install images in WDS snap-in?
    thanks in advanced 

    Under the "Client" tab of WDS, you should only use an answer-file with settings relevant for the installation. This would be credentials for the WDS deployment share, international settings used during the setup and possibly also destination drive
    details (if you want the installation to take care of partitioning the disk etc). The settings relevant for unattend-files used under "Client" would only be of those in phase 1 (WinPE).
    However, if you would like to have specific unattend file for every installation, e.g. Win7, Server 2008, Win 8 etc, you can browse to the image under "Install Images" under the image Groups. There you can select properties for every image and
    have a personal unattend-file.
    hi Joel
    very cool. thanks a lot, that really helped me.
    best regards

  • How to specify different horizontal restore & collapse icon for af|panelSplitter using Skinning based on Style class or position?

    Hello,
    I am trying to provide different horizontal restore & collapse icon for af|panelSplitter using Skinning based on Style class or position. I have 2 af:panelSplitter with orientation="horizontal" - One with positionedFromEnd="true" one with positionedFromEnd="false". I want to specify the horizontal collapse and restore icon using Skinning. I want specify different icons based on positionedFromEnd. When I specify icons they are appearing for both splitters. I gave 2 different styleClass to these splitter but it is not taking them in account,
    JSPX Page -
    <af:panelSplitter orientation="horizontal" splitterPosition="196" positionedFromEnd="false" id="pnlSplitterLeft" collapsed="false" styleClass="panelSplitterLeftClass">
      <f:facet name="first">
      <!-- Content of First Facets -->
      </f:facet>
      <f:facet name="second">
      <af:panelSplitter orientation="horizontal" splitterPosition="196" positionedFromEnd="true" id="pnlSplitterRight" collapsed="false" styleClass="panelSplitterRighClass">
      <f:facet name="first">
      <!-- Content of First Facets -->
      </f:facet>
      <f:facet name="second">
      <!-- Content of First Facets -->
      </f:facet>
      </af:panelSplitter>
      </f:facet>
    </af:panelSplitter>
    CSS Skinn
    af|panelSplitter::horizontal-restore-icon {
        width: 10px;
        height: 55px ;
        content : url("/skins/AppSkin/Left_Open.gif");
    af|panelSplitter::horizontal-collapse-icon {
        width: 10px;
        height: 55px ;
        content : url("/skins/AppSkin/Left_Close.gif");
    af|panelSplitter.panelSplitterLeftClass::horizontal-restore-icon {
        width: 10px;
        height: 55px ;
        content : url("/skins/AppSkin/Left_Open.gif");
    af|panelSplitter.panelSplitterLeftClass::horizontal-collapse-icon {
        width: 10px;
        height: 55px ;
        content : url("/skins/AppSkin/Left_Close.gif");
    af|panelSplitter.panelSplitterRighClass::horizontal-restore-icon {
        width: 10px;
        height: 55px ;
        content : url("/skins/AppSkin/Right_Open.gif");
    af|panelSplitter.panelSplitterRighClass::horizontal-collapse-icon {
        width: 10px;
        height: 55px ;
        content : url("/skins/AppSkin/Right_Close.gif");
    It is always showing Left_Open.gif and Left_Close.gif for both splitters. But I want different image.
    How to specify different horizontal restore & collapse icon for af|panelSplitter using Skinning based on Style class or position?
    - Sujay

    CSS attribute selectors are what you are talking about, but binding the selector with EL is a more-common approach. Using selectors like this require you to ensure browser support.
    af|panelSplitter.panelSplitterRighClass::horizontal-collapse-icon [positionedFromEnd=true]

  • How to make a single payment for different open  items with same due date

    Hi,
    I have created a payment method  and selected "Payment per due day " option in payment method company code settings.
    Even I have selected that option, Payment will not happen grouping for the items with same due date
    for ex : I have two open items with one due date and another open item with another due date so when I am trying performing F110 system should make a single payment for the item with same due date and seperate payment for another item.
    But system making single payment for all items
    Could you please suggest anything how to make a seperate payment with due date.
    Regards
    VK GUPTA

    Hi,
    Please check Vendor Master data: FK02 ->company code data -> Payment transaction accounting: unflag 'individual payment'.
    Make a test and let me know if it's okay.
    regards

  • I know how to link a button to a start slide, but how do I specify an end slide?

    At work, they've asked me to create an ipad app in keynote that acts like a web page. I learned keynote today, and certainly not all of it. They want four separate click-through image galleries, with buttons represented by text, that link to four sets of slides. They are under the impression that grouping each set of slides and then linking each title to a specific start slide (the first in each respective group) will accomplish this, but it's not quite working. I need to know if there's a way to also specify an end slide for each button/gallery, because they're starting at the correct slide but then going all the way through to the end of the slides I've uploaded. Is this even possible?
    Thank you,
    Lais

    If you specify that the presentation only uses hyperlinks (doable with either KN 5.3 or 6.2), you can add navigation arrows or other shapes to each slide that contain hyperkinks to the next slide you want the user to see. So the navigation shape on last slide in each group would link back to the first slide. If you don't want to use arrows or anything else that partially covers the image, you can use shapes without fills for the hyperlinks. That way, tapping anywhere on the slide will activate the link.

  • How to create a report with different page sizes

    Hi,
    I would like to create a report with different page sizes, it's possible to do it with diadem?
    When I change the layout parameters, changes afect to all sheets...
    Is there a way to change page size individually for each sheet?
    Thanks in advance.
    Marc

    Hi Marc,
    You can use the DocStart and DocEnd commands along with the PicPrint command to spool multiple print commands to the same output PDF file using the direct printer approach.  This should enable you to programmatically specify the page size differently for each sheet that you add to the print job.
    ' Print PDF Page by Page.VBS
    OPTION EXPLICIT
    Dim i, Path, OldPrintName
    Path = AutoActPath & "2D Stacked"
    Call DataDelAll
    Call DataFileLoad(Path & ".TDM")
    PDFFileName = Path & " Page by Page.pdf"
    IF FileExist(PDFFileName) THEN Call FileDelete(PDFFileName)
    OldPrintName = PrintName
    PrintName = "winspool,DIAdem PDF Export,LPT1:" ' Set to PDF printer
    PDFResolution = "72 DPI" ' "2400 DPI" , "default"
    PDFOptimization = TRUE
    PDFFontsEmbedded = FALSE
    PDFJPGCompressed = "high"
    PrintOrient = "landscape" ' orient paper
    Call PrintMaxScale("GRAPH") ' auto-max, see alternative margin setting variables below
    PrintLeftMarg = 0.181
    PrintTopMarg = 0.181
    PrintWidth = 10.67
    'PrintHeigth = 7 (read-only)
    Call WndShow("REPORT")
    Call DocStart ' Begin multi-page document/print job
    FOR i = 1 TO 4
    Call PicLoad(Path & ".TDR")
    Call GraphSheetNGet(1)
    Call GraphSheetRename(GraphSheetName, "Page " & i)
    Call PicUpdate
    Call PicPrint("WinPrint") ' Add a page to be printed
    NEXT ' i
    Call DocEnd ' End multi-page document/print job
    PrintName = OldPrintName
    Call ExtProgram(PDFFileName)
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • How to specify -preview when launching via AppleScript

    I have an InDesign Server CS5.5.I have a shell script that waits for xml files to be placed into a certain directory on the server. When it sees a file in the folder it launches an applescript that controls InDesign Server. I need to know how to specify the -preview option for the InDesign Server binary so the files generated by the server will have previews when they are opened in InDesign client. The apple scripts look like this:
    tell application "InDesign Server"
         -- do some stuff
    end tell
    Where/how would I specify the -preview option. I see nothing referring to the -preview option in the Library for indesign.

    There's two ways to set it:
    1) in command line when you launch the executable, there's a preview option. I don't remember off hand the exact syntax.
    2) In the script itself (using Javascript syntax -- Applescript would be similar) app.serverSettings.imagePreview = true;
    Harbs

  • How to process reports with two different date fields

    Morning all,
    This question is somewhat similar to what I asked few days back. I created two different reports for two different departments (Credit Control and Free of Charge Control).
    These two reports pull data from two different date fields and has different status check ups.
    Few days back my director requested me if he can have both reports in one report. That is when I asked question from all of you regarding two reports.
    Anyhow, that was created by implementing two sub reports however, the director asked me to combine the two different reports into one in such a way that the output records should be added up with each other hence one single report with all combined data of Credit Control and Free of Charges (not two sub reports in one report).
    The problem here which I am getting is that, both reports uses two different date fields. I can live with two different statuses as that can be easily done within formula/RT however how to create a report with Report Selection Formula condition which looks in both date fields and produces results accordingly?
    I have tried this by not putting any condition in report selection formula and ran the report, it produced total results from past 6 years.
    Any ideas how to produce combined report which has two different date fields?
    Many thanks in advance
    Regards
    Jehanzeb
    What I

    Charliy,
    No the both dates are from two different databases, tables and fields. The Credit date field is from KLAB database under max table where as the FOC date field is from SAE database under maxmast table. Klab date is under credit2 table where as foc date is under order header table.
    So its more like this:
    Klab->Max-Credit2--->Credit_date
    Sae->Maxmast->Order_header---Date entered.
    two dates totally different tables, dbs
    however, I will try your idea too and see if that works.
    Regards
    Jehanzeb

Maybe you are looking for

  • DB connection not working in compiled programme

    Hi all, I have a calibration vi working fine in the development mode and run. Yet when i build an exe for it, the exe fails with the following message? any ideas? Error -2146824584 occurred at Conn Get Properties.vi->DB Tools Create Parameterized Que

  • URL import problem

    I have noticed a problem when I import a vCard from Address Book on my MacBook Pro OS X 10.6.8 The URL addresses always have an extra character in them. The first part - https:// will always be this http\:// when imported into iCloud Contacts. Anyone

  • How to delete all music files from iPhone4S

    I had some music files loaded on my iPhone4S. In iTunes I converted all of the files from MP3 to AAC. When the iPhone synced, it added the AAC in addition to the MP3's! I think that the only fix would be to delete all of the files from the iPhone and

  • Charger not supported on IOS8

    Woke up this morning to a dead iPhone 5s.  Finally plugged it in and got it to power on only to be greeted with a message saying "Charger not supported".   No worries I have 5 genuine apple chargers and got the same message form each of them.   prior

  • Why using flash player thera are two splitting screens (up & down)

    I use windows xp  version 5.1.2600,firfox browser:version 3.0.19,google browser:10.0.648.133,my flash player:VERSION 10.2.152.32.please tell me.thank you!