Problem with real-time execution with External mode of simulation in Simulink
May 4, 2015 at 8:11 pm #105853
May 4, 2015 at 8:11 pm #220672
Recently, we bought ‘EPOC Simulink EEG Importer’ software for our Lab. We can run the Simulink model with its default setting with Normal mode of simulation in Simulink. Right now, I have another Simulink file for another hardware that can connect with Simulink with External Mode of simulation and it can be run as a standalone without any error. By copying the EpocEEG block from the previous file to this Simulink, I am trying to run both models in one Simulink window for my further application and work. But, at the start of running this Simulink, there is an error:
S-function ‘cmex_EmotivEpocEEG’ in ‘newTest2/cmex_EmotivEpocEEG’ specifies option SS_OPTION_SFUNCTION_INLINED_FOR_RTW however a
‘cmex_EmotivEpocEEG.tlc’ file could not be located in the current working directory, the S-function directory ‘C:\Users\mabe\Desktop\Epoc
Simulink EEG Importer\Matlab’, or the directory ‘C:\Users\mabe\Desktop\Epoc Simulink EEG Importer\Matlab\tlc_c
It seems to me that the problem is because of the External mode of simulation and EpocEEG block can not be run just by *.mexw64 file in the route.
I am not sure what is the best solution for this problem. Any help will be appreciated.
Thanks a lot,
May 6, 2015 at 12:42 am #220677
July 11, 2015 at 3:21 am #229512
Reza M. ShahshahaniMember
Have you tried to buffer the signal in case of applying any kind of sliding window-based signal processing in the Simulink?
July 13, 2015 at 1:19 am #229519
I guess this means you can copy the data into a circular buffer large enough to contain your sliding window then extract the sample you are interested in and pass it to the analysis package. So for example if you want to pass 2 seconds of data into your processing engine, updated every 0.25 seconds (for example) you can make a circular buffer 512 samples long and trigger your analysis when 32 samples have been added to the buffer
The forum ‘Applications & Games’ is closed to new topics and replies.