07-21-2011 09:18 PM
Hi Mike,
Can you help me check whether did I put the input to the find resource function correctly?
Please Advice
Thanks
07-22-2011 12:11 AM
Hi,
Can you help me check whether did I put the input to the find resource function correctly?
Please Advice
Thanks
07-22-2011 08:13 AM
Hi Mike,
I have replied you...have you seen my recent post?
Thanks
07-22-2011 08:36 AM
Hi undergraduate,
you don't really use it, as it is implemented right now. You don't use the output of the function.
Can you please explain (again) what you try to do? I would assume that you use the result (from FIND Visa Resoure) as a selection for the user.
Mike
07-22-2011 09:15 AM
Hi Mike,
I trying to change this program's input to detect COM port through USB instead of serial port....the attach file is the orginal program....the previous post with the attach file is the modified program with "visa find resource function"...can you help me check whether have I did it correctly
Please advice
Thanks
07-22-2011 09:38 AM
If I can make a recommendation. You have a lot of unnamed controls and indicators on your VI. As a result, you have local variables that just show a question mark, and the drop down list for the locak variables contains numerous blank entries. How do you know which item is connected to which control? You don't.
Show the label for each and every one of your control and indicator terminals on the block diagram and give it a meaningful name. If you don't want the label to show on the front panel, that's okay. Just go to the front panel and deselect the labes as a visible item.
Having unnamed controls at best is a nuisance to you and especially to anyone who tries to follow your code. At worst, it leads to bugs in your code because you can't identify the controls and local variables with respect to each other.
07-22-2011 09:40 AM
You are not even close in using the VISA Find Resources correctly. Why would you wire the expression string to the resource name input?
For an automatic detection of the correct com port, you would wire the array output to a loop and for each resource detected, run some test to see if your specific instrument is connected there.
07-22-2011 09:52 AM
Hi Dennis Knutson,
Do you mind helping me to fix the problem please?...I am new to this function...Hope to see what is the correct method of using the "VISA Find Resources"
Please Advice
Thanks
07-22-2011 10:14 AM - edited 07-22-2011 10:15 AM
"For an automatic detection of the correct com port, you would wire the array output to a loop and for each resource detected, run some test to see if your specific instrument is connected there."
07-22-2011 10:34 AM
Hi Dennis Knutson,
May I how to display the icon for find list?
Please advice
Thanks