Jump to content

jay

Members
  • Posts

    2
  • Joined

  • Last visited

jay's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi, Really simple question, but I can't seem to find the answer. I have a combo box on the front panel that I dynamically populate with items at runtime with sound devices attached to the terminal, and I would like to programmatically select a device in the combo box as a 'default' if that particular device is attached i.e. scan devices at startup, search devices, if a particular device is attached then display that device in the combo box, effective making the selection for the user. It's still important that the user is still able to use the drop down list to select another device if they so choose. Can someone please describe how I can select a particular item in the list to display as a default choice? I assume there is a property that can be set - but for the life of me I cannot find it. Thanks.
  2. Hi all, Im totally new to LabVIEW and I was wondering how to determine programmatically whether a handle for an instrument exists. Essentially I have a VI that can be called to initialise, measure, and close a DMM - and the handle is stored in a shift register. However I want to use the DMM in multiple parts of my program. I need to determine whether the DMM has been previously been initialised i.e. if the handle already exists. I guess I can do this by determining whether the handle is and empty string. But is there a more efficient way of doing this? Oh and just in case, im running a PXI system - not too sure thats relevant. Thanks.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.