Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

CR1000 - Second-by-second data table record dump through serial port?


ccat Mar 17, 2011 01:55 AM

We currently have a CR1000 connected to a computer through the RS232 port. A small program we wrote communicates with the logger in terminal mode and issues the "7" command (VARS) every second, which returns a list like:

BattV: 14.1981
PTemp_C: 20.15455
Temp_C(1): 32.7192
Temp_C(2): 33.96938
TAMB: 11.09265
SolarRad: 61.7007
SumRad: 6.17007E-05
Steca_flo: 0

But this is less than ideal because the timing isn't based on the CR1000's internal clock and there's no way to match the variables to the logger's internal record numbers.

Is there a separate command that can do this?

If it helps, another thread talked about the possibility of using a CRBasic program and the SerialOut function to have the logger push out data instead, but I couldn't find any specific documentation on this -- did I just not look hard enough? And am I correct in believing that CRBasic code can be written in any text editor and uploaded via Short Cut/Device Configuration Utility, or is PC400W/LoggerNet and the actual CRBasic Editor required?

Thank you for the help,
Roger


IslandMan Mar 17, 2011 11:00 AM

ccat Mar 19, 2011 08:10 AM

Thank you, Dave!

I looked over the code and that looks like exactly what we need. I'll try it soon.

One question: It looks like the code has the logger sending out the data with every scan, without any way of starting or stopping the transmissions. Would that interfere with normal connectivity via PC200W/LoggerNet, etc. or is the logger smart enough to pause that when it's connected to the software?

Thanks again.


IslandMan Mar 19, 2011 10:57 AM

The software posted doesn't use the main RS232 port, it uses one of the control ports as an RS232 port so it will not interfere with communications. You would just have to make up a small 9 pin connector with ground, tx and rx to adapt to the control ports.

Add this between BeginProg and Scan:
SerialOpen (Com2,9600,0,0,100)
**** NOTE ****
You have C1 and C2 occupied in the program, you have to use COM2 which is C3 and C4. You can change the 9600 Baud to whatever you need.

Log in or register to post/reply in the forum.