05-04-2009 05:03 PM
05-05-2009 04:18 AM - edited 05-05-2009 04:19 AM
I took a quick look on the NI can buss VIs. It looks like data is transferred as U8 arrays. I made a quick example on how to convert between some labview types. Then using the cast function you may cast almost cast everything to anything.
I have also noticed that most of the replays was not so helpful as you hoped. The reasons for this is the question you asked. It was not very detailed or specific. Just remember it to the next time you asks a question:smileywink:
Here is some useful tips for the Labview beginner (we have all been there some time)
1)Then starting a new Labview session enable context help (Ctrl+h). Do not be afraid to use the detailed help option
2)Then stuck, go to help in the toolbar then select find examples

05-05-2009 08:59 AM
tried to use your vi; dont think its working correctly. i had inputed number -1.5 but, didn't see the binary output.
i want to see if i'm doing it correctly. if i input -1.5, the binary output will be 10111111. is that right??
05-05-2009 09:17 AM

05-05-2009 10:00 AM
05-05-2009 10:02 AM
You are assuming that's what the instrument requires.
To OP: Instead of guessing around with what you want and what you need, please provide a link to the documentation for the specific instrument/component that you're talking to, or upload the PDF for it.
05-05-2009 10:08 AM
05-05-2009 10:20 AM
aznw82 wrote:
this is what i got, view attached
This does not explain how a floating point number is scaled into 16 bits.
Do you have any other documentation (e.g. Figure 12, page 24[3])?
(This page also does not look very professional. A rate with units ms is probably incorrect. ;))
Do you have a working instruments where you can look at readings and the corresponding message? If so, please post some messages.
05-05-2009 10:24 AM
i dont have many information for this design. the rest is just like this, but in like current & software version input.
so, not much details. i dont even have figure 12, page 24
05-05-2009 10:25 AM
That's just one page. Where's the rest of it? As it is, there's no way to tell how the 16 bits are supposed to relate to a voltage or temperature. Since it's only 16 bits it's probably a floating point number that's scaled by a factor of 10^n, though what the n is in this case is anybody's guess.
Side-note. I find it amusing how the table shows MSB for both the first column and last column. Yeah, that's real clear.