From bf570b691ae509f51a66bb8f34f0319a1220d58b Mon Sep 17 00:00:00 2001 From: Srikanth Pagadarai Date: Wed, 27 Jan 2021 21:19:06 -0500 Subject: [PATCH] Freq hopping demo - path fix needed to run hdlworkflow.m on both Linux and Windows Signed-off-by: Srikanth Pagadarai --- .../+AnalogDevicesDemo/+adrv9361z7035/+common/plugin_rd.m | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/trx_examples/targeting/frequency-hopping/+AnalogDevicesDemo/+adrv9361z7035/+common/plugin_rd.m b/trx_examples/targeting/frequency-hopping/+AnalogDevicesDemo/+adrv9361z7035/+common/plugin_rd.m index 1ab9e947..fe92df1a 100644 --- a/trx_examples/targeting/frequency-hopping/+AnalogDevicesDemo/+adrv9361z7035/+common/plugin_rd.m +++ b/trx_examples/targeting/frequency-hopping/+AnalogDevicesDemo/+adrv9361z7035/+common/plugin_rd.m @@ -26,9 +26,13 @@ % Get the root directories rootDirExample = fileparts(strtok(mfilename('fullpath'), '+')); -tmp = strsplit(rootDirExample,'/'); +tmp = strsplit(rootDirExample,filesep); -rootDir = fullfile('/',tmp{1:end-3}); +if isunix + rootDir = fullfile(filesep,tmp{1:end-3}); +else + rootDir = fullfile(tmp{1:end-3}); +end rootDirBSP = fullfile('hdl','vendor','AnalogDevices','vivado'); % Design files are shared