AGG Software Forums
November 23, 2024, 06:10:55 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome on our forum!
 
   Home   Help Search Login Register  

Pages: [1]
  Print  
Author Topic: Data Logger Suite: Dynamical Log File name  (Read 22811 times)
TheZbunj
Jr. Member
**

Karma: +0/-0
Posts: 5


View Profile
« 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?
Logged
Arthur Grasin
Tech. Support
Administrator
Hero Member
*****

Karma: +0/-0
Posts: 806



View Profile WWW
« Reply #1 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.
Logged
TheZbunj
Jr. Member
**

Karma: +0/-0
Posts: 5


View Profile
« Reply #2 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?
Logged
Arthur Grasin
Tech. Support
Administrator
Hero Member
*****

Karma: +0/-0
Posts: 806



View Profile WWW
« Reply #3 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.
Logged
WAYNE
Newbie
*

Karma: +0/-0
Posts: 1


View Profile
« Reply #4 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!
Logged
Arthur Grasin
Tech. Support
Administrator
Hero Member
*****

Karma: +0/-0
Posts: 806



View Profile WWW
« Reply #5 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.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines