LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Davis Vantage Pro USB - Can't Close Port

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!! 

0 Kudos
Message 1 of 3
(3,663 Views)

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??

Andy Chang
National Instruments
0 Kudos
Message 2 of 3
(3,633 Views)

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 

0 Kudos
Message 3 of 3
(3,615 Views)