Calibrating parameters using both free form CAN & Dm14

Discuss issues and ideas you have to configuring displays with PowerVision
ShrutiK
Posts: 34
Joined: Sun Feb 06, 2011 2:03 am

Calibrating parameters using both free form CAN & Dm14

Post by ShrutiK » Mon May 30, 2011 1:33 am

Is there any example which I can refer for calibrating parameters using both free form CAN message and DM14/15/16 message?

My requirement:

Calibration screen with lamp guage for a particular parameter that will allow user to select 1out of 3 values for that parameter and on Calibrate button press , the value selected by user will be sent to ECU through free form CAN message (using Dm14 in case of J1939).After that capture the acknolwedgement and read that parameter value using read free form message (appropriate J1939 message) and confirm whether the desired value has been set.If so display "Calibration success" message otherwise display "Calibration failure".

Thanks & regards,
Shruti
boyce
Enovation Controls Development
Enovation Controls Development
Posts: 322
Joined: Wed Sep 08, 2010 5:09 pm

Re: Calibrating parameters using both free form CAN & Dm14

Post by boyce » Wed Jun 01, 2011 1:30 pm

Here is a demo configuration that uses DM14, 15, 16 to do a calibration memory access. There are 3 buttons on the Main Page, each button sends a different value. It is using the DM Memory Mapping on device MASimulator (address 100) on CANPort1. It writes and then reads back from spacial address 0. (I test using a CANCapture script.) There is a State Machine named Calibrate under the Programming tab that controls the demo.

The DM Memory Mapping is very easy to use. I have done the same thing before using only Free Form Messages and it took a lot of State Machine programming to get it done. I got rid of all of it when the DM Memory Mapping was done, it is a lot easier!

This configuration was done with PowerVision Studio 2.2 version 2.2.10678.
Attachments
MA Demo.zip
MA Demo configuration 2.2.10678
(1.96 MiB) Downloaded 23 times
Boyce Schrack
Enovation Controls
ShrutiK
Posts: 34
Joined: Sun Feb 06, 2011 2:03 am

Re: Calibrating parameters using both free form CAN & Dm14

Post by ShrutiK » Mon Jun 06, 2011 8:40 am

Thanks!

Can you also share some information on calibrating through free form CAN messages?

Thanks again.
ShrutiK
Posts: 34
Joined: Sun Feb 06, 2011 2:03 am

Re: Calibrating parameters using both free form CAN & Dm14

Post by ShrutiK » Tue Jun 07, 2011 8:33 am

Hi,

I've created the state diagram to send free form messages to calibrate 2 parameters.(attached snapshot).I've mapped "CalibrateThroughFF" event on "send" button. When I press "send" button first time, it fires the "CalibrateThroughFF" event;however, on next press the event doesn't get fire.Why is it so? Earlier also I face the same problem but still I'm not able to get its cause.Can someone help me?

Thanks
boyce
Enovation Controls Development
Enovation Controls Development
Posts: 322
Joined: Wed Sep 08, 2010 5:09 pm

Re: Calibrating parameters using both free form CAN & Dm14

Post by boyce » Wed Jun 08, 2011 9:24 am

Here is the same demo as before but now using Free Form CAN. The FF CAN messages are configured on CANPort1. There is a similar state machine Calibrate but now it starts state machines to do the write and read memory access. There are also scripts that build and handle the FF messages. The MA Demo shows how much easier it is to do the same thing with DM Memory Mapping.
Attachments
FF Demo.zip
MA using FF CAN messages
(2 MiB) Downloaded 13 times
Boyce Schrack
Enovation Controls