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

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

  • 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

  • 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 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 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

  • 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

  • Can PCM multi-channel wav (not DD or DTS) be sent over SPDIF

    <Can PCM multi-channel wav (not DD or DTS) be sent over SPDIF? --- X-Fi Elite Pro SB055A and Audio Creation Mode ---
    If I understand correctly, SPDIF format can support uncompressed MULTICHANNEL wav format (within the limitations of its bandwidth) as well as the more usual DD or DTS encoded format on SPDIF.
    One of the neat things about Creative's Audio Creation Mode in the Recorder section is the ability to actually record to a multi-wav format (but the sample size seems to be fixed at 24 bit). This means it is quite simple to have several mixer inputs and record a mixed multi-channel wav file in one go. Great and this works as expected with a 5. ?24 bit/48 kHz recorded test file.
    My question is when one plays this recorded multi-channel wav file back, the mixer monitor (playback) shows the various 5. (say) channels with their separate content. Can this multi-channel *uncompressed* wav data? be sent over the SPDIF output as is to preserve the PCM quality? (so no DD or DTS encoding used)? I have tried this and I?ONLY seem to be able to get a STEREO (2 channel mixed down) version received at another SPDIF-in sound card (my Audigy 2ZS PCMCIA). I tried almost all selections at both ends involving SPDIF.

    @? In answer to my own question, and I think I had known this a while back, SPDIF standard only supports transmission of either 2 channel PCM (uncompressed) stereo with up to 24 bit resolution per channel and up to as much as 92 kHz sampling frequency, or compressed (DD or DTS) multichannel audio up to 5..
    Since each frame of SPDF is 64 bits in length (with a single sample of L and R channels plus extra bits of status in each frame), at 92 kHz max sampling rate, this translates to about 3 Mbits/sec bit rate. However most SPDF don't support the 92 kHz rate (which for 24 bit would be the stereo rate for DVD-Audio) for various copyright protection reasons.
    Here is short demonstration of SPDIF transmission of 24bit/96 kHz between two sound cards with and without "bit accurate for playback" enabled:
    ? http://www.jensign.com/spdif/

  • How can I enable/disable the transmission of a can frame? (filter etc...)

    Hello,
    I use the CAN
    Transmit-periodic.vi in LV 8.5, I want to enable or disable the
    transmission of a frame without stop the loop of my VI, does it exist
    in the frame api a vi which could stop, or mask the transmission of a
    frame?
    It's important I don't want to stop my VI that
    send my frame just filter a frame that I don't want send on my CAN
    bus...(I would command it with a boolean for example).
    Thank you.
    Bye.

    Hi there
    I'm not familiar with NI-CAN, but take a look at
    \vi.lib\Nican\nican.llb\ncAction.vi
    Can be found in the CAN\Frame API\Advanced palette.
    Start Transitions the CAN object from stopped (idle) state to started (running) state. If the CAN object is already started, this operation has no effect.
    Stop Stops the CAN Object. For example, if the CAN Object is configured to transmit data frames periodically, this action stops the periodic transmissions. This action will also clear all entries from the read queue.
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"

  • My daughter has an iPod touch and is emailing a much older boy via text free app she downloaded. How can I see the conversations? Please help and thank you

    Please help me...My 12year old daughter has been talking to a older teenager through the text free app. How can I see the conversations? Also, there is a photo vault that is locked. What is that? Please someone help me. I don't know what else to do. I paid and downloaded a program that is supposed to tell you everything that's on the ipod but that was a joke. Thanks for your help.

    As long as you can't get a hold of the device, you can't do anything more than talking to your daughter about it.
    Erasing the device could also be an option to keep her from using apps you don't want her to have on her device.
    Try talking first

  • I can't change channels by typing in a number or selecting it from the guide

    Good morning,
    Yesterday we noticed that we are no longer able to change the TV channels by typing in the numbers or selecting a channel from the guide. When we attempt to change a channel one of these ways, it acts like the channel is about to change but then it just stays on the channel we are already on. The only way we can change the channel is by hitting the up or down button. Did we accidentally change a setting or is their something wrong with the box. Help...Please!!!
    Thanks,
    Steph

    Reboot the box.
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.

  • Can I insert facebook conversion tracking code in adobe muse?

    Can I insert facebook conversion tracking code in adobe muse? If so, exactly where and how do I do so? Thanks!

    Hello,
    As per the instructions on link below you need to insert the code in <Head> section of the page.
    Conversion Tracking and Optimization | Facebook Help Center | Facebook
    Once you receive the code from Facebook you can insert it in Muse site.
    Open the page in Design mode and go to Page > Page Properties > Metadata > Html for <head>
    Paste the code in the space mentioned in the screenshot and you should be all set
    Regards
    Vivek

  • How can I perform the conversion of pdf files in Cyrillic script to Word files in Cyrillic script. The pdf file is too small for me to read right now. Julyan Watts

    How can I perform the conversion of .pdf files in Cyrillic script to Word files in Cyrillic script. The .pdf file is too small for me to read without a magnifying glass, and the document is more than one thousand pages.

    This answer was not helpful. First of all, I could not find "tech specs"
    anywhere on the Acrobat 11 homepage. And secondly I purchased this software
    for the specific purpose of converting .pdf files to Word. It was only
    after I had completed the purchase that I learnt that Acrobat does not
    permit the conversion of .pdf files in Cyrillic to Word files  in Cyrillic.
    I feel that Acrobat should have provided this crucial information before I
    allowed my credit card to be debited. That is why I  am now asking for my
    money back. But thanks for your attempt to solve my problem, even if it was
    not successful.
    Julyan Watts

Maybe you are looking for

  • Album artwork not showing on iPod touch 5th gen

    Hey guys, I really need help on this. The issue has been bugging me the last several weeks and it is driving me nuts. After I updated my iPod touch to 6.1.3 as well as itunes on my windows to ver.11.0.2.26 (or the one before), I could no longer add a

  • Panther to Leopard...what do I need to do?

    I have a 1.8GHz PowerPC iMac G5 which is currently running on Panther 10.3.9. I want to upgrade to Leopard, but attempting to do this using a disc version failed as my Mac doesn't have enough memory. The DIMM0/J4000 memory slot is empty at the moment

  • How to assign smartform to print program for payment advice

    Hi! There is already a print program and a smartform for payment advice. This was working before as I was told. But when I checked table TNAPR, there is no entry in the table with the program name and neither for the smartform. How can I use them tog

  • Phantom Podcasts they are on my IPhone but not visible through ITunes sync

    I have three podcast (NYT Front page, NPR Most Email Stories & This American Life that were synced on Monday morning 9/14) that I thought I deleted from my IPhone (ver. 3.1) and they no longer show up when I'm synced with ITunes 9 however still show

  • I can´t install iCloud in Outlook 2010

    I reinstalled Outlook, Office completely an ICloud but the Message ist the same: Ihre Konfiguration konnte aufgrund eines unbekannten Fehlers nicht gestartet werden. Fehler: 0x80040604: Up/POST:Conflicts Fehler: 0x80040604: Up/HdlPOSTr[p05-caldav.icl