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.

Flag on successful data collection


Kjetil_ITAS May 18, 2020 07:57 AM

Hi,

From the data logger program, is there a way to see if a successful data collection has been done? The application is that we want to reduce up-time on the modem, use callback to loggerNet and power off the modem when a successful data collection has been done.  


JDavis May 18, 2020 03:16 PM

There is not a flag to indicate if data collection has finished.

There is a flag you can watch to see if a communication port is busy. The instruction is ComPortIsActive(). You could start your callback, and periodically check for when the comport is no longer busy.


Kjetil_ITAS May 19, 2020 06:15 AM

Thanks JDavis,

Ok, is there a way for LoggerNET to send a message to the logger to indicate successful data collection? Using the WebAPI maybe?


JDavis May 19, 2020 03:13 PM

I suppose you could do something like that, though it would not be particularly easy.

In Task Master of Loggernet, you can set a task to trigger on the event of scheduled data collection. You could have that run a Cora Script command to set a boolean variable in the datalogger to True (-1).

The help file for Cora Script is located at:

C:\Program Files (x86)\Campbellsci\LoggerNet\cora_cmd.pdf

The set-variable command is the one to use. Be sure your script contains the "connect" command first (see section 1.2.1 in the help document).

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