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.

Nonintrusive High speed data from CR1000/CR6


Peter R. Nov 2, 2016 09:12 PM

We currently have a setup with a couple of CR6s to log data from various devices being trawled/towed by a boat. These devices are not buoyant and their depth is governed by the velocity of the boat and they should not hit the ocean floor. We have a display onboard that shows a chart of the depth to bottom for the operator of the boat but I'd also like to create an audible alarm for the crew at the stern so that if the devices get to close to the bottom they can reel them in.

I have several designs that will work for this purpose but I need the data. So here's my question - 

Can I stream data from a CR6 without having a blocking connection to it? The boat operators chart is simply a chart from a "Connect" screen. I was thinking about just outputing to serial but i'd rather do this over the network via some sort of TCP connection. It's imperative that I have a highspeed low latency connection too. I was wondering if there was anything inbuilt into the loggers that may allow me to do this. I think I can grab JSON data but that's probably not going to work fast enough for our purpose.

Thanks in advance.


JDavis Nov 2, 2016 09:26 PM

There is not default way to just have it spit out the data. It is very doable with a little bit of programming. You just need to build up the data in a string and use SerialOut. For an IP connection, the only difference is you need to add TCPOpen to get a socket to use in place of the comport.

Public PTemp, batt_volt
Dim OutData As String * 32

'Define Data Tables.
DataTable (Test,1,-1) 'Set table size to # of records, or -1 to autoallocate.
DataInterval (0,15,Sec,10)
Minimum (1,batt_volt,FP2,False,False)
Sample (1,PTemp,FP2)
EndTable

'Main Program
BeginProg
Scan (1,Sec,0,0)
PanelTemp (PTemp,250)
Battery (batt_volt)
'Enter other measurement instructions

OutData = CHR(2) & batt_volt & "," & PTemp & CHR(13)
SerialOut (Com4,OutData,"",0,0)
'Call Output Tables
CallTable Test
NextScan
EndProg

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