Inquiry of file name as string format for Lua

5 visualizzazioni (ultimi 30 giorni)
Hi
I'm trying to make a Matlab code for operating radar system in Lua shell enviroment.
Below is a command to start recording radar data in Lua system.
ar1.CaptureCardConfig_StartRecord(String FileName, 1)
In Matlab, below is a command to send the order to
Lua_String = sprintf('ar1.CaptureCardConfig_StartRecord(String FileName, 1);
ErrStatus = RtttNetClientAPI.RtttNetClient.SendCommand(Lua_String);
Then, what is the correct format for the 'String Filename' which in italic bold above??
For example, the file name is "adc_data.bin"
and output_filepath is "C:/ti/mmwave_studio_02_01_01_00/mmWaveStudio/PostProc/"
Thank you in advance,
Joo-Hyung Lee

Risposta accettata

Mathieu NOE
Mathieu NOE il 30 Gen 2024
hello
you can do a horizontal concatenation of char or string using strcat
filename="adc_data.bin"; % first string
output_filepath="C:/ti/mmwave_studio_02_01_01_00/mmWaveStudio/PostProc/"; %second string
s = strcat(output_filepath,filename) % output is also a string
s = "C:/ti/mmwave_studio_02_01_01_00/mmWaveStudio/PostProc/adc_data.bin"

Più risposte (0)

Categorie

Scopri di più su Characters and Strings in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by