09-14-2009 01:42 PM
I've purchased a Davis Vantage Pro 2 USB weather station, and I am trying to interface it with a Labview program I am writing.
I have donwloaded the dll (available here: http://www.davisnet.com/support/weather/software_dllsdk.asp), and am using that within my program.
Almost everything is working perfectly. The only problem is that the CloseUSBPort function won't seem to work. This means that if I go to run the program a second time, Labview just crashes on me. Any thoughts?
I've included by *.vi below (along with the dll)
Any help would be fantastic!!
09-15-2009 09:59 AM
Hello bpmccain,
What does it mean when you said the CloseUSBPort function doesnt seem to work?
It seems that in your VI you are calling the DLL supplied by the manufacture. LabVIEW only acts as a bridge between your VI and the DLL. Have you tried contacting davisnet regarding their DLL??
09-16-2009 05:10 PM
If the CloseUSBPort_V function was working correctly, it should return a value of 0, which would then turn on the green indicator labelled 'Close USB'. This isn't happening, and I wasn't sure if it was something I was doing wrong in implementing the dll inside of LabView, or a problem with the dll itself.
I have contacted the manufacturer as well, and am waiting for a response from them, but thought I would post here to see if any users had any familiarity with the USB Davis Vantage Pro, or could spot any obvious errors in my *.vi.
Brian