Raptor:Data Logging File Rename: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
== Description == | == Description == | ||
<p>This block | <p>This block allows for a file to be renamed by taking in the source path, and the desired path. It returns whether or not it was successful in renaming the file.</p> | ||
<p>The "Path" output of the Raptor USB Status block will provide the required volume identifier (drive letter) assigned to the USB device by the operating system. This identifier must precede the path to the file to be renamed, as well as the destination file path. This is typically done using a raptor printf block to assemble the absolute path to the file.</p> | |||
<p>Note: Simulink String blocks are not compatible with Raptor blocks. Please use Raptor String blocks.</p> | |||
== Inputs == | == Inputs == | ||
Line 16: | Line 20: | ||
|- | |- | ||
! Source Path | ! Source Path | ||
| | | r_string | ||
| Specifies the path of the file to rename. | | Specifies the path of the file to rename. | ||
|- | |- | ||
! Destination Path | ! Destination Path | ||
| | | r_string | ||
| Specifies the new path and name of the file. | | Specifies the new path and name of the file. | ||
|} | |} |
Latest revision as of 13:10, 13 September 2023
Return to the main Raptor page
Description
This block allows for a file to be renamed by taking in the source path, and the desired path. It returns whether or not it was successful in renaming the file.
The "Path" output of the Raptor USB Status block will provide the required volume identifier (drive letter) assigned to the USB device by the operating system. This identifier must precede the path to the file to be renamed, as well as the destination file path. This is typically done using a raptor printf block to assemble the absolute path to the file.
Note: Simulink String blocks are not compatible with Raptor blocks. Please use Raptor String blocks.
Inputs
Input | Type | Description |
---|---|---|
Source Path | r_string | Specifies the path of the file to rename. |
Destination Path | r_string | Specifies the new path and name of the file. |
Outputs
Output | Type | Description |
---|---|---|
Success | boolean | Output indicates if the file was successfully renamed. |
Parameters
Parameter | Type | Description |
---|---|---|
Resource | Specify the resource which contains the file to rename. |