Help accessing a function block parameter in Simulink
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I need to access a function block parameter within a Simulink model hierarchy that contains a forward slash in the name [e.g. function block parameter: (xxxx/yyyy)]. How can I use such a directory name in the location path without Matlab trying to access xxxx then yyyy as two different function block parameters?
2 Kommentare
Guillaume
am 25 Apr. 2016
Bearbeitet: Guillaume
am 25 Apr. 2016
Which OS are you on?
'/' is not a valid character for directories or filenames on Windows and Linux.
Is the character maybe some other unicode character that renders (nearly) the same?
Note that '/' is a forward slash, not a backslash. The backslash ('\') is allowed on Linux but not windows.
Antworten (1)
Guillaume
am 25 Apr. 2016
I know nothing about simulink, but as I've said you can't have a forward slash in any part of a directory name or file name (or even URI for that matter).
So, you cannot use any function that works on directory or file names (or even URL) in combination with your block name. The best thing if possible would be to rename that block so that it does not have a slash.
0 Kommentare
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!