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.

Batchfile to turn on high freq data collection durning an event


Kevin Sep 9, 2019 10:09 PM

I have a CR1000x logging wave data every 10min. (and also logging 1hz data in buffer, but it is not normally being polled)

When a tsunami is detected, I want to be able to run a batch file that will enable polling of the high freq data, and for last 2000 records onwards to be available for collection by LoggerNet.

This is possible within LoggerNet / RMTC?

Many Thanks


JDavis Sep 12, 2019 10:07 AM

Documentation for the scripting interface of Loggernet can be found in the installation directory. It is usually:

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

It is important that your script must first include the "connect" command.

The command to change the interval can be done is a couple different ways. One way is to use "set-device-setting" commands to change settings in Setup. Chapter 4 of the documentation lists the settings you can change. The other option is to create a task in TaskMaster for the data collection, and use "set-task-setting" to adjust it.

 Here is an example setting the collection interval on a datalogger called Station2 to 1 minute. The intervals are in milliseconds.

connect localhost;
set-device-setting Station2 5 { true 19900101 60000 10000 10 60000 };

 You can adjust other settings as well, such as the maximum number of records to collect each transmission.

Remember to set your interval back after your alarm event.

RTMC Pro can run Cora Script commands as a runtime event of alarms.

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