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.

Capturing the output from a CoraScript command


simon Dec 21, 2012 03:16 AM

I am trying to use a batch file (executed on a Schedule by the LN TaskMaster) to read a value from the public table of one logger in the network and write that value to a variable in the public table of another logger.
Unfortunately, due to the nature of the communications hardware in the network (the loggers are effectively connected to the serial port of ethernet-serial converters), the loggers are unable to establish connections directly to other loggers. If this was possible, then a GetVariables would make this a breeze.

Loggernet can connect to any logger at any time and I want to make a batch file to execute a set of CoraScript commands. I can perform the get-values and the set-variables that are required, but I need to be able to capture the output from the get-values command and use that as an argument in the set-variables command.

Is there some way to capture the output, or to use one command as the argument of another?

I'm trying to avoid going to the SDK's if possible. Is there a way to do this with a simple batch file that interacts with the CoraScript command line interpreter directly?

Thanks


tmecham Dec 21, 2012 04:49 AM

Have you looked at the Value Forwarder component in RTMC? It can read a value from one datalogger and set it in another.

Sounds like it might work well for what you are trying to do and would probably be a lot easier than trying to do this with CoraScript.

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