Setting storing file name from external source

  • Software
  • Setting storing file name from external source
fdasf fdasf

Posted on 27.03.2020 21:25

Hi,


I am wondering if there is a way to set the storing filename from an external source such as Ethernet, RS-232.

Thank you!




Attached files:
DEWESoft Support
Technical support
Posted on 30.03.2020 10:13

Hello,


unfortunately, setting the data file name in the way you described is not possible. You can use Data Header variables or Global variables to set the data file name, as described in the following solution.


But you can set the file name from other Channels with Sequencer. Where you save the current value of the wanted channel in the Sequence variable with the "Calculation" block and use it as a File name


Attached you will find the test sequence.


If you have any additional question let us know.


fdasf fdasf

Posted on 30.03.2020 19:02

Thank you for the response!


Our file names are not predetermined. They are generated dynamically depending on the test parameters. Therefore, the header/Global variable method won't work for us.


Could you attach the example file please? I think you forgot to attach the file.


I am not familiar with the Sequencer. In sequencer, can I parse a serial data channel message and use the parsed message as the file name? Thank you!



DEWESoft Support
Technical support
Posted on 30.03.2020 23:03

Hello,


we apologise about the missing attachment. We attached the test sequence.


As you are not familiar with the sequence I would suggest that you go through our PRO Tutorial on our web page, where you will gain basic knowledge about the sequencer.


You can find some good solutions with the sequencer on our knowledge base.


You can save the Value of the channel with the Calculation block, with the "IApp.Data.UsedChannels[<index>|<name>].Value()" function, where you enter the wanted channel. Please let me know if you need some additional help with the sequencer.


Regards,

Eva




Attached files:
fdasf fdasf

Posted on 31.03.2020 00:26

@DEWESoft Support


Thank you for the links and the test files. They are very helpful.

I can't try them on our Dewesoft because I am current working from home due to the coronavirus. Can you tell me if "IApp.Data.UsedChannels[<index>|<name>].Value()" will be able to extract text from a serial input such as CAN or RS232? Thanks!

DEWESoft Support
Technical support
Posted on 01.04.2020 09:42

Hallo,


it depends on the actual structure/properties of the channel. Are the channels pre-defined as string channels? Do you maybe have a data file with that kind of data so we can test it. It can be a test file with only on CAR or RS-232 channel.


Regards,


Eva

fdasf fdasf

Posted on 07.04.2020 19:04

@DEWESoft Support


I currently don't have access to my Dewesoft machine at work because of the COVID-19 situation. But I do know that our machines have RS-232 and CAN bus capability. I personally have never use these serial interfaces on them before. So I don't know whether these channels can be "pre-defined as string channels". What does "pre-defined" mean?


I want to send the desired filename to Sequencer through a serial interface in plain text format or whatever format the Sequencer can understand. Once the Sequencer receives the message, will I be able to extract the filename using "IApp.Data.UsedChannel[<index>|<name].Value()" function in a Calculation block?


Thank you!

Eva Kalšek
Customer Support Engineer
Posted on 08.04.2020 14:20

Hello,


It can be that the variable is a string but when you use the App.Data.UsedChannel[<index>|<name].Value()" is read as a float or integer. The best way to check this would be, if we could have some example data file.


You can save the string value in the sequencer internal variable, which must be defined as "Text".


Then you can save the value with the Calculation block, with the command.


And then use the variable (which you can also modify, e.g.add prefix, postfix, other additional text or float....) in the Start Storing block:


But to be sure how the value from your CAN/Serial COM values are read we would need to test this with your data file.


Regards


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