CAN Frame to channel conversion using CVI

Hi,
I am using USB-8473 can bus modules in a project.  I would like to display the channel data by using the Frame to Channel conversion library.  Is there a version that can be used with CVI?  I am using CVI 9.1
Thanks
John

Hello John,
I do see what you mean, the VIs actually just call into a C dll. I dowloaded to the Library after reading your post and opened up the VIs. It looks like each is just a small wrapper around Call library funciton node. It is definately silly that the VIs are so well documented but not the functions of the dll itself. Based on browsing a few of these VIs, it would be pretty easy to write the wrapping code in C and call all the same functions of frchconvlib.dll. 
I will look into whether this library was written by a third party or NI, and if its NI property I would like to expose the dll itself to users like yourself. 
I do apologize that this is the only current solution. I will let you know what I find out.
This kind of feedback it important to receive, so thank you for voicing you concern.
Best,
Anna K.
National Instruments

Similar Messages

  • Advanced CAN Frame to Channel Conversion: Error with LV 8.5.1

    Hello!
    I´ve tried to read in a DBC-file with the "Advanced CAN Frame to Channel Conversion Example" on a LabVIEW 8.5.0 system and it works fine.
    On a LabVIEW 8.5.1 System I get the error:
    Scan From String (arg 6) in CAN FtoC Parse Channels and Mode.vi->CAN FtoC Parse CANdb Messages and Channels.vi->CAN Channel Data Import.vi
    Does anybody know a solution for this error?
    Thank you for your help,
    demo66
    regards,
    demo66

    Hi!
    It is a problem of localized decimal point.
    In a german Windows, LabVIEW will use Komma as decimal point.
    So the Scan From String.vi will convert string 0,21 in a double but not 0.21. From the file dbc you receive the values with period "." that's why it create the error 85.
    You have 2 possibilities: change the localized decimal point in LabVIEW (Tools -> Options) or you say to the Scan From String.vi to use "." as a decimal point.
    Go to CAN FtoC Parse Channels and Mode.vi and search the 2 Scan From String.vi
    Add at the beginning of the Format String %.; so that the format String will use the "." as decimal point (see Attachement).
    After that the example will work.
    Best regards
    Ken
    Attachments:
    Scan From String.jpg ‏51 KB

  • Deterministic CAN Frame to channel conversion

    Hi, I need to create a CAN logger which should record (in TDMS format) and show in real time (in a mixed signal graph) several channels in deterministic mode.
    Using an interface wich supports the Channel API (such as NI PXI-8464) it is all right and the software works properly.
    The problems appears when the aquisition is done through a NI USB 8473, doing the frame to channel conversion with the two virtual channels (CAN256 and  CAN257). The conversion is done in the way shown below:
    where in the CAN256 i transmit in "timestamped mode"
    While the time goes on, the logged signal is more and more delayed respect the real one until the buffer fills and an error is generated.
    What i need is a Frame to Channel conversion wich keeps deterministic, also with a small constant delay.
    Any solution?
    Thanks a lot
    Fabio

    Hello Fabio,
    Usign the virtual ports for frame to channel conversion is not very efficient.  I would suggest using the frame to channel conversion library.
    Let me know if you have any questions about it.  Have a great day.
    O. Proulx
    National Instruments
    www.ni.com/support

  • CAN Frame to Channel Conversion Library

    Hi,
    Is it possible to use this DLL with CVI? If so, is there any example code or a user document?
    Cheers,
    John
    John C
    Solved!
    Go to Solution.

    Hi JGC
    Unfortunately this Library is only meant to be used from LV and LVRT, an equivalent Library does not exist in CVI.
    With that said, you may be able to dig into the LabVIEW VI's of the Frame Channel Conversion Library and pull the function prototypes from the Call Library Function Node on the block diagram of each one. With this information, you could call the functions from the dll (usually located here: C:\Program Files\National Instruments\NI-CAN\CAN Frame Channel Conversion Library 1.0.2\Drivers) from within C.
    Kind Regards
    Chris
    Chris | Applications Engineer NIUK

  • Advanced CAN Frame to Channel Conversion Reference Example

    Hi!
    I wonder if any of you guys can help me converting this example into LV7.1.
    The example is under:
    http://zone.ni.com/devzone/cda/epd/p/id/5826
    Thanks in advance!!!
    Ogulcan
    Solved!
    Go to Solution.

    Ogulcan,
    The example that you are asking for is built with a different version of the NI-RIO and Real-Time drivers.  Downgrading this example would require a system with LabVIEW 8.5 or 8.6 with the most current RIO and Real-Time drivers, and a system with LabVIEW 8.0 and an older version of the RIO and Real-Time driver.  It may also require a third system set up up LabVIEW 7.1 and even older versions of the RIO and Real-Time drivers.  The changes in these drivers and the included VI's since LabVIEW 7.1 would also likely make this example not work with LabVIEW 7.1, which may be why it was posted for LabVIEW 8.5.
    Eric K
    Applications Engineering
    National Instruments

  • Can one Communication Channel be used in more than one sender agreement?

    Can one Communication Channel be used in more than one sender agreement?

    It depends on your scenario...let me tell you a case where you can use one communication channel in more than one sender agreement...
    If you have an RFC sender channel this can be used in any number of sender agreements....
    Thanks,
    Renjith

  • How can I register channels imported using DataFileLoad function in DIAdem 2012?

    Hallo,
    I would like to import data from Excel into the DIAdem 2012.
    I newly use DataFileLoad and ufi file to define import plugin.
    But when I want to copy a the imported channels to another group, I get err: The Channel argument of the AddChannel method must be IChannel.
    How can I register/convert/refersh channels, so I can work with them?
    I'm showing code sample I took from standard example collection, from: "Loading Excel Files with a DataPlugin", script file A_172132_ExcelDataPlugin.vbs
    Note: to get to worky my example you have to set proprely used paths
    If Not ItemInfoGet("sPathDocuments") Then
    Call GlobalDim("sPathDocuments")
    Call GlobalDim("sPathData")
    End If
    sPathDocuments = CurrentScriptPath
    sPathData = CurrentScriptPath & "..\Data\"
    call PrepareAndLoadDataset
    sub PrepareAndLoadDataset()
    Call Data.Root.Clear()
    If Not FileFilterExist("A_172132_Example") Then
    Call Navigator.RegisterDataPlugin(sPathDocuments&"A_172132_Example.uri",True)
    End If
    set MyGroup = DataFileLoad(sPathData & "A_172132.xlsx", "A_172132_Example","")
    set MyTemp = Data.Root.ChannelGroups.Add("temp")
    Call MyTemp.Channels.AddChannel(MyGroup.Item(1).ChannelGroups(1).Channels(1))
    end sub
    Thank you for advance.
    Radek
    Solved!
    Go to Solution.

    Hello Codr,
    Your script works fine on with my DIAdem 2012. I just defined "Dim MyGroup, MyTemp"
    The result is a new channel group with one channel. The channel is the first channel of the first group of the loaded dataset.
    In case you would like to register the Excel file (and not load it) you need toexpand the copied channel. This looks like this:
    sub PrepareAndLoadDataset()
    Call Data.Root.Clear()
    If Not FileFilterExist("A_172132_Example") Then
    Call Navigator.RegisterDataPlugin(sPathDocuments&"A_172132_Example.uri",True)
    End If
    dim MyGroup, MyTemp, oChn
    set MyGroup = DataFileLoad(sPathData & "A_172132.xlsx", "A_172132_Example","Register")
    set MyTemp = Data.Root.ChannelGroups.Add("temp")
    set oChn = MyTemp.Channels.AddChannel(MyGroup.Item(1).ChannelGroups(1).Channels(1))
    call ChnValExpand(oChn)
    end sub
    Greetings
    Walter

  • CAN Frame Channel Conversion Library

    Hello, I am trying to use the attached ncd file to read from a Series 2 board via the Conversion library but it's not working. I can load the ncd in Max and it read the channel fine.
    What would cause this?
    I am using the sample vi USBCANBasicInput.vi. It seems imposible to debug because it uses a dll for everything.
    I am using version 1.0.3.
    There are extended CAN messages. 
    Thanks in advance,
    Dustin
    Solved!
    Go to Solution.
    Attachments:
    USBCANBasicInput.vi ‏44 KB
    atc.zip ‏1 KB

    Dustin,
    It was a pleasure speaking with you on the phone today.
    It seems that the problem was in using extended arbitration ID's with the Frame Channel Conversion Library. Here are some examples that show how to use this library with extended arb ID's.
    http://decibel.ni.com/content/docs/DOC-6793
    http://decibel.ni.com/content/docs/DOC-6792
    http://decibel.ni.com/content/docs/DOC-6055
    Regards
    Peter Flores
    Applications Engineer

  • CAN Frame Signal Conversion With XNet

    When dealing with CAN, most new developer struggle with the Frame and Channel (or Signal) conversion.  Developers are trying to get away with using the cheapest CAN hardware, and as a result are opting to not use XNet hardware but instead use things like the USB 8473, or using non-NI hardware like the ValueCAN by Intrepid, or using Vector hardware, or CAN to serial adapaters.  The problem with all of these is you generally just read and write frames which is the raw form of CAN.  When using these cheap devices you can't ask the CAN bus what the signal Bus_Voltage is, instead you need to perform a frame read, find the frame associated with the signal, then pull out the bits for that signal, then scale the signal based on the signal selected.
    All of this is doable but a pain and can be very custom.  That's one reason NI came out with the Frame Channel Conversion Library.  This library converts from Frames to Channels using an industry standard CAN database file.  The problem with this library is it hasn't been updated in 5 years, and has known issues which likely will never be fixed.
    NI has since come out with XNet which supports reading and writing signals on XNet hardware.  The XNet drivers also support converting Frames to Signals without needing hardware at all.  This conversion has several limitations, and really only works for getting the latest value for a signal, not all values.  And in addition to that if the signal was never seen, the value will be the defaul value for that signal, not NaN.
    So I wrote a wrapper around the XNet conversion library to handle going from signals to frames, or from frames to signals.  Anyone looking to use a DBC file, on hardware that only supports frame API should use this conversion library, or at least use the XNet conversion sessions.
    CAN Frame Signal Conversion Using XNet 
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

    Hello Hooovahh,
    Nice work  . It’s very useful.
    I’m also converting CAN Raw data to Physical values in my project. Yes, your correct XNET APIs have some limitations. as you mentioned, there is one more limitation I found,
    If your Message Data length (Payload) is 4 Bytes (example) and other CAN Frames are having more than 4 Bytes then its throwing Error (Error Code -1074384737).
    While converting CAN Frames to signals, we will get different Payloads but, our selected signal message have 4 bytes then XNET will gives an error (at the time of Data Conversion).
    As per attached Snap, My Signal is related to IDxBB and I’m sending two different Frames then XNET will not convert.
    Hooovahh Wrote:
    NI has since come out with XNet which supports reading and writing signals on XNet hardware.  The XNet drivers also support converting Frames to Signals without needing hardware at all.  This conversion has several limitations, and really only works for getting the latest value for a signal, not all values.  And in addition to that if the signal was never seen, the value will be the default value for that signal, not NaN.
    When we will send Frame by Frame then we will get all values (not only recent values). XNET will take previous value (if data is not present for Next iteration)
    Please check this snippet for all values & NaN Display.
    Munna

  • Frame Channel Conversion Library

    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.

    This could be an issue of using extended 29 bit IDs with the conversion library. If you have extended Ids with your signal database, the NI-CAN driver allways expects to see the 30 th ID bit set additionally if you like to transmit an extended ID and you have to remove the 30 th bit if you provide the ID for the conversion VI. See the attached pictures for how to remove and add the 30th bit  for NI-CAN.
    This is only necessary if you use dbc files. The max export to ncd removes the 30th bit automatically.
    DirkW
    Attachments:
    30thbit_add.jpg ‏49 KB
    30thbit_removal.jpg ‏25 KB

  • Frame Channel Conversion Library: Write

    In LabView I use "Add selected channels from file" and use my .dbc
    In a CAN message I have more than one channel.
    I now want to write to the first channel in the message. This does not work.
    The "Convert Channel to Frame" always creates a data frame that fits the last channel in the message. Well, there is no way to wire "Channel" to the vi.
    Is this correct and is there a workaround?

    one single frame has 0-8 byte of data (Data byte). In Data byte field we logically allocate more channels.
    Using frame API is it possible to write one single channel? I don't want to write all data field only a single channel.
    Thanks!
    Paolo.

  • Frame Channel Conversion Library for LabwindowsCVI

    Could someone help me to identify Frame Channel Conversion Library for LabwindowsCVI. I found a library for labview and it is working fine with my USB8473. But i really need to get it working with Labwindows. Have anyone tried to access the frchconvlib.dll from labwindows? Thanks in advance.

    Unfortunately, the C API is not documented, nor is it stated as a supported interface.
    With that said, you may be able to dig into the VI's of the Frame Channel Conversion Library and pull the function prototypes from the Call Library Function Node on the block diagram of each one. With this information, you could call the functions from the dll (usually located here: C:\Program Files\National Instruments\NI-CAN\CAN Frame Channel Conversion Library 1.0.2\Drivers) from within C.
    Let me know your thoughts and if you have any success.
    Regards,
    Peter Flores
    Applications Engineer

  • How can I convert .pdf file to .doc using the free adobe reader app? when I try to convert the .pdf file it asks me to sign in. when I click on "sign in", I am taken to a service subscription page. So, no free conversions using free adobe reader app?

    how can I convert .pdf file to .doc using the free adobe reader app? when I try to convert the .pdf file it asks me to sign in. when I click on "sign in", I am taken to a service subscription page. So, no free conversions using free adobe reader app?

    As has been mentioned Adobe Reader cannot export PDF page content. Nor can it create PDF or manipulate PDF page content.
    What you can do is use one of Adobe's online subscription services. Two provide for PDF  to Word export.
    There's ExportPDF and PDF Pack.
    Be well...

  • Can I copy one frame of a movie using iMove and save the frame as a file that can be printed like a picture?

    Can I copy one frame of a movie using iMovie and save the frame as a file that can be printed like a picture?  If so, how do I do that?

    You could if you want a postcard sized print.
    Printers need a lot more "dots" per inch and even a 1920X1080 video doesn't have enough "dots" to make more than a postcard.
    Look at the "More Like This" links at the right side of this page for instructions.

  • [svn:bz-trunk] 9838: Bug: BLZ-416  - Can bypass checks for which channel and protocol a destination can be called over by using NetConnection instead of BlazeDS messaging .

    Revision: 9838
    Author:   [email protected]
    Date:     2009-08-31 11:27:50 -0700 (Mon, 31 Aug 2009)
    Log Message:
    Bug: BLZ-416  - Can bypass checks for which channel and protocol a destination can be called over by using NetConnection instead of BlazeDS messaging.
    QA: Yes
    Doc: Yes - note the new enforce-endpoint-validation setting.
    Details: Added the following config setting:
    Ticket Links:
        http://bugs.adobe.com/jira/browse/BLZ-416
    Modified Paths:
        blazeds/trunk/modules/common/src/flex/messaging/config/ConfigurationConstants.java
        blazeds/trunk/modules/core/src/flex/messaging/MessageBroker.java
        blazeds/trunk/modules/core/src/flex/messaging/config/MessagingConfiguration.java
        blazeds/trunk/modules/core/src/flex/messaging/config/ServerConfigurationParser.java
        blazeds/trunk/modules/core/src/flex/messaging/config/SystemSettings.java

Maybe you are looking for

  • OS 10.3 installation

    I have acquired a G 3 from the wife. She has wiped the HD and re installed Panther, but when start up I get a file with "?" Have made several attemps to re install, but at the end of installation Error message in installation, restart and try again.

  • Burning data to dvd???

    Hi All, All I want to do is to store my photographs on a DVD-R as back-up. I'm a photographer and would like to utilize the storage capacity of a DVD. I have a G5 with all the right drives and IDVD3. It seems that the only thing IDVD will let me do i

  • Is the "Display list of web app items submitted by a user" feature not available in the free trial?

    Is the "Display list of web app items submitted by a user" feature not available in the free trial? I can see it in the tutorials but its not available when I am logged in.

  • Bitmap index column goes for full table scan

    Hi all, Database : 10g R2 OS : Windows xp my select query is : SELECT tran_id, city_id, valid_records FROM transaction_details WHERE type_id=101; And the Explain Plan is : Plan SELECT STATEMENT ALL_ROWSCost: 29 Bytes: 8,876 Cardinality: 634 1 TABLE A

  • WRT54GL Security problem

    First of all, I have two of the same routers.  One totally works, and the other one partly works.  The one that works, will hookup with or without security.  The one I am having problems with, will work ONLY without security.  Without security, it ho