I am trying to use the CAN Transmit block from Vehicle Network Toolbox 1.3 (R2010b) in a library. When I do this, I get an error:
Warning: Error evaluating 'LoadFcn' callback of CAN Transmit block (mask) 'VNT_Library_Test/Transmit
Test/CAN Transmit'. Attempt to modify a locked (read-only) library.
> In vntcansfcnstart>localFindCurrentBlock at 108
In vntcansfcnstart at 35
I also see the following warning in the MATLAB prompt: ERROR: Error in 'Test_VNT_Blocks_with_lib/Transmit Test/CAN Transmit' while executing C MEX S-function 'svntcantransmit', (mdlStart), at time 0.0.
Variations of this error occur for the following VNT blocks:
'canlib/CAN Configuration';
'canlib/CAN Log';
'canlib/CAN Receive';
'canlib/CAN Replay';
'canlib/CAN Transmit';
The error messages look like the following:
ERROR: Warning: Error evaluating 'LoadFcn' callback of CAN Transmit block (mask) 'canlib_issues/CAN Transmit'. Warning: Attempt to modify 'canlib_issues' which is a locked (read-only) library Warning: Error evaluating 'LoadFcn' callback of CAN Replay block (mask) 'canlib_issues/CAN Replay'. Warning: Attempt to modify 'canlib_issues' which is a locked (read-only) library Warning: Error evaluating 'LoadFcn' callback of CAN Receive block (mask) 'canlib_issues/CAN Receive'. Warning: Attempt to modify 'canlib_issues' which is a locked (read-only) library Warning: Error evaluating 'LoadFcn' callback of CAN Log block (mask) 'canlib_issues/CAN Log'. Warning: Attempt to modify 'canlib_issues' which is a locked (read-only) library Warning: Error evaluating 'LoadFcn' callback of CAN Configuration block (mask) 'canlib_issues/CAN Configuration'. Warning: Attempt to modify 'canlib_issues' which is a locked (read-only) library
Best Answer