How to take a single data point for each trigger pulse ( synchronou​s acquisitio​n).

 hi
          im using the pci-mio-16E1 card, with the IDE VC++, so  im looking for an example to explicate me how to make an synchronous acquisition data using an external timing, so the idea is to acquire (take) a single data point for each trigger pulse  from one  input channel ,and saving  the data in a file .
now im making a code using the AI_setup and DAQ_op functions, im getting  a speed acquisition (it is the start of acquisition data), and  it is  a synchronous acquisition just for one trigger pulse, and me i looking for an acquisition for each trigger pulse. 
  so to  understand my problem you can see my code :
iStatus = Timeout_Config(iDevice, lTimeout);
         iRetVal = NIDAQErrorHandler(iStatus, "Timeout_Config", iIgnoreWarning);
   //  configuration and selection of  signal trigger  
         iStatus = Configure_HW_Analog_Trigger(iDevice, ND_ON, iLowValue,iHighValue, ND_ABOVE_HIGH_LEVEL, ND_THE_AI_CHANNEL);
        iRetVal = NIDAQErrorHandler(iStatus, "Configure_HW_Analog_Trigger", iIgnoreWarning);
  iStatus = Select_Signal(iDevice, ND_IN_CONVERT, ND_PFI_2,ND_HIGH_TO_LOW);
         iRetVal = NIDAQErrorHandler(iStatus, "Select_Signal", iIgnoreWarning);
    iStatus = AI_Setup(iDevice, iChannel, iGain);
   iRetVal = NIDAQErrorHandler(iStatus, "AI_Setup", iIgnoreWarning);
   while ((iReadingAvail != 1) && (iStatus == 0)) {
 /* Wait until reading is available. */
         iStatus = AI_Check(iDevice, &iReadingAvail, &iReading);
        iRetVal = NIDAQYield(iYieldON);
       //  Acquire data from a single channel 
    iStatus = DAQ_Op (iDevice, iChannel, iGain, piBuffer, ulCount, dSampRate);
   while ((iDAQstopped != 1) && (iStatus == 0)) {
        iStatus = DAQ_Check(iDevice, &iDAQstopped, &ulRetrieved);
        iRetVal = NIDAQYield(iYieldON);
       iStatus = DAQ_VScale(iDevice, iChannel, iGain, dGainAdjust, dOffset,ulCount, piBuffer, pdVoltBuffer);
      iRetVal = NIDAQErrorHandler(iStatus, "DAQ_VScale",iIgnoreWarning);
   /* Set analog trigger mode back to initial state. */
       iStatus = Configure_HW_Analog_Trigger(iDevice, ND_OFF, iLowValue,iHighValue, ND_ABOVE_HIGH_LEVEL, ND_THE_AI_CHANNEL);
  /* Set PFI line back to initial state. */
       iStatus = Select_Signal(iDevice, ND_IN_START_TRIGGER,ND_AUTOMATIC, ND_DONT_CARE);
          iStatus = DAQ_Clear(iDevice);
 /* Plot acquired data  */
      iRetVal = NIDAQPlotWaveform(pdVoltBuffer,ulCount, WFM_DATA_F64);
so this is the data acquired -0.900879,-0.900879,-0.900879,-0.900879,-0.900879,​-0.900879,-0.900879,-0.900879 and i think that is a noise because all time i get this data.
tank you very mutch fo your help

Hello,
Please see the responses to this thread at the following post.
http://forums.ni.com/ni/board/message?board.id=250​&message.id=13686
Also, please only post one thread per issue.
Regards,
Sean C.

Similar Messages

  • How do I prompt a date parameter for each piece of equipment?

    Hi,
    I've developed a report that displays all of the invoices, over a selected date range, for each piece of equipment. There are 25 pieces of equipment. At present, when the report is run there is just one date range parameter. I select the date range and get all invoices that are within the date range. However, if I want to ensure the invoice-related data from January 31, 2012 (for example) for Equipment #2 is returned I need to have January 31, 2012 in my date range. However, I wanted the cutoff date fro Equipment #1 to be January 28, 2012. Under the current design the result set for Equipment #1 will include invoice data up to January 31, 2012.
    I would like to select a unique date range PER piece of equipment within the same report.
    For example:
    Equipment #1 - January 1, 2012 to January 28, 2012
    Equipment #2 - January 1, 2012 to January 31, 2012
    and so on.
    Is this possible? Basically, how do I tell the report the data range I want for each piece of equipment?
    thx!
    Mark

    Hi,
    I am not sure of how you would be able to filter records using 2 different parameters.
    You can get 2 different parameters for Date dynamically with 2 different data sets.
    You need to create 2 formula in Business View Manager , data foundation as below:
    if {Customer.Country}='Australia' then {Customer.Customer ID}
    and
    if {Customer.Country}='Brazil' then {Customer.Customer ID}
    Here instead of Country you can use your Equipment Field and respective values.
    Save the Data Foundation
    In Business Element create 2 Business Elements for these above formula.
    And Create 2 LOVs for these Business Element above and schedule them.
    Now in crystal reports you can create 2 Dynamic Parameter and use the above created LOV respectively.
    I am not sure how you would be able to filter and link the parameters to your report.
    Hope this may work or give you a thought.
    Cheers,
    Kiran.

  • LineChart data tip won't display with single data point?

    Hi,
    I have a Flex 3 LineChart with LineSeries which use CircleItemRenderer. If there is only a single data point to display, the data tip is not displayed. If there are several data points, each data tip is displayed correctly.
    How can I make the datatip appear correctly with even just one data point? Any workarounds for this problem?
    Quick googling found that I'm not the only person with this problem. A suggested workaround is to use PlotChart instead, but I don't want to go there unless there is absolutely no good way to solve this problem directly.
    http://www.pubbs.net/200911/flex/28102-flexcoders-line-chart-data-tips-dont-display-when-t heres-a-single-data-point.html
    Thanks for any clues!!
    BR,http://forums.adobe.com/people/sikkfgkwwsdfkjkjwjfhjdskj
    sikkfgkwwsdfkjkjwjfhjdskj

    No one wanted to help me but I figured out that I was not referencing the DSN on the test server, only the local DSN. 
    The information to connect to the MSSQL database given by my hosting company was not correct for Dreameweaver (or MS Access) either.

  • Highlighting a single data point in a scatter plot - Numbers'09

    Is there a way to highlight a single data point on a scatter plot in Numbers'09 (or point to it using a line from each respective coordinate on the x & y axis).
    I don't think it matters but the data point i am looking to highlight is the [highest y value/2]... and of course its respective x coordinate once you plug the y value into the equation ( y = f(x) ) and solve for x.

    Here is my own tip :
    As you see, I use two sets of values.
    In the second one I define only the yValue of the data point which must be "highlighted".
    Yvan KOENIG (VALLAURIS, France) jeudi 10 février 2011 20:49:32

  • SSRS 2008 Column Chart with Calculated Series (moving average) "formula error - there are not enough data points for the period" error

    I have a simple column chart grouping on 1 value on the category axis.  For simplicity's sake, we are plotting $ amounts grouping by Month on the category axis.  I right click on the data series and choose "Add calculated series...".  I choose moving average.  I want to move the average over at least 2 periods.
    When I run the report, I get the error "Formula error - there are not enough data points for the period".  The way the report is, I never have a guaranteed number of categories (there could be one or there could be 5).  When there is 2 or more, the chart renders fine, however, when there is only 1 value, instead of suppressing the moving average line, I get that error and the chart shows nothing.
    I don't think this is entirely acceptable for our end users.  At a minimum, I would think the moving average line would be suppressed instead of hiding the entire chart.  Does anyone know of any workarounds or do I have to enter another ms. connect bug/design consideration.
    Thank you,
    Dan

    I was having the same error while trying to plot a moving average across 7 days. The work around I found was rather simple.
    If you right click your report in the solution explorer and select "View Code" it will give you the underlying XML of the report. Find the entry for the value of your calculated series and enter a formula to dynamically create your periods.
    <ChartFormulaParameter Name="Period">
                      <Value>=IIf(Count(Fields!Calls.Value) >= 7 ,7, (Count(Fields!Calls.Value)))</Value>
    </ChartFormulaParameter>
    What I'm doing here is getting the row count of records returned in the chart. If the returned rows are greater than or equal to 7 (The amount of days I want the average) it will set the points to 7. If not, it will set the number to the amount of returned rows. So far this has worked great. I'm probably going to add more code to handle no records returned although in my case that shouldn't happen but, you never know.
    A side note:
    If you open the calculated series properties in the designer, you will notice the number of periods is set to "0". If you change this it will overwrite your custom formula in the XML.

  • How to fetch year till date value for earning for current ,last and year

    hi,
    how to fetch year till date value for earning for current ,last and year before that from payroll result
    plz reply soon,
    pratyush

    Dear Pratyush,
    Pick this from CRT.
    Use LDB PNPCE & Fire event GET PAYROLL &
    then you can pick from CRT.
    Hope this helps.
    Kindly reward in case useful.
    Regards & Thanks,
    Darshan Mulmule

  • How to add a new data element for existing table filed(Primary key field)

    Hi Experts,
    How to add a new data element for existing table field(Primary key field)
    For this filed ther is no foreign key relation ships and even check table.
    while activating table it is giving message like below.
    can you help any one to solve this and wil steps to add new dataelement for existing primary key filed of a table.
    Check table (NAMING SPACE/TABLE NAME(EX:/TC/VENDOR)) (username/19.02.10/03:29)           
    Primary key change not permitted for value table /TC/VENDOR
    Check on table  /TC/VENDOR resulted in errors              
    Thanks
    Ravi

    Hi,
    Easiest way is to download the table eg into an Excel table (if possible) or text table. Drop the table from the database. Build your table with the new key field. Build the database table again and fill it.
    You can do it also over the database into a new table. Drop the old one. Build the enhanced one and fill it. Afterwards drop your (temporary) table.
    Maybe there are other ways, but this works.
    Success,
    Rob

  • How do I get a data plan for iPad

    How do I get a data plan for my ipad

    Check with your wireless carrier to see if they offer a MiFi device.
    http://en.wikipedia.org/wiki/MiFi

  • LabVIEW DSC Logging too Many Data Points for Integer Tags

    Hi,
    I am having a strange problem with LabVIEW 2013 SP1 DSC data logging, running on XP SP3.
    All the integer Data Type Tags in my Tag Database that are set to data log, are logging way too much data. When I look at the amount of logged data points for these int16 in Historical view I see its logging a point nearly every second. See screen shots below or attached jpeg's of screen shots of trace view and Trace Props of one of the integer Tags. I would prefer the integer tags to only log on change like the boolean tags.
    These tags are being acquired from a Horner OCS over Modbus Serial RTU. The Modbus comms is set-up to poll once a second.
    The problematic Tag Data Type in DSC logging are Int16
    The Modbus register data items denotations I am using for Int16 is S4#####
    Example  'OCS_Modbus_Master\S403709' 
    The same register represented in OCS Register is shown as '%R0709'
    The trace properties for some of these int16 tags is showing database page numbers in the thousands, which compared to the largest floating point tag is currently showing 172 pages after several months of logging.
    I would have expected int16 tags to only log a value when the value changes and since the 'update deadband' tag setting is disabled for integer tag properties there is no way to config the tag to only log on changes. What is the default logging config for integers. Log everything or log on any change?
    I would prefer for these integer tags to only log on change, since they change infrequently, log on change would be much more data efficient.
    I tried changing the tag data type to floating point and gave it an update deadband value to try and see if that would reduce the amount of logged data, it didn't seem to make any difference.
    Not sure if the issue lies in the
    > Modbus Comms
    > The DSC data event tracking module
    > The DSC Data Logging module
    > Some kind of  Horner OSC data type mismatch which results in DSC polling seeing the acquired value as having changed on every poll.
    Any suggestions greatly appreciated
    Thanks
    Paul
    Attachments:
    Integer Tag Data Points Trace View.jpg ‏125 KB
    Integer Tags Data Points Tag Properties.jpg ‏42 KB

    This definitely sounds like a citadel/logos issue. There are two possibilities:
    1) corrupt database
    2) corrupt logos
    To see if it is a corrupt database, simply go to your database folder and move all the files out of that folder to a different folder. Then restart the application. Your application will create a clean database. This may solve the problem. If so, then you know it is a corrupt database.
    To upgrade/reinstall logos, go to the Control Panel -> Add/Remove Programs. If you see logos there, uninstall it. After uninstalling it, install the most recent logos version (found at ftp://ftp.ni.com/support/lookout/logos).
    Please let me know if the problem persists. As you know, you may also always call in to the Tech Support Line.
    Thanks.

  • How can i pull the payment transactions for each invoice?

    Hi folks
    iam developing report for following requirement.
    want to disply the vendor transaction file for all company codes Fiscal year,of 2004,2005,2006, and 2007 (to date).
    The purpose of oureport is to analyze our company invoices and investigate potential overpayment opportunities. In order to effectively accomplish this, we need a single invoice record for each invoice that was received by compnay from their vendors. The single invoice record would contain at least the following columns: Vendor Number, Vendor Invoice Number, Invoice Date, Invoice Amount, SAP Document Number, Check/Wire Number, Check/Wire Date, Check/Wire Amount. SAP would have multiple rows in a table for any one invoice, whereas we would only want to see ONE row for every vendor invoice.
    if you know that company pays (for example) 75,000 invoices/year - then the transaction file you would have about 300,000 records in it. 75,000 Invoices * 4 years.
    inodrer to develop this report iam using table PAYR -payee
    BSIK ( closed items) BSAK ( open items).
    my question is any one tell me how can write logic to  pull the payment transactions for each invoice?
    regards
    neeru

    Hi rob,
    yes you are right,  an invovice may contaion duplicate records
    example  PAYR table contain
    invice no         compnay code  checkno vendor  fisclyear
    ( doc.number)
    2000134373     001                    10287200          2007
    2000134373     001                    10427890          2007
    so as per my requirement how can i write the logic.
    regards
    neeru

  • Acquire single analog point on each pulse

    Hi,
    I have a query on what i hope is a simple application. Im using a PCI-6220 card and what I would like to do is aquire a single data point which is to be triggered by a digital pulse. The pulse will come from an encoder, and what I would like to do is aquire a single analog data point each time the encoder channel pulse goes high (retriggerable daq?)
    Which would be the best way to approach this?
    Thanks,
    David

    David,
    this is easily done by importing your encoder-signal as external clock for your AI (which is either finite or continuous then!)
    hope this helps,
    Norbert
    [EDIT]: This will work out directly if the encoder creates CMOS/TTL pulses. If it doesn't, you should consider some kind of signalconditioning for your encodersignal
    Message Edited by Norbert B on 11-19-2007 03:41 AM
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • How do I get separate iCloud accounts for each family members device and still share iTunes?

    how do I get separate iCloud's for each family members iPhone, iPod and iPad and still share iTunes?

    Have everyone share the same iTunes store ID, but use separate IDs for iCloud.  The ID you use for iCloud does not have to be the same as the ID you use for the iTunes & App store.

  • Currently using Lightroom 5 as a standalone on a mac and two windows machines one desktop one laptop. with CC can i still use all the machines or do i have to take out an individual license for each?

    with CC can i still use all the machines or do i have to take out an individual license for each?

    Your LR5 license allows for activated installations on two machines.  Of those two machine, only one can be using the licensed software at a given time.  The same applies with CC, except with CC you won't be able to sneak in the third machine.  What you can do though with CC is have it installed on all three and sign in and out of the different machines as needed.
    If you intend to be using all three machines at the same time then you do need three separate licenses/subscriptions to be in compliance with the license agreement.

  • Individual cell data buttons for each app keep turning on by themselves?

    I have a 4S iPhone, OS 7.0.6, and my problem is that the individual cell data buttons for each app keep turning on by themselves. I'll go in and turn them all off and the next time I look (whether in 5 min or 5 hrs) they are all turned back on again? I want to leave my cell data on so that I receive my iMessages but usually don't want everything else turned on until I get to a wifi zone. I used to be able to keep them all off until  I did  the last couple iOS updates. Help!

    Hey there Tylyssanna,
    It sounds like your cellular data options are not saving correctly. I recommend starting by turning off Cellular Data in Settings first. Then close all the running apps:
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    Double-click the Home button.
    Swipe left or right until you have located the app you wish to close.
    Swipe the app up to close it.
    When you have done that and restart the phone, turn it back on, and test the issue again:
    iOS: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/ht1430
    Thank you for using Apple Support Communities.
    Cheers,
    Sterling

  • How to activate a different sub-report for each row in the data set as main report page breaks on each row of data in the main dataset

    I am going to try asking this same question a different way as I have yet to find a working solution to my problem.  I have a main report and then 8 sub reports.  My main report has one data set and returns one row of data per account number.  One
    of the fields in the main data set is called AccountProf.  My main report displays one page per Account number and then calls a different sub report based on that account's AccountProf value.  The sub reports take in the account number as a parameter
    and get multiple rows of data to display that accounts usage formatted differntly for each AccountProf (hence the 8 different sub report.  
    So far I can figure out how to do everything but setting the visibility property of each sub-reports when I have multiple accounts.  If I use the following expression for the visibility property on each sub report, it makes all the applicable sub report
    for all the accounts requested visible at once:
    =IIF(Fields!AccountProf.Value= "USE_PLUS_DMD",False,True)
    *The value in bold USE_PLUS_DMD  is different for each sub report.
    Here is a look at what the main report look like:
    Here is the main reports data set:

    Hi JasonDWilson77,
    According to your description, there is a main report and 8 sub reports in the report, you want to set visibility of sub reports, if no value is passed to the parameter of sub report, the sub report will not be displayed. If that is the case, please refer
    to the following steps:
      1. Create a new parameter named NewAccountNumber, set its data type the same as @AccountNumber, select Allow multiple values, set Visibility to be hidden, then set all available values to default values.
      2. Right-click the first sub report and open Subreport Properties dialog box, click Parameters in left pane, set name to AccountNumber, then click (fx) button, type the expression like below:
    =Parameters! NewAccountNumber(0)
      3. Click Visibility in left pane, select Show or hide based on an expression, then click (fx) button and type the expression like below:
    =IIF(InStr(Join(Parameters! AccountNumber.Value), Parameters!NewAccountNumber.Value(0))>0 , false,true)
      4. Modify parameter of other sub reports like step2.
      5. Set visibility of other sub reports like step3.
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    If you have any feedback on our support, please click
    here.
    Wendy Fu
    TechNet Community Support

Maybe you are looking for

  • Unable to sync from my computor

    I am not able to sync games apps from my computer  from not reading the  sync  connection

  • [Q] duplicating movieclip with loaded external jpg file

    Hi, Im trying to make thumbnail and enlarged picture by duplication. What i tried was using duplication of thumbnail movieclip which jpg image is loaded However it seems not working as i intended,so I had to make empty movieclip and loaded image agai

  • How to hide all button except one in a PageButtonBar

    Hello, I am newbie to OAF. And i am trying to do is, when i would clink on a submit button of my Update page(page is using Train. All the buttons are in a TrainFooter Region, whose lay out is pageButtonBar and Submit button only visible when i am on

  • Executables

    Currently I am using batch files to run my some of my java applications (in jar format ) .....what I am wondering is there a better way, my goal is I would like to be able to make them normal exe's

  • How to get name or unix id of last switched System Events process?

    Hello I am writing a script to be used as an idle function to send a command to a process as soon as it's not frontmost anymore. So far, I can figure how to get the unix id or name of the frontmost process, but not of the previous process . Here is w