From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating VI for Extech RH520 Temp & Humidity

Solved!
Go to solution

Hi guys I'm trying to create a VI to extract the temperature and humidity from the Extech RH520.

 

My knowledge is below CLAD any help and pointers would be appreciated

 

I attached a file that has the Hex language from Extech to PC COM port communications.  The COM port read a total of 761 time/temps.

 

----------------------------------------------------
Studying for CLA.
LabVIEW, inherit from social media habits!
0 Kudos
Message 1 of 8
(4,662 Views)

I think the attached file is for Serial Port Monitor only.  Let me know if you need me to post any of the Hex characters from the file

 

----------------------------------------------------
Studying for CLA.
LabVIEW, inherit from social media habits!
0 Kudos
Message 2 of 8
(4,659 Views)

I attached my Snippet Code, I can currently get it to work, but I would need to run a mouse recorder to constantly download the entire data base once every hour (using the very limited VI that RH520 has offered with their product.)

I'm hoping to get a VISA developed to communicate directly, I'm not sure how to request the information from the RH520 directly through my labVIEW program.  Should I call Extech to ask for the communication protocol?

----------------------------------------------------
Studying for CLA.
LabVIEW, inherit from social media habits!
0 Kudos
Message 3 of 8
(4,611 Views)

CDuck,

 

I couldn't find any command protocols looking through the manual for the device on the manufacturer's website. You should call the manufacturer and ask for the command protocols.

 

Once you have the protocol, you can download NI VISA and try communicating with the device in LabVIEW using the coding example in the following article:

 

NI VISA Overview

http://www.ni.com/tutorial/3702/en/

 

I hope this helps.

 

 

Patrick O.
Applications Engineering
National Instruments
0 Kudos
Message 4 of 8
(4,593 Views)

Ok so I got some of the data base to spit out onto the "read buffer" indicator.  Although it spit out the data, it also spit out this error shown in the attached picture.  Any ideas?

 

----------------------------------------------------
Studying for CLA.
LabVIEW, inherit from social media habits!
0 Kudos
Message 5 of 8
(4,590 Views)

 

Programming the RH520 requires the following:

 

  1. Connect to the RH520 serial at 57600 baud rate, 8 data bits, 1 stop bit, no parity, no flow control (DTR is asserted at start by default with no flow in LabVIEW)
  2. De-assert the DTR line in code
  3. Wait 1000 ms
  4. Assert the DTR line
  5. RH520 will begin dumping data
----------------------------------------------------
Studying for CLA.
LabVIEW, inherit from social media habits!
0 Kudos
Message 6 of 8
(4,583 Views)

Here's where I am at now:

I figured out what they meant by DTR states.

It is workly slightly better, but still not a success. 

*There is about 1000 lines with a date on each in the data base*

However  it only grabs about the first 100 date lines, then grabs the first 100 again.  Once in a while it will continue past the 100 naerly to the current date.  -_-

 

I tried rearranging the Assert-Unassert-Assert combination with no luck, and not much difference.  Actually I think when I changed it it would be more succesful, but only for 1 run.

 

The error is almost always Read VISA timeout

Any Ideas?

----------------------------------------------------
Studying for CLA.
LabVIEW, inherit from social media habits!
Download All
0 Kudos
Message 7 of 8
(4,577 Views)
Solution
Accepted by topic author CDuck

SOLVED

 

The block diagram picture attached will allow you to dump the entire RH520 data base into a single string.  With a separate VI, You can then use this  string to search/split and filter the desired date you want from the front panel input. 

 

I did switch to LabVIEW NXG today and didn't feel like recreating the diagram in Classic LabVIEW.  However this can all be recreated with the same icons in either version of LabVIEW.

 

Also I would like to add that my knowledge is no longer below CLAD.. I passed the test yesterday!! 

 

I'll update this thread later to contain my string splitter later on (To pick a single date of data)

 

Enjoy!

----------------------------------------------------
Studying for CLA.
LabVIEW, inherit from social media habits!
Message 8 of 8
(4,565 Views)