02-11-2016 03:38 PM - edited 02-11-2016 03:39 PM
I have also run into this same issue and don't believe I like any of the provided answers for my particular situation. As opposed to starting a new thread I thought I would keep this one going.
Before running my program, this popup comes up to show the user whether the insturments are connected or not. In the case that an instrument is not connected, I would like the VISA resource name to come up empty. The problem is however that because of the default value set, it still comes up with the values in it, whether or not the actual VISA connection shows up in the list when clicked on. Is there a way to still have default value, but to not populate those if the insturment isn't connected when checking? I'd like the be able to make it so the user typically doesnt' need to mess with the selection of the VISA insturments, but can just click continue.
02-12-2016 10:24 AM
hi rkmadse,
It seems like your VI is already set up to add this functionality quite easily. You already have logic implemented to detect if instruments are missing by checking if the resource names match the default values, so you could add logic in that case structure that would overwrite the VISA name strings with a blank value if the resource name is empty (without having to change the settings for default resource name values).
02-12-2016 11:26 AM
My problem is that by default these names populate, whether or not the resource is actually on the drop down list. I was hoping to programmatically refresh the list and remove the default string value in the event that the default isn't actually connected. Did that make any sense.....?
02-12-2016 02:09 PM
02-12-2016 05:18 PM