questions about sequencer

Simone Bocchi

Posted on 09.11.2017 15:50

- Can I save my measurments inside a folder with the name from value of a variable (and subfolders too)?

I tried ChangeDataFolder without good results.

attacched you can find my test.

-Is there a description/guide about the advanced functions of the calculation and action block newer than the 2013 version that I found on the download page?

thank you in advance

Simone


Attached files:
DEWESoft Support
Technical support
Posted on 10.11.2017 09:31

Hi,

yes, you can do that without problems. You can either change the default storing folder with the setMainDataDir block, or you can just give DEWESoft an absolute path when you call start storing. Which ever you prefer. You can use variables just like in your example.

Unfortunately we don't have an updated advanced sequencer guide. The most recent is the PRO training, but I've checked the calculation block section and it doesn't go into any detail.

If you're especially interested in the calculation block, you check out the DCOM manual, since the functions are taken directly from that interface.

Simone Bocchi

Posted on 13.11.2017 11:00

Hi,

it's works but I need to create the folders with the name of the variables before to point to the folder.

Seems not possible to create a new folder with the variables name directly from the sequencer.

do you know some solutions to work around the problem?

thank you

Simone



DEWESoft Support
Technical support
Posted on 17.11.2017 09:04

Hi,

yes, that's correct. The new folders are not created automatically if you call start storing. The sequencer doesn't have the functionality to create folders, but it can open other files and pass them parameters. We can take advantage of that to call a batch file with a path parameter, so that Windows can create a new folder if it doesn't already exist.

I've attached an example of how to do this.

Simone Bocchi

Posted on 17.11.2017 12:17

Hi,

in your example you use a defined test folder name; I would like to use variables (insert by form block) for the name of my folders.

Attached you can find my 3 examples, but none working.

thank you

Simone



Attached files:
Simone Bocchi

Posted on 17.11.2017 14:21

Hi,

I tried again and I realized that the problem seems to be the lenght of the path.

I tried with this parameters value(open file block): 'filePath''Project'\'Model' (insert by form block before)

if I set 'filePath'= C:\Program Files (x86)\DEWESoft\Bin64\X\Data it doesn't create the folders.

but If I set 'filePath' = C:\ everything works.

thank you

Simone


DEWESoft Support
Technical support
Posted on 17.11.2017 15:01

Hi,

you can use several variable names to create a single variable. This can either be done in the calculation block or in the open file block (in the parameters field). I believe you didn't change the location to the batch file, because it still has my path when I opened it on my PC. Please try to change the File name field to match the location of your batch file and report back if you're still not able to get it to work.


Attached files:
Simone Bocchi

Posted on 17.11.2017 15:27

I reset your path before sending it back.


DEWESoft Support
Technical support
Posted on 17.11.2017 15:36

Ah, ok, I wasn't sure about that. Could you tell me which DEWESoft version you're using? Perhaps there was a bug in a former version with this functionality.

You can use the attached guide to update your X2 or X3.

Simone Bocchi

Posted on 17.11.2017 15:38

I'm using Dewesoft X3, Version: build 20 (64-bit)


DEWESoft Support
Technical support
Posted on 21.11.2017 16:10

Hi,

I've tested this again with the version that you're using and everything is still working correctly for me, with your examples as well.

If the attached example doesn't work for you, could we maybe check this via TeamViewer? We have a TeamViewer server that is a standalone application which you can use without installing anything. You can write to support@dewesoft.com to discuss further details.


Attached files:
Simone Bocchi

Posted on 22.11.2017 08:34

Good morning,

I believe that the issue is related to the translation of windows (from Italian) and the addresses with the spaces.

Attached you can find my case.

With the sequencer installed on the instrument the problem is solved( before was on pc with simulated mode)

thank you

Simone


Attached files:
DEWESoft Support
Technical support
Posted on 22.11.2017 14:28

Hi,

sorry, but I'm not sure I understand. Was the issue that you've entered in an incorrect path, or is there still a DEWESoft issue present?

Simone Bocchi

Posted on 22.11.2017 15:07
Hi,

the issue is still present if I launch the sequencer on my pc( the screenshoots in the message before are coming from my pc and they are to explane how windows translate the path), but if I launch the sequencer on the sirius Sbox( different position on HD and English windows installed) works fine.

thanks SImone

DEWESoft Support
Technical support
Posted on 23.11.2017 13:50

Hi,

the problem is that the batch script wasn't able to use file paths that had a space in the name. I've modified the script a bit and it should now be able to use that file path.

The only thing you now need to do is have quotation marks (" ") around the parameter in DEWESoft. So for example, you could pass in a path like this: "C:\Test Folder\'Variable1'\New Data".

Please let me know if you'll now be able to create folder on all systems.


Attached files:
Simone Bocchi

Posted on 05.12.2017 11:34

Hi,

thank you, now It's all Ok with the folders creation. Is it possible that script works even if without quotation marks (" ")?

I have another question for you about test path:

Do you think It's possible use variables to load a setup? because I tried this two solutions without succes:

- directly with variables

C:\..........\Dewesoft\setup\'project'_'test'.dxs

- with a calculation block before 'name'='project'+'test'

C:\..........\Dewesoft\setup\'name'.dxs

thank you

Simone

DEWESoft Support
Technical support
Posted on 28.02.2018 10:56

Hi,

sorry for totally missing this post. I just randomly found it today after searching for a different old topic. I'm not exactly sure about the quotation marks, but I think they need to be there in case you have a space in the name of your file directory.

Yes, it's possible to use variables to load a setup file. I've done it without the calculation block and it worked correctly. I see no reason why your load wouldn't work because the syntax looks good. Perhaps there was another error which you've probably already solved by now. If not, I've attached a sequence that I've used to load a setup. Perhaps there's an obvious difference between mine/your method which will be helpful for you.


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