Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

USB device address

Solved!
Go to solution

Hello Aidy,

 

The only workaround that comes to mind is by attempting to write to a file on one of the drives that normally get assigned to your USB ports.

You can use a simple .txt file to test accessibility to the relevant drive letter, and then have your decision making use the outcome of that test to move forward with your application.

Have a look at the attached VI with my idea. It's simple, but it should help!

 

 

Kind Regards,

Michael S.
Applications Engineer
NI UK & Ireland

0 Kudos
Message 11 of 24
(3,393 Views)

 

Hello Michael,

 

Thanks for the VI. but!!

I am using Labview version 8.5.1............and the VI which you send is in version 8.6!

So its not opening on my system. Can you send me the screen shots of front panel and block diagram for the same.

 

Thanks very much.

 

Aditya

0 Kudos
Message 12 of 24
(3,390 Views)

Hello Aditya,

 

It's not a problem, here's the VI in 8.5.

 

Let me know how you get on.

 

Kind Regards,

Michael S.
Applications Engineer
NI UK & Ireland

0 Kudos
Message 13 of 24
(3,388 Views)

Hello Michael,

 

If I understood your suggestion correctly then I think.......in this particular case there is no drive which is assigned to the USB devices. As the devices are not storage devices and are simple sensors. The only way which I found to identify them is through Port address which is not constant in my case.

 


Aidy

0 Kudos
Message 14 of 24
(3,378 Views)

Hello sahperk,

 

I also work on the hygroclip and i can't communicate with the device. Please, can you send me the screen shots of block diagram, because I have an old version of labview.

 

Thanks.

0 Kudos
Message 15 of 24
(3,356 Views)

Hello Dam29200

 

May I know which version of Hygroclip are you using? and what is the connection type (USB / RS232 / RS485 other?)!!

 

 

Aditya

0 Kudos
Message 16 of 24
(3,352 Views)

Hello Aidy

I am not using a HygroClip, I work with a hygrolog and I thougth it is the same protocol, with a USB connection. If you could help me.

 

thanks.

0 Kudos
Message 17 of 24
(3,348 Views)

Hello Aidy,

I am a beginner on labview and I have to program the hygrolog on the USB port and I can't receive any data from the device. Can you just show me a screen shot of your structure to show me how to start the communication?

 

Thanks

 

dam29200

0 Kudos
Message 18 of 24
(3,337 Views)

Hello dam29200

 

I am not familiar with Hygrolog!!

But sure you can have a look of the VI for Hygroclip HC-2 sensor which I got from Rotronic......and modified according to my application. I am attaching a ZIP file which I got from Rotronic. It contains the main VI and DLL file for that.

 

Aidy

0 Kudos
Message 19 of 24
(3,334 Views)
Solution
Accepted by Aidy

Hello Aditya,

 

I have to apologise for my posted code, I got caught up in the "USB access" part of your query and worked around that instead of your sensor! You are right that this code would not do what you were after.

 

In this case I will have to go back to what our friend Jeff said regarding USB ports. This is a low-level access issue, where Windows and the sensor's manufacturer take care of everything. You may have a chance if you contact Rotronic to ask them if they use auto-enumeration and let Windows define how the device is accessed, and depending on their answer you might be able to use the Functions> Connectivity> Port I/O subpallete to create some decision making code for the rest of your application. This is a long shot, but it is something you can try out.

 

Best of luck!

Kind Regards,

Michael S.
Applications Engineer
NI UK & Ireland

Message Edited by sahpek on 06-30-2009 10:22 AM
Message 20 of 24
(3,323 Views)