Rising edge analysis RS FlipFlop without the Reset

Hello, I am a starter with LabView and am trying to create a rising edge analysis. With the first rising edge of a Boolean Signal (an Input) a variable (and an Output) should be set and the second rising edge should reset this variable. It is like a RS Flip-flop with the second Set Signal as Reset.
By pressing an external pushbutton (my Input) my program should switch on/off my output to control an electrical system.
Maybe anyone can help me, Thank You!
Lars

Here is a simple vi that does the trick.  Substitute Boolean with your input and substitute Boolean 2 with your output.  You can also make this into a LV2 functional global by moving the Boolean and Boolean 2 out of the loop and making the loop execute only once (replace Stop and Not with False constant).   Call the functional global from your main with your input to the connector pane left side and the output comes from the connector pane right side.
- tbob
Inventor of the WORM Global
Attachments:
FlipFlop.vi ‏19 KB

Similar Messages

  • Is it possible to start one counter on the rising edge of its gate and the second counter on the falling edge of the gate of the first counter?

    Hello,
    for my application I want to perform a buffered semi-period measurement with three counters.
    Therefore the first one have to start on a rising edge of its GATE and stop on the next rising edge. This is not a problem.
    But the second one should start on the falling edge (that immediately follows the rising edge) of counter 1 and stop the same time counter 1 will do.
    The third one should start after the falling edge of counter 2.
    Is this actually possible?
    Thanks in advance.
    Regards Thomas

    I think I may be a bit confused on exactly what you are trying to accomplish, so if my answer does not
    help, I apologize.
    Anyways, the way to do it (from what I gather) is to set the gate of the third counter to start on the falling edge of counter 1 and start on the next falling edge of counter 1.
    A little more clarity in how the counters are intended to start/stop may be helpful in getting a better answer.
    Derek

  • Counting rising edge during 50ms for a TTL signal

    Hello, I'm using Labwindows 6 and a traditionnal DAQ. I've injected a TTL signal on my card and I would like to count the number of rising edge each 50 ms without using an internal timer in labwindows so that the counting pace cannot be disturbed by Windows.
    Do someone know how to process or which functions should I use?
    Thanks

    Hi it's still me with still some troubles
    I've generated with my counter0 a square wave of 50 ms pulse width from an internal source but then, I don't know how to specify that this signal will also be the  pin gate (ND_PFI_4) of my counter1 which will count the rising edge.
    Moreover I also don't know how to specify my counter1 just to count rising edge while  my gate is at high state; here 's mys code :
        //Generation of an internal 100 KHZ square wave
        GPCTR_Control(1, ND_COUNTER_0, ND_RESET);
        GPCTR_Set_Application(1, ND_COUNTER_0,ND_PULSE_TRAIN_GNR);
        GPCTR_Change_Parameter(1, ND_COUNTER_0, ND_SOURCE,ND_INTERNAL_100_KHZ);
        //Generation of a 100 ms gate
        //50 ms => low state
        //50 ms => high state
        GPCTR_Change_Parameter(1, ND_COUNTER_0, ND_COUNT_1,5000);
        GPCTR_Change_Parameter(1, ND_COUNTER_0, ND_COUNT_2,5000);
         //output the counter pulse, you must call Select_Signal.
        Select_Signal(1, ND_GPCTR0_OUTPUT, ND_GPCTR0_OUTPUT,ND_LOW_TO_HIGH);
        GPCTR_Control(1, ND_COUNTER_0, ND_PROGRAM);  
        //configuration CPTR1 that will count each rising edge while the gate is at high state
        GPCTR_Control (1, ND_COUNTER_1, ND_RESET);
        GPCTR_Set_Application(1, ND_COUNTER_1,ND_SIMPLE_EVENT_CNT);
        GPCTR_Change_Parameter(1, ND_COUNTER_1, ND_SOURCE, ND_PFI_3);
        GPCTR_Change_Parameter (1, ND_COUNTER_1, ND_SOURCE_POLARITY,ND_LOW_TO_HIGH);
        GPCTR_Change_Parameter (1, ND_COUNTER_1, ND_INITIAL_COUNT, 0);
        GPCTR_Control(1,ND_COUNTER_1, ND_PROGRAM);
        GPCTR_Watch (1, ND_COUNTER_1, ND_ARMED, &compteur);
        printf("%d\n",compteur);
    And the value of compteur is not the value expected at all.
    thanks.
    (ps : can you speak french?)

  • Rising Edge on AO Start

    Hi,
    I'm using a PXI 6251 Daq card.
    On this one, I'm generate on analog output a finite signal.
    I would like to initiate a rising edge on PXIx terminal when the Output analog task is realy run.
    In fact i would like to provoq an output trigger when the analog task is start.
    Is it possible ?
    Thanks for reply.
    Regards
    =========================
    Bonjour,
    Je dispose d'une carte PXI 6251
    Sur celle-ci je génére un signal Analogique Finit.
    Je souhaite provoquer un front montant sur une sortie PFIX quand la tache de génération à démarrer. Puis que cette sortie tombe à 0 quand la tache est stopée....
    Est-ce possible ?
    Merci pour vos réponses.
    Solved!
    Go to Solution.

    Hello __KB__,
    I think you should start from this example : https://decibel.ni.com/content/docs/DOC-5374
    Then, you'll have to adapt it in order to define a pattern which generates a high level as soon as the analog task starts and which generates a low level at the end of the finite acquisition.
    In order to know which digital line matches with your PFI line, you will have to look at the documentation of the PXI 6251 (http://www.ni.com/pdf/manuals/371291h.pdf, page 14). You can also get the information from MAX.
    Regards,
    Jérémy C.
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    Travaux Pratiques d'initiation à LabVIEW et à la mesure
    Du 2 au 23 octobre, partout en France

  • How can I use the pulse train from a 6602 to trigger an niFGEN and niSCOPE on each rising edge of the pulse train?

    Hello,
    Here is my application: I need to use a 6602 counter/timer to generate a pulse train of certain frequency and duty cycle. On each rising edge of this pulse train, I need to output an arbitrary waveform on Ch. 0 of an niFGEN (5422) AND acquire data from CH. 0 of an niSCOPE (5124). I also need to synchronize the niFGEN and the niSCOPE to the same clock used for the pulse train (6602/ctr0). This process needs to continue until the user stops the system.
    I can generate the pulse train using the 6602 just fine using ctr0, but the pulse train shows up on OUT0 by default. When setting up the niFGEN and niSCOPE to trigger on rising/positive slope edge, OUT0 is not an option for either device as a source for the digital rising edge (pulse train). The main options for both are PFI0-3 and RTSI lines.
    Questions:
    1.) Is there a way that I can direct the pulse train to a location (such as an RTSI line) where BOTH the niFGEN and the niSCOPE can use it as a start trigger for each rising edge? I noticed in MAX that a route can be made between ctr0's internal output and a trigger line and others. If this is a solution, could you please explain how to accomplish this?
    2.) Once I configure the niFGEN and niSCOPE to be triggered on a digital rising edge, how can I effectively have this happen for every rising edge from the pulse train? In other words, can I just initiate the FGEN outside of the while loop and it will generate a waveform for each rising edge it sees at the source until the while loop is exitted?
    3.) Is setting a reference clock for the niFGEN and the niSCOPE the same thing as synchronizing both devices using the same clock that generated the pulse train? It is not clear to me the difference, and why it would necessarily be useful.
    Images of my current front panel and block diagram are attached. If you would rather have the actual VI's just let me know. Any help and/or explanation on this is greatly appreciated. Thanks in advance.
    Attachments:
    Front_Panel_Control.jpg ‏278 KB
    Block_Diagram_Control.jpg ‏263 KB

    Hello Cgifford,
    Welcome to National Instruments Forums.
    To output your signal to the PFI lines,
    you can use external connectios between OUT0 and PFI lines. You can also use
    the backplane to do so by routing into the same RTSI line.
    1)
    On the SCOPE and FGEN, the name of the
    terminals are actually “PXI Trigger Line x/RTSIx” but on the 6602 you might
    need to route the signal using the property:
    You can also use the DAQmx route signal which perform the same opperation.
    2)
    This will depend on the frequency of
    your pulse train. If this is lower than about 10 ms, then you can probably
    place this on a loop and start and stop the acquisition every time. If the
    frequency is higher than this, you will have to use:
    -       Scripting on the FGEN side (read more)
    -       MultiRecord Fetch (more information in the scope help file
    section “Acquisition Functions Reading versus Fetching”).
    3)
    The short answer is yes. The longer one
    might depend on how tight you need the synchronization to be (us, ns, ps). For
    very tight synchronization, you should look into here.
    Message Edited by Yardov on 06-18-2007 03:14 PM
    Gerardo O.
    RF Systems Engineering
    National Instruments
    Attachments:
    property.JPG ‏7 KB

  • Why does the iTunes AppleID system refuse to work properly without the need to reset the password every time I open iTunes for use?

    Alright so here is the issue. When I first started using iTunes I created my AppleID. I locked it in to remember my password and authorize my computer so that I would NEVER HAVE TO ENTER IT AGAIN. So years pass, no problem. Then "ITUNES 11" come on everyone lets upgrade or you can't proper use the iTunes Store. Seriously it wouldn't let me access the store. Go Figure. So I upgrade simple right? No. It really isn't when iTunes 11 rolled out it was riddled with minor bugs that made the experience annoying so I did a rollback and live without the store for awhile.
    About a year passes and I try again this time upgrading iTunes through a COMPLETE fresh install, again I did what had done the first time I logged my AppleID and reauthorized my computer. Hurrah other than getting use to the new UI it ran perfectly. Yes Finally! Right? Again.... No. No more than 2 or 3 software updates later suddenly my password for my AppleID is incorrect I was like "Okay?" and re-entered it thinking the big update cleared my settings.
    Wrong Password please reset password to continue using the iTunes store.
    I was like okay maybe the user agreement change and we all need to reset passwords and re-accept the EUA. So I go through the process to create a new password successfully and reset my AppleID in iTunes with the new password. Come back a few weeks later it happens again this time I enter my new password and what do I get?
    Wrong Password please reset password to continue using the iTunes store.
    So I first do a repair install to my iTunes than reset my password this time NOT setting it to remember password. Great everything works fine again password even matched my Home CompID so that I could NEVER lose it well come a few days later I try to use the store and what happens?
    Wrong Password please reset password to continue using the iTunes store.
    to try to make my Long story a little shorter....
    This has been going on for the better part of 3 years I have almost completely dropped iTunes which has the better store library for Goggle Play Music who's store library isn't even a third the size iTunes has because their system works and my log-in is my e-mail. I repeatedly completely uninstalled iTunes and wiped it from my registry in hope a clean install would fix the problem but it never does.
    My OS is Vista Home Premium Edition 32-bit and no picking on my OS I been working to get a new computer but that isn't happening anytime soon so I work with what I got.

    Even removing the .xml files doesn't make a difference. Also, I now installed another update of iTunes, but still having the same problem, and this time there are no .xml files or preference files whatsoever in the Application Data and Local Settings\Application Data iTunes folders. It seems like for some reason iTunes is unable to create these. What should I do?

  • How can I reset an apple ID without the email or birthday?

    When I was younger my parents had an earthlink account, and I bought my first iPod mini, and signed up for an apple ID. Skip to years later that email account is long gone, and my mom uses the same apple ID to sign in to both her new iPhone and the iPhone that she passed on to me. Both phones are logged in to the same apple ID, which I cannot reset because I have no access to the email, and being my young self I didn't input the correct birthday so I can't even access my security questions. Where do I go from here? I can't sign out on either device to reset them, and I can't buy anything on the stores without the password from the account.

    If you have proof of purchase for the devices from an authorized source, Apple can remove the activation lock. If you don't, they are now bricks.
    And please don't start about the injustice of it all. you lied about your identity, making it impossible to prove you own the account. Falsifying the information was a violation of the Terms of Service for an Apple ID and iCloud, and if you were under 13, falsifying your birthdate so that you could create an account was a crime.

  • How do I perform a trigger that collect the data for every rising edge continuously and then automatically put the data in a .xls file??

    I need to collect the data for every rising edge a trigger perfoms. So far I could collect the data but it seems that it only collect the data in the start of triggering, but not continuously. I also want to put the data in an excel spreadsheet and automatically add new set of data when the next rising edge occur. Please help.
    thanks a lot.

    LabWindows/CVI actually ships with a comprehensive set of examples for just about every area of programming you can use it in, including triggered analog data acquisition and ActiveX control of Microsoft Excel for data logging. Go to the following two directories on your computer to find respective examples for the two areas you are inquiring about:
    1) C:\MeasurementStudio\CVI\samples\DAQ\Ai\DAQsingleBufExtTrig.PRJ
    2) C:\MeasurementStudio\CVI\samples\activex\excel\excel2000dem.prj
    Just make sure to study the examples carefully so that you fully understand the processes followed for triggered analog acquisition and the process of launching an ActiveX automation server for control, and then you should be able to merge the concepts shown in both of the example
    s to make the application you desire.
    Jason F.
    Applications Engineer
    National Instruments
    www.ni.com/ask

  • HT2693 The sound will no longer come through my headphones on my iPad I've tried several different headsets.  The sound works as normal without the headphones but will still not come through the headphones even thoug I have tried to reset it twice. Please

    The sound will no longer come through my headphones on my iPad I've tried several different headsets.  The sound works as normal without the headphones but will still not come through the headphones even thoug I have tried to reset it twice. This is the new ipad with retina display and is only 2 months old and otherwise works fine. Please help!

    - Try cleaning out/blowing out the headphone jack. Try inserting/removing the plug a dozen times or so.
    Try the following to rule out a software problem
    - Reset the iPad. Nothing will be lost
    Reset iPad: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iPod.
    - Make an appointment at the Genius Bar of an Apple store. Seems you have a bad headphone jack.
    Apple Retail Store - Genius Bar
    Apple will exchange your iPad for a refurbished one for this price. They do not fix yours.
    iPad Service Answer Center                 
    A third-party place like the following will replace the jack for less. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
    Replace the jack yourself
    iPad Repair - iFixit

  • How can i get the every rising edge's time value with usb 6212 counter continues acquisition

    i have a usb 6212,and now i can get every pluse 'period ,frequency。 
    i want to know how to get the every rising edge's time point value by DAQmx Counter.
    thx

    As you already know YouTube doesn't play in the background, that's why I wasted my time trying to give you an alternative.

  • Factory resetting my mac without the original disk

    Hello community!
         I would like to factory reset my MacBook Pro from mid 2010 with OS X v10.6 but I do not have the original installation CDs. So here's two amazing questions:
    1) Is there any way I can get the CD's, either by burning them using a recovery partition or either by Apple itself (and the price it'll cost)?
    2) If not, or because it'll cost me too much to buy the CDs from Apple, is there any way to factory reset without the CDs? Also, would I need the account information of the administrator account? Because I don't have these information (not that it's a stolen MacBook but I just bought it from a random guy for really cheap). Also, if it's possible, how do I reinstall the bundled applications that came with the MacBook such as iLife?
    Thank you guys for responding as fast as you can.

    iLife comes in a separate DVD.
    I have not seen that the main system install DVD restore anything but the OS. In the modern days of the Lions, when you reinstall a Mac you can download the iLife apps from the App Store if you are entitled to them (i.e., the Mac you have registered to your AppleID came with them). Don't know for older systems (didn't use iLife back then).

  • I cannot right click without the browser freezing for at least 3-5 seconds. I disabled add-ons and reset firefox - same issue.

    I can't right click anywhere in the browser without the browser freezing for at least 3-5 seconds.
    I disabled all the add-ons.
    I reset firefox.
    issue is still there.

    Create a new profile as a test to check if your current profile is causing the problems.
    See "Basic Troubleshooting: Make a new profile":
    *https://support.mozilla.org/kb/Basic+Troubleshooting#w_8-make-a-new-profile
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins" in case there are still problems.
    If the new profile works then you can transfer some files from the old profile to that new profile, but be careful not to copy corrupted files.
    See:
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • Is there a way to reset iPod touch 4th gen without the sleep/wake button?

    Hey everyone! My iPod touch 4th gen power button is jammed into the iPod itself. This is obviously a big issue, but is not the main point of this post. My iPod has been laggy and slow, so I need to reset it. (NOT restore, but slide to power off; press and hold home+power for 10 seconds) is there a way for me to do this without my sleep/wake button.
    Thanks in advance.

    To reset the iPod without the hardware buttons,
    - Reset network settings: Settings>General>Reset>Reset Network Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected. You will have to rejoin wifi networks and repair BT devices

  • I reset my IPAD password but the verification email wasn't sent to my primary or secondary email address.  Without the verification email I can't complete the password change process.  Any recommendations?

    I reset my IPAD password but the verification email wasn't sent to my primary or secondary email address.  Without the verification email I can't complete the password change process.  Any recommendations?

    Great tip from dorothy.  Also, some isp services are more aggressive from others in filtering what they think might be spam.  You might check your spam file from a computer, and see if the verification e mails are sitting there.   When i wen through the process, the verification e mail came to the new e mail address in under a couple of minutes.

  • How can i do a factory reset in snow leopard without the disk to start off new without losing my other programs

    how can i do a factory reset on snow leopard without the disk to start off new without losing my programs?

    You can't. You will need a Snow Leopard disc. You can purchase replacements for your computer from Apple:
    Apple Store Customer Service at 1-800-676-2775 or visit online Help for more information.
    To contact product and tech support: Apple - Support - Contact Apple Support.
    A "factory reset" means you erase the drive securely. All of your files will be removed permanently. I suggest you make a backup:
    Clone using Restore Option of Disk Utility
      1. Open Disk Utility in the Utilities folder.
      2. Select the destination volume from the left side list.
      3. Click on the Restore tab in the DU main window.
      4. Select the destination volume from the left side list and drag
           it to the Destination entry field.
      5. Select the source volume from the left side list and drag it to
          the Source entry field.
      6. Double-check you got it right, then click on the Restore button.
    Destination means the external backup drive. Source means the internal startup drive.

Maybe you are looking for

  • I lost my sync key and dont have access to my other computer and dont want to lose data on server by resetting it. How can I get my sync key?

    I have tried words I usually use for passwords and they don't work. If I knew the acceptable format for the sync key, I could try others. But maybe the sync key is the same long number they originally sent me. I am in Chile and my laptop hard drive c

  • Macbook pro performing very poor due to Yosemite

    Hi, I bought macbook pro 2012 model just 10 days back. Unfortunately i got yosemite preinstalled. My macbook pro is performing very very poor now .. Please help me in this regard Problem description: Very slow performance EtreCheck version: 2.1.5 (10

  • What router to get?

    I just got a new powerbook G4 with airport card and am ready to try wireless but new to this concept. I understand I need some sort of a base to connect to my internet service. Is the airport express base station all I need? Or do I need a router too

  • API for tag parameters?

    Hi,<br /><br />Does anyone know the appropriate API call for embedding elements _within_ a tag? Versions/stVer:event is an appropriate example where this occurs. It should look something like this:<br /><br />   <xmpMM:Versions><br />     <rdf:Seq><b

  • After download of itunes 7.0.1 MAJOR PROBLEMS

    I recently downloaded the new version of itunes from the apple website. After running the software and completing the update, itunes seemed to be running much slower. It took longer for my ipod to be recognuised while syncing and took longer to open