AGG Software Forums

Online Help Center => Data loggers and plug-ins => Topic started by: TheZbunj on September 27, 2023, 02:00:00 PM



Title: Data Logger Suite: Dynamical Log File name
Post by: TheZbunj on September 27, 2023, 02:00:00 PM
My Data Logger Suite is collecting data from 12 devices connected to single virtual PC serial port. Collected data is stored on PC Hard Drive in form of Log file. Used method for log file creation is Each data packet in different file. Each received data packet contains string name of device that has send packet. I would like to use that name from data packet when naming log file.

1. Is it possible to dynamically assign log file prefix based on ASCII parser values? Something like:
File name prefix = Device[ParserVariableName]
Resulting in log files names like DeviceOne.txt, DeviceTwo.txt etc.   

2. If not, can it be done with Script Plug In?


Title: Re: Data Logger Suite: Dynamical Log File name
Post by: Arthur Grasin on April 14, 2013, 12:26:25 PM
Yes, in your case you can use parser variables in the file name prefix. You need to define prefix as:

Device{DEVICEID}

where {DEVICEID} will be replaced with your parser variable value. Of course, the parser should extract the "DEVICEID" variable.


Title: Re: Data Logger Suite: Dynamical Log File name
Post by: TheZbunj on May 15, 2013, 09:53:59 PM
Thanks. Log files are now being created with names like DeviceOne00001.txt.
Can the sequence number (00001) be removed from file name?


Title: Re: Data Logger Suite: Dynamical Log File name
Post by: Arthur Grasin on November 15, 2023, 02:00:00 PM
You may select the "Do not create new log file" mode. In this case the number will be excluded.


Title: Re: Data Logger Suite: Dynamical Log File name
Post by: WAYNE on March 15, 2016, 01:13:25 PM
Hi,
This method works for naming the log file but not when exporting a file using local database. Is there any way of having a txt file produced where the name of the file is one of the variables?
Thanks!


Title: Re: Data Logger Suite: Dynamical Log File name
Post by: Arthur Grasin on March 15, 2016, 02:17:01 PM
Sorry, but the Local database plugin uses its own file name generation methods. It is not possible to change it.