NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member b3b
Member
b3b
Posts: 1
0 Kudos

modifying and gate

I am using two signal inputs along with AND gate in LabVIEW. I want to have some priority for my signal. Like if input 1 is in the ON state, the output (system) will be in the OFF state but if signal 2 gets ON then the system (output) will be in the ON state. I want that if signal 2 gets into the ON state after the signal 1 then the system (output) must be in the off state. How do I do it? 

Member
Kevin_F
Posts: 135
0 Kudos

Re: modifying and gate

Hey b3b,

You could use a case structure based on the state of signal 1.  If signal 1 is high you can output off and if signal 1 is low then you can have the output follow signal 2.  Take a look at this article for more information on case structures:http://www.ni.com/gettingstarted/labviewbasics/exestructures.htm. Please post back if you have any additional questions.


Regards,
Kevin
Product Support Engineer
National Instruments
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page