| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → xPC Target |
| Contents | Index |
| Learn more about xPC Target |
MATLAB command line
selectdrive(file_obj,'drive')
file_obj.selectdrive('drive')drive | Name of the drive to set. |
file_obj | Name of the xpctarget.fs object. |
Method of xpctarget.fs objects. selectdrive sets the current drive of the target PC to the specified string. Enter the drive string with an extra backslash (\). For example, D:\\ for the D:\ drive.
Note Use the cd method instead to get the same behavior. |
Set the current target PC drive to D:\.
selectdrive(fsys,'D:\\')
or
fsys.selectdrive('D:\\')
![]() | saveparamset | set (env collection object) | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |