05-05-2009 10:27 AM
Well, can you somehow read what voltage the instruments is at?
Why don't you send a couple of 16 bit patterns, write down the voltage, and post the result.
05-05-2009 10:28 AM
05-05-2009 10:31 AM
altenbach --
i'm not sure what you mean, i dont have the atually battery here.
i'm trying to simulate the battery voltage & current.
05-05-2009 10:33 AM
aznw82 wrote:i'm trying to simulate the battery voltage & current.
Now I'm completely confused. ![]()
Do you have a manufacturer and model number for the battery?
05-05-2009 10:47 AM
With the information you got now, your assignment is not possible to solve. It does not matter if it is a school or work assignment. You should go to your boss or teacher and tell that person. That you can not solve your assignment unless someone give you more details regarding the Can Buss protocol you are trying to simulate.

05-05-2009 10:51 AM
so, i just can't input anything values and convert it binary?? because, my vi act like the actually battery which i can put down any value.
then take that value and convert it to binary value. why can't it be solve, i really don't get it??
05-05-2009 11:35 AM
As we said, you can easily convert an integer to binary. But what format does your device need it in? ASCII, IEE754, some proprietary data format?
How would you convert a floating-point value to binary on paper? What method would you use?
05-05-2009 11:46 AM
aznw82 wrote:why can't it be solve, i really don't get it??
... because there are millions of very different potential solution. We can only pick the correct one if we have the exact specifications. The term "binary" is very generic.
05-05-2009 11:54 AM
I told myself I would stay out of this thread....
modern computers use a binary representation to store and manipualte numbers. In a computer these values can be represented using different formats. Examples include "U8" for eight bit, unsigned.... "DBL" Double precision floating point. They are all binary.
THere are many other ways of representing numbers so that is why "binary" tells us little.
What we need to know is in what format is the "reciever" of your data expecting to recieve the data in?
Are you working with a driver that provides the hardware interface to the CAB bus? If so find the specification fo rthe driver.
If you are developing your own hardware, at what level of CAN are you working?
I really hope you have a driver you are working with because climbing the ladder from binary to bit-stuffing is going to be a very long trip.
Ben
05-05-2009 11:58 AM