04-04-2016 03:58 AM
Hi everybody !
I'm a french student (sorry for my english) and I'm working on an installation which collect datas (as voltage or current) from 2 solar panels and a wind turbine (thanks to a Keithley multimeter). And in the same time, I want to know the weather conditions and display them on Labview.
So, I've purchased a Davis Vantage Pro 2 Serial weather station,connect with my PC via a USB/Serial adapter.
Vernier provides a VI (attached with this post, avaible at http://www.vernier.com/engineering/ni-labview/downloads/weather-station/) to display the informations from the weather station but it doesn't work correctly.
In fact, this VI works just one time (by pressing the execute button). The informations displayed are good without any error message. But if I'm trying to restart it, it doesn't work and there is not error message too.
I've checked the connection port settings (com Port) and everything looks ok. And I did not find some help on forums or builder documentation.
I think the comPort is not closed properly, but I'm not sure and I don't know how I can solve this problem.
Any help would be fantastic! Thank you!
04-04-2016 09:49 AM
@clementblt wrote:Hi everybody !
I'm a french student (sorry for my english) and I'm working on an installation which collect datas (as voltage or current) from 2 solar panels and a wind turbine (thanks to a Keithley multimeter). And in the same time, I want to know the weather conditions and display them on Labview.
So, I've purchased a Davis Vantage Pro 2 Serial weather station,connect with my PC via a USB/Serial adapter.
Vernier provides a VI (attached with this post, avaible at http://www.vernier.com/engineering/ni-labview/downloads/weather-station/) to display the informations from the weather station but it doesn't work correctly.
In fact, this VI works just one time (by pressing the execute button). The informations displayed are good without any error message. But if I'm trying to restart it, it doesn't work and there is not error message too.
I've checked the connection port settings (com Port) and everything looks ok. And I did not find some help on forums or builder documentation.
I think the comPort is not closed properly, but I'm not sure and I don't know how I can solve this problem.
Any help would be fantastic! Thank you!
All the subVIs are missing from this VI, so I can't really say what is going on.
04-04-2016 10:05 AM
Hello Bill,
The SubVI are included in the zip folder available with this link : http://www.vernier.com/engineering/ni-labview/downloads/weather-station/
Clement
04-04-2016 10:56 AM
It does not really matter since the VIs are just wrappers for DLL calls. Sorry, but there is not much of anything we can do.
04-04-2016 11:04 AM
Unfortunately, this seems to make calls to a dll, and that dll is rather old (2009). Maybe they have an updated dll?
Other than that, it's going to be hard to troubleshoot without having the actual weather station. (But it might just entice me to buy one!!!)
Is it possible you are using a USB to serial adapter? And if so, is it possible to hook it up directly to USB? (I see there is a USB VI also.)
04-04-2016 02:06 PM
I'm not an expert in programming but I understand the problem.
I will try to connect the weather station via the USB port if it's possible.
Thanks for your help!
04-04-2016 02:52 PM
Do you have the Data Logger Option, the requirements call out for this.
If I have time I can try it at home tonight but I have to prepare to travel for tomorrow, I have a Vantage Pro2 wireless with the data logger.
-AK2DM
04-04-2016 03:14 PM
Hello AK2DM !
In France it's 10:10 PM and I have not access to the computer with Labview right now. It's a track to study and I will study that tomorrow morning.
Thank you, I will keep you informed.
04-04-2016 05:09 PM
Good luck! 🙂
04-04-2016 07:38 PM
Well my friend it is 17:30 GMT in the Sonoran Desert and the temp is 33C.
I did not fare any better using the USB example. I ran it and got a valid data set and then the vi became unresponsive. LabVIEW appeard to be running but I could not abort or stop the vi.
After killing LabVIEW in task manager, there was a popup from the vi, something about resetting the Davis that could not be closed.
After that WeatherLink could not connect the Pro2, I had to power down the PC to restore comms in WeatherLink.
Make sure you read the Word document in the zip file, there are some suggestions and caveats (is that French)?
I have to prepare for a trip now, seeing we both had similar issues with serial and USB, read the Word file and maybe contact Venier.
Best of Luck
-AK2DM