LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

USB block diagram

Hi Mike,

 

Can you help me check whether did I put the input to the find resource function correctly?

 

Please Advice

 

Thanks

 

0 Kudos
Message 11 of 43
(1,286 Views)

Hi,

 

Can you help me check whether did I put the input to the find resource function correctly?

 

Please Advice

 

Thanks

0 Kudos
Message 12 of 43
(1,264 Views)

Hi Mike,

 

I have replied you...have you seen my recent post?

 

Thanks

0 Kudos
Message 13 of 43
(1,243 Views)

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

Message 14 of 43
(1,239 Views)

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

0 Kudos
Message 15 of 43
(1,232 Views)

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.

Message 16 of 43
(1,221 Views)

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.

Message 17 of 43
(1,221 Views)

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

0 Kudos
Message 18 of 43
(1,214 Views)

"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."

 

 

Message 19 of 43
(1,204 Views)

Hi Dennis Knutson,

 

May I how to display the icon for find list?

 

Please advice

 

Thanks

0 Kudos
Message 20 of 43
(1,196 Views)