Raptor:Data Logging File Rename

From NewEagleWiki
Jump to navigation Jump to search

Return to the main Raptor page

Return to File IO page

Raptor™ Data Logging File Rename

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.