Timing embedded with Daqmx on PCI-6132

Hello

My colleague and I are trying to make a program Labview which starts a timer when the first trigger (sensor) is struck and stop the timer when the second trigger (sensor) is reached in 2012. We currently have a program for her, but this program was not sufficiently precise. Also the current program is using the DAQ assistant, but we would like to replace with daqmx triggering. We have also tried to use the OnboardClock on the PCI-6132, but still could not do the work programme.

Is there anyone who knows how to do this and could explain it?

(In the attachment is the current program)

Thanks in advance,

Tommy van Geest

Hello Tommy.

You can share your current code?

Tags: NI Hardware

Similar Questions

  • PCI-6132 redeclenchables

    Dear all,

    I have a problem with my acquisition of data PCI-6132. I need
    to acquire the signal with a finished sample. Data acquisition signal of early acquisition of
    Digital edge of the trigger of the beginning, start signal to the spesified collection
    quantity of the sample were acquired. Its beginning to collect a finished sample
    Yet once when another trigger of early digital dashboard detected.

    Therefore,.
    I put the attribute trigger digital beginning as retrigerable. But when I
    called DAQmxErrChk (DAQmxSetStartTrigRetriggerable (taskHandle, true)), it
    who says:

    DAQmx error: the specified property is not supported by the device or is not applicable to the task.
    Property: DAQmx_StartTrig_Retriggerable

    Task name: _unnamedTask<0>

    State code:-200452
    End of the program, press the Enter key to exit

    First of all,
    I think that the DAQmx_StartTrig_Retriggerable property is not supported by
    My DAQ (PCI-6132). But when I read Help reference C-NOR-DAQmx, suite
    Well supported by heading device, redeclenchables start is one of OR
    PCI-6132 taken in charge the property. Why this error eccur?

    My code
    is the same as ContAcq-IntClk-DigStart - Retrig.c

    Int32 = 0 error;
    TaskHandle taskHandle = 0;
    tank errBuff [2048] = {'\0'};

    /*********************************************/
    DAQmx Configure Code
    /*********************************************/
    DAQmxErrChk (DAQmxCreateTask("",&taskHandle));
    DAQmxErrChk (DAQmxCreateAIVoltageChan(taskHandle,"Dev1/ai0","",DAQmx_Val_Cfg_Default,-10.0,10.0,DAQmx_Val_Volts,NULL));
    DAQmxErrChk (DAQmxCfgSampClkTiming(taskHandle,"",1000.0,DAQmx_Val_Rising,DAQmx_Val_FiniteSamps,100));
    DAQmxErrChk (DAQmxCfgDigEdgeStartTrig(taskHandle,"/Dev1/PFI1",DAQmx_Val_Rising));
    DAQmxErrChk (DAQmxSetStartTrigRetriggerable (taskHandle, true));

    DAQmxErrChk (DAQmxRegisterEveryNSamplesEvent (taskHandle, DAQmx_Val_Acquired_Into_Buffer, 100, 0, EveryNCallback, NULL));
    DAQmxErrChk (DAQmxRegisterDoneEvent(taskHandle,0,DoneCallback,));

    /*********************************************/
    Starting code DAQmx
    /*********************************************/
    DAQmxErrChk (DAQmxStartTask (taskHandle));

    printf ("absorbent samples continuously. Press Enter to interrupt\n ");
    GetChar ();

    Error:
    If (DAQmxFailed (error))
    DAQmxGetExtendedErrorInfo (errBuff, 2048);
    If (taskHandle! = 0) {}
    /*********************************************/
    Stop DAQmx code
    /*********************************************/
    DAQmxStopTask (taskHandle);
    DAQmxClearTask (taskHandle);
    }
    If (DAQmxFailed (error))
    printf ("error DAQmx: %s\n",errBuff); ")

    Thank you
    You

    Hi oktanto,

    I simulated the device, but I was not able to run a redeclenchables VI of analog input. It seems that this property is not supported by the 6132. There may be a workaround is possible: you may be interested by the following code example. Although it is a little older, he should probably still work for you

  • PCI-6132 self-test failed

    My card PCI-6132 at some point began to generate error (code error-50400) during the race. It does not pass to the MAX OR self-test with the same error code. As I see that one of the chips, I think it's a shame. We bought a long time ago, so the warranty has expired. So my question is what it can be caused by? And how can I avoid this in the future? Can it be fixed or I just replaced this card?

    I apologize for my previous post, which indicates that this type of behaviour can be expected.  I want to clarify that we certainly do not expect these damage with our products during operation in the specifications.

    I encourage you to contact OR by phone to set up an RMA for the Board so that it can be repaired and futher diagnostic.

  • The PCI-6132 analog inputs does not

    Hello

    I have problems to install a PCI-6132 card on one of my computers. I am runing Labview 7.1 and DAQmx 8.6. In MAX, I opened the unit and test panels. The counters are working fine however the analog inputs always give v - 10 (-5 If the a - 5 min) without noise. the same on each channel. I have not connected any termianls and expect to see the noise around zero volts. In addition, the card fails the error calibration auto-200545.

    I took an another PCI-6132 of a system works in this computer and had the same problem. So I guess the problem is the configuration of the computer or software. I try to reinstall the DAQmx and labview and the problem has not been corrected.

    Nick Wagner

    NOAA/ESRL/CSD

    (303) 497-3924


  • Laptop crashes when you use PCI-6132 and a box of magma

    Hello

    I use a laptop with a magmabox (Cardbus connection) to accommodate a card DAQ of NOR-PCI-6132. When I'm data acquisition the laptop freezes sometimes and has to be restarted. Anyone who is familiar with such a problem?

    I did not have this problem when the DAQ card is in an office with a regular PCI slot. So, I guess that the problem is related to the magmabox.

    Nick Wagner

    Hi Nick,

    The problem could very well be linked to the magmabox, but before that can be determined, I need more information about your hardware.  I already know about the PCI-6132, but I don't know anything about your laptop or magmabox cardbus connection.  Can you tell me the manufacturer and the model number of your laptop and the magmabox so I can check their specifications? Thank you.

    Best wishes

    Wallace F.

  • Multitask with daqmx

    Hello

    I am currently working on a Senior design project where I have to measure rpm, torque, pressure and temperature.  I use strain gauges, pressure sensor and a Hall effect sensor, thermocouples for these readings.  A myDAQ collects readings rpm and pressure while a cDAQ collects couple and readings of the temperature with NI 9211 and NI 9237 modules.  I have created LabVIEW screws for each sensor and they work.  The problem I have is when I try to create a VI with DAQmx who reads all the values of these sensors simultaneously.  The VI I joined randomly displays one of the measures while other measures remain empty.  How can I change my VI so I can show all my readings at the same time?

    Yes.  Create multiple tasks, where all the strings that are common to a specific device are grouped in the same task.  Then go and run these tasks in parallel.  Do you need a precise synchronization between the tracks in the different devices?  If this isn't the case, then the method should work perfectly.  If you need a precise timing, things would get more complicated, but might not be impossible.

  • time of release with daqmx

    Hello

    How can I set the time of liberation with DAQmx?

    In general, with a single DAQ hardware, the two signals are connected at the same time and the acquisition time is a function of the sampling frequency and number of samples read. For example, with a sampling rate of 1000 samples/s and 50 samples, the acquisition will be 50 msec. You then get a returned array if you wanted to watch a single signal by iteration of the while loop, it is simply a matter of indexing the specific channel to the table. You must set the mode of continuous sampling to avoid gaps and precise timing. Using two separate tasks and switching back and forth would add a lot of overhead to close/create tasks and you have little control over this period.

  • Satellite L500 - light of Wi - Fi with another Combo PCIe Mini card

    Dear Toshiba

    I have 2 of L500-1UG notebook, with the mini PCIe RTL8187B card. (one 32-bit and 64-bit Win7 Home Premium)

    This card has no BT and is only 54Mbps and because the laptop is out of warranty, I bought RALink Tech 2 - card Combo RA3090BC4.

    Only open a notebook up to now, but I've tried the two RA3090BC4 in it.

    When I turn on with the Realtek card, orange wifi light long transfer Windows 7 starts

    When I turn on with the Ralink card, the orange wifi lights at all.

    Win7 32-bit Home Premium (downgraded for reasons of test development software) detects and installs the drivers successfully. I installed the driver for Ralinktech.

    Bluetooth installs fine and I transferred a 12 MB file, a mobile phone successfully.

    I swapped the son of black and white antenna (it is marked 1 and 2, not the hand and to the).

    What else can I check?

    Is there a compatibility issue?

    > Is there a compatibility issue?
    Probably yes. I guess you know that laptops have limited opportunities to upgrade and these upgrades are not supported at all. In the case that you are not happy with built in the solution of the WLAN card is the use of external devices such as USB WLAN cards.

    All pre-installed software are also designed to work with original equipment components. It is not easy to help in this case.
    I m also wondering how you can just buy a WLAN card and Exchange. I mean before doing this, it is important to check if these updates is possible or not.

    Let's see if someone else has a good suggestion that you can do to make it work.

  • With a sampling of the data with DAQMX, error-200279 occurs when making 2d array dbl

    Hello

    I did a system of simple analog voltage with DAQMX data acquisition.

    It is made for reading of capacitance, where output capacitance value out of a circuit in the periodic voltage signal.

    What I want is to get data from four capacitors simultaneously through four channels, using samples n n (dbl 2d).

    The structure of my VI is almost similar with examples of continuous sampling of voltage in LabView, with the exception of a few other calculations in the loop.

    And for the synchronization of the trigger, I've corrected the edge of release with the external signal from the capacitance reading circuit.

    Version no. 1 has a channel for data input voltage. Version n ° 2 has four channels for the input data.

    While ver.1 can get accurate reading of four capacitors circuit data each (a single channel at a time),.

    ver.2 acquires four channels of data, with a single thin data channel, all the others were wrong.

    I saw a 200279 error occur in the DAQMX read part 2d dbl, so I tried increasing the buffers by changing the sampling frequency or the number of samples, but it wasn't everything.

    I rose for most of the forums with the 200279 error, but the solution would not work on mine.

    Anyone can find the problem? I will attach my screws it may include a bit of Korean language, but most of them are in English, shouldn't be too hard to recognize. Sorry for the inconvenience.

    Oh I forgot, my DAQ is NI USB-6259, and it works in Win XP sp3 and LabView 8.6.

    Thank you.

    Hello Azurenight,

    The 6259 is a DAQ card of the M Series Multiplexed, which means that it is not possible to sample each signal at the same instant, rather the channels are all sent through the ADC even and must be sampled in order. More information on this can be found here:

    LabVIEW Help: Multiplexing compared with simultaneous sampling

    http://zone.NI.com/reference/en-XX/help/370466W-01/mxcncpts/multisimulsamp/

    It may still be possible to get the data you need with the card you have - could you give more information about the maximum eligible period between samples on different channels?

    If you require * real * simultaneous sampling, you will probably need different hardware.

    Kind regards

  • I need to generate 3.3 V logic level Digital train of pulses with the NI PCI-6221. Can I change the level of 6221 OR logic output?

    I need to generate 3.3 V logic level Digital train of pulses with the NI PCI-6221. Can I change the level of 6221 OR logic output?

    The output cannot be changed. 5V to 3, 3V level controllers are readily available (Maxim, I think). As long as the scanning speed (etc.) is fast enough for your pulse train, even 3, 3V regulator would work. I don't know if NEITHER offers a module to condition TTL levels.

  • Is it time stamp with daqmx read

    Hi all

    Simple question.  I have currently not creating a task or starting a task, I simply create a channel and reading that chanel.

    It is...  Why I don't get a timestamp when you do and do I create a task to get one of this?

    There is a timestamp when you use the DAQ Assistant or when you choose to return a data type of waveform with DAQmx Read.

    You can't do a reading without a blemish. You don't have to create the task in MAX, however.

  • 2009 with DAQmx Installer

    We distributed an integrated application that uses DAQmx 8.x and LabVIEW 8.6 for several years.  I'll call the application MyApp 2.8.  We are working on a new version that uses LV 2009 and DAQmx 9.x, which we will call 3.5 MyApp.  When build us and deploy a Setup program for MyApp 3.5, then try to use it on a computer that already has 2.8 installed MyApp, the installer complains about dependencies and said that the two DAQmx 8.x and MyApp 2.8 must be uninstalled first.  I spoke NOR cela briefly and told me that DAQmx 9 was a pretty radical overhaul that required this change.

    It's annoying and slow for us, but almost untenable for our customers.  First of all, MyApp MyApp 3.5 and 2.8 are compatible, and we prefer to leave MyApp 2.8 installed as a backup as people get used to 3.5.  If the customer needs:
    Uninstall MyApp 2.8

    Uninstall DAQmx 8.9

    Install MyApp 3.5 with DAQmx 9.0

    Reinstall 2.8 MyApp (as if they can still find the disc!)

    Far too many steps and complications.  In addition, it is not really necessary.  If the runtime for 2009 is already installed on the computer (for some reason any), you can simply copy the MyApp 3.5 on the computer and it will run with DAQmx 8.9.  But this only postpones the problem, because at some point the customer will upgrade once again, and we will have forgotten that they were installed with a workaround, and...

    The really frustrating part is setup for MyApp 3.5 refuses to install until MyApp 2.8 is uninstalled.   While we have proven that MyApp 2.8 will work very well with DAQmx 9.0.

    Is anyone else noticing this problem?  Has anyone found any better workaround?  Is the same problem when we jumped 2009 and returned with 2010 and the last DAQmx?

    Thank you

    DaveT

    DaveT,

    You're right - for this aspect of the problem - my proposed solution won't help. At the price of a larger Setup program, including the full version of DAQmx probably will give the upgrade experience you want. If the web download size is a concern, perhaps you could provide two builds of your product - with the acquisition of complete data (for those of you who have your old product) and with smaller data acquisition (for those who do a clean install)?

    In addition, certain registry keys to remove the dependency I guess hacking is sort of an option, but it probably isn't the type of solution you are looking for. (We are currently researching the addition of some extra features in the uninstall program OR allow without taking account of certain dependencies, but nothing is currently available).

    Kind regards

    -WesW

  • Hardware timed CI/CO, operation of PCI, I / AO with specific execution order

    Hi all

    I work with a USB-6361 NI data acquisition hardware and I'm writing a LabView 2011 program which sends a signal to my output device and reads several values of various measuring devices. I have a ramp voltage signal (in a table format) and I need to sequentially send the elements of this array on my AO device with very precise timing (ideally timed material). As soon as the value is written to the device of the AO, I need my tasks HERE and CI to record all available data and my task to send a single impulse before the next array element is sent to the device AO. All this needs very precisely timed such that if I perform a measurement on 1000 points in my table of ramp with a timing of 1000 Hz, the program will have exactly 1 sec. to run (less overloading caused in initialization and closing tasks) and produce a table of data consisting of 1000 steps of AI and CI. I had initially tried to achieve this by using a structure of sequence within a timed loop software, but because I won't get into multiple channels of Amnesty International and CI and tables of data, this has proved to be excessively slow. The other danger that I fear I could run is the case in which the LabView program runs more slowly than the process of acquisition data itself, thus causing data to write to the buffer and the measures being lost.

    I didn't spend a lot of time working with the procedures, timing and synchronization, so I apologize if this is a rather naïve question - I'm having trouble reconciling restrict them inherent software and order of execution with the hardware timing. What is the best way to solve this problem? I can only think of two reasonable approaches to the problem:

    (1) should I try to trigger my CI tasks and HAVE run on the completion of the task of the AO (and if so, how)?

    (2) I have the CI and tasks run on a separate clock with a start delay initial light as to compensate for these tasks if they occur reliable after that each value AO is sent to my device?

    Finally, I build an identical for a real-time embedded controller program of SMU-8100. The approach will be different in this case?

    Thanks in advance for your answer.

    I can give you an overview of the steps you'll need, but be ready to spend experiment a little time and some of these individual pieces of troubleshooting before you put them all together.

    First of all, a X-series 63xx allows all you need to accomplish a very precise synchronization in hardware.  When you then switch to a real-time controller, you must include an X-series device in the chassis to maintain this capacity of equipment.

    Second, 1 kHz is not yet a challenge to LabVIEW to catch up with your hardware, even with powered lower RT controller.  You just need to program the DAQmx tasks to let the hardware & driver do most of the work.

    1. I would dedicate a counter of the 6361 to generate the clock shared for other DAQmx tasks.  I tend to create a clock and operating cycle of 90-95% for this type of application of stimulus / response to the response time & maximum stabilization.  Generate the stimulus at the cutting edge of the clock and gain response data on the edge of leak - before the next sample of stimulus.  Call it the task of the clock.

    2 set up a buffered AO task that uses the output of clock as the sample clock. Configure the polarity to be sensitive to the cutting edge (usually, this will be a rising edge).   Start the task AO * before * starting the task of the clock.

    3 configure tasks HERE and CI to use the output of clock as their clocks in the sample.  Configure the polarity to be sensitive at the trailing edge.  Start tasks I and CI * before * starting the task of the clock.

    4. the output pulse should be a task of meter output, configured to generate a single pulse redeclenchables.  Configure it to use the leading edge of the clock as the trigger signal output.  Set the time of 'low' and the 'initial period' to equal precision<1 msec="" delay="" you="" want="" to="" make="" sure="" that="" you="" get="" the="" same="" timing="" on="" every="" trigger.=""  be="" sure="" the="" high="" time="" allows="" the="" full="" pulse="" to="" fit="" within your="" clock="">

    5 examine the "producer-consumer" model so that you can separate your data from your CQI data processing.  You should stream to file continuous rather than it accumulates in large networks.  Write speed of file can be unpredictable, this is why access to the file must be in a separate loop that acts as a data consumer that the loop of CQI data produced.  When you spend real time, assign a lower priority in the process of writing file.

    -Kevin P

  • Problem with DAQmx Schedule VI (sample clock)

    Hello to you all,.

    I'm new to this forum, please bare with me. I have some experience with LV, but I am relatively new to data acquisition projects. I use LV2009.

    I want to make sure that I use the hardware timing (instead of software distribution) in my project so I followed some of the threads here as sugested to use DAQmx Schedule VI. The problem is that no matter how I set the system I get the same error-200300 invalid calendar
    type.

    The project is simple. I encode with 1000 pulses per
    Rev and it is mounted on a shaft of a turbine water goes thru. I'm watching the frequency
    and so the rotation of the shaft which tells me that the amount of water flows through the turbine. In the end, there will be 2 channels
    by every encoder and ~ 3 encoders (turbines) total and calibrated the main meter that will give me constant impulses and all encoders will be compared to this master frequency.

    I'll use PCI6602 DAQ, but
    now, for the development, I use USB6221. Let's say that the
    frequency is between 500 Hz and 10 kHz. What I am doing wrong? Or maybe better to ask - what would be the right approach for this project?

    Thank you

    Marty

    Hi Marty,

    It seems that your question is already answered here, but Jason is correct that the 6221 neither the 6602 support a clock sampling for frequency measurements.

    As Jason mentioned, your best bet is also likely set the mode of synchronization for "implied". This means that the frequency value is sampled at the end of each period of your input signal. In addition, a solution that is clocked by the software (On-Demand) might be acceptable.

    X Series DAQ devices allow an external sample clock to use for frequency measures (described in the Manual of X series). Frequency of sample-clocked measures are useful in very specific
    circumstances, but it does not seem that you need this feature based on what you've described so far.

    (621 x) bus-powered M series can also be configured to use an external sample as the X series clock but do you not have the same features described in the manual of the X series.

    I hope this helps!

    -John

  • Need help with counters on PCI-6221 (37-pin)

    Hi all

    I have a system with a PCIe 1429 connected to a Basler A504 camera and one I use a clock generator (SRS CG635) of 3.9 kHz for trig the image acquisition.

    On the same system that I need to add a PCI 6221 37
    PIN
    to acquire:

    -2 HAVE 39 kHz, synchronized with the acquisition of the image. (Sample of the 10 for each image)

    -1 meter to measure a frequency

    The accuracy of my clock of 3.9 kHz being much higher than what I have on the DAQ card, I thought that an interesting option would be to have a redeclenchables DAQmx task that generates impulses from 10 to 39 kHz for each pulse received from the clock and then use it to trigger the DAQmx AI task.

    Of course this can only work if the 'trigger' sources that I defined for these two tasks do not take both counters that I have on the card.

    So, let's describe the DAQmx tasks:

    -Here is the one who generates the 39 kHz on 0, the counter of the 3.9 kHz I entered as a source on PFI 4 trig

    -This is the task of analog input for which I put the trigger on 6 PFI.

    It is: I have "softwarely" know the jury to deliver output (Ctr0) 6 FBP counter? And if so, how?

    Thanks in advance for any help!

    Maybe you missed something that I didn't really point out in my post.  The method I described would use the external clock of 3.9 kHz precise as a sample clock, so you would * not * be in danger of loss of synchronization in 1 s per day.  You need to only son of this clock signal in a stem of PFI available and configure the task to HAVE it as a result.  The 80 + kHz clock that controls conversions within each sample cycle * would * be generated by the jury of 6221, but he don't would not accumulate any out-of-sync error because he gets "retriggered" on each edge of the 3.9 kHz precise clock.

    -Kevin P

Maybe you are looking for

  • Why can't I sync all my books?

    I use iTunes 12.4.1.6 with iBooks 1.5 on OS X 10.11.5, as well as a Mini iPad and iPhone 6. My iBooks collection contains about 360 pounds, including records for the electronic components, recipe books, photography books, you name it. Formats include

  • How to delete multiple emails at once rather than individually

    I want to choose emails at random (not immediately in order) and remove with unique function. I don't want to have to remove each of the unwanted emails individually. D how is this? In addition, there no function erase at the top of email-why not?

  • How can I remove the frame private on a folder in Windows XP?

    I scored a private folder and now I want to cancel this setting.  The screen sharing and security I cannot uncheck the box 'make private' - it is gray and inaccessible.

  • remove system volume information

    How to remove system volume information

  • Embedded video html will not work for mobile

    HelloI have a video embessed successfully on my desktop site, but I can't make it work for mobile:You can see here on the desktop: MTV ART HOUSE MOSCOWI put the same code in the mobile version, I didn't change the width and height, can someone please