Update Audio Devices while program is running

Hi
I want to connect an audio device while a labview VI is running. When I do so, the audio device doesn't appear in the audio device list. Is there any activeX node or other possibility to refresh the audio devices in labview while a VI is running?
I'm using Windows XP and LabVIEW 2010, but I think an upgrade to 2011 wouldn't solve my problem.
Solved!
Go to Solution.

Hi Kolja,
just talked to a colleague about the issue and we solved it now. The solution are VI references and reference calls.
Take a look in the example in the attachment. Using this piece of code the "Get Num Devices" function (as an example for every other function you wish to use) is reloaded everytime it is called, resulting in updated device counts at runtime.
Good luck using it and best regards,
Benjamin
Attachments:
Audio Dynamic LV2010.zip ‏10 KB

Similar Messages

  • How can I read the EXCEL file while Program is running in background.

    Hi all Expert,
    How can I read the EXCEL file while Program is running in background.
    Thanks

    you need to place ur excel file on application server and follow this thread: Reading an Excel file from the application server?
    loots of information if you can search forum.. thanks

  • How to open log file while program is running?

    Hi,
    I am using log4j to generate a log file. The application connects to a remote server and does some updates on a database. Is it possible to view the log file while the program is running? When I click on the log file to open it, I get a message "the document is in use by another application and cannot be accessed".
    Looking for ideas to get around this problem.
    Thanks and Regards,
    Harsha Hegde

    tail.exe -f
    Tail is a Unix program but if you search google you can find a port for Windows. It will show the contents of the file in a cmd prompt and will update as new lines are being added to the file so you can see the most up-to-date version as log4j is writing to it.

  • ML Sleeps While Programs are Running

    Twice now, my iMac running Mountain Lion has fallen asleep while a program is actively running.  (Ex. Encoding a movie in Handbrake and burning a BD disc with Toast.)  Does anyone know why this is happening?  I have never had issues with my Mac sleeping during such processes before. I actually count on this because I very often walk away as these longer processin tasks run and/or start them when I toddle off to bed.  I hope this is something I can resolve and not a bug.

    According to Ars Technica:
    "In Mountain Lion, OS X no longer pays attention to disk activity when deciding if it's OK to put the system to sleep. Instead, Apple recommends that applications make what Apple calls "power assertions" as a way to tell the OS when they're doing some useful work that the system should stay awake for. This policy allows the OS to put the system to sleep the moment there are no applications still holding power assertions to prevent the action."
    Apparently the "caffeinate" terminal command can be used in conjunction with specific processs to keep your machine awake until the process completes but it also seems that apps will have to be updated to comply with this new power management protocol. I've noticed the problem with Retrospect 9, HandBrake and RipIt so far...
    I have not figured out the terminal commands for using caffeinate with these apps—if anyone has some pointers I would be grateful.
    Thx

  • Open .lvm file while program is running

    How do I open a .lvm file within my program? I've tried using the Open/Create/Replace File dialog with File Dialog specifying the path and I can get to the point to select the path, and it doesn't open the file.
    Solved!
    Go to Solution.

    Can you please post your code so we can see what you are doing.
    Cory K

  • SessionStorage warning while program is running

    Hi,
    I have a desktop application that I developed in NetBeans. Everything compiles and runs, but whenever I open a specific window, I get the following warning:
    Feb 18, 2008 2:47:12 PM org.jdesktop.application.SessionStorage restoreTree
    +WARNING: No saved state for javax.swing.JTabbedPane[prefsTabs,10,11,408x228,layout=javax.swing.plaf.basic.BasicTabbedPaneUI$TabbedPaneLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=201326944,maximumSize=,minimumSize=,preferredSize=,haveRegistered=false,tabPlacement=TOP]+
    The application has several windows, and only one gives such a warning. The entire GUI layout was done with the NetBeans Swing GUI builder. I have looked around online, and I have not been able to find any documentation that will help with this problem. Does anyone have any ideas as to what could be causing this, and/or how it can be remedied?
    Thanks,
    Peter

    I get the same Warning when i open a window that contains a JTable. No idea what I should do to make it go away.
    Apr 11, 2008 6:24:33 PM org.jdesktop.application.SessionStorage restoreTree
    WARNING: No saved state for javax.swing.JTable[jTable,0,0,461x1200,alignmentX=0.0,alignmentY=0.0,border=,flags=251658568,maximumSize=,minimumSize=,preferredSize=,autoCreateColumnsFromModel=true,autoResizeMode=AUTO_RESIZE_SUBSEQUENT_COLUMNS,cellSelectionEnabled=false,editingColumn=-1,editingRow=-1,gridColor=javax.swing.plaf.ColorUIResource[r=128,g=128,b=128],preferredViewportSize=java.awt.Dimension[width=450,height=400],rowHeight=16,rowMargin=1,rowSelectionAllowed=true,selectionBackground=javax.swing.plaf.ColorUIResource[r=51,g=153,b=255],selectionForeground=javax.swing.plaf.ColorUIResource[r=255,g=255,b=255],showHorizontalLines=true,showVerticalLines=true]

  • Creating labels while program is running

    hey guys,
    im working on a program that will shoot jlabels as bullets, but am having trouble creating the jlabels in program...
    heres my code
    private javax.swing.JLabel[] shot = new javax.swing.JLabel[10000];
    public void fire()
         if(direction==0)
         shot[shots] = new javax.swing.JLabel();
         shot[shots].setLocation(100,100);
         shot[shots].setText("TESTING");
         shot[shots].setVisible(true);
    its weird, the label is created because i tested by doing...
    otherlabel.setLocation(shot[shots].getX(),shot[shots].getY());
    and the otherlabel will move to a location
    any ideas?

    Did you read the link to the add() documentation?
    If you intend to add it to the frame you would say:
    shot[shots] = new javax.swing.JLabel("TESTING");
    shot[shots].setLocation(100,100);
        // not needed
    //shot[shots].setText("TESTING");
    //shot[shots].setVisible(true);
    shooterForm.add(shot[shots])Note that since you are setting the position of the label the frame (or rather its content pane) should have a null layout.

  • Solution to JTable SessionStorage warning while program is running

    I have a Netbeans developed Desktop Application showing the following warning:
    WARNING: No saved state for javax.swing.JTable ...There is a now locked forum thread on this topic: [http://forums.sun.com/thread.jspa?threadID=5265745]
    I think this happens if you are using a JTable with no resizable columns. This is what I found digging in the org.jdesktop.application.SessionStorage source code:
    When the SessionStorage.save() method is called to save the application state ( the class org.jdesktop.application.SingleFrameApplication calls it during application shutdown),
    for each JTable object in the application, the org.jdesktop.application.SessionStorage.TableProperty.getSessionState() method is called to get a org.jdesktop.application.SessionStorage.TableState
    object that is supposed to contain the target JTable state information to be saved.
    Unfortunately if the target JTable has no resizable columns the getSessionState() method returns null (this is IMHO a bug !) and this produces an inconsistent saved state that when the application is restarted, causes a null to be retrieved as the JTable state to restore, giving the warning message.
    The solution is simple: each JTable object with no resizable columns must have no name, i.e.:
    myTable.setName(null)If a component has a null name the save state method ignores it and the warning disappears.
    Surprisingly enough, this solution is exactly the opposite of the solution proposed in the previous thread.

    the table.setName(null) worked for me but my tables also have table.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS);
    I still don't know what's going on but I appreciate the tip. The warnings are now gone.
    Joe

  • OSX 10.6.7 gets confused on access and connection rights after updateing device or program

    Hello
    On all our 4 Mac, all with Snow Leopard 10.6.7, I have an issue with storing access and network connection rights after updating programs and devices.
    We have a Canon network printer. Everything worked fine, the necessary programs had the rights to accept incoming network connections. But then I reinstalled the printer on two Macs because of the PDF fonts problem with 10.6.7. But now, the system asks for every single document if incomming connection should be allowed, even if the according program is listed in the firewall as "allow". Deleting the program from the list in the firewall and add it newly did not help.
    The same issue occures now with a selfwritten Applescript program. It access a key in the keychain. I told the system to allow access always, that worked in the beginning, but after updating the program, it does not store the program as allowed any more. I cannot even add it manually to the allowed list for the specific key. Means, I can select the program after clicking the plus, but the program simply not shows up in the list.
    This happened on two Macs up to now, one is the same as the printer problem, but the other does not have the printer problem (up to now).
    What to I have to do, that the program stores the given rights newly, also after updating a device or program?
    Other people have the same problem as you can see here.

    reFX guys were very helpful and took remote connection to my desktop. It was 5 minutes and Nexus2 was up and running.
    The thing was that my hard drive is case sensitive. They just renamed the file white_3_nsk to lower case in
    /Library/Audio/Plug-Ins/Components/Nexus.component/Contents/Resources/. After that, everything is working.
    Hopefully this helps someone in the future who has put fortune to Nexus2 and gets heart attack when it doesn't work.
    Regards,
    Hannu

  • While trying to run it show error message : "The application or DLL C:\Program Files\Mozilla Firefox\sqlite3.dll is not a valid Windows image. Please check this against your installation diskette

    Just updated firefox. While trying to run it show error message : "The application or DLL C:\Program Files\Mozilla Firefox\sqlite3.dll is not a valid Windows image. Please check this against your installation diskette." Tried to download and install new firefox, but it alway show that the file is corrupt
    == Today ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2)

    Do a clean reinstall and download a fresh Firefox copy from http://www.mozilla.com/firefox/all.html and save the file to the desktop.
    Uninstall your current Firefox version and remove the Firefox program folder before installing that copy of the Firefox installer.
    It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    You can skip the step to create a new profile, that is not necessary for this issue.
    See http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall

  • How do I reinstall an audio device when its missing?

    I accidentally deleted my audio device while troubleshooting problems with my sound (the red X over the volume) and cannot reinstall it.  I know it's an IDT audio codec device from some of the previous diags, but you can't install a driver for a device that doesnt exist. 
    I have an HP Pavilion dv6-1378r entertainment laptop w/Win7 (64bit).  I have even tried installing an incorrect device - hoping that I could add the correct one later, but once the bad one is deleted, the entire SOUND, VIDEO, GAME CONTROLLERS icon is deleted.
    I keep getting error 10 when running the audio troubleshooter.  It tells me NO AUDIO DEVICE INSTALLED.  When I try to install the IDT drivers (with my fingers crossed), it fails.  

    My built-in system speaker (realtec) and the playback device (altec lansing) are both missing--from the bios and in the device listing (even though there are configurations for these, and the Windows 8 troubleshooter claims they are working as expected. I sent the 3-month old Pavilion G7 laptop to repair--and it was determined that the machine has moisture damage, voiding any warranty; repair would cost MORE than a whole new laptop! 
    What isn't documented (I have yet to find it) is where and how the sound component (which I think is an integrated part of the motherboard) was so easily affected. Not from any spills. But I DID find a yuky smell and moisture when the device was returned to me--and I have to surmise that if you spill something on the table and you pick up your laptop: TAKE IT APART because there's a little button that wicks liquid up into the cover on the backside/bottom of a laptop.  The device was returned to me with the back cover still off, and enough residual to pull components out of the motherboard. (Thanks, repair folks!)--without that hint, I never would have considered the wicking nature of a little button, and I didn't know to LOOK by disassembling the machine! In fact, I think it would have voided the warranty for me to open it up, but if I had, I would still have a functioning 6 month old laptop!
    Seeking ways to replace the sound component or add one to one of the USB ports.

  • MBP 17" Boot Camp Firewire Audio Devices

    Hello Everyone.
    If your having installation / dead audio issues with a firewire audio device in Boot Camp running Windows XP such as the Presonus Firepod or Tascam FW 1884 you should try downgrading your firewire drivers from Service Pack 2 to SP1.
    As showed in this article:
    http://www.rme-audio.com/english/techinfo/fw800sp2.htm
    Please note I also had to rename my services pack 2 file (C:\Windows\Driver Cache\sp2.cab) to another name so windows wouldnt use it when downgrading.
    Both my Firepod & Tascam now opperate as expected.
    After a day of searching and crying I found (loosly) the answer in these forums.
    Thanks everyone, hope this info is useful to someone else too. ^_^
    Best,
    Timothy - trash80.net
    Mac Book Pro 17"   Mac OS X (10.4.7)  

    After two complete reloads of OS X, Boot Camp and installing XP Pro again both times the driver CD still fails to run.
    Also I cannot update firmware at all. Running firmware updater
    from utilities fails with a message that this firmware is for specific machines and does not apply to this computer. (not an exact quote)
    Downloading and running the firmware update for MBPro also fails with a message that this computer does not need updating. Made sense to me since the 17" was released after Boot Camp but the "not for this computer" error when trying to run it through Firmware Updater makes me wonder...
    I do see that the driver CD extracts some folders\files to the users Temp folder in Windows XP, I copied those out but have not figure out the manual install of drivers yet. In fact I don't see any drivers - just misc config files and the various script files to run the drivers application.
    Going to run it again this afternoon after XP Pro reloads yet again and try looking in the Windows\Temp folder for the drivers, check everywhere to see if they actually extract.
    After that it should be fairly simple to manually install them and circumvent the auto-install failure of the CD.
    Will post later with results.

  • HT1688 my device was not registered as part of the Developers Program and now my devices are not working, i can not restore nor update my devices... any suggestions? i was running my devices on iOS 7 Beta that i downloaded back in August

    my device was not registered as part of the Developers Program and now my devices are not working, i can not restore nor update my devices... any suggestions? i was running my devices on iOS 7 Beta that i downloaded back in August

    If you're not a registered developer, it means you've stolen Apple's software.  Now you come to an Apple forum and ask for help?  You're lucky you're not being prosecuted!
    You can receive no help for stolen software here.  Enjoy your iBrick.

  • HELP No Audio Device Installed on HP dv4-145dx running Windows Vista Home Premium Service Pack 2

    I recently completed a Windows update and now my audio device is not functioning at all.  I am being told that NO AUDIO OUTPUT DEVICE IS INSTALLED. I have tried to use the Update Driver function and keep receiving the message " WINDOWS FOUND DRIVER SOFTWARE FOR YOUR DEVICE BUT ENCOUNTERED AN ERROR WHILE ATTEMPTING TO INSTALL IT."
    If anyone has advice on how to resolve this issue please help. Thank you.
    Dannette

    Hi,
    It seems that the Audio Driver is corrupt: 
    Please click Start->In the Search Field above, type DEVMGMT.MSC and Press Enter, it opens Device maanger Window,  click + next to Sound, Video and Game COntrollers, right click on IDT or High Definition Audio Device entry, and click uninstall.
    Click Start->All Programs->REcovery Manager->Select NO on Software Program Installation, click Next, select YEs on Hardware Driver installation, click yes, it shows all Drivers, choose Audio Driver, and click Install.Restart the PC, and check if the issue has fixed. If not, go to Control panel->Sound, on PlayBack Tab, right click on empty Space, select Show Disabled Devices, Show Hidden Devices, select Speakers, and click Set Default, play a file in Media Player, check to see if it works.
    Thank You.
    Kiran Talluri
    Say thanks by clicking the "Kudos! Star" which is on the left.
    Make it easier for other people to find solutions, by marking my answer "Accept as Solution" if it solves your issue

  • No audio device installed after windows vista sp2 update

    Ok I will try to be as thorough as possible because I want to fix this problem and I hope somebody can help me.
    So A few days ago There was an update for my audio driver so I accepted.
    But after this update my sound worked but on next use the sound was gone.
    So......I used system restore but no help the same thing happened
    I went to the hp website to look up my audio driver for my model which was conexant audio 221
    After download the driver wouldnt let me install it. I go to check in device manger to install it manually and the sound section is gone literally so i cant reformat or reinstall or anything 0.0
    Somebody told me I need to upgrade to windows vista x64 sp2 which was in windows update.
    So i tried it and still the same crap
    I cant install the sound driver because there is no place in the device manager to install it to
    I just get a message saying device installation failed device not found
    i dont know what to do
    My laptop is a hp dv2700 special edition notebook
    Ive had it for a year no problems and this is the first major problem I've had ..............HELP
    Past audio driver was conexant : Conexant High-Definition SmartAudio 221 Driver
    Ive tried reading through support forums but you have to understand THE SOUND VIDEO GAME CONTROLS SECTION IN DEVICE MANAGER IS GONE
    when i go into the programs I find my audio devices which are conexant hd audio and conexant hd audio soft fax modem with smart cp but when I click on them nothing happens

    hi, im also exp. the same <text deleted> problem! i also get that error message "quick touch on screen display has stopped working" , lower right corner(volume icon)says"no audio output device is installed", no "video,sound & controllers" on device manager,  i had tried reformatting, multible virus\malware scanners, ive tried multible registry cleaners, DL updated drivers, bios, audio(can't install,no audio device),and ive tried all of these conbinations with or without the windows updates, besides the audio prob, the cd/dvd icon's gone frm My comp, cant use the mic, and or webcam, SMART is detecting a hard disk failure now(iminent 2 fail) <text deleted> !,lol...   ps HP or Microsoft really needs 2 take this into consideration, im tired of this, i will never buy another HP ever!! or windows!, **bleep** it if i have 2 spent another thousand dollars on a Mac,atleast ill get a much decent,"working" pc, that wontstress the **bleep** out of my mind!
    Message Edited by WendyM on 08-09-2009 07:35 PM

Maybe you are looking for

  • How to get diseabled off my i pod touch

    how do i get the diseabled off my i pod touch

  • Cannot generate a PDF

    I have recently installed Acrobat XI, free trial version, on my laptop.  When attempting to "Print to PDF" from my Microsoft Publisher files, I get only "Publisher not Responding".  Thus I am unable to generate a PDF.  Any ideas?  Thank you.

  • 'Pan' across an image

    I've seen some Keynote presentations and been blown away by the quality and visual impact and would love to 'switch', particularly when we have rumoured MacBooks in the next few days However - I've been into the Apple Store in London to have a play w

  • Contribute rewriting paths, adding lots of ../

    A couple of my users seem to have found a new bug. For no apparent reason, when adding a link to a document on the page, instead of adding the correct relative path "documents/mydoc.doc", it writes the path relatively going all the way up to the root

  • Error message NIPathDir property while installation

    Hi, we are facing an error while installation of Lab VIEW 8.2.1 on windows vista. Each time an Fatal Error message appears ; "fatal error   NIPathDir property....is undefined" Please tell me the solution for this error. Thanks Altaf