Can not find dsPIC.tlc
Can not find dsPIC.tlc
Hallo I have installed the toolbox and if I place the master block on the simulink page and select configure simulink I can not fine the dspic.tlc file as the tutorial shows
Please help
Thanks
Please help
Thanks
Automotive Engineering
-
- Site Admin - Expert
- Posts: 616
- Joined: Wed Mar 07, 2007 11:23 pm
- Location: Bayonne- France
- Contact:
Hi Peter,
The installer m file should add the two subdirectory created:
- *\dspic
- *\blocks
In the matlab path.
-->Check that this has been done correctly:
in matlab : File ==> set path and check that the theses two directory are present. If they are not, add them...
It still doesn't work:
Try to refresh the matlab path cache if it is enable ; disable the path cache:
File ==> Preferences ==> in the General Tab...
It still doesn't work?
The toolbox must not be installed in the matlab directory or subdirectory. Make sure you did not install the toolbox inside the matlab directory or sudirectory !
You should now see dspic.tlc file in simulink ==> Simulation ==> Configuration Parameters ==> Real time workshop Tab, clicking Browse on the System Target File selection
If not, please, tell me.
The installer m file should add the two subdirectory created:
- *\dspic
- *\blocks
In the matlab path.
-->Check that this has been done correctly:
in matlab : File ==> set path and check that the theses two directory are present. If they are not, add them...
It still doesn't work:
Try to refresh the matlab path cache if it is enable ; disable the path cache:
File ==> Preferences ==> in the General Tab...
It still doesn't work?
The toolbox must not be installed in the matlab directory or subdirectory. Make sure you did not install the toolbox inside the matlab directory or sudirectory !
You should now see dspic.tlc file in simulink ==> Simulation ==> Configuration Parameters ==> Real time workshop Tab, clicking Browse on the System Target File selection
If not, please, tell me.
Hallo Lubin
Thank you for the reply ,
I have refreshed the matlab path and I can now see the dsPIC.tlc in the simulink properties however when I select it it brings the message error FCN callback main block
Please help me I really want to stert to us simulink
Thanks
Peter
ps the toolbox is installed C:\toolbox
Thank you for the reply ,
I have refreshed the matlab path and I can now see the dsPIC.tlc in the simulink properties however when I select it it brings the message error FCN callback main block
Please help me I really want to stert to us simulink
Thanks
Peter
ps the toolbox is installed C:\toolbox
Automotive Engineering
Hi Lubin
Here is a copy of the error message in the work space
It appears after I select the dsPIC.tlc filein the sim properties -> Real time workshop
Thanks
Warning: Error evaluating 'CopyFcn' callback of Master block (mask) 'Master'. Error using ==> dsPIC_ConfigRTWOption
The *System Target File must be defined to dsPIC Real Time workshop (Simulation ==> Configuration Parameters ==> Real Time workshop.
Here is a copy of the error message in the work space
It appears after I select the dsPIC.tlc filein the sim properties -> Real time workshop
Thanks
Warning: Error evaluating 'CopyFcn' callback of Master block (mask) 'Master'. Error using ==> dsPIC_ConfigRTWOption
The *System Target File must be defined to dsPIC Real Time workshop (Simulation ==> Configuration Parameters ==> Real Time workshop.
Automotive Engineering
-
- Site Admin - Expert
- Posts: 616
- Joined: Wed Mar 07, 2007 11:23 pm
- Location: Bayonne- France
- Contact:
Hi Peter,
Good news : Your simulink configuration is fine!
While configuring new simulink diagram for use with the dsPIC blockset, or while opening simulink model using the dsPIC blockset, you will some erratic warning message in the workspace. ==> dont' care about theses one !
That is due to unresolved internal toolbox's variables and appears only while configuring or opening simulink models.
To confirme your configuration is correct, clean the workspace screen :
>> clc
On your simulink model, click on "Update diagram" (Icon in simulink menu)
You will get error message in the workspace if configuration is not correct or if there are conflict with dsPIC peripheral for example.
Always click on "Update diagram" before compiling usng "Incremental build" icon. ( or Ctrl-B)
Good news : Your simulink configuration is fine!
While configuring new simulink diagram for use with the dsPIC blockset, or while opening simulink model using the dsPIC blockset, you will some erratic warning message in the workspace. ==> dont' care about theses one !
That is due to unresolved internal toolbox's variables and appears only while configuring or opening simulink models.
To confirme your configuration is correct, clean the workspace screen :
>> clc
On your simulink model, click on "Update diagram" (Icon in simulink menu)
You will get error message in the workspace if configuration is not correct or if there are conflict with dsPIC peripheral for example.
Always click on "Update diagram" before compiling usng "Incremental build" icon. ( or Ctrl-B)
Hallo Lubin
I am sorry I am so stupid I just cant get the RTW to run I have done the update function as you sugested in the last post here is an extract of the error messages
Thanks a lot
Peter
Warning: The dialog of 'untitled/Master' is being closed because a mask parameter has been changed.
> In dsPIC_Set_Dialog_PopUp_Param at 57
In dsPIC_MASTER_callback_InitMask at 222
NbrPortUsed is 0
NbrPortUsed is 0
NbrPortUsed is 0
NbrPortUsed is 0
tack Trace:
[0] simulink.dll:public: void __thiscall SLDialogData::broadcastApplyEvent(class UDInterface *,bool)(0x168c0250, 1, 0x1695d7d0, 3) + 10 bytes
[1] simulink.dll:public: virtual void __thiscall HandleComboSelectionEventMI::invokeMethod(class UDMethodSignature *,int *,void * *,int,void * *)(0x0efe00f0, 0x00cdafc0, 0x1695d7d0, 4) + 117 bytes
[2] udd.dll:public: virtual void __thiscall UDMethodInfo::invokeMethodE(class UDMethodSignature *,int *,void * *,int,void * *,class UDErrorStatus *)(0x0efe00f0, 0x00cdafc0, 0x1695d7d0, 4) + 65 bytes
[3] dastudio.dll:protected: bool __thiscall Dialog::executeObjectMethod(class UDInterface *,char const *,char const *,struct mxArray_tag const *,struct mxArray_tag const *,bool *)(0x168bc830, 0x158f4200 "?freeMaskDialogCallback@@YAXPAUs..", 0x01eba100, 0x1590ec40 "?setMaskDialogPromptToDefault@@Y..") + 1281 bytes
[4] dastudio.dll:protected: bool __thiscall Dialog::executeObjectandMatlabMethodsForDestination(class GLWidget *)(0x16236978, 0x1618f480, 0x16305bf8, 0x16236978) + 131 bytes
[5] dastudio.dll:public: virtual bool __thiscall Dialog::glEventNotify(class GLEvent const *)(0x16173660, 0xffffffff, 0x16173660, 0) + 1838 bytes
[6] glee.dll:public: virtual void __thiscall GLWidget::notifyListeners(class GLEvent const *)(0x16
I am sorry I am so stupid I just cant get the RTW to run I have done the update function as you sugested in the last post here is an extract of the error messages
Thanks a lot
Peter
Warning: The dialog of 'untitled/Master' is being closed because a mask parameter has been changed.
> In dsPIC_Set_Dialog_PopUp_Param at 57
In dsPIC_MASTER_callback_InitMask at 222
NbrPortUsed is 0
NbrPortUsed is 0
NbrPortUsed is 0
NbrPortUsed is 0
tack Trace:
[0] simulink.dll:public: void __thiscall SLDialogData::broadcastApplyEvent(class UDInterface *,bool)(0x168c0250, 1, 0x1695d7d0, 3) + 10 bytes
[1] simulink.dll:public: virtual void __thiscall HandleComboSelectionEventMI::invokeMethod(class UDMethodSignature *,int *,void * *,int,void * *)(0x0efe00f0, 0x00cdafc0, 0x1695d7d0, 4) + 117 bytes
[2] udd.dll:public: virtual void __thiscall UDMethodInfo::invokeMethodE(class UDMethodSignature *,int *,void * *,int,void * *,class UDErrorStatus *)(0x0efe00f0, 0x00cdafc0, 0x1695d7d0, 4) + 65 bytes
[3] dastudio.dll:protected: bool __thiscall Dialog::executeObjectMethod(class UDInterface *,char const *,char const *,struct mxArray_tag const *,struct mxArray_tag const *,bool *)(0x168bc830, 0x158f4200 "?freeMaskDialogCallback@@YAXPAUs..", 0x01eba100, 0x1590ec40 "?setMaskDialogPromptToDefault@@Y..") + 1281 bytes
[4] dastudio.dll:protected: bool __thiscall Dialog::executeObjectandMatlabMethodsForDestination(class GLWidget *)(0x16236978, 0x1618f480, 0x16305bf8, 0x16236978) + 131 bytes
[5] dastudio.dll:public: virtual bool __thiscall Dialog::glEventNotify(class GLEvent const *)(0x16173660, 0xffffffff, 0x16173660, 0) + 1838 bytes
[6] glee.dll:public: virtual void __thiscall GLWidget::notifyListeners(class GLEvent const *)(0x16
Automotive Engineering
-
- Site Admin - Expert
- Posts: 616
- Joined: Wed Mar 07, 2007 11:23 pm
- Location: Bayonne- France
- Contact:
Hi Peter,
I do not see the point here !
I just created a new schematic from scratch with the last version of the toolbox (V0.93) and It works without problems ( Tested with booth : Matlab 2007a and 2006b).
Notice that When you change, in the MASTER lock, the dsPIC/PIC you use as target, the dialog get close and you have to re-open it to continue to configure it. When the dsPIC/PIC is changed, parameters of the dialog must also change and it is not possible to do it while it is opened.
Did you manage to get the example compiling successfully ?
If so, why don't you "save as" one of the example and use it as the starting point for your model ?
otherwise,
which Matlab version are you using ?
I do not see the point here !
I just created a new schematic from scratch with the last version of the toolbox (V0.93) and It works without problems ( Tested with booth : Matlab 2007a and 2006b).
Notice that When you change, in the MASTER lock, the dsPIC/PIC you use as target, the dialog get close and you have to re-open it to continue to configure it. When the dsPIC/PIC is changed, parameters of the dialog must also change and it is not possible to do it while it is opened.
Did you manage to get the example compiling successfully ?
If so, why don't you "save as" one of the example and use it as the starting point for your model ?
otherwise,
which Matlab version are you using ?
Hallo Lubin
Yes I am sure the problem is not in the RTw it is with my matlab or with my setup or with the instulation of the RTW .
I am using MATLAB 7.01
I can not do the tutorial for the following reasons
(1) when I select the tlc file in the Configuration RTW workshop matlab reports and error with a pop up messgae Error SCN Callback function.
then I update new diagram as you mentioned then it save the tlc file in the config ,then I save this simulink page with the master block on it
(2) I then open the simulink saved file now when it opens it brings up all these errors as show above and matlam crashes
I have uninstalled matlab and installed it again and I have tried to install the toolbox again however I must mention that I was not able to invoke the dspIC installer from the command winow ,I have to open the mfile and invoke it by degug -> run and then it would install the dsPIC toolbox
I think if we could find the problem why it does not install from the
command window it would work.
I am sorry that I bother you so much with this however I would like to use this feature and as I said I am sure the problem is with me and not with your RTW if I can only find the problem
Yes I am sure the problem is not in the RTw it is with my matlab or with my setup or with the instulation of the RTW .
I am using MATLAB 7.01
I can not do the tutorial for the following reasons
(1) when I select the tlc file in the Configuration RTW workshop matlab reports and error with a pop up messgae Error SCN Callback function.
then I update new diagram as you mentioned then it save the tlc file in the config ,then I save this simulink page with the master block on it
(2) I then open the simulink saved file now when it opens it brings up all these errors as show above and matlam crashes
I have uninstalled matlab and installed it again and I have tried to install the toolbox again however I must mention that I was not able to invoke the dspIC installer from the command winow ,I have to open the mfile and invoke it by degug -> run and then it would install the dsPIC toolbox
I think if we could find the problem why it does not install from the
command window it would work.
I am sorry that I bother you so much with this however I would like to use this feature and as I said I am sure the problem is with me and not with your RTW if I can only find the problem
Automotive Engineering
-
- Site Admin - Expert
- Posts: 616
- Joined: Wed Mar 07, 2007 11:23 pm
- Location: Bayonne- France
- Contact:
Dear Peter,
I find the origine of the problem : It is your Matlab version. You mentionned :
As mentionned on the download page:
Future version of matlab and C30 will be supported. However, I will not make the toolbox compatible with former version of matlab R2006a.
Install a recent matlab version (R2006a or above) to get the blockset working.
I find the origine of the problem : It is your Matlab version. You mentionned :
7.01 or R14SP1 released in 2003 or 2004.I am using MATLAB 7.01
As mentionned on the download page:
Since the toolbox use the last matlab capabilities, It will not work on former version of matlab R2006a ( released on 1 march 2006)The toolbox has been tested with MPLAB C30 (v2.05 and v3) compiler and with Matlab R2006a, R2006b and R2007a.
Future version of matlab and C30 will be supported. However, I will not make the toolbox compatible with former version of matlab R2006a.
Install a recent matlab version (R2006a or above) to get the blockset working.
-
- Site Admin - Expert
- Posts: 616
- Joined: Wed Mar 07, 2007 11:23 pm
- Location: Bayonne- France
- Contact:
Hi Peter,
I'm glad that you made it working on your computer !
Download the latest version of the toolbox that has been improved.
Pricing and procedure to buy the toolbox are decribed on the website.
Because I could not test all peripheral with all microcontroller supported by the toolbox, test the peripheral with the microcontroller you want to use first (using the demonstration version).
Repport any bug that may appear.
Lubin
I'm glad that you made it working on your computer !
Download the latest version of the toolbox that has been improved.
Pricing and procedure to buy the toolbox are decribed on the website.
Because I could not test all peripheral with all microcontroller supported by the toolbox, test the peripheral with the microcontroller you want to use first (using the demonstration version).
Repport any bug that may appear.
Lubin
-
- Site Admin - Expert
- Posts: 616
- Joined: Wed Mar 07, 2007 11:23 pm
- Location: Bayonne- France
- Contact:
Who is online
Users browsing this forum: No registered users and 4 guests