DAQmx generating triggers TTL and triggered read it

I am running LabVIEW 2013 on a Windows 7 PC and I use a card PCI-6251 DAQ with a BNC-2110.

For my application, I need to generate triggers TTL (for example, with a frequency of 1 Hz). At the same time, I need to run data to HAVE which is triggered by the same TTL signal.

So far I managed to implement the TTL square signal properly with a spot of meter output - I can see the triggers on a scope. I also have a task of entry of HAVE and included a digital triggering. He works in part, and I have a few questions:

  • The physical channel of triggering TTL is set to ctr0. This seems to be associated with the PFI12. I rather would specify the terminals directly in my program - is it possible? The ctr0 is not labeled directly on the BNC-2110.
  • The task of IT is triggered by the PFI0. I connect a cable from PFI12 to PFI0. Is this really necessary? The task of the AI can be triggered internally for the same counter? My external hardware must be triggered with the same signal as the acquisition. So far, my solution seems to be the only way I can make it work.
  • Digital triggering for the task to HAVE it is configured to 'rising edge' trigger. However, when I run the task to HAVE it continuously in a loop, it seems that it is triggered Alternatively edge bearish and bullish. I checked this by connecting the meter to exit on PFI12 directly to the input string for the task to HAVE it, and I observe that the periodic square wave changes sign. Why is this? It is a problem for my application - I need to be able to always trigger on this same Board.

Thank you very much for your help.

hmalissa:

You can query programmatically for the pulse of a task of the meter output terminal using a property DAQmx channel node.  Here is an excerpt.  Just save the image and drag the file into a LabVIEW block diagrom and turns it into code.   You do not have to use this as a Subvi, controls & indicators are just there to identify the task who is who.

Bob: interesting experience.  But to help future readers to draw the erroneous conclusion, I just would insist that a timed hardware task still * fact * produce much more repeatable calendar timed sample a software task programmed in a software loop.  Example of Bob is not address the regularity of the individual sample interval, just by comparing the driver DAQmx or MS Windows timer is more sensitive (and repeatable) to marking the end of an interval of 1000 msec.

-Kevin P

Tags: NI Software

Similar Questions

  • How to generate a high TTL and a weak pulse TTL using the USAB daq card

    Hi all

    I have usb daq 6361, how do I generate a TTL high and low pulse in labview to trigger my camera.

    Thank you

    Here is a code DAQmx to start your 6361, a digital output the value True (high TTL), wait a second, then set it to False (low TTL).  Have you tried to connect your device to your PC and pull them to the top of MAX?  He must "see" the device, and you can manipulate its ports to test.  Indeed, the name MAX gives your device is what you put into this first constant of e/s on my example (if you click the drop symbol, you should see a list of devices found as MAX).

    Bob Schor

  • How to use an analog signal to conditionally generate a TTL (or a square function) signal?

    Hello world

    I am using PCI-6229 and try to develop a code that can generate a TTL/place function signal from only one analog entry satisfies following conditions: 1. crossing a certain value (for example, 0 V); 2 slope edge of fall. The time delay between the point of passage and newly generated signal TTL/square will be essential to my measurement, and may not exceed 1 millisecond. Any suggestion on this subject? Thank you in advance!

    You are using the measure called Excel add-in? That's what this forum is for. Otherwise, you should post to the multifunction DAQ card and speak the language you are using.

  • generate the TTL signal for synchronization from another device with Labview

    Hi all

    I use NEITHER-6071E and try to generate and send a TTL signal so I can synchronize another device with my Labview code. My code (code attached) generates a sine wave, and I want to send a singal TTL out at an angle of phase on the sine wave. Currently, the code sends a sinusoidal signal and a square using similar wave output on BNC Plug. I thought I could just use a square wave, and send it out as analog output for the other device, but apprantly that he works with a TTL signal.

    Could you please take a look at my code and advice me how to generate a TTL signal while being able to send it to some phase shift?

    Thank you davance

    Pooya

    There is almost everything using examples > find examples... menu

    but here is one which simply sends a single impulse:

    Note that I expect the line have been pre-defined in MAX (it's always a good idea to check that your DIO line behaves as expected by trying it in MAX).

  • How to determine the number of highlight ' to write ' for DAQmx generate analog output?

    On the configuration of the stage for DAQmx generate analog output, there is a field "value to write.  I can't find any explanation for what it is, how it determines the value to enter, nor what he writes.  I am trying to go through the tutorials and it cling.

    Someone would give an explanation?

    Hello

    To write value specifies the value to write in the channels, lines or ports selected in string parameters. In other words, this value will be the value of your DC output (for example if you enter 5, your output will be 5V). To get information on different fields in SignalExpress, access help"context-sensitive help. A pane will appear in your work environment that displays the coordinates of the field when you place your pointer over them.

    For new users of SignalExpress:

    Generation of DC signals with NI DAQmx devices: step in the DAQmx build, select 1 sample (on request) in the generation Mode dropdown. You can select a programmatic input to generate, or you can remove the check mark from the check box use programmatic input and specify a value for generating in the field of value to write . NOR-DAQmx help also provides additional information about the data generation.

    Best regards

    M Ali

    Technical sales engineer

    National Instruments

  • I made a video on the iPhone 5 is and it reads at high speed?

    I made a video on the iPhone 5 is and it reads at high speed?

    have you done a video time?

  • I'm trying to import my IE Favorites and have read the instructions on how to do it, but the import button in the file in gray and will not let me import. Any ideas?

    I'm trying to import my IE Favorites and have read the instructions, but the import button in the file in gray and will not let me import. Any ideas?

    Try using the import option in the Bookmark Manager (also known as the name of the library)

    1. In Firefox, select the bookmarks menu, then "organize bookmarks" open library
    2. In the library, select "Import and backup" then "Import HTML.
    3. You should get I hope that the ability to import from Internet Explorer.
  • FPGA to generate the counter and pulse train

    Hello

    I have some experience with Quartus, but new on the FPGA OR.

    I have a PCI-7811R. I'm trying to use it to illuminate sequentially 144 LEDs repeatedly. The duration of each pulse is 480us.

    Basically, I need to generate a pulse and generator of a counter to record the number of pulses and, according to this number, select which light is lit.

    I designed a pulse generator train based on an example of using FPGAS and added a counter in it. You can see in the attached vi.

    My question is,

    When I put the I/O node inside loops call single cycle, it can generate the correct pulse.  However, when I tried to use the local variable to transfer data from the SCTL and then plug it on another node of I/O, I can't detect the pulse signal when I measured this I/O.

    Is there something wrong with my code when I try to transfer the data of the SCTL? Can I also use local variable to transfer the value of counter, because I will need it in the next part.

    Thank you!

    If you are referring to the wired local variable to DIO2 in your attached VI, the problem is very simple: it is outside a loop, then it executes only once.  Put this local variable and the node of IO in a loop and I think you'll get something close to the impulse you expect (although if it is not in a loop of single cycle you will have exactly the same calendar).

  • Look at the card and the reader at the same time?

    Are you able to listen to music from the sd card AND the reader at the same time? As the mixture between thbe reader and card? Or is it one or the other?

    Thank you kindly.

    Yes. If set to the random mode, for example, it selects randomly beaches/files of two memory slots.

  • I am running Vista Home Premium 32 bit and cannot read the SDHC 4 GB memory card

    I am running Vista Home Premium 32 bit and cannot read the SDHC 4 GB memory card, it worked in Fujitsu siemens but not now. Can anyone help in laymans terms not techno type talk how I can fix it.

    I'm a model so need to step by step instructions: o))

    Hello

    1 have had any changes made on the computer before the show?

    2. do you get an error message? If Yes, what is the full and exact error message?

    Method 1:

    I suggest to test the card by inserting it in a different USB port and later in another computer to test and check if it is detected.

    Method 2:

    I also suggest you to check if the memory card is detected by a different card reader.

    Method 3:

    I suggest you to see link and check if it helps:

    Tips for solving problems of USB devices

    http://Windows.Microsoft.com/en-us/Windows-Vista/tips-for-solving-problems-with-USB-devices

  • Hardware diagnostics: "SMART short Self Test - failed" and "targeted read Test Failed.

    Original title: "SMART short Self Test - failed" and "targeted read Test Failed", all the patches?

    When using PC checkup of Dell I get the following errors; during the analysis of the material. "SMART short self-test - failed" and "targeted read Test Failed", all the patches?

    Hello Duane,

    Teke section of the Web site that speaks of similar problem.

    http://forums.techguy.org/hardware/906455-smart-short-self-test-fail.html

    The problem is with the hardware and you can get in touch with Dell computers.

  • Windows Control Panel has stopped working and cannot read the CD

    Original title: windows control panel has stopped working

    When I went to install my Rosetta Stone program it showed Windows has stopped working and then installed the program and when I put the cd in my computer saids windows control panel has stopped working and cannot read the cd

    Hello

    You say "Control Panel has stopped working" or "Windows Explorer has stopped working"?

    Follow the steps mentioned in the article below and check if that helps:

    Start the computer in a clean boot state

    Start your computer in a clean boot state, and check if your computer is able to read the CD. Start your computer in a clean boot state helps determine if third-party applications or startup items are causing the problem. If so, you need to maybe contact the manufacturer of the program for updates or uninstall and reinstall the program.

    See the following article in the Microsoft KB for more information on how to solve a problem by performing a clean boot in Windows Vista or Windows 7:

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    Note: After troubleshooting, be sure to set the computer to start as usual as mentioned in step 7 in the above article.

    Aziz Nadeem - Microsoft Support

    [If this post was helpful, please click the button "Vote as helpful" (green triangle). If it can help solve your problem, click on the button 'Propose as answer' or 'mark as answer '. [By proposing / marking a post as answer or useful you help others find the answer more quickly.]

  • DVD drive will burn discs and not read the content

    my dvd player will be only burn discs... any time I put in a cd of software or audio CDs, it won't let me veiw content... When I put in a cd of software says "Please insert the disk" and ejects the cd. When I put a CD audo (burned) it gives me just the ability to add files to a cd. thinking it was a problem with the drive its self, I bought an external dvd drive and it does the same thing. I can't understand why he won't let me see or install any content of a cd, any help or point in the right direction would be really useful thanks.

    Hello

    You have disk problems as the CD/DVD is actually 4 discs in 1 case (CD & DVD burn
    and CD and DVD read). So it is not unusual for 1 or 2 operational so that other parts
    do it right.

    CD have a tolerance + - and you can read on the edge outside their tolerance. They
    may be released but it is usually more economical to replace the disk.

    Several good info here:
    http://Club.myce.com/

    Notes on the troubleshooting and repair of readers of compact disks and CD-ROM Drives
    http://www.repairfaq.org/repair/F_cdfaq7.html#CDFAQ_014

    -----------------------------------------------------------------------

    Try this troubleshooting:

    Try this - Panel - Device Manager - CD/DVD - double click on the device - driver tab.
    Click on update drivers (this will probably do nothing) - RIGHT click ON the drive - uninstall.
    RESTART this will refresh the default driver stack. Even if the reader does not appear to continue
    below.

    Then, work your way through these - don't forget the drive might be bad, could be a coward
    cable or slight corrosion on the contacts (usually for a laptop) and other issues.

    Your CD or DVD drive is missing or is not recognized by Windows or other programs
    http://support.microsoft.com/kb/314060 - a Mr Fixit

    The CD drive or the DVD drive does not work as expected on a computer that you upgraded to
    for Windows Vista
    http://support.Microsoft.com/kb/929461

    When you insert a CD or a DVD, Windows Vista may not recognize the disc
    http://support.Microsoft.com/kb/939052

    Your CD or DVD drive cannot read or write media - A Mr Fixit
    http://support.Microsoft.com/GP/cd_dvd_drive_problems

    CD/DVD drive does not appear in Windows Vista, or you receive this error in Windows
    Vista installation after booting from the DVD (AHCI)
    http://support.Microsoft.com/kb/952951
    Drive CD - R or CD - RW Drive is not recognized as a recordable device
    http://support.Microsoft.com/kb/316529/

    Hardware devices not detected or not working - A Mr Fixit
    http://support.Microsoft.com/GP/hardware_device_problems

    Another possibility is that the cables are loose. Remove ALL power, then make sure that the cables in both
    ends. Remove and replace, do not just tight. For laptops, you can often clean power and
    contacts data with a pencil eraser.

    Hope these helps.
    Rob - bicycle - Mark Twain said it is good.

  • Why is-tab order incorrect in the browser but OK in Acrobat and Adobe Reader?

    I created a form to fill out and set the tab order to online.  It works correctly in Acrobat and Adobe Reader, but when I download on my site, all browsers use a different tab order.  I set the language than English.  Sort of behavior RTL in the browser, it is also somewhat randomly.  I have created several forms in the past and never had this happen before.  This form was started as a Word document that I used the import form creator.  Any ideas on how to force it to use the correct tab order?  Thank you.

    Many browsers (almost all) use their own internal PDF plugin by default. These plugins are known to have many bugs, and it's probably just another. Report the problem to the manufacturers of this plugin.

  • DC to Acrobat and Acrobat Reader DC - Option to 'Send comment' back to initiator review is missing?

    Recently reinstalled the software from scratch, including Acrobat Pro DC.

    Receipt by e-mail review request to another writer - when I opened the document, I don't have an option in the upper part of the pdf file to 'Send comment' to the initiator. I know that this was in XI'AN and previous, don't know if it was in DC earlier. Thought that maybe the other writer had just registered as player extended with commenting.

    Now, when I sent today a review by e-mail to an SME that is currently running Acrobat Reader DC, he also had the opportunity to send your comments. I checked with another SME that he always * fact * appear in XI player.

    I hope it's just hidden somewhere in the menus. Does anyone know if the option in a menu somewhere, or if the feature has been removed, or if it is a bug?

    It's like teeth pulling sometimes to get people to make comments, so adding in a smaller dam (forcing them to save the pdf file, and then manually create an email and attach, and then send) only adds to the frustration :-)

    Thank you!

    FOR INFO. 'Send feedback' functions now correctly with the update of DC Acrobat (for Acrobat and Acrobat Reader):

    DC October 2016 (2015.020.20039)

Maybe you are looking for