How can I use a TTL signal at my PFI to start a VI

Hello,
I am writing a VI to controll a motor with Digital Output, this is working. But this Vi has to start after the first (second, third or fourth) TTl pulse. How can I do that? I see some trigger options by AI and AO Vi's. But these Vi's are for different purposes.
Is there a simple way to "receive a pulse and than start a VI?
Thank you.

Hi wilco,
If you don't mind a slight delay on the order of a couple ms then you could simply poll that bit in software and start your sub-block when that line becomes true.
If you require more precise timing, you could use a counter and configure an interrupt to fire on the output of the counter. You would need to setup the counter for pulse generation and then configure the "pulse spec 1" register with the number of pulses you want to wait before you output (will have to be more than 1 on a counter though). DAQ Occurrence 4 will be the one you want to configure an interrupt for rising edge of a counter output. The LabVIEW help file describes these occurrences and you should also be able to find some examples using occurrences in the shipping examples.
None of them use event 4 but you can get the basic programming concept by looking at the examples.
Anyway, hope that helps. Have a good day.
Ron

Similar Messages

  • Living in apartment, here it has only wireless (no wired cable in the room). I've  an airport express (new ) so how can I do for extending signal (wireless) for using in myroom

    Living in an apartment, here it has only wireless (no wired cable in the room) signal using for the internet connection. I've  an airport express (new) ,so how can I do for extending signal (wireless) for using in myroom. because the wireless signal is so weak.

    Unfortunately, you won't be able to. In order to do so, you would have to configure both the AirPort Express and the other wireless router for a WDS. Since it will unlikely that the other router is another AirPort, nor will you have the ability to administer it, you won't be able to get this accomplished.

  • How can I use FREQ_OUT output frequency signal

    Now,I use VXI-MIO-64E-1 board and Windows/CVI,I want to know how can I use FREQ_OUT single.
    Thanks a lot,
    Wang

    The Frequency Scalar of the DAQ-STC based devices is essentially a third counter that can be programmed only for continuous pulse train generation. See the knowledgebase link below for more info on this. Since this counter is only four bits, this limits the clock divisors to 2^4 or 1 thru 16. Therefore the only frequencies that can be programmed for output on the FREQ_OUT line are timebase / (integer between 1 and 16).
    How do I use the FREQ_OUT pin on my E series board?
    According to the NI-DAQ Function Reference Manual, the signal name should be ND_FREQ_OUT. The source can then be ND_NONE, ND_INTERNAL_20_MHZ, or ND_INTERNAL
    _100_KHZ. sourcespec would follow respectively as ND_DONT_CARE, 1 through 16, or 1 through 16. Note that selecting ND_NONE will disable output on the FREQ_OUT pin.
    Thanks,
    Heath

  • How can i use the same front panel graph in more than one events in an event structure?

    i want to display the signals from my sensorDAQ in a graph.but i have more than one event in the event structure to acquire the signal and display it in the graph.the first event is to acquire the threshold signals and its displayed in the graph as a feedback.after the first event is executed, i will call the second event,where the further signals are acuired and compared with the threshold signals from the event 1.my question is how can i use the same front panel control in more than two events in the event structure?please answer me i'm stuck.
    Solved!
    Go to Solution.

    Hi,
    I have attached here an example of doing the same using shift registers and local variables. Take a look. Shift register is always a better option than local variables.
    Regards,
    Nitzz
    (Give kudos to good answers, Mark it as a solution if your problem is Solved) 
    Attachments:
    Graph and shift registers.vi ‏12 KB
    graph and local variables.vi ‏12 KB

  • How can you post comments during signal aquisition?

    How can you post comments during signal aquisition? For example, while acquiring your signal, you want to post a comment which the temperature reads at "30 seconds" from your relative start time (t=34 sec into recording)
    I have the LE package where events, alarms, etc cannot be used. Are there other ways that the user can mark an "event" during recording?

    Hey hkim,
    If you know how long it will be before you want a message to pop up you can simply include a sequence structure and in the first sequence have a wait time of your desired length and have the message pop up and display in the second sequence frame. 
    Hope This Helps,
    Doug B
    Applications Engineer
    National Instruments

  • How can I use USRP as a noise generator?

    Hi everyone.
    Does anyone know how can I use a NI USRP 2920 to generate white noise or impulsive noise at its Tx port?
    (I am kind of new to this area and any help is appreciated)
    Thanks.

    Hello,
    I am assuming you are using LabVIEW to do this, correct? DO you have access to the help documentation for the NI-USRP driver? Within the help document there is a section called Software Fundamentals which has a section within it called NI-USRP Instrument Driver Programming Flow. This section shows you how to set up the USRP to transmit a signal. The default case is for an arbitrary array of data to be supplied to the Write Tx Data function. Instead you could use the output from the Uniform White Noise VI as the input for the Write Tx Data function. This should write the the white noise to the output of the USRP.
    NI-USRP Instrument Driver Programming Flow:
    http://zone.ni.com/reference/en-XX/help/373380A-01/usrphelp/programming_flow/
    Uniform White Noise VI:
    http://zone.ni.com/reference/en-XX/help/371361H-01/lvanls/uniform_white_noise/
    I hope this helps.
    Thanks,
    Cameron T
    Applications Engineer
    National Instruments

  • How can i use PCIe 1433 and basler line camera to construct image and pocess it?

    hello! every one ,I am new to machine vision.i have two problems to ask.First,how can i use line camera and 1433 to acquire 2-D image?second,if i want to pocess the 1-D signal ,how can i do it ?i expect for your answer ,thank you!

    What you are trying to do is not something you can easily do in a forum, but I can give you the basics.
    You have a CameraLink frame Grabber (PCIe 1433) and a LineScan Camera
    The framegrabber needs to be configured to understand how to communicate with the camera.  You need a file from the camera vendor.  This file might already be installed.  You can use MAX to check if it is, under Devices/IMAQ.
    Assuming you can get to the point where you can communicate with the camera, you need to configure your acquisition.
    Since the camera is a line scan camera, it captures image data one pixel ine at a time.  You will need to configure the frame grabber to determine how many lines per image you want.  The low limit is usually 1, and the high limit is either based on the framegrabber's internal memory, or that of the computer.
    If you are using labview, you will need to open a sessing to the camera, acquire the image(s), and then close the session when you are done.
    Once the image(s) are captured, you can performa analysis using the NI Vision Toolkit.
    Sorry, but there is no way to condense years into one post.
    Machine Vision, Robotics, Embedded Systems, Surveillance
    www.movimed.com - Custom Imaging Solutions

  • How can I use 2 Apple IDs in Itunes? I have 2 IOS Devices. They each have there own AppleID. What is the proper way to sync both of them to Itunes?

    How can I use 2 Apple IDs in Itunes? I have 2 IOS Devices. They each have there own AppleID. What is the proper way to sync both of them to Itunes? I wanted my teenager's AppleID to be different from mine so that she couldn't charge stuff to my AppleID, therefore I created me another one. Now when I go to Sync either device, it tells me that this IOS device can only be synced with one AppleID. Then I get a message to erase it, not going to do that, lol. If I logout as one ID and login as the other, will it still retain all synced information on the PC from the first IOS device? If I can just log in out of the AppleID, then I have no problem doing that as long as the synced apps, music, etc stays there for both. I am not trying to copy from one to the other, just want to make sure I have a backup for the UhOh times. If logging in and out on the same PC of multiple AppleIDs is acceptible then I need to be able to authorize the PC for both devices. Thanks for the help. I am new to the iOS world.

    "Method Three
    Create a separate iTunes library for each device. Note:It is important that you make a new iTunes Library file. Do not justmake a copy of your existing iTunes Library file. If iTunes is open,quit it.
    This one may work. I searched and searched on the website for something like this, I guess I just didn't search correctly, lol. I will give this a try later. My daughter is not be back for a few weekends, therefore I will have to try the Method 3 when she comes back for the weekend again. "
    I forgot to mention that she has a PC at her house that she also syncs to. Would this cause a problem. I am already getting that pop up saying that the iPod is synced to another library (even though she is signed in with her Apple ID to iTunes) and gives the pop up to Cancel, Erase & Sync, or Transfer Purchases. My question arose because she clicked on "Erase & Sync" by mistake when she plugged the iPod to her PC the first time. When the iPod was purchased and setup, it was synced to my PC first. When she went home, she hooked it up to her PC and then she erased it by accident. I was able to restore all the missing stuff yesterday using my PC. However, even after doing that it still told me the next time I hooked it up last night that the iPod was currently synced with a different library. Hopefully, you can help me understand all this. She wants to sync her iPod and also backup her iPod at both places. Both PCs have been authorised. Thanks

  • How can i use my account without the billing info, as i do not have a credit card. and my shipping and billing info is under US. i'm in singapore. how do i change this?

    how can i use my account without the billing info, as i do not have a credit card. and my shipping and billing info is under US. i'm in singapore. how do i change this?

    If you are just visiting Singapore, then leave the account as it is. If you have moved there, then view your account using the iTunes app on a Mac or PC and change the country/region to your current location and address. If you do not have a bank card, you can fund your account using iTunes gift cards if available in Singapore.

  • How can I use one photo twice in a slideshow

    I am in iPhoto '11 9.4.3 making a slideshow to send to iDVD for my mother-in-laws funeral next Wednesday.
    How can I use this one particular photo of her several times in the slide show.
    I have tried copy/past and that does not seem to work.
    Thanx in advance

    I would just duplicate the picture several times and keep inserting duplicates ...

  • How can i use microsoft word on ipad 2

    how can i use the microsoft application on my ipad 2?

    The Pages app is also compatible with MS Word. Unlike some of the others mentioned, the document is actually stored on the iPad as opposed to 'the clouds'. Again, most of those mentioned are cut down versions of MS Word.
    Stand back and look at this constructively; do you need to regularly access to the document from more than one computer/device without the need to keep amending your document on your computer and sending it to your iPad? If so, Documente to Go etc may be the best choice.

  • How can I use the credit on my account instead of credit card to buy apps?

    I have a gift card credit on my account but when I want to buy an app it takes me to my credit card details. How can I use my credit on my account instead of credit card?

    You shouldn't have to put in a credit card, no, but from time to time the iTunes Store seems for some reason to try to insist on one. If just confirming your mailing address doesn't stop it from complaining, go here:
    http://www.apple.com/support/itunes/contact/
    and follow the instructions to report the issue to the iTunes Store.
    Regards.

  • How can i use one SQL statement to solve problem?

    How can i use one SQL statement to solve the question below?
    For a Table named A, there is a column named F(char type).
    Now select all the records where F like '%00' and update their F value to '%01'
    Just one SQL statement.Do not use PL/SQL block.
    How to do that?
    Thanks.

    What is the data volume for this table?
    Do you expect lots of rows to have '%00' as their value?
    Following two statements come to mind. Other experts would be able to provide better alternatives:
    If you have index on SUBSTR(f, 2):
    UPDATE A
    SET    f = SUBSTR(f,
                      1,
                      length(f) - 2) || '01'
    WHERE  substr(f,
                  -2) = '00';If most of the rows have pattern '%00':
    UPDATE A
    SET    f = SUBSTR(f,
                      1,
                      length(f) - 2) ||
               DECODE(SUBSTR(f,
                             -2),
                      '00',
                      '01',
                      SUBSTR(f,
                             -2));

  • How can i use one iCloud Photostream on 2 devices?

    Due to a bug (or feature) on iOS 8 i can't use the same icloud id on 2 iphones:
    https://discussions.apple.com/thread/6536998
    So how can i use ONE iCloud Photostream then on 2 devices?
    Also, on OSX i can define only one Photostream.
    So, how do you import pictures from 2 streams into iPhoto?
    Familyshare is not usefull as the pictures are not in Original-Filesize!

    Hi ..
    Yes. " iPhone 6 or 6 Plus.  iPad Air 2  or  iPad mini 3"
    Set up and use Apple Pay

  • HT204053 Dear Support Team, every time i tried to logon Icloud its gives me wrong user name or password and at the end it show me error " This Apple ID is valid but is not an ICloud Account" then how can i use one account for same Apple ID and ICloud???

    Dear Support Team,
    Every time i tried to logon Icloud its gives me wrong user name or password and at the end it show me error " This Apple ID is valid but is not an ICloud Account" then how can i use one account for same Apple ID and ICloud?
    Thanks

    It is not possible to create a new iCloud account using a Windows machine. You must create the account using a Mac (10.7.5 or more) or an IOS device (iPhone etc). Once that is done you can sign into and use the account on your Windows machine.

Maybe you are looking for

  • Generating Idoc from payment meduim format MT103

    I want to generate an Idoc using payment meduim format mt103 with type Idoc. Can I do only by configuration. Thank for help.

  • ALEAUDIT IDoc cannot find request IDoc in Integration Server

    Hi, i m working with a scenario SAP ECC 7.0 -> IDoc -> PI -> IDoc -> R/3 4.6c I m sending a purchase order (ORDERS.ORDERS05) from SAP ECC and i want to receive an acknowledgment from R/3. Unfortunately there are only zeros in the field E1ADHDR / E1ST

  • Any solution to import dreammail data to thunderbird

    I've been thinking to migrate to thunderbird from years but there is nothing to import my data :( I have been using DreamMail and it contains all my email data... but unfortunately it does not allow to export data to any other email client neither ot

  • Learning how to do books/journals

    I regularly use CS2 (OS 10.5) for making magazines and booklets - lots of photos, very short articles, few pages. I have the opportunity to do a full-fledged academic journal - text & tables, a long document, footnotes, bibliographies, etc. Does anyo

  • Safari not saving pages in history when linked from GMail

    Ok, no one else is having crashing problems with GMail. Fine. How about this one... If you click on a link in a message while reading GMail, a new window will open with the destination web page. Now, if you click a link on that new page, the new loca