Discussion:
Frame Channel Conversion Library
(too old to reply)
Matisson
2008-04-28 11:10:07 UTC
Permalink
Hello everyone, I'm currently using the Frame Channel Conversion Library (downloaded on the NI Site) and I noticed that there are troubles when using a.dbc containing channels with "scaling factor".When I convert the .dbc in the .ncd format, the scaling factors are correctly translated and then correctly interpreted by the DLL of the Convert Frame to Channel.vi, but when I use directly the .dbc in the same function (i.e. Add Selected Channels From File.vi), I always get 0 in the scaled data.More clearly, the library works fine with the .ncd format but doesn't work with the .dbc format, when there are channels using a scaling factor.Is it a known "bug" ? Is there a way to correct it,  in order to  use  the .dbc with this helpful library ?Thanks in advance.
DirkW
2008-04-28 13:40:11 UTC
Permalink
Hi,
No thats new to me. I will check this immediately and let you know what i can find.
DirkW
DirkW
2008-04-28 14:10:09 UTC
Permalink
Hi,
I downloaded the current version today and could not reproduce your experience. Could you attache your dbc and ncd file or atleast a part of it, so i could see whats wrong?
Thanks
DirkW
Matisson
2008-04-29 07:40:08 UTC
Permalink
Hello Dirk, Thanks for your answer, you'll find attached the .dbc and .ncd files that I used.You can take the "Vbat" Channel in the "ANALOG" message. That's the one I used when I got the problem.


Bus_A22.zip:
http://forums.ni.com/attachments/ni/30/3396/1/Bus_A22.zip
DirkW
2008-04-29 14:10:10 UTC
Permalink
Hi,
I tried both files and they allways have the same good result. The only difference between your ncd and dbc file is that the dbc file has more messages with more then four channels and since the conversion library scaled output array scales to the max channel message your array has zeros after your scaled elements. That's something we cannot change.
But the scaling works fine. See the attached example screenshot. It has for values for the input array and the same values are in the output array plus a couple of zeros.
If you still think this is a library problem please attacher your code, thus i could have a look to it.
DirkW


Basic_VI_test_dbc.jpg:
Loading Image...
Loading...