Triggering With DAQmx

Hi,
I have a PXI-7344 and PXI-4462 and use LabView 7.0. I would like to automate data acqusition of an analog voltage signal with the stop and start of a short one-axis move. I am trying to use breakpoints to accomplish this with the RTSI 0 line. However, I receive an error (#89139 at DAQmx start task.vi). It lists the  possible reason that "there are no shared trigger lines between the two devices that are acceptable to both devices".  Any idea what's going on here? I've configured this application multiple ways. Any advice on how to set this up or trouble shoot would be appreciated. VI attached.
Thanks,
ROB
Attachments:
sample for NI.vi ‏169 KB

This error could happen if you don't identify the type of your PXI chassis in MAX. Please follow the steps in described in this document from our knowledge base.
Best regards,
Jochen Klier
National Instruments Germany

Similar Messages

  • Pulse Generation application with DAQmx and a PXI-6624 module?

    What is the best implementation method for the following pulse generation application
    using LabVIEW, DAQmx and a PXI-6624 counter\timer module?
    I have two rising edge trigger signals (Trigger-1 and Trigger-2).
    There is ample spacing between each trigger. They never occur at the same time.
    I need to generate a single pulse (fixed width, variable delay) whenever Trigger-1 occurs and
    a finite pulse train (fixed width, variable delay, N-pulses) whenever Trigger-2 occurs.
    However, the output must appear on one counter output because this composite signal
    will be used as a trigger source for another PXI module in the rack.
    With DAQmx and a TIO counter\timer can I use both the GATE (for Trigger-1) and
    AUX (for Trigger-2) at the same time on the same counter to gate out the desired pulses?
    Trigger-1 would be wired to the GATE of CTR0. One Trigger-1 event would generate one pulse on the output of CTR0.
    Trigger-2 would be wired to the GATE of CTR1 and the output of CTR1 would be routed to the AUX input of CTR0.
    One Trigger-2 event at the GATE of CTR1 would generate multiple pulses on output of CTR0.
    Would DAQmx and the PXI-6624 TIO support this implementation?
    What is the best way to accomplish the task at hand.
    Thank You.
    Best Regards,
    Scooby

    Hi Scooby,
    I have looked into the application you have described and I see a potential problem with what you describe.  In DAQmx, it is not possible to call the counters of the same DAQ device in the same task, so you cannot have the finite pulse train generation and the single pulse generation tasks running at the same time.  What you can do, since you mention the triggers will not occur at the same time, is to stop one counter task while you are triggering another.  The way I would suggest you merge the outputs is with a two input Or logic gate to avoid damaging your counters.  Your signals will effectively be added together by this logic gate.   I do not see any way to merge the outputs internal to the DAQ device. 
    Please let me know if I can be of additional assistance.
    Laura

  • Problem with DAQmx and Real Time PCI-7041/6040E.

    Problem with DAQmx and Real Time PCI-7041/6040E.
    I have a problem with the Real Time card PCI-7041/6040E, I think it is properly installed because my software run with the traditional NI-DAQ. When I try to use the new DAQmx to acquire one signal, Labview doesn't see any device for de DAQ card 6040E.
    Information, I work on Windows XP and LabView v7.0.0 (NIDAQ RT v7.0.0, NI-Serial RT v2.5.2, NI-VISA v3.0.1 and NI-Watchdog v2.0.0).
    Could Labview RT run with new DAQmx ?
    What can I do to use DAQmx with PCI-7041/6040E?
    Thanks for your help !

    Hello,
    I refer to your posts because i am using the PCI 7041/6040E card as
    well but without any success to make it work. The problem I have
    already described in the following thread:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=120198
    Would be nice if you had a look on it, maybe you can help me. BTW, the
    thread starts with a problem of someone else, the difficulties I
    encountered are to be found a little bit to the bottom of the thread's
    page.
    Thank you!
    Dirk Völlger
    Darmstadt
    Message Edited by ratschnowski on 07-28-2005 07:14 AM

  • Problem with DAQMX on a 6025E !!

    Problem with DAQMX on a 6025E
    I work on a DAQ 6025E and I can't use the example "Write Dig Port.vi" and all others example on digital output with DAQMX. There isn't any hardware failure because the same installation functions correctly with the traditional DAQ. I want to use these channel parameters: Dev1/port2.
    I already tested to make a reset device and use "line or port configuring vi" but without successes.
    Thanks for your help!
    Attachments:
    Write_Dig_Port.vi ‏48 KB

    I took a look at the example you attached and it looks fine. Here are a few things to try out BEFORE running the example from MAX:
    1) Remove any SCXI, SCC, and accessories from the configuration in MAX so that no DIO lines are reserved for communication.
    2) Reset the driver to work in DAQmx mode for your board. To do this, first right-click the "Traditional DAQ Devices" and say "Reset Driver" and then right-click your 6025E under DAQmx Devices and say "Reset Driver" again. This should enable the driver for DAQmx.
    3) In MAX, under DAQmx Devices, run the test panel and make sure you can read/write all the DIO lines there first. If that works fine you should be able to run the example.
    Remember that the port names for the 6025E are Port 0, Port 2, Port
    3, and Port 4 (no Port 1).
    Good Luck!!!
    Sincerely,
    Brooks Bailey
    Application Engineering
    National Instruments

  • Can read TEDS in MAX but not with DAQmx VIs

    Hi,
    I have a cdaq 9181 with a 9234 accelerometer module.  I have 3 teds equipped accelerometers connected to ai0, ai1, and ai2 repectively.  In MAX, when I reserve the chassis I can read all three teds, no errors.  When I do the same thing in labview (ie reserve the chassis, create a daqmx task, associate teds data with each physical channel, all with daqmx VIs) I can only read two out of three teds.  The third one throws a "no teds sensor detected" error.  This code has been in use for about four months now, though I just rewrote the calling VIs, and hasn't displayed this problem.  I've attached a snippet of the task building VI for reference.
    Any ideas what's going on?
    Thanks.
    Using LV2012 and MAX 5.3.1 running on Windows 7 32 bit.
    CLAD
    Attachments:
    Build Daq Task Snippet.png ‏58 KB

    Nope.  That's a delete from array, length 1, index 3.
    In any case, I eliminated that block since the string array wired to the for loop controls how many devices the VI attempts to configure.  Same result, verified it was trying to configure ai2.  Here's the updated snippet:
    CLAD
    Attachments:
    Build Daq Task Snippet v2.png ‏54 KB

  • SCXI 1001, SCXI-1102 and SCXI-1303 not working correctly with DAQmx

    I have recently upgraded from Labview 6.5 to Labview 8.2 and now my SCXI 1001 with a SCXI 1102 and SCXI 1303 terminal block no longer reads the correct voltage.  Using the old version of labview thermocouple measurements are correct at 0.5mV; however using the new version of labview and DAQmx the thermocouples are reading 5V.  Everything is installed correctly as it still works with the older version of Labview, is there something that needs to be reset or change so that teh SCXI will function properly with DAQmx?

    Hello ilabtech,
    From my understanding you are using an SCXI 1001 chassis with an SCXI 1102 and 1303 terminal block to perform thermocouple measurements.  You are upgrading to LabVIEW 8.2 and DAQmx.  I am assuming you were using LabVIEW 6.1 since there isn’t a LabVIEW 6.5.  You mentioned that are able to get a correct reading of 0.5 mV with LabVIEW 6.1 but you see a rail of 5V with LabVIEW 8.2 and DAQmx. 
    My first suggestion is that you ensure that the SCXI is set at the appropriate range and for the correct thermocouple type.  You can also configure these settings in MAX as detailed on page 27 of the SCXI 1102 User Manual and Specifications Guide. 
    My second suggestion is for you to start off using an example program to see if you see the same error.  When you are in a LabVIEW 8.2 VI you can go to Help>>Find Examples to open the NI Example Finder.  You then choose Hardware Input and Output>>DAQmx>>Analog Measurements>>Temperature>> Cont. Acq Thermocouple Samples-Int CLK.vi.   This example program is supported by your hardware and is a good resource to use to troubleshoot.
    If these suggestions aren't helpful please answer the following questions in your reply.
    1.        I would like to know what range you have set the SCXI 1102 to read. 
    2.       What version of DAQmx are you using?  You can find the version my opening Measurement and Automation explorer (MAX), expanding the “Software “and clicking on NI-DAQmx.
    3.       What operating system are you using?
    4.  Does your Traditional DAQ program work in LabVIEW 8.2?
    Regards,
    Ima
    Applications Engineer
    National Instruments
    LabVIEW Introduction Course - Six Hours
    Getting Started with NI-DAQmx

  • How to configure a continuous pulse generation that doesn't end after the VI exits with DAQmx?

    Hi,
    I'm just learning the DAQmx and I have run into a problem.
    With the legacy DAQ API I could configure a counter to create continuous pulses and
    when I needed change the freq or duty cycle, I would just call the the configuration function
    again. The pulses were generated even after I closed LV, so it was all in the hardware.
    Now, with DAQmx api, it seems that this is not possible. I read a forum post saying that
    LV will end the pulse generation after the VI exits. Is there a workaround for this?
    I could ofcourse create a LV thread for this, but I liked the old one better
    It was simpler and I didn't need to worry about threads so much.
    All LV operations are going to be inside a DLL that is called from outside of LV, so I can't
    use LV threads in a simple way, e.g. putting things inside a while loop. Just that you'll
    know why I wan't to avoid using the threads.
    Thanks.

    It is possible to achieve this behavior using the DAQmx API by using the DAQmx Create Task VI to explicitly create the task (rather than relying on DAQmx Create Channel to do it implicitly) and setting the AutoCleanup attribute to False.  This method prevents LabVIEW from automatically clearing the task when your VI (or the function you'll be exporting to your C .dll) finishes executing.  The disadvantage is that you might accidentally "leak" a task if you're not careful.  In order to stop the pulse generation on command, you can either reset the device or somehow store the task name you created and come back later to call DAQmx Stop and/or Clear Task.
    Here's how you would start the generation:
    ...and how you could come back and stop it later, using the task name you created:
    Hopefully this helps-
    Message Edited by Tom W [DE] on 11-16-2007 07:54 AM
    Tom W
    National Instruments
    Attachments:
    autoCleanup.JPG ‏17 KB
    clearTask.JPG ‏4 KB

  • How to generate sequence of pulse trains with DAQmx?

    I need to generate a sequence of pulse trains with DAQmx (the card I have is a PXI-6229 card). As an example:
    - 10'000 pulses at 20kHz every 5 seconds with an initial offset of 2 seconds (let's say 10 pulse trains in total).
    If I use the CreateVirtualChannel.vi in "CO pulse ticks" mode, I can only specificy offset, high ticks and low ticks, but not that the sequence of pulses should be repeated after some time. 
    Now I thought that I could solve this problem if it were possible to multiply two counter outputs: the first counter would generate the pulses (continuously) whereas the second one would switch between low and high on a slower timescale in order to gate the first counter, thereby providing an initial offset and the "off" phases between the pulse trains.
    Is it somehow possible to multiply two outputs with DAQmx and the card I have? Or is there another solution to the problem?
    Thanks a lot in advance for any hints!

    Hi dlanger,
    what you want to do requires a little bit more work. 
    First look at the example "Gen Dig Pulse Train-Continuous.vi" from the LV example finder.
    This example generates a continuous* pulse train. As you see, you need a sample clock VI for setting the sample mode. 
    * NOTE: Generating a finite pulse train with a M-series card requires 2 counter.
    With a pause trigger (DAQmx trigger property node) you can gate the output of that counter.
    Now you have to generate a gate-signal with the the 2nd counter. That means, only if  Ctr1-out is high Ctr0-out outputs the 20 kHz-signal. 
    Maybe you have to adjust the times in my example a bit. 
    Unfortunately there is just one "small" problem: "let's say 10 pulse trains in total" 
    This is not possible, because a 3rd counter would be necessary (*). 
    As a workaround you can modify the while-loop that both tasks are cleared after 50s. This is not brilliant, but should work fine for you. 
    A more sophisticated way is to perform a correlated DIO. So you can generate custom pattern for multiple outputs. 
    A good example can you find here: 
    Retrigger and Repeat Finite Digital Pulse Train in LabVIEW
    http://decibel.ni.com/content/docs/DOC-8473 
    or here:  
    Generating More Than 2 Pulse Trains Using CompactDAQ
    http://decibel.ni.com/content/docs/DOC-2167 
    Hope this helps.
    With best wishes,
    Ralf N. 
    Attachments:
    Gen Gated Dig Pulse Train-Continuous.vi ‏38 KB

  • Pci 6602: configuring a frequency-divider with daqmx using labview7.1

    i´m using labview 7.1 and the pci6602 counter-board. i want to configure a counter as an frequency-divider with varaibale division-rate, witch is a easy thing to do with the classic "old" daq-driver.
    it´s recommended to use the "new" daqmx-driver, and i want to do so, cause i´m using also other ni-devices and want to use the same driver for all of them, but i can´t find any possibility in the daqmx-vi´s to configure such a frequency-divider.
    i also couldn´t find any example-code for this problem.
    please help me!!

    hi, thanks for the answer, but unfortunatly it´s not what i ment.
    i need to configure a counter on the pci6602 wich divides down the frequency "f_in" of the square pulses connected to it´s "source" pin by "divisor" and puts out square pulses with frequency f_out=f_in/divisor at another pin. That process should take place only on the 6602-board without using the cpu.
    i´ve found the solution already, how to configure a counter on the pci6602 with daqmx like described above. see attachment.
    servus
    markus
    Attachments:
    Divider_Config_mw.vi ‏40 KB

  • Can i use Stored procedures and triggers with SDK

    hi all
    How to use the stored procedure and Triggers with SDK, can i get a sample code
    Regards
    Salah

    Hi, Salah.
    Use "Exec" in your query to run procedures.
    SAPbobsCOM.Recordset     oRS;
    oRS = (SAPbobsCOM.Recordset)pCmp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);
    oRS.DoQuery ("EXEC YourStoredProcName");
    Triggers are not supported in SDK.
    Regards,
    Aleksey

  • Installing LabVIEW 8.2.1 with DAQmx 8.0 on Suse 10.2 for Linux.

    We recently installed LabVIEW 8.2.1 on Opensuse 10.2 for Linux.  After some work, my advisor was successful at getting the install to work with DAQmx 8.0 and NIKAL 1.5.  I thought I would post the install notes for anyone who finds them useful.  Everything seems functional thus far.
    Jeff Hay
    Attachments:
    installnotes_2007aug13.txt ‏12 KB

    Jeff,
    Thanks for the extremely detailed post.  I have actually been experimenting with this combination of software for the past couple weeks (i.e. OpenSUSE 10.2, DAQmx, LabVIEW 8.2.1).  Your steps match mine very closely.  I did have a one thing to add, and one question about your steps.  First, I just want to mention that NI-KAL 1.6 has been released and it fixes several issues when installing NI-KAL with newer kernels.  This is available at:
    http://joule.ni.com/nidu/cds/view/p/id/850/lang/en
    I would highly recommend using NI-KAL 1.6.
    Second,  I wanted to ask about step #2 where you modify the modpost.c file.  When I ran updateNIDrivers I was not required to make this change.  However I did have to increase the allowable symbol length.  I changed the line:
    #define SZ 500
    to
    #define SZ 1024
    in modpost.c.
    I then proceeded to follow the steps you mentioned and was able to run updateNIDrivers without error.  Could you test to see if changing the allowable symbol length fixed the problem without having to ignore the "parse error in symbol dump file."  I don't exactly know what the read_dump function does but it always makes me nervous to ignore errors.  Since NI-KAL uses modpost to install a kernel module, this failure may be important, although I don't know for sure.
    Once again thanks for your awesome post.
    Regards,
    Neil S.
    Product Support Engineer
    Multifunction Data Acquisition
    National Instruments

  • WDRuntimeException: Exit-Plug must no be triggered with an URL when running

    Dear SAP,
    In our SRM-JAVA system, when I am leaving a web page, I get this error :
    The initial exception that caused the request to fail, was:
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Exit-Plug must no be triggered with an URL when running in portal.
    Use portal navigation instead to navigate to another application!
    at com.sap.tc.webdynpro.progmodel.view.View.navigate(View.java:516)
    at com.sap.tc.webdynpro.progmodel.view.View.navigate(View.java:462)
    at com.sap.mdm.srmcat.uisearch.master.wdp.InternalMasterWindowInterfaceView.wdFirePlugToApplicationPlugOUT
    (InternalMasterWindowInterfaceView.java:205)
    at com.sap.mdm.srmcat.uisearch.master.Master.callOCIComponent(Master.java:1119)
    at com.sap.mdm.srmcat.uisearch.master.wdp.InternalMaster.callOCIComponent(InternalMaster.java:940)
    ... 32 more
    More detail :
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Exit-Plug must no be triggered with an URL when running at com.sap.tc.webdynpro.progmodel.view.View.navigate(View.java:516)
    at com.sap.tc.webdynpro.progmodel.view.View.navigate(View.java:462)
    at com.sap.mdm.srmcat.uisearch.master.wdp.InternalMasterWindowInterfaceView.wdFirePlugToApplicationPlugOUT(at com.sap.mdm.srmcat.uisearch.master.Master.callOCIComponent(Master.java:1119)
    at com.sap.mdm.srmcat.uisearch.master.wdp.InternalMaster.callOCIComponent(InternalMaster.java:940)
    at com.sap.mdm.srmcat.uisearch.master.MasterView.onPlugfromResultSetViewIn(MasterView.java
    Thanks in advance for your input.
    Best regards
    SAP NetweaverAdmin
    Edited by: SAPNetWeavAdmin on Jan 14, 2011 7:11 PM

    Hi,
    could you please take a look at the following SAP note and see if this is relevant for you?
    1450826 - Error when SLD administration called in portal environment
    About your problem, is this happening every time you leave a web page?
    Regards,
    Jonas Cella

  • Multiple tasks with daqmx

    Hello,
    I am currently working on a Senior Design Project where I have to measure torque, RPM, pressure and temperature.  I am using strain gages, a Hall Effect Sensor, pressure sensor and thermocouples to obtain these readings.  A myDAQ collects the RPM and pressure readings while a cDAQ collects the torque and temperature readings with the NI 9237 and NI 9211 modules.  I created LabVIEW VIs for each sensor and they work.  The problem I am having is when I try create a VI with DAQmx that reads all these sensor values simultaneously.  The VI that I have attached randomly displays one of the measurements while all the other measurements remain blank.  How should I edit my VI so I can display all my readings at once?
    Solved!
    Go to Solution.
    Attachments:
    SD.vi ‏87 KB

    You can form all of your cDAQ readings into a single DAQmx task.  Do the same for the myDAQ channels.  On the read side, you just read multiple channels.  You can then use the Array Index to separate your channel data and do whatever calculations you need.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    Multichannel task.png ‏40 KB

  • Can I measure pulswidths with daqmx base and NI-USB6501

    Can I measure pulswidths with daqmx base 1.4 and NI-USB6501? I can measure edges width this function: DAQmxBaseCreateCICountEdgesChan. But, when using DAQmxBaseCreateCIPulseWidthChan I always get an error message back (DAQmxBase Error: <err>Value passed to the Task/Channels In control is invalid).
    I also cannot find any examples about this topic in the software on CD nor on the internet.
    I also don't know what values to use for the float64 minVal and float64 maxVal arguments when using the pulse width function of above (see the NI-DAQ™mx Base 1.x C Function Reference Help).
    Maybe my device (NI USB6501) cannot measure pulse width's and when it does measure pulse width's, what value will it give back? Seconds or ticks and what is the accuracy?
    Ok, enough questions for now. Thank you in avance for answering.
    D. Stollman

    The USB-6501 counter is capable of falling edge edge counting
    measurements only, so the type of measurement you wish to do is not
    possible with that device.  The data sheet for the USB-6501 can be
    found at the following link:
    http://www.ni.com/pdf/products/us/20054920301101dlr.pdf
    I believe the DAQPad-6015 and DAQPad-6016 USB devices are capable of
    measuring pulse width, as well as many of NI's PCI data acquisition
    devices.

  • How to solve the error "The specified resource is reserved" when running with DAQmx And LabVIEW?

    How to solve the error "The specified resource is reserved" when running with DAQmx And LabVIEW?

    I hate "J term"
    OK I love the learning the students get.   And, I like helping them out!  But, as a former man who's got the varicose viens to prove he's spent time "behind the podium" (yeah, "behind the podium" puts 'em to sleep- songs and dances for the young'uns) come on! USE the tools you teach!
    Instructors invited to engage in the forums
    Jeff

Maybe you are looking for

  • Replacing a photo or video clip

    Hello, What is the easiest way of replacing a photo or video clip with a different photo or video clip on the timeline without messing up the overall sequence or length of the video?

  • File Adpater - Content Conversion Error

    Hi experts I am getting the following error in the File Adaper : Conversion initialization failed: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Mandatory parameter 'xml.keyfieldName': no

  • Ipod 4th gen white death screen

    my ipod 4th gen has a problem .it is white screen of death.....i have done the hard reset but hasnt helped me with it. please could u give me solutions for the problem.

  • Will my Macbook 13" late 2006 take the RAM from a Macbook Pro 13" 2.4 Ghz Intel Core Duo?

    I have a macbook 13" late 2006 and i found it was cheaper to buy a 13" Macbook Pro 2.4 Ghz Intel Core Duo Ram, I was just wondering if the ram out of the pro model will fit my older model?

  • Last document opens on startup

    Hello, I've been running InDesign CS6 and every time I launch the program the first thing it does is open the last document I was working on (which I did close before quitting the program). This is extremelly annoying. How can I disable it? Thanks.