If you have a problem or need to report a bug please email : support@dsprobotics.com
There are 3 sections to this support area:
DOWNLOADS: access to product manuals, support files and drivers
HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects
USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here
NEW REGISTRATIONS - please contact us if you wish to register on the forum
Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright
some good news and some bugs
3 posts
• Page 1 of 1
some good news and some bugs
It continues from here:
viewtopic.php?f=2&t=1741&start=160#p9038
While SM/FS can deal with relative filepaths directly, there is a problem with triggers. Or at least there was, when we worked on it with Trog, long time ago in SM age. Anyway, the solution to avoid "relative vs absolute" issues - was to provide fixed absolute path. Then triggers worked correctly. But how to do this if you prefer to move your file here and there?
Well - there is a primitive called "start folder". While when working with schematics - it shows "pass through" path you provide via input string, in exported files - it shows the path where exported file is physically located. Your input string is blocked. Below are few examples. Export it, move the file around the folders, run it, and see where the path leads.
*
And now the bad news. There is a primitive, that should show paths to your schematics. For some reason - sometimes it works, sometimes - not. When I started to put together things - it showed the path, but few FS restarts later - it no longer works on my machine. Moving the schematic somewhere else is not helping, modifying is not helping, modifying and reloading is not helping, so there seems to be some sort of bug.
If it would work, then you could use it to provide the absolute path to your schematic, and that path would follow your schematic. And it would not interfere with "start folder".
*
In the next post - I will wire for you some trigger work for loading files and acting when file isn't there.
viewtopic.php?f=2&t=1741&start=160#p9038
While SM/FS can deal with relative filepaths directly, there is a problem with triggers. Or at least there was, when we worked on it with Trog, long time ago in SM age. Anyway, the solution to avoid "relative vs absolute" issues - was to provide fixed absolute path. Then triggers worked correctly. But how to do this if you prefer to move your file here and there?
Well - there is a primitive called "start folder". While when working with schematics - it shows "pass through" path you provide via input string, in exported files - it shows the path where exported file is physically located. Your input string is blocked. Below are few examples. Export it, move the file around the folders, run it, and see where the path leads.
*
And now the bad news. There is a primitive, that should show paths to your schematics. For some reason - sometimes it works, sometimes - not. When I started to put together things - it showed the path, but few FS restarts later - it no longer works on my machine. Moving the schematic somewhere else is not helping, modifying is not helping, modifying and reloading is not helping, so there seems to be some sort of bug.
If it would work, then you could use it to provide the absolute path to your schematic, and that path would follow your schematic. And it would not interfere with "start folder".
*
In the next post - I will wire for you some trigger work for loading files and acting when file isn't there.
- Attachments
-
- where-is-the-path.png (7.04 KiB) Viewed 9191 times
-
- folder-prim-rules.fsm
- (1.5 KiB) Downloaded 904 times
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
Feel free to donate. Thank you for your contribution.
- tester
- Posts: 1786
- Joined: Wed Jan 18, 2012 10:52 pm
- Location: Poland, internet
Re: some good news and some bugs
So here it is.
In order to know, whether there is a file or not - you don't need to check the folders. You also don't need to use that trigger "on done". Either you get the output or not.
Before exporting - reload and save it at least once, without external file, or trigger emptying the string, so that you don't have the content inside the schematics buffer.
Tell me how it works on your systems.
p.s.: check it on exported files only.
In order to know, whether there is a file or not - you don't need to check the folders. You also don't need to use that trigger "on done". Either you get the output or not.
Before exporting - reload and save it at least once, without external file, or trigger emptying the string, so that you don't have the content inside the schematics buffer.
Tell me how it works on your systems.
p.s.: check it on exported files only.
- Attachments
-
- load-inexisting-file.zip
- (1.98 KiB) Downloaded 861 times
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
Feel free to donate. Thank you for your contribution.
- tester
- Posts: 1786
- Joined: Wed Jan 18, 2012 10:52 pm
- Location: Poland, internet
Re: some good news and some bugs
...and small update to first post.
1) in exported files, "start folder" primitive sends a trigger on load.
2) in exported files, it passes through other incoming triggers, but not strings. It keeps the file path.
1) in exported files, "start folder" primitive sends a trigger on load.
2) in exported files, it passes through other incoming triggers, but not strings. It keeps the file path.
- Attachments
-
- folder-prim-rules2.fsm
- (5.81 KiB) Downloaded 887 times
-
- folder-prim-rules1.fsm
- (2.03 KiB) Downloaded 888 times
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
Feel free to donate. Thank you for your contribution.
- tester
- Posts: 1786
- Joined: Wed Jan 18, 2012 10:52 pm
- Location: Poland, internet
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: Google [Bot] and 50 guests