How do I make a boolean tone?

On my VI, I currently have 2 boolean indicators (LEDs).  In addition to these LEDs lighting up, I would like to have audible tones as well.  For example, whenever LED 1 is on, I want to play a 440Hz tone.  Whenever LED 2 is on, I want to play a 880Hz tone.  In my application these two LEDs are mutually exclusive so I don't have to worry about both tones playing simultaneously.
Thanks for the help!

The reason I had suggested using a shift register (or similar mechanism) to keep track if the sound is already playing is so that you do not restart the sound playing when you get into the "true" part of the case to play the sound since you're continously updating the boolean indicator. If the sound generation is done via a subVI (as it most likely would be), calling the VI again will simply restart the sound and it will sound like a Milli Vanilli concert.
Attached is a simple demonstration program (LabVIEW 8.20).
I was unable to find the "Continous Sound Output" example in the Example Finder. There's a "Continuous Sound Input", though.
Attachments:
sound and boolean.vi ‏12 KB

Similar Messages

  • How do  I make a ring tone for iphone 4

    How how do  I make a ring tone from my original music , all I read is old  , surely I can convert something to a ringtone  for my iphone 4.
    Just seems like I cant do anything without buying something from Apple ... need some help , iM geetting tired of missing calls because of some naf ringtone.
    thanks if you can help .

    go to app store  get free ring tone converter, play your song must be an Mp3 or mp4... convert
    sync phone with computer  in itunes , turn sync on ... it should come across ..select on phone  in settings , sounds ringtones, its on the top line , play with click and voi la...   ..sorry ..just dissapointed that apple only had old discussions there  noone  really helped there ... cheers

  • How can I make a custom tone?

    I want to make a song from my itunes library into a tone without paying.

    There are free apps in the App Store such as Ringtone Maker to do this for you as well.

  • How do you make the colour tone of the adjustment brush in camera raw white?

    I am using Camera Raw (Version7.0.0.308) in CS6. The adjustment brush does not have a slider for the colour tone but jumps from blue to yellow with the +, - keys. How do I set it to white? Currently all my adjustment come out either with a yellow tone or a blue tone.

    Hi,
    I would update to camera raw 7.4 and install any other updates that show when using Help>Updates from within photoshop cs6.
    Then check if you have the same issue.

  • How can I make my own ringtone in iTunes 11.0.2?

    I used to convert the audio to an ACC file after I cut it. However, there's no longer that button, how can I make them into tones after cutting the audio? The new version of iTunes confuse me

    How about creating the ringtone on your iPhone? You may want to check this out:
    http://www.macworld.com/article/2010514/how-to-create-a-ringtone-on-your-iphone- with-garageband.html
    You need GarageBand 1.3 for iOS - is your iPhone compatible with that?

  • When i try to upload a .mts file from my Sony camera to Premiere Pro CC it refuses to play the audio! Ofcourse i could convert every single clip but it takes tons of time. How can i make Pr play audio track properly?

    When i try to upload a .mts file from my Sony camera to Premiere Pro CC it refuses to play the audio! Ofcourse i could convert every single clip but it takes tons of time. How can i make Pr play audio track properly?

    Does it not play at all or cannot you get the audio in the timeline?
    Did you copy the entire card to the hdd and then imported the file via the Media Browser?
    Did you source patch the audio tracks?

  • HT1727 help how do i make a purchased song my ring tone, it;s not showing on my list for ringtones

    help how do i make a purchased song my ring tone, it's not showing on my list for ringtones

    This song was purchased from the iTunes Store?
    If so, you can't create a ringtone from music that was purchased from the iTunes store, but if there is a ringtone available for purchase and download at the iTunes Store with this song, you need to do that.
    For music in your iTunes library on your computer that was not purchased from the iTunes store, there are a number of ways to create a ringtone with such music. With a Mac, there is an inexpensive or free app avaiable via Apple's online App Store named Ringer. Ringer has access to all music and sound files in your iTunes library that was not downloaded from the iTunes Store for creating your chosen segment of the song to be used for the ringtone. The app places the created ringtone in your iTunes library under Tones for transfer to your iPhone when syncing.
    Creating ringtones on a Mac can also be done with GarageBand, and there is a manual way of doing this with iTunes.

  • Using the retouch tool, how do you make it change color? The old iPhoto one did, this one seems to be flesh-tone only, which is not how I need it to be. In old iPhoto, used the local color to blend, it was great.

    Using the retouch tool, how do you make it change color? The old iPhoto one did, this one seems to be flesh-tone only, which is not how I need it to be. In old iPhoto, used the local color to blend, it was great.

    I don't know which old version you're referring to but iPhoto 6's,  7's and 8's retouch tool works exactly the same as iPhoto 9's. The color of the enhance tool's area while applying is a light brown color but the retouch works on any color using the surrounding colors as a basis.
    During retouching:
    After retouching:
    OT

  • Is there additional ring tones? or How to make custom ring tones?

    Hi,
    I am thinking about adding additional ring tones.
    Is there any site I can download the ringtones for cisco 7940, 7960, 7940G, 7960G?
    or
    Can I make custom ring tones by myself?
    If there is an application to do the ring tones, pls anyone let me know?
    thanks

    Hi San,
    Just to add a note to the great tips from Ingo and Bethany (+5 points each folks for your nice work here :)
    Here we go :)
    PCM File Requirements for Custom Ring Types
    The PCM files for the rings must meet the following requirements for proper playback on Cisco Unified IP Phones:
    •Raw PCM (no header)
    •8000 samples per second
    •8 bits per sample
    •uLaw compression
    •Maximum ring size-16080 samples
    •Minimum ring size-240 samples
    •Number of samples in the ring is evenly divisible by 240.
    •Ring starts and ends at the zero crossing.
    •To create PCM files for custom phone rings, you can use any standard audio editing packages that support these file format requirements.
    Configuring a Custom Phone Ring
    To create custom phone rings for the Cisco Unified IP Phone 7965G and 7945G, follow these steps:
    Procedure
    Step 1 Create a PCM file for each custom ring (one ring per file). Ensure the PCM files comply with the format guidelines that are listed in the "PCM File Requirements for Custom Ring Types" section.
    Step 2 Upload the new PCM files that you created to the Cisco TFTP server for each Cisco Unified Communications Manager in your cluster. For more information, see the "Software Upgrades" chapter in Cisco Unified Communications Operating System Administration Guide.
    Step 3 Use a text editor to edit the Ringlist.xml file. See the "Ringlist.xml File Format Requirements" section for information about how to format this file and for a sample Ringlist.xml file.
    Step 4 Save your modifications and close the Ringlist.xml file.
    Step 5 To cache the new Ringlist.xml file, stop and start the TFTP service by using Cisco Unified Serviceability or disable and re-enable the "Enable Caching of Constant and Bin Files at Startup" TFTP service parameter (located in the Advanced Service Parameters).
    http://www.cisco.com/en/US/docs/voice_ip_comm/cuipph/7965g_7945g/6_1/english/administration/guide/7965cst.html#wp1097651
    There is a nice little Step by Step here;
    http://www.globalknowledge.com/training/whitepaperdetail.asp?pageid=502&wpid=473&country=United+States
    Or search sites like this one;
    http://www.adman.net/cisco/ringtones/browse.asp
    Hope this helps!
    Rob
    PS: Interesting tunes from your link Bethany, I'd love to hear "Scar Tissue" as a ringtone, pretty cool :)

  • How can i make one of my itune songs my ring tone on my apple iphone 3gs-32gb

    HI is there anyone out there that can help me step by step how i can make one of my downloaded itune songs on my iphone as my RINGTONE on my iphone 3gs-32gb please my phone as been upgraded to a ios 6 id be very grateful if you could help me as ive been trying all day with no joy as this is my very first iphone you see and im so blind to all this lol thanks susan.

    http://www.ehow.com/how_2160460_custom-iphone-ringtones-free.html

  • How can I make the combo box turn to the value of black.

    When the show button is pressed (and not before), a filled black square should be
    displayed in the display area. The combo box (or drop down list) that enables the user to choose the colour of
    the displayed shape and the altering should take effect immediately.When the show button is pressed,
    the image should immediately revert to the black square, the combo box should show the value that
    correspond to the black.
    Now ,the problem is: after I pressed show button, the image is reverted to the black square,but I don't know
    how can I make the combo box turn to the value of black.
    Any help or hint?Thanks a lot!
    coding 1.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class test extends JFrame {
         private JPanel buttonPanel;
         private DrawPanel myPanel;
         private JButton showButton;
         private JComboBox colorComboBox;
    private boolean isShow;
         private int shape;
         private boolean isFill=true;
    private String colorNames[] = {"black", "blue", "cyan", "darkGray", "gray",
    "green", "lightgray", "magenta", "orange",
    "pink", "red", "white", "yellow"}; // color names list in ComboBox
    private Color colors[] = {Color.black, Color.blue, Color.cyan, Color.darkGray,
                              Color.gray, Color.green, Color.lightGray, Color.magenta,
                              Color.orange, Color.pink, Color.red, Color.white, Color.yellow};
         public test() {
         super("Draw Shapes");
         // creat custom drawing panel
    myPanel = new DrawPanel(); // instantiate a DrawPanel object
    myPanel.setBackground(Color.white);
         // set up showButton
    // register an event handler for showButton's ActionEvent
    showButton = new JButton ("show");
         showButton.addActionListener(
              // anonymous inner class to handle showButton events
         new ActionListener() {
                   // draw a black filled square shape after clicking showButton
         public void actionPerformed (ActionEvent event) {
                             // call DrawPanel method setShowStatus and pass an parameter
              // to decide if show the shape
         myPanel.setShowStatus(true);
                   isShow = myPanel.getShowStatus();
                                            shape = DrawPanel.SQUARE;
                        // call DrawPanel method setShape to indicate shape to draw
                                            myPanel.setShape(shape);
                        // call DrawPanel method setFill to indicate to draw a filled shape
                                            myPanel.setFill(true);
                        // call DrawPanel method draw
                                            myPanel.draw();
                             myPanel.setFill(true);
                             myPanel.setForeground(Color.black);
                   }// end anonymous inner class
         );// end call to addActionListener
    // set up colorComboBox
    // register event handlers for colorComboBox's ItemEvent
    colorComboBox = new JComboBox(colorNames);
    colorComboBox.setMaximumRowCount(5);
    colorComboBox.addItemListener(
         // anonymous inner class to handle colorComboBox events
         new ItemListener() {
         // select shape's color
         public void itemStateChanged(ItemEvent event) {
         if(event.getStateChange() == ItemEvent.SELECTED)
         // call DrawPanel method setForeground
         // and pass an element value of colors array
         myPanel.setForeground(colors[colorComboBox.getSelectedIndex()]);
    myPanel.draw();
    }// end anonymous inner class
    ); // end call to addItemListener
    // set up panel containing buttons
         buttonPanel = new JPanel();
    buttonPanel.setLayout(new GridLayout(4, 1, 0, 50));
         buttonPanel.add(showButton);
    buttonPanel.add(colorComboBox);
    JPanel radioButtonPanel = new JPanel();
    radioButtonPanel.setLayout(new GridLayout(2, 1, 0, 20));
    Container container = getContentPane();
    container.setLayout(new BorderLayout(10,10));
    container.add(myPanel, BorderLayout.CENTER);
         container.add(buttonPanel, BorderLayout.EAST);
    setSize(500, 400);
         setVisible(true);
         public static void main(String args[]) {
         test application = new test();
         application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    coding 2
    import java.awt.*;
    import javax.swing.*;
    public class DrawPanel extends JPanel {
         public final static int CIRCLE = 1, SQUARE = 2;
         private int shape;
         private boolean fill;
         private boolean showStatus;
    private int shapeSize = 100;
    private Color foreground;
         // draw a specified shape
    public void paintComponent (Graphics g){
              super.paintComponent(g);
              // find center
    int x=(getSize().width-shapeSize)/2;
              int y=(getSize().height-shapeSize)/2;
              if (shape == CIRCLE) {
         if (fill == true){
         g.setColor(foreground);
              g.fillOval(x, y, shapeSize, shapeSize);
    else{
                   g.setColor(foreground);
    g.drawOval(x, y, shapeSize, shapeSize);
              else if (shape == SQUARE){
         if (fill == true){
         g.setColor(foreground);
                        g.fillRect(x, y, shapeSize, shapeSize);
    else{
                        g.setColor(foreground);
    g.drawRect(x, y, shapeSize, shapeSize);
    // set showStatus value
    public void setShowStatus (boolean s) {
              showStatus = s;
         // return showstatus value
    public boolean getShowStatus () {
              return showStatus;
         // set fill value
    public void setFill(boolean isFill) {
              fill = isFill;
         // set shape value
    public void setShape(int shapeToDraw) {
              shape = shapeToDraw;
    // set shapeSize value
    public void setShapeSize(int newShapeSize) {
              shapeSize = newShapeSize;
    // set foreground value
    public void setForeground(Color newColor) {
              foreground = newColor;
         // repaint DrawPanel
    public void draw (){
              if(showStatus == true)
              repaint();

    Hello,
    does setSelectedIndex(int anIndex)
    do what you need?
    See Java Doc for JComboBox.

  • How can I make my guardians buy me an iPhone 5?

    Hey, Apple forum people.
    Maybe you guys can help me with my problem/question today?
    Well, I am thirteen years of age, and I'm very addicted to Apple products (I currently have a iPod touch and iPad)
    Now, my birthday is in November, and I will be 14 years old.
    Well, a few weeks ago, I went to the Apple store, locally.
    I just fell in love. With every worker with their blue t-shirt on with the Apple logo.
    I played with the iPad mini, iMac, Macbook Air, and the iPhone of course.
    I just literally fell in love with touching all of the devices. I didn't get around to the iPod touch or Macbook Pro.
    And, I do want the iPhone 5. Because mostly all teens are getting iPhones.
    One thing about the iPhone, that is not letting me get it, is because my sister says I don't talk on the phone that much, but neither does she!
    I currently don't have any phone, except a Straight Talk phone which I never use.
    I mostly my iMessage and Pinger to text my friends.
    So, I keep asking them for an iPhone.
    I don't even care if I get the iPhone 4.
    I just want one! But I mostly want something with Siri, and that narrows out the iPhone 4.
    But lately, I've being lying a lot.
    They mostly forgive me though.
    So, is there any tips I could get to try to make them give me the iPhone 5?
    It would be nice to go into school right after my birthday with the iPhone 5 in my back pocket.
    Thanks for any advice that you have!

    "How can I make my guardians"
    Wow, that just sets the tone of this post. Make them? Are you serious? How about getting off your whiny little arse and getting a job, perhaps mowing lawns, washing cars, cleaning gutters, etc. then use that money to but it yourself, or show them how hard thou worked and perhaps they will help chip in for it
    Yeah, I'm sure if I had some snot nosed lying kid I had to take care of, I would want to rush right out and buy him an iPhone 5.

  • How do I make a photo look good in a BW newspaper

    I nned to submit an ad to a newspaper it has a photo in it How do I make it look great?

    In PS, change the mode to grayscale.  I typically use the Auto Tone to create better black & white contrast, followed by using levels, for manual adjustments.  Ink spreads more on newsprint than regular paper, so I change the dot gain to 30% (see color settings).  You don't need high resolution for newsprint ... 150 ppi will suffice for b&w.

  • How can I make a "property node" for a VI?

    Hello!
    If I add a boolean button on the FP then I am able to make a property node for that button in the Block Diagram. But how can I make a property node for a VI? I have several VI:s an that together is one program. What I need to do is to verify what kind of VI some of my VI:s is. I need to verify if it is .exe or .vi-file, and if it is .exe then I want to disable run, abort, run continuously bottons otherwise not. I have hard that this is possible to do programmaticaly but I can´t figure out how. I am aware that I could do that manually in the File->vi properties->customize->windows appearance but theese choises makes it last forever.
    I want to be able to stop and run and everything if it is a .vi file, but if it is .exe-file then all those buttons should be disabled.
    Anyone have an example on this?
    In an other message at this Forum I read "You can use the `Front Panel Window. Allow Runtime PopUp`" property to disable run-time shortcuts menues programmaticaly, but still I dont know how to create this property node.
    /Amir

    You really shouldn't open a new thread. If you don't understand something, ask and we will explain it.
    Like I said in the other thread, you can check if you are running in LV or an EXE by using the Application>>Kind property. To get it, place a property node (from the Application Control palette) on the diagram, click it and find the property.
    To set the properties for the VI, place another property node, right click it and select Select Class>>VI Server>>VI. You should have the properties you want under Front Panel Window.
    To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.
    In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf). I believe chapter 17 of the user manual explains about programmatic control of VIs.
    Try to take over the world!

  • How do I make my workhorse Samsung ML-1740 printer work with Yosemite 10.10.3?

    How do I make my workhorse Samsung ML-1740 printer work with Yosemite 10.10.3?

    Are any other Samsung printers affected? Or is this a specific ML-1915 problem?
    (I still can print on a shared ML-1640 printer at home.)
    I hope Apple is also reading these forums: As said before: This started with the OS X update!
    Then in between there were Samsung printer updates issued by Apple via the softwareupdated function.
    They also didn´t solve the problem.
    I also tried removing the printer and adding/setting it up again. (as suggested in the Apple support pages).
    Even installing the original driver that came on CD. That didn´t help either.
    Logic still tells me that this is an Apple / OS X caused problem. Please fix it!!!
    I have no intention to buy a new printer just because Apple might have messed up with their updates.
    The printer was working perfectly fine and it just got a fresh toner.

Maybe you are looking for