06-25-2009 04:56 AM
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
06-25-2009 05:44 AM
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
06-25-2009 06:03 AM
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
06-26-2009 05:10 AM
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
06-29-2009 05:21 AM
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.
06-29-2009 05:39 AM
Hello Dam29200
May I know which version of Hygroclip are you using? and what is the connection type (USB / RS232 / RS485 other?)!!
Aditya
06-29-2009 06:42 AM
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.
06-29-2009 08:17 AM
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
06-29-2009 08:28 AM
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
06-30-2009 04:20 AM - edited 06-30-2009 04:22 AM
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