04-03-2007 02:29 PM
04-03-2007 03:15 PM
Cool. I have had a wireless Monitor II for the past decade but have never bothered to interface LabVIEW to it.
You might be able to use a 3rd party program to intercept/monitor the communication data between the VantagePro and the PC com port while running the Davis software. That would give you insight into what data is sent between the two and then use VISA functions to create a driver in LabVIEW to do the same.
Maybe a call to Davis, you never know, they might supply you with the protocol and command/data set.
Good Luck!
04-03-2007 03:42 PM
04-03-2007 05:03 PM - edited 04-03-2007 05:03 PM
Joshua:
Nice find on the Davis site, I haven't been there in years....
Looks like you have a couple options.
1. They have documented the serial command set and data format. You can look in LabVIEW help and search examples for serial communication (like Basic SerialReadandWrite). Set up the COM port accordingly and send a simple command and read the response as a test. To create a driver, at least in LabVIEW 8.2, under Tools/Instrumentation/CreateInstrumentDriverProject- use a GeneralPurpose (Message Based) for a source driver. I never have used it, but it may get you quicly started on the path. You can also probably use Windows Hyperterminal first as a sanity check before trying LabVIEW.
2. They also have a nice dll library that appears to be well documented. Within LabVIEW, you can make calls to the dll and get data back. As long as it was written in C osr stdcall, you can use the CallLibraryFunctionNode function. There is a section in the LabView Help- Calling Code Written in Text Based Languages that describes how to do this.
Hope this helps
-AK2DM
Edit: I just saw you are using Compact Fieldpoint- Not sure what that is and how it may affect use of the options above.
Message Edited by AnalogKid2DigitalMan on 04-03-2007 03:05 PM
04-05-2007 06:32 PM
04-05-2007 06:46 PM
04-16-2007 06:53 PM
04-16-2007 08:07 PM
Which compact Fieldpoint controller do you have?
I have a cFP-2120 which has 4 serial ports. Com1 is a 9-pin D-sub RS-232. Com2 and 3 are also RS-232, but use an RJ-50 connector. Very similar to an RJ-45 but have 10 pins. Com4 is an RS-485 with the RJ-50 connector.
You say you are using Com2. So does that mean you are using an RJ-50 connector? I had to buy special cables from NI to be able to use the RJ-50 as I could not find those connectors commercially available to make my own cable. Perhaps you have a wiring problem with the pins on the connector, or if you are using a D-sub, perhaps you are actually on Com1. Of course check the settings for baud, parity, and stop bits.
Just some thoughts.
04-20-2007 01:50 PM
04-20-2007 03:04 PM