Error 200284-DAQmx Analog trigger

Hi,
I am trying to start data acquisition (e.g. input channels ai6 to ai10) and save it to a file based on an analog input voltage signal change (acquire whenever ai6 >2 Volts) that will work as a trigger.
I also found an example that is pretty similar to this (attached). The trigger source in my case is the first analog input channel. Following the attached example, I am always getting the error code 200284 after running the vi. Basically it gives the error after the specified timeout.
I am using PCI-6289, but the problem is I cannot use any PFI lines for the voltage trigger and have to use ai channels only for trigger.
Can't figure out what is wrong. 
Any help is highly appreciated. 
Thanks,
Roy
Attachments:
cont_acq_volt_analog_start.vi ‏79 KB
cont_acq_volt_analog_start.vi ‏79 KB

Yes, you must use a digital channel as your trigger source because it has a different clock.  Remember, something has to activate your trigger!  For instance, let's say you want to use PFI0 as your trigger...when PFI0 goes high, start collecting data.
How do you plan to control when PFI0 goes high?
It can be an external trigger.  It can be another, digital, DAQmx task, where the DO line is hard-wired to PFI0.  But something has to cause PFI0 to go high, in order to trigger your task.
Since you can only have a single AI task, since there's only one AI clock, you have no way of ever generating a trigger.  You won't start acquiring until you receive a specific signal on an AI channel, but you won't receive that signal until you start acquiring.  See why it's a no-go?
So you want to acquire for 3 seconds after getting a signal on ai6 that's >2V.  So let's think this through, ok?
If we set our task to finite samples, and we set our number of samples to 3000, what will happen?
We'll acquire 3000 samples.  Right?  Right!  If our acquisition rate is set to 1kHz, it will take 3 seconds to acquire those samples.
While we are acquiring those 3000 samples, we may (or may not!) see ai6 go over 2V.  Let's say we see ai6 read >2V after 2 seconds -- that is, our second loop iteration.  Since we've set our # of samples to acquire at 3000, we've already acquired 2000 samples (assuming a 1kHz sample rate).  That leaves us 1000 samples until our task expects to terminate (after which, you'll get an error).  That's not 3 seconds worth of data, is it?
What if ai6 never goes >2V within our 3000 sample window?  Now you haven't collected anything, and your task will throw an error if you try to collect beyond 3000 samples.
So no, setting our samples to finite and specifying the collection of 3000 samples isn't going to work, is it?  Clearly not.  That's 3 seconds' worth of data, all right, but it may not be the right 3 seconds' worth of data.  Since you don't know when ai6 will be >2V, you need to continuously acquire samples.
Do you suppose we could do something with keeping track of time?  Specifically, the time at which >2V was detected?  Compared to the current time?  And take action based on that?  The logic for your case structure will become slightly more complex.
Do you know about shift registers?  I'm not trying to be insulting, you said you were new and I'm not 100% sure of how new you are.  :-) 
You seriously do need to take your Write to File out of your DAQ loop...please look into producer-consumers, or you'll be right back on this forum asking us about buffer overflow errors.  :-)  Also, beware of the Write to Measurement File Express VI...you don't have a file path wired in the code you showed, so it's going to pop up a dialog box every time it's called, asking for a file path.
If you really want to learn LabVIEW, you will get rid of all Express VIs in your code.  At the very least, you need to understand exactly what they do and how they work.  Writing code that you don't understand is only going to cause problems later

Similar Messages

  • Error 200284 keep showing up with DAQmx/USB6259

    This error of 200284 has been persistantly showing up in my high speed data acqusition using DAQmx Read with USB6259 running LV8.5.1 and DAQmx 8.7.1.  I tried most of the approaches discussed on this forrum regarding this error such as increasing time out and sample rate, but still getting it. I stripped down the application that I recently took over and attached the basic vi..please voice any suggestions, thoughts, solutions, and comments, I really would like to see this code work out as it is our basic stuff.  many thanks in advance. 
    A little more detail...the original code (and this striped down version) would run for a minute or so with the loop index getting to over 20k, or 40k..but most likely stop before 60k with unpredictable numbers...thanks again for taking a look at the vi.
    Bryan 
    Message Edited by BryanL on 02-15-2009 02:26 PM
    Attachments:
    SampleVI.vi ‏75 KB

    Hi Doug,
    First thank you so much for the help and support.  I went to restart the NI variable engine and disabled the ZoneAlarm and firmwall, the variable engin now runs and not stopped, but the VI still stopps with the error 200284. Anythings else you think might be the issue here?  I really need to get this thing working as I have been on it for a few days now...please help.  Thanks again.  I have also copy and paste my post and that of Dansch here to give more background info:
    Hi Dansch,
    Thank you for looking into this issue!  I have compiled a reply to your comments and questions in the following quoted message: 
    dansch wrote:
    Hi Bryan,
    I
    took a look at your code, and after modifying the analog output
    channel, I was able to run it fine for a very long time on a PCI-6251
    board without any errors.
    Our
    original code also runs ok with our PCI boards, only after we switch to
    USB then we have this problem of error 200284 stopping the acquisition.
    The code also runs ok on one laptop with older USB (XP service pack 1),
    the two laptops with newer USB2.0 always have problems with error
    200284 on one and 200279 on the other(XP Service Pack 3).  I am trying
    to get the one with 200284 to work.
    One
    thing that I am interested in is the analog output task that you are
    referencing, since I am unable to see what type of setup you have
    configured for this channel. I am interested in knowing why the analog
    input task is using the ao/sampleclock as the source for its sample
    clock rather than the other way around (ao channel using the
    ai/sampleclock).
    The
    was not clear about the logic of the triggering setup of the
    initialization step, however, the analog output task used the task
    input setup from MAX, this also triggers the timing on the analog
    input.  The output chain is for running a light source with a wave form
    generated by a separated VI using the waveform parameters as shown on
    the front panel of my attached SampleVI.  This source runs
    continuesouly with the same waveform  function.  The input chain reads
    a detector contineously as DAQmx Read was put into the while loop. The
    start of the output waveform was triggered by the input chain so that
    the light source and data acquisition are synchronized.   We never had
    problem to start the data acquisition as we always read the correct
    waveform back.  The error seem to alway came from the DAQmx Read
    function in the while loop as the code on the left side of the while
    loop onlys runs once, while the while loop will keeping running, until
    it stops a minute or so later by the error 200284.
    Usually,
    when this type of -200284 error occurs, it is due to a problem with not
    receiving a trigger or sample clock edges. Perhaps something is
    happening to the analog output task that is affecting the analog input
    channel since it is using the ao/sampleclock.
    I will check further on the output task setup in MAX..if this is the issue, what is the recommended setup for the output task? 
    A
    couple of other things I would like to know more about are why you are
    reading just a single sample each loop iteration and also what your
    application involves since I noticed the program samples numerous times
    on the first channel for each single sample on the others. What overall
    rate are you trying to accomplish as well? Please let me know if you
    have any additional insight into your application. Regards,
    I
    was only reading a single sample for the demo purpose as it generates
    similar error as in the original application where we read all
    channels. The first channel is where the detector response are read and
    are accessed at the highest frequency.  That is why we build 992
    instances for this channel and leave the other 8 channels to read some
    other environmental parameters which happens at a less frequent time.
    This allows us to keep data acquisition going without restart other
    tasks. This was recommended by an NI engineer earlier to another
    enginer here and was work fine. 
    The following are some of our input parameters:
    On
    the Outuput side:  Waveform Scan Rate or Frequency (Hz): 1000    Number
    of Points in Waveform is 1000,  Waveform Update Rate is: 1000000/s,
    this final rate goes to output timing VI 
    On
    the Input side:      Number of Sample Spectrum (total numb. of
    channels) 1000.  Number slow channels: 8.   Input sample rate:
    1000000(Hz). This rate/1000=1000/s goes to the input timing VI 
    Please
    let me know if you need more info, if you do not mind, could you please
    send me a number and best time to call?  Many thanks.
    Bryan

  • Monitor multiple channels for analog trigger with DAQmx drivers

    Hello! I would like to start a data acquisition of multiple analog channels (16) from an analog trigger. I would like trigger to monitor four of the (same) channels, and trigger when any one of them reaches a certain voltage. I found an example that would work with the Traditional DAQ drivers (using occurances), but can't figure out how to do something similar in DAQmx.
    Time is also an issue, as I would like to collect the first 80 milliseconds of data after the trigger (at a rate of 500,000 Hz).
    I'm using LabView 7.0 and collecting data off of two PXI-6133 cards.
    Thanks for your help!

    Hi Denise-
    After some research, I have found that it is not possible to use the functionality of DAQ Occurrences in DAQmx. Ironically, the reason that this functionality is available in Traditional and not DAQmx is due to the exploitation of an inherent limitation of Traditional that was upgraded in DAQmx. The multi-thread capability of DAQmx is a major advantage for most applications, but in this case it prevents the use of occurrences as they existed in Traditional DAQ.
    In short, this means that you can't directly use this functionality in DAQmx. You can however emulate this functionality with minimal software analysis of the incoming signal. I have attached a modified example VI that logs data to a chart only when the analog level of one of the channels being measured has exceeded a user-defined reference value. Basically, the task is running continuously in the background but the data is not actually logged until the signal is above a predetermined "trigger" level.
    Please let me know if the attached example is helpful for your application. You will see the input channels listed in the format "DevX/ai0:y" where X is the device number and y is the highest channel number of interest.
    Regards,
    Tom W
    National Instruments
    Attachments:
    Cont Acq&Graph Voltage-Int Clk Analog SW Trigger.vi ‏83 KB

  • Error-200284 with DAQmx

    Hello,
    I am trying to make a continuous reading of analogvoltage signal with DAQPad-6015/6016 using sampling rate of 1000 and number of sample=1000 but the DAQmx is showing 
    Error-200284 saying that the some or all samples requested have not yet been acquired.
    The vi is attached and the images showing the settings of the DAQmx,error mesaage are also attached.
    Can I know to solve this error.
    Thanks.
    Solved!
    Go to Solution.
    Attachments:
    DAQmx_settings.JPG ‏113 KB
    DAQ_method2_error.JPG ‏101 KB
    DAQ_method2.vi ‏22 KB

    John_P1 thanks for your suggestion.
    I will explain a bit clearly of what I am trying to do
    I am trying to use an example vi for adaptive filtering using least mean square but I am confused in modifying the example as per my requirements of
    1)for the first 1 sec acquired samples I want to filter this signal and want to feed this filtered signal as reference signal d(n) and acquired signal as x(n) to adaptive filtering block
    2)After first 1 sec the adaptive filtering vi produces two outputs e(n) and d'(n) .In which the e(n) should be feeded back as input d(n) to the adaptive filtering block and d'(n) is my filtered(required) signal
    This feeding of acquired signal for 1 sec interval as x(n) and the previous noise reference=e(n) as other input as d(n) to the adaptive filtering block should be a continuous process.
    can you help me out in modifying the example vi of filtering as per my requirements.
    Attachments:
    LMS block by block (example).zip ‏76 KB

  • Error -200284, Behaviour in Execution Highlighting and Runtime Speed

    Hi
    I am having trouble with the attached VI.
    This VI reads a voltage on ai26 and it works fine if
    1) the wait in the flat sequence is 2000 milliseconds or more and execution highlighting is turned off
    or
    2) the wait in the flat sequence is zero or more and execution highlighting is turned on.
    LV reports error -200284 if I try executing 2) at runtime speed (execution highlighting turned off, wait=0). Is there a solution to change the VI in a way that the use of a wait is not necessary?
    I already checked the LV examples and it seems that the examples (on my hardware) suffer the same problem.
    Description of my task:
    I need to sample the voltage at 2000 Samples/sec. Signal observation must be 5 sec, that makes 10000 Samples in the end. No trigger needed. The USB-6259 has a buffer of length 4095 but this is not my problem since I will be doing the acquisition (with 2000 sample chunks) in the producer- and the analysis in the consumer-loop.
    My Hardware:
    I am using USB-6259, LV 8.2 and DAQmx 8.6 on a Windows 2000 Machine.
    Best regards
    Thomas
    Attachments:
    Read Analog Wfm.vi ‏34 KB

    In the attachment is the corrected VI without a wait.
    If I run this corrected VI at runtime speed, I get error -200284.
    If I place a breakpoint between the DAQmx Start and Read Task and run this VI (I will have to push the Continue-Button for the VI to finish), there will be no error.
    Why that behaviour?
    Thomas
    Attachments:
    Read Analog Wfm Correct.vi ‏32 KB

  • How can I set up a delayed analog trigger on PCI 6115 DAQ

    I have an S-Series PCI 6115 DAQ which I’m running with Labview. I’m using it to measure signals from an acoustic emission sensor and two force transducers. I’d like to set up a delayed analog trigger which will start acquisition on all three channels a period of time after a selected channel’s voltage exceeds a threshold.
    Currently I’m using the AI Config VI in line with the AI Start VI and AI Read VI to capture data after a analog hardware trigger occurs. A software trigger probably wouldn't work because I have to sample my data at 10MS/sec. My setup works fine for triggering without any delay or skip counts. However, if I set the delay or skip count in the additional trigger parameter field of the AI start VI, there is no effect, and the device still starts capturing data immediately after the trigger is received. What is the cause of this, and how can I get around it?
    Also, is it possible to sample the channels of a PCI-6115 DAQ at different rates? Right now, I’m sampling all my channels at 10MS/sec and throwing away data on all channels except one. However, this seems relatively slow and eventually I would like to attempt pseudo-real time control using my data.

    rpursley8 is right about needing to get the counters involved if you want a hardware timed delay in your application.
    Concerning whether or not you can sample at different rate, check this document out.
    Sampling Different Channels at Different Rates with NI-DAQmx
    Otis
    Training and Certification
    Product Support Engineer
    National Instruments

  • Start Counter Output on a Analog Trigger in the PCI 6259 Mseries board

    Hi,
    My question is regarding how to use Analog Triggering to start a counter in the PCI 6259 M-series board.
    I have attatched a program here
    'Mult_Device_Digital_Analog_Out_on_Analog_Trigger.​vi'
    and I'll explain my problem regarding this program.
    I've tried to include all the details about the program in the documentation for the VI, but what the program
    does is essentially output a set of digital and analog patterns as specified by an end user, and at times
    specified in the front panel.
    Problem 1.
    I wish to start the whole operation on a analog trigger signal, in the program its the boolean "Line Trigger",
    but I get an error saying that trigger type is not supported, when the M Series board manual clearly says it can be done.
    Is there something wrong with my program ?
    Thanks.
    Shomu
    Attachments:
    Programs.zip ‏101 KB

    Shomu
    Admittedly, it might take a little time to find the documentation, but it is there. Also, the error you are getting indicates the proper trigger signals to use. In the help look at the analog Triggering Considerations for E Series, M Series, and S Series.
    With that being said the easiest thing to do is to setup an Analog Input task configured to start on an Analog Trigger. Then, setup a digital edge trigger for the Counter task. The signal you are going to want to look for is the Analog Comparison Event. This signal won't show up by default in the list. What you need to do is right click on the trigger source constant or control and select I/O Name Filtering. Then check Include Advanced Terminals. Once you have done this you can select the Analog Comparison Event
    StuartG

  • Error-200284 for PXI-1010 MXI-3 fiberoptic connection to a PXI-6533.

    In the instruction lab in which I work, we have two types of systems:
    1)SCXI-1000 chassis connected by copper to a PXI-6035E card in a PC.
    2)PXI-1010 chassis connected by fiberoptic from a MXI-3 to a PXI-6030E card in a PC.  A PXI-6533 handles the digital I/O.
    We have LabVIEW8.5.1 running on both types of systems.  On the SCXI-1000 system, the LabView example Acq&GraphVoltage-IntClk-DigStart.vi runs just fine.  It does not run on the PXI-1010 systems.  Instead, I eventually get Error-200284.  In both cases we use PFI0 or PFI1, and digital ground, for the triggers, connected to lines 38, 39, and 33, respectively, in the SCXI-1302 terminal block, which connects to an SCXI-1180 feedthrough panel.
    I searched the forums and all ni.com for information on this problem, and have not been able to find any relevant information.
    Joseph D. Rudmin

    Hi Joseph,
    I think I'm starting to understand the problem you are having. Unfortunately, since on a SCXI module, all channels are generally multiplexed through AI0, the PXI/SCXI backplane only shares the necessary channels i.e. one AI channel and any required timing signals. Therefore, even if though you are using the SCXI-1180 module with a SCXI-1349 communicating adapter, you will not be able to access the other channels on your PXI-6030E since there is no physical connections being made to those channels in the backplane. There are 2 solutions around this problem:
    1. You can use an SCXI-1349 cable assembly to connect the front of the PXI-6030E module to the back of the SCXI-1349 adapter. This way the unused pins on the DAQ module can be accessed through the SCXI-1180.
    2. You can decide not to use the SCXI-1180 and simply use a standard 68-pin terminal block with your PXI-6030E and connect your 5V sync pulse to the PFI pins. This will still allow you to sample off of the SCXI-1100 since those channels are connected via the backplane.
    Here's a link to our online KnowledgeBase article which talks about this issue. 
    Can I Connect The SCXI-1180 To An SCXI Module In A PXI-1010 To Use The Additional Analog Input Chann...
    Please let me know if this answers your question.
    S_Hong
    National Instruments
    Applications Engineer

  • -50405 Error at DAQmx Read AI Sample

    Anyone seen this error before?  The Possible Reasons are:
    No transfer is in progress because the transfer was aborted by the client. The operation could not be completed as specified.
    I am using the DAQmx Analog 2d DBL NChan Nsamp function and getting this error thrown.  Please let me know if you have any thoughts.
    Cheers!
    CLA, CLED, CTD,CPI, LabVIEW Champion
    Platinum Alliance Partner
    Senior Engineer
    Using LV 2013, 2012
    Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.

    As a follow up for anyone who has a similar problem.  As best as I can tell this error had to do with my laptop running out of Virtual Memory, Windows would pop up and tell me my VM was low and the next time I ran the program I would get the previously listed error.  I managed to fix it by rebooting, which is what points me towards the VM being the issue.  I am still open to suggestions if anyone has them.
    Cheers!
    CLA, CLED, CTD,CPI, LabVIEW Champion
    Platinum Alliance Partner
    Senior Engineer
    Using LV 2013, 2012
    Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.

  • Can PCI-6023E support hardware Analog trigger

    I try to use the PCI-6023E to do the hardware analog triggering, but it gives me the Error-10403 while I test with the vi example, Aiacquires N Scans Analog Hardware Trig.vi. Is there any way for this board to do the hardware triggering?

    Jack,
    The PCI-6023E DAQ board only supports digital triggering. You can check all the features of this board in the Data Sheet and Specifications on the Catalog page (see link below)
    2002 Catalog - PCI-6023E
    http://sine.ni.com/apps/we/nioc.vp?cid=1063〈=US
    If you need to perform analog triggering, you have three options:
    1) You can simulate it by acquiring continuosly all the signals that you want to monitor including the one that acts as the analog trigger. Compare the value read from this last one with the boundary that is supposed to trigger the acquisition, and when the value read reaches this boundary, you can save or display the data from all your channels.
    2) You could implement an external circuit that will compare the analog trigger signa
    l with the boundary value, and when they coincide, will generate a digital pulse that you can use as a digital trigger. This option optimizes your CPU usage.
    You can find detail information on how to set up the digital trigger in Chapter 4>>Timing Connections of the User Manual linked below.
    6023E/6024E/6025E User Manual
    http://digital.ni.com/manuals.nsf/websearch/0C88F40FFE7F28CD862569AE00574AC1?OpenDocument&node=132100_US
    3) Finally, you could get one of our boards that supports analog triggering. The PCI-MIO-16E-4 board has similar specifications that the PCI-6023E, and it has some additional features as well. See link below for more information.
    2002 Catalog - PCI-MIO-16E-4
    http://sine.ni.com/apps/we/nioc.vp?lang=US&cid=10795
    Good luck with your application,
    Claudia Lorente
    Applications Engineer
    National Instruments

  • Please help me on error -200284 for usb6008 data A/D

    Hi,
    I am working on the A/D using usb6008, I program in visual c++.  I create a dialog to test the function of sample program: contAcquireNChan.c               in  NI-DAQmx Base.  I just changed the mode to DAQmx_Val_FiniteSamps and each time I just want to get several data. I used a button to start the a/d. The following is the code. The problem is very strange that while I click the start button for the sixth time, this error -200284 will occur when calling this function:
     DAQmxErrChk (DAQmxBaseReadAnalogF64taskHandle,pointsToRead,timeout,DAQmx_Val_GroupByScanNumber,data,2,&pointsRead,NULL));
    The discription of this error is:
    "Some or all of the samples requested have not yet been acquired.
    To wait for the samples to become available use a longer read timeout or read later in your program. To make the samples available sooner, increase the sample rate."
    I do not know what happened. And how to solve this problem. Please help me.
    The following is the code:
    void CBTTest001Dlg:nStart()
       // Task parameters
        int32       error = 0;
        TaskHandle  taskHandle = 0;
        char        errBuff[2048]={'\0'};
        time_t      startTime;
        bool32      done=0;
        // Channel parameters
        char        chan[] = "Dev1/ai0";
        float64     min = -10.0;
        float64     max = 10.0;
        // Timing parameters
        char        clockSource[] = "OnboardClock";
        uInt64      samplesPerChan = 2;
        float64     sampleRate = 2000.0;
        // Data read parameters
        #define     bufferSize (uInt32)1000
        float64     data[bufferSize * 5];
        int32       pointsToRead = bufferSize;
        int32       pointsRead;
        float64     timeout = 10.0;
        int32       totalRead = 0;
     index++;
     if(index==6)
        int a =0;
     m_bWorkFlag = true; 
      double a1= data[0];
      double a2= data[1];
      double a3= data[2];
      double a4= data[3];
      DAQmxErrChk (DAQmxBaseCreateTask("",&taskHandle));
      DAQmxErrChk (DAQmxBaseCreateAIVoltageChan(taskHandle,chan,"",DAQmx_Val_RSE,min,max,DAQmx_Val_Volts,NULL));
      DAQmxErrChk (DAQmxBaseCfgSampClkTiming(taskHandle,clockSource,sampleRate,DAQmx_Val_Rising,DAQmx_Val_FiniteSamps,samplesPerChan));
      DAQmxErrChk (DAQmxBaseCfgInputBuffer(taskHandle,2000)); //use a 100,000 sample DMA buffer
      DAQmxErrChk (DAQmxBaseStartTask(taskHandle));
      DAQmxErrChk (DAQmxBaseReadAnalogF64(taskHandle,pointsToRead,timeout,DAQmx_Val_GroupByScanNumber,data,2,&pointsRead,NULL));
     //    printf("\nAcquired %d total samples.\n",totalRead);
      m_fAnalog1 = data[0];
      m_fAnalog2 = data[1];
      m_fAnalog3 = data[2];
      m_fAnalog4 = data[3];
      m_fAnalog5 = data[4];
      UpdateData(false);
      if(taskHandle != 0) {
    //   DAQmxBaseStopTask (taskHandle);
       DAQmxBaseClearTask (taskHandle);
     return;
    Error:
        if( DAQmxFailed(error) )
            DAQmxBaseGetExtendedErrorInfo(errBuff,2048);
        if( DAQmxFailed(error) )
            printf("DAQmxBase Error: %s\n",errBuff);

    Dear Neal,
    Thank you so much !!
    "DAQmx Base was designed for use on operating systems other than Windows". Maybe that's the reason why I always met problems.  I am using windows now !! The only reason for me to use DAQmx Base is that it comes with the USB6008 device so that I think NI recommend to use it ! I also downloaded DAQmx from NI but I did not tried it (in fact it took me several hours to switch the firmware back to DAQmx Base ). I will try It now and tell you the result.
    "You say that you thought you solved the issue but did you not?"
    Yes.
    " Did you add the stop task function before and that is what you thought solved the issue? "
    Yes.
    I started from the example and do some modifications. First I met -200284 error and I found it is the caused by wrong number of data to be read. I changed to finite namber data read.
    Then I met sixth reading problem, at that time I use a button clicking to read the data.when I read for the sixth time, It will occur (I forgot the phenomena). I added a  stop task function and I thoought I solved the problem. I knew for a finite number data reading, stop function is not needed, but I do not have any other method so I tried it. "sixth reading problem" solved, but When I move the data reading function to ontimer function recently. The program will halt -- take 99% of CPU time after 30 second of reading (sometime several minutes, sometimes several seconds). If I move the start task back to OnInitialUpdate() function and cancel stop function, halt error will not occur but the data I read in not correct. That is the whole thing. The following is the code relative to the data read.
    Initialization;
    void Ctest2Dlg:nInitialUpdate()
       DAQmxErrChk (DAQmxBaseCreateTask("",&taskHandle));
      DAQmxErrChk (DAQmxBaseCreateAIVoltageChan(taskHandle,chan,"",DAQmx_Val_RSE,min,max,DAQmx_Val_Volts,NULL));
      DAQmxErrChk (DAQmxBaseCfgSampClkTiming(taskHandle,clockSource,sampleRate,DAQmx_Val_Rising,DAQmx_Val_ContSamps ,samplesPerChan));
    Data read
    void Ctest2Dlg:nTimer(UINT nIDEvent)
      if(taskHandle != 0)
         DAQmxErrChk (DAQmxBaseStartTask(taskHandle));
       DAQmxErrChk (DAQmxBaseReadAnalogF64(taskHandle,pointsToRead,timeout,DAQmx_Val_GroupByScanNumber,data,100,&pointsRead,NULL));
       DAQmxBaseStopTask (taskHandle);

  • PCI 6025 analog trigger capabale?

    Hello
    Is the PCI 6025 capable of being triggered by an analog signal? I get this
    error while running the demo program
    error -10403 deviceSupportError The specified device does not support the
    requested action (the driver recognizes the device, but the action is
    inappropriate for the device).
    Thanks
    lvilla

    Thanks I found the example for CVI and is sure works. One moe thing, If the
    function times out the system becoms sluggish. Is there a way to increase
    this timeout value?
    Thanks
    LVilla
    "Filipe A." wrote in message
    news:[email protected]..
    > Ivilla;
    >
    > That device you have doesn't support such operation.
    > What you can do to workaround that fact is to configure the DAQ task
    > to do Conditional Retrieval. That is sort of an analog trigger, the
    > difference is that the NI-DAQ driver compares the input values to the
    > specified trigger level, as opose to the hardware, as it is on boards
    > that supports analog trigger.
    >
    > That would make the acquisition a little slower, since every point
    > needs
    to be checked by the driver. If you need faster acquisition than
    > that, you will need to purchase a board with analog trigger
    > capabilities.
    >
    > Hope this helps.
    > Filipe A.
    > Applications Engineer
    > National Instruments

  • Analog trigger 6071

    A simple question for you:
    when I choise analog for the trigger in PCI 6071 and I use PFI0 channel , where I must connect the minus of the signal?
    Thanks

    Greetings delpitik,
    Thanks for contacting National Instruments. The appropriate pin for your connection would be AI GND (pin 76). This information can be found by right clicking on your device in MAX and selecting Device Pinouts. Also, when you create a new DAQmx task in MAX, you can also specify the type of analog trigger. (i.e. edge, window, etc)
    Thanks and good luck!
    Jordan Randall
    National Instruments Italy

  • Analog Trigger Input - PCI 6010

    Hi everyone,
    I have a PCI-6010. I'm programming in VC++ and DAQmx.
    It seems to be a simple task, but i cannot seem to accomplish it by myself.
    I would like to bring in an analog trigger signal and count every rising edge of this signal. 
    Does any one have already made something similar? 
    Hope someone can help,
    Thanks a lot,
    João Rodrigues.

    Hello Eloise,
    I have made some research and i was wondering if I can input my 2V analogue trigger in the PFI0 channel, i just want to use it as a trigger to ouput a waveform.
    The basic code would be like:
    //Create task  and output channel
    DAQmxErrChk (DAQmxCreateTask("",&taskHandle));
    DAQmxErrChk (DAQmxCreateAOVoltageChan(taskHandle,"Dev1/ao0","",-0.5,0.5,DAQmx_Val_Volts,NULL));
    //configure sampling clock and trigger channel
    DAQmxErrChk (DAQmxCfgSampClkTiming(taskHandle,"",1000.0,DAQmx_Val_Rising,DAQmx_Val_ContSamps,1000)); 
    DAQmxErrChk (DAQmxCfgDigEdgeRefTrig(taskHandle,"/Dev1/PFI0",DAQmx_Val_Rising,100));
    //start task
    DAQmxErrChk (DAQmxStartTask(taskHandle));
    //generate waveform
    DAQmxErrChk (DAQmxWriteAnalogF64(taskHandle,1000,0,10.0,DAQmx_Val_GroupByChannel,data,NULL,NULL)));
    In the PCI - 6010 specifications, it is said that the PFI0 channel is a digital channel. Since my signal is analogue, is it correct to input it there? 
    If "no", would it be more appropriate to use this piece of code instead?
    //Create task  and output channel
    DAQmxErrChk (DAQmxCreateTask("",&taskHandle));
    DAQmxErrChk (DAQmxCreateAOVoltageChan(taskHandle,"Dev1/ao0","",-0.5,0.5,DAQmx_Val_Volts,NULL));
    //configure sampling clock and trigger channel
    DAQmxErrChk (DAQmxCfgSampClkTiming(taskHandle,"",1000.0,DAQmx_Val_Rising,DAQmx_Val_ContSamps,1000)); 
    DAQmxErrChk (DAQmxCfgAnlgEdgeStartTrig(taskHandle,"Dev1/ai0",DAQmx_Val_Rising,1.0));
    DAQmxErrChk (DAQmxSetAnlgEdgeStartTrigHyst(taskHandle, 0.1));
    //start task
    DAQmxErrChk (DAQmxStartTask(taskHandle));
    //generate waveform
    DAQmxErrChk (DAQmxWriteAnalogF64(taskHandle,1000,0,10.0,DAQmx_Val_GroupByChannel,data,NULL,NULL)));
    What is your opinion about that?
    Thank you for your help.
    Best regards,
    João Rodrigues.

  • Error -200284

    pxi-6123 use  pxi-6653 ocxo  and star trigger    
    I want to synchronization pxi-6123 with star trigger and Pxi_trigger2(or other pxi_trigger) from pxi-6653 .But there is error.Can somebody help me? thanks.
    pxi-1042
    slot 1 pxi-8108
    slot 2 pxi-6653
    slot 3----slot 8  pxi-6123
    Attachments:
    OCXC route zz.vi ‏41 KB

    Attachments:
    error -200284.JPG ‏172 KB

Maybe you are looking for

  • How to get instance notes in a global

    I have a global in a utility project that gets called through PAPI WS from an external client. I want this global to take an instance id as the input argument. It should then get a reference to the instance, get the instance notes currently associate

  • Agents Commision.

    Hi For sales, I have to pay the amount to Broker/ Agent some amonut based on gross price. How to do. Ex: Base price  -     1000 commision -        20 Discount -           15 frieght------              30 net value--               1015 The commision s

  • My ipad is stuck on safari

    my ipad is stuck on safari only

  • Query slows the system.

    There is one query which is giving some problem in the production site: SELECT ID, REGISTERED_USER_ID, BILL_TO_FIRST_NAME,ADDRESS,ORDER_STATUS,ORDER_SUBMISSION_DATE FROM ORDERS WHERE REGISTERED_USER_ID =@PO AND ORDER_STATUS='COMPLETE' AND ID IN( SELE

  • XI 3.0 Publisher Function: "Pachage as Zip File" causes random file name

    I found in XI 3.0 Publisher Function: "Pachage as Zip File" will lose control to each report's file name. That is: The zip file I name it to: Report-2008-08-08-22-45-20.zip In the zip: ~bcap_8d8553f0ca6b347942_1.xls; ~bcap_f94553f0ca6c247941_2.xls I