I want to build a comparator to compare voltages such that reference voltage is negative

i want to build a comparator to compare voltages where
reference voltage is negative,a square wave is to be generated at positive cycles of zero crossings of sine wave

I am having trouble in understanding your question (aside of my suspicion that this may be a school assignment ). Please check my previous explanation about comparators in your previous question:
http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=5065000000080000008C2B0000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0
Also, check the following answer I provide for a current question about zero-crossing detection:
http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=5065000000080000008B2B0000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0
Also, check the attached vi (LabVIEW 5). The vi generate a sine wave, detect if the is greater or lower than zero and create a square wave accordingly.
Best regards;
Vargas
www.vartortech.com
Attachments:
comparador.vi ‏46 KB

Similar Messages

  • I want to make 2 thesaurus and compare between them?????????Help

    Hi everybody,
    I have a Problem,I want to make 2 thesaurus and compare between them.
    I mean : I have a File Like This-----with lexicographical Order----
    ENG GERMAN
    Any Jede
    I ich
    Two Zwei
    when i write a sentence an german the Program must look the synonym of English an write it.
    Please help me as soon as possible
    Thanks

    Cross posted:
    http://forum.java.sun.com/thread.jspa?threadID=5259185 http://forum.java.sun.com/thread.jspa?threadID=5259240

  • Using a Comparator to Compare Comparables

    I have a class which can wrap Comparable objects. The idea is similar to C++'s "Pair" class. Until recently, it worked fine. Then, I "fixed" an unchecked warning I found and I can't seem to get the thing to work now.
    A good sample of this code looks like this:
    public static class A<T,U>
        public T t;
        public U u;
        public A(T t, U u)
            this.t = t;
            this.u = u;
    public static class AComp<T extends Comparable<T>,U> implements Comparator<A<T,U>>
        public int compare(A<T, U> x, A<T, U> y)
            return x.t.compareTo(y.t);
    List<A<Comparable,String>> list = new ArrayList<A<Comparable,String>>();
    for (int i=0;i<5;i++)
        list.add(new A<Comparable,String>(i, String.valueOf(i)));
    Collections.sort(list, new AComp<Comparable,String>());The last line fails compilation with the error message "type parameter java.lang.Comparable is not within its bound." The problem seems to be caused by the change I made to the comparator. It used to read
    public static class AComp<T extends Comparable,U> implements Comparator<A<T,U>>(Note the lack of a type: "T extends Comparable" instead of "T extends Comparable<T>".) This compiles but produces an unchecked warning on the line in the compare method.
    How do I fix this? I want to rid myself of the unchecked warning and I want my code to compile. This doesn't seem like an inherently unsafe operation...
    Silly reflexive Comparable definition. Any ideas?
    Thanks!

    That's just the issue I'm having. My sample code functions as long as the parameterized type being compared isn't Comparable. For example, changing the type to A<Integer,String> works fine.
    I think I may have discovered why this is the case. By declaring A<Comparable,String>, I am implying that the first parameterized type (call it T) is Comparable<T>. As a result, what I need is an A<Comparable<Comparable>, String>; that is, anything which is comparable must be able to be compared to the object. Since Integer is only Comparable<Integer>, it cannot be compared to all Comparable objects and therefore doesn't meet the requirements.
    I'm not used to looking the other way on the inheritance tree. :)
    The original trouble I had with this came from when I was passing a hash code generator into a piece of source and I needed to compare the hashes. The only guarantee I have regarding the hashes is that they are Comparable and I was putting them in a similar Pair structure. I then wanted to build a comparator to compare them but, since they're Comparable<?>, I can't know to what they can be compared... so I'll have to change the contract on the code. ;)
    Thanks. Cheers. :)

  • Confusion - comparable and comparator

    can any body tell me, why should i use comprator instead of comparable in TreeSort. When i used comparable with compareTo function it shows same result what comparator with compare function shows ..
    plz help me..

    Think of it this way: you can only implement Comparable once in a given class. This represents the 'default' ordering behavior. However, if you want to give a class in a Collection different ordering behavior, you write a Comparator. Dr. Laz has provided an excellent example of this.
    - Saish

  • I have 100 groups in planning for those 100 groups i want to build roles like interactive,view user,planner etc.for those how to change in export -import folder .xml file  in that edit  how  to change user roles in that xml it will generate automatic id.h

    I have 100 groups in planning for those 100 groups i want to build roles like interactive,view user,planner etc.for those how to change in export -import folder .xml file  in that edit  how  to change user roles in that xml it will generate automatic id.how to do that in xml file ?

    Thanks john for you are reply.
    I had tried what you sad.I open shared service in that foundation project i had export shared service.after that in import-export file.In that role.csv,user.csv,group.csv.Like this file have.When i open user file added some users after i trying save in excel it shown messgse
    I click yes and save the .csv file and import from share servie. i got error like this
    am i doing right way john.or explain clearly

  • Whats the difference between comparable and comparator?

    whats the difference between comparable and comparator?
    when must i use comparable, and when must i use comparator?

    whats the difference between comparable and
    comparator?Comparable is from the java.lang package, Comparator from java.util.
    when must i use comparable, and when must i use
    comparator?Here's a tutorial on both:
    http://java.sun.com/docs/books/tutorial/collections/interfaces/order.html

  • Comparable and comparator interface in java

    Hi All,
    How comparable and comparator interface works in java and when to use comparable and when to use comparator.please give me some example(code) as I am not able to understand the difference.
    Thanks
    Sumit
    Edited by: sumit7nov on May 17, 2009 4:45 AM

    Thanks,one more doubt.
    We have Collections.sort() method and we can sort any list by this method without implementing comparable or comparator interface.Then my question is when we need to implement comparable or comparator interface or when do we write our own compareTo() or compare() methods.
    Thanks
    Sumit

  • I have Just Got Flash Builder 4.5 but I wanted Flash Builder for PHP

    I have Just Got Flash Builder 4.5 and I wanted Flash Builder for PHP do I need to buy the the separate product (Flash Builder for PHP) or can I use the Flash Builder Professional 4.5 that I have just purchased?
    And If I can use the Flash Builder Professional 4.5 what do I need to add to it to get it to work with PHP?

    Trial mode expires prematurely
    http://helpx.adobe.com/x-productkb/global/trial-software-expired-early.html

  • I want to build a form with radio buttons to limited clients ticking every option.

    I want to build a form with radio buttons to limited clients ticking every option. I have a range of products and in order to quote accurately I want to get specific information.

    If I get this , you want to show form options to specific clients not to all site viewers ?
    You would need to create a secure zone for this where permitted viewers can login and view the form with all options , in form itself we cannot setup this as few customers will view other options and others will view a different one.
    This can be done from your hosting end. Or if you are using Adobe server for hosting then you can create some profiles for customers and then setup a separate form altogether to achieve this.
    Thanks,
    Sanjit

  • I am wanting to build a native mobile app, what is the best programs to start with in CC?

    I see tutorials and have completed some simple app creations using edge animate and phone gap. The app I want to build I would like to have user sign in features, analytic (flurry) integration and use location based features within the app.
    I am fairly new to all this so I am just looking for some suggestions on how to or links for starting points.
    Thanks!

    Lut,
    Welcome to the forum.
    What are the full specs. of your MOD, and M2v files?If you do not know exactly, you can use G-Spot, or MediaInfo, to gather that info.
    That info might help pinpoint the issue.
    Good luck,
    Hunt

  • Error when i want to build a component with eclipse

    hi, i need to build a component for a software who is based on a ESB.
    It's based on webservice.
    I've made the skelleton with Fiorano software and my webservice should take something in input and put it in output .. it's only a test.
    But when I want to build it, Eclipse give me this Error.
    BUILD FAILED
    Target `module.deploy' does not exist in this project. It is used from target `deploy'.
    My XML is like this :
    <target name="deploy" depends="module.deploy">
    <service-export
    destfile="export.zip"
    servicefile="etc/ServiceDescriptor.xml"
    resourcesfile="etc/resources.properties"
    executionClass="com.fiorano.bc.bcgateway.ESBComponent"
    cpsClass="com.fiorano.bc.bcgateway.ps.ESBComponentPropertySheet"
    cpsMandatory="true">
    <fileset dir="${deploy.dir}">
    <include name="${jar.path}"/>
    </fileset>
                   <fileset dir="${deploy.dir}/${component.deploy.dir}/File_Cutter/${component.version}">
    <include name="fesb-ra.xml"/>
                        <include name="ra.xml"/>
    </fileset>
    </service-export>
    </target>
    I think than is just a setup probleme from eclips but I don't know where...
    An Id�e ?
    Thanks, Fabrice

    it would appear this person had a similar problem. maybe related?
    http://www.junlu.com/msg/42820.html
    good luck

  • I have a creative cloud membership.  If I don't want to build a site in Muse, can I build a business Catalyst site and have hosted free with my creative cloud membership?

    I have a creative cloud membership.  If I don't want to build a site in Muse, can I build a business Catalyst site and have hosted free with my creative cloud membership?

    Yes you can! It is a Basic level site but you can build it without Muse. I think you may need to create the site originally with Dreamweaver or Muse (meaning creating the site with Business Catalyst not building the site) but once that is done you can use any software to create the code for the site and upload it via SFTP. Hope that makes sense.

  • I want to build a website that can send out email automatically using c#

    I want to build a website that can send out email automatically using c# and sql server when a date has reached. I have googled but nothing works.
    http://www.quartz-scheduler.net/documentation/quartz-2.x/tutorial/using-quartz.html
    I came across this, but I am still unsure what to do. 

    I came across this, but I am still unsure what to do
    http://forums.asp.net/

  • I want to build a drop down menu like the one featured here

    Hi there, I am wanting to build a drop down menu exactly like the one on this site (see college information button, top right)
    http://www.barnsley.ac.uk/index.php
    I have a lot of content, and really like the idea of hiding behind a button at the top, and when the user clicks on it it opens up and pushes the rest of the page down!
    Anyone know how?

    jQuery isn't a program as much as a collection of tools and effects built in JavaScript, a "framework".
    Here's a tutorial that will help you build what you're looking for:
    http://web-kreation.com/index.php/tutorials/nice-clean-sliding-login-panel-built-with-jque ry/

  • I want to build a custom flash player for my desktop

    I want to build a custom flash player for my desktop, using C# and Visual Studio 2008. Where do I start? I just want a real simple one to play swf files. Play, stop, loop, full screen, normal size. I'll start there. Where do I go? I've searched the web for an answer, and found several example projects that don't compile, or are incomplete. It's very frustrating. This shouldn't be that difficult.

    I think you started the right way - looking for example programs.
    If they won't compile, then they probably contain errors.  Fix the errors until they compile.  Then develop your own extensions.
    This is one way of developing applications, the other way is starting from scratch.

Maybe you are looking for

  • Exporting .trx file after running testcases using TFS Inrelease 2013.4

    Hi All, Need your inputs in achieving a major blocker in our release process:  1) We are running testcases as the part of release process using Inrelease TFS 2013.4 . 2) Testcases runs fine in a lab environment and the issues come wrt to .trx file. 3

  • Problem using CSS in Flash MX 2004

    While working through a tutorial using Flash MX 2004 and CSS StyleSheets, publishing the page produces the error below each time I attempt to publish the page and I am unable to continue. There doesn't seem to be a problem with the code, and the Text

  • Videos will not play on PC from Mac

    I have a collection of videos in mp4 format on both my PC and Mac. Most were converted through handbrake. All videos and audio from my PC will play on my mac, but only audio from my Mac will play on my PC. The videos show up in itunes on my PC, but w

  • Tried to fix DC name and messed up Exchange. Put DC back still have problems loading / installing / unistalling Exchange

    2012 server / Virtual DC / Exchange,  Found problem with name of DC thought I could maybe fix it but did not work.  Used Hyper-V to import old Exported DC back.  Now exchange can not log on to ECP (cant find Enterprise Organization Container)  try to

  • CRS-MSC Can't be Recognized by the CRS-1 System.

    Hi.    Beside me is a Cisco CRS-1 Series 16 Slots Carrier Routing System/Single, and it's running fine, the software running on the system is Cisco IOS XR Software, Version 3.6.1, but when I install the CRS-MSC module on the rear of the chassis, it c