Home Technical Discussion
CAN Technical Discussion
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Setting start value of new variable (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Setting start value of new variable
#139
biloge (User)
Fresh Boarder
Posts: 1
User Offline Click here to see the profile of this user
Setting start value of new variable 3 Months, 1 Week ago  
Hi,
sorry for my little english.
I have a question.
I'm using CANcapture to emulate a truck can bus.
I'm using default example, and I would like to add a variable :
FUEL LEVEL.
I don't understand how I can do it, and how i can set start value for it?
After this, how i can emulate a behavior for it?
I would like to decrease it linear.
Thanks for your help.
Bye
 
Logged Logged  
  The administrator has disabled public write access.
#141
jkaufmann (Admin)
Admin
Posts: 77
User Offline Click here to see the profile of this user
Re:Setting start value of new variable 3 Months ago  
It sounds like the best way to do this would be to create a custom CANCapture script.

The scripts do not have built in support for timers, so what I would suggest is to use a transmitter block to send a recurring "dummy" packet that goes only to the script block. Then when the script block receives this "dummy" packet at whichever interval you set, it can then change the packet to the same PGN as the FUEL LEVEL. It will then have to insert the FUEL LEVEL value into the data where you can apply whatever function (i.e. decreasing linearly or sine wave, etc).

Regards,
Jonathan
 
Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop