File name input while storing data

  • Software
  • File name input while storing data
Joachim Wanke

Posted on 19.04.2023 10:56

Hello,


My basic idea is that people unfamiliar with Dewesoft can use my simple program to conduct voltage measurements. They should not have to deal with too many options that they possibly don’t understand. It should be possible to start/stop storing at any time and to carry out any number of measurement storings in a row.


Therefore, I use a sequence that opens my setup and leads the user to the measurement display, where it remains for infinity. In the linked setup’s measurement display, the buttons for starting, stopping, pausing and storing the measurement are available to the user (control element widgets).


I already found a post where the user is asked for a file name prefix either before or after storing. The file name could be CustomText_Date_Time.dxd

Date and Time are set automatically (multifile).


My questions are:

1)     Is it possible for Dewesoft to make a file name like Date_Time_CustomText.dxd ?

2)     Is it possible that the user could type his desired file name WHILE the program is recording? For example, there is indeed an option to show the current file name in the measurement screen (text-box widget). Could it be possible that the user could type in a new name that applies to the file in the moment of hitting the “stop measurement” button?


Thanks in advance,

Joachim

Primoz Lapi
Customer Support Engineer
Posted on 25.04.2023 10:14

Hi,


there is no direct way of doing this, but you could use multiple variables to get the time as prefix of data file name.


To make this setup we have used TimeDecode plugin, that outputs time in multiple channels:


To get the values when the file starts, we use basic statistics (single value, minimum).


Those channels are then written to data header with control channel writer.


To change the file name while storing, we have also used a variable for that 'VARIABLE1' which is data header. This value can be also changed with user input while storing and is used when file is finished.


You can find the setup file attached.

Before loading the setup file, you need to load the project file from the setup file and make sure the TimeDecode plugin is available.



Attached files:
Michael Beck

Posted on 22.06.2023 11:38

Hello,


were can i find and activate the TimeDecode plugin in DewesoftX 2023.3? It is not listed in installed plugins list.


Thanks in advance

Michael

Matic Pevec
Customer Support Engineer
Posted on 22.06.2023 16:59

Dear Michael,


You can download it from the link: https://drive.google.com/drive/folders/1HPPU_tRdRREW37nYsLUSHmQxXjjHid79?usp=drive_link

And then add them to the Addons folder according to this article: https://support.dewesoft.com/a/solutions/articles/14000086890?lang=en

Gary Floyd

Posted on 24.06.2023 16:02

is there any reason changing the file name while storing would not work with sequence and also a data header with the “ask for header at end” but it never changes the actual file name. It will keep those settings and change the file name on next recording though.

Matic Pevec
Customer Support Engineer
Posted on 27.06.2023 12:41

Dear Gary,


Changing the filename at the end of storing is possible. Please follow the steps on the video attached.


Be aware

  • to enable "Reset value on start" and "Ask for header at end"
  • And add the variable to the filename according to this article Filename from dynamic input


When you stop storing please be sure to press to "Play" i.e. Start in the Sequencer. This will reset the input value. If you press Storing directly the value will be still the same as before so Dewesoft will rewrite the previous stored DXD.

Login to reply to this topic. If you don't have account yet, you can signup for free account .