XNET Signal Conversion

Hello all,
Please help me on my VI.
I want to read the more data from log file (i.e. >2GB) with read from notepad file( line by line) or spread sheet. This output I’m giving to CAN frame (with NI XNET).
In NI XNET Convert.VI I’m getting last frame values (Signal data), so how can we get the all frame values with  time interval( for selected signals).
My log file contains two types CAN networks, I want to read both .DBC files with NI XNET convert.VI and I need extract the data for selected signals .
Please check my VI and give me your valuable suggestions.
Thanks & Regards,
Guru
Munna
Attachments:
sample for CAN signal.zip ‏28 KB

Hello all,
Please help me on my VI.
I want to read the more data from log file (i.e. >2GB) with read from notepad file( line by line) or spread sheet. This output I’m giving to CAN frame (with NI XNET).
In NI XNET Convert.VI I’m getting last frame values (Signal data), so how can we get the all frame values with  time interval( for selected signals).
My log file contains two types CAN networks, I want to read both .DBC files with NI XNET convert.VI and I need extract the data for selected signals .
Please check my VI and give me your valuable suggestions.
Thanks & Regards,
Guru
Munna
Attachments:
sample for CAN signal.zip ‏28 KB

Similar Messages

  • 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

  • Can we design analog to digital signal conversion block diagram (ADC) in labview

    hi every one,i've doubt i.e can we convert function generator output (i.e analog signals) to digital signal in labview......can anyone help me how to create ADC circuit that means ADC Block Diagram in LABVIEW.....please give me solutions for my problem

    Hi guru,
    from signal generation VIs you get arrays containing float values (aka DBL). Those floats are just digital values made of 0s and 1s…
    Any value in your computer is digital!
    To provide a solution you need to rephrase your question! What exactly do you expect as result of your operation?
    Edit: kkkkkkk ur ckt ???
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Differential Signal to Single Ended Signal Conversion

    Hi,
    Im facing a problem here. I need an ADC that reads 0-20mA. The signal comes from a signal conditioner that creates a differential signal. However, a NI device with single ended inputs is much cheaper than differential inputs.
    The signal conditioner already exists and I cant change that.
    Im looking for something that can convert the differential signal to a single-ended signal.
    I tried finding an IC that does that, but couldnt find one. Do they exist?
    Maybe its easier for voltage than for current.
    How is this usually done?
    Best regards,
    Arvel

    Use a current sensing resistor and then use a current shunt amplifier.  The amplifier will amplify the voltage drop across the reistor.  From there, you can just read the output voltage with a DAQ.  Create a DAQmx scale to do the math to convert that voltage into a current reading.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Arbitrary signal conversion

    Hi!!!!
    I am ABHRO from Banglore,India.I have made an arbitary signal from the data points I am having and now I need to convert that signal to another form of which I know the relation(I mean the equation).
    I wanted to know if there is any procedure to convert the input signal to another form and further use it.

    Couldn't you just
    input array -> equation -> output array?
    Kudos and Accepted as Solution are welcome!

  • Error -1074384751 in XNET Create Session (Signal Output Single-point)

    Hello all,
    I have a selected number of signals from a database, and I am trying to create XNET Signal Output session from these signals of database.
    However, I get this error when I run this on my RT pc:
    Error -1074384751 occurred at XNET Create Session (Signal Output Single-point).vi:4
    Possible reason(s):
    NI-XNET:  (Hex 0xBFF63091) For Signal Output sessions, the multiplexer signals used in the session must be specified explicitly in the signal list.
    Can anyone please explain why this error can be coming?
    Thanks
    FraggerFox
    -FraggerFox!
    Certified LabVIEW Architect, Certified TestStand Developer
    "What you think today is what you live tomorrow"

    It seems the Diag frames must be sent from a Frame Output Queued session. Therefore i replaced the function "XNET Create Session (Frame Output Single-Point)" with "XNET Create Session (Frame Output Queued)" and it seems to work...

  • Using Multiplexe​d CAN signals with XNET

    Hello all,
    In one of my applications, I am deploying a CAN database file(.dbc) to RT system, and extracting signals through the cluster of .dbc file. Now once I have the list of all signals inside the database file, there would be some signals which would be multiplexed (If imported in MAX, you can see "Mode" for such signals). Now when I try to create a XNET Signal Output Single Point session out of selected signals, I get the following error:
    Error -1074384751 occurred at an unidentified location
    Possible reason(s):
    NI-XNET:  (Hex 0xBFF63091) For Signal Output sessions, the multiplexer signals used in the session must be specified explicitly in the signal list.
    Can anyone help me on how I can overcome this error? I am able to successfully create a session out of a non-multiplexed signal and write it to can bus, but the above problem I am facing is particularly for multiplexed signals.
    Regards,
    FraggerFox!
    -FraggerFox!
    Certified LabVIEW Architect, Certified TestStand Developer
    "What you think today is what you live tomorrow"

    Hello all,
    Thank you so much for support as always.
    Yesterday I solved this issue..  Its explained in XNET User Manual..
    Sorry for late reply.
    Munna

  • Xnet database from txt file

    I have a CAN database in a .txt format.  I used access and excel to map it to a .xml file.  When I try to add it to the NI-XNET Database Editor in the Manage NI-XNET databases and add alias  it give me the error: x BFF63081.  How can I take a .txt file database and convert it to a NI-XNET database?

    I think the common formats that XNET support are CANdb and FIBEX files (amongst others...e.g. for Flexray). I think FIBEX is the name. A CANdb file is essentially just a text file so maybe you can parse out the messages fairly easily that way. FIBEX files are the file format that LabVIEW creates when you edit/create an XNET database from their user interface.
    If you don't want to use either of those formats, then you need to parse the text file in LabVIEW and use it to manually create the XNET signals/database. You can create a :memory: database, populate it with a cluster and then populate that with signals using data from your text file.
    In the LabVIEW examples under Hardware Input and Output >> CAN >> NI-XNET >> Databases are some examples of manipulating an XNET database so that should point you in the right direction of which VIs you need to use.
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets

  • How to get CAN message periodicity programmatically?

    When I have messages with different periodicity in CAN data base file(.dbc), how do I programmatically know what is the periodicity of a given message? In the X-Net data base editor I can see the periodicity, but is there any way to get it in labview code?
    Also, some of the messages are to-be-transmitted and some are to-be-received. How can I separate these channels/messages  programmatically?
    Solved!
    Go to Solution.

    First the Automotive subforum maybe of more help if you don't find the answers you need here.
    Next I'd like to say I despise that conversion library and wish NI would take it off of this site.  It hasn't been updated in 5 years and it won't be updated again.  XNet has the same frame signal conversion functionality, and you don't need a XNet hardware to use it.  It also has bugs that I've reported to NI and their suggestion was to just use XNet so that is my suggestion to you.
    Now back to the original question.  No the older cheap NI-CAN devices do not have a hardware retransmit functionality.  You must call the write function every time you want to perform a write.  This usually means a while loop which just runs, and resends out all the frames you want ever N milliseconds.  You can do this easily with the elapsed timer VI or make your own timer.
    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.

  • Poor colour depth/banding with Apple Mini-DisplayPort-to-VGA adaptor?

    I'm using the Apple Mini Display Port to VGA adaptor to hook my MBP up to a projector in the theatre where I give lectures.
    I am getting colour depth/ banding issues - images seem to be displayed in thousands of colours, rather than millions, creating really bad banding problems.
    I know it isn't an issue with the projector - for comparison purposes I tried playing a DVD through a DVD player connected to the projector, and then through the MBP connected to the projector, and the diference in colour depth was really noticeable. In fact it was virtually unwatchable through the MBP.
    Is there a preference pane I'm missing somewhere which will increase the colour depth?
    Is there a better adaptor than the Apple one that I need to buy?
    Or is this a problem inherent in the minidisplay port to VGA conversion process?
    Any tips or pointers would be greatly appreciated.

    If your monitor has DVI input, get the DVI adapter. DisplayPort is digital, DVI is digital, but VGA is analog - the signal conversion will result in a (slight) drop in quality.

  • Mini DisplayPort to VGA Adaptor : Gateway Monitor FPD1760 - Compatible ?

    Hi. Is the Apple, Mini DisplayPort to VGA Adaptor compatible with Gateway Monitors?, I own a Gateway FPD1760 (Specs : http://www.dealtime.com/xPF-Gateway-Gateway-Monitor-FPD1760).
    Just wanted to know if I should be going with Mini DisplayPort to VGA Adaptor or) Mini DisplayPort to DVI adapter, as I have heard too many complaints about the former.
    Thanks in advance

    If your monitor has DVI input, get the DVI adapter. DisplayPort is digital, DVI is digital, but VGA is analog - the signal conversion will result in a (slight) drop in quality.

  • How do I get a descent sound level and quality when exporting out of Logic ??

    Hi guys,
    I know this topic's been discussed many times before but I still can't fix my problem
    I'm going crazy right now. It's been weeks I've been working on beats on Logic and I think they now sound pretty cool.
    So I'm trying to export them out of Logic on mp3,or wav, or aiff but everytime it comes out very low. So when I'm applying different tips (limiter, adaptative limiter and different things I found on the internet... ) the sound level is a bit higher but still the quality is not as good as it is on Logic
    So here's my questions : first, is it possible to get the exact same quality as the one you have when listening into logic ?
    then how to get the best quality with a normal sound level  so when you listening to the mp3 or wave or aiff on itunes just after a normal song you don't have to turn the sound up
    Thank you very much for you help !!
    Ben

    And in addition to what octopi wrote ……
    Related Articles:
    Mixdown for Mastering - written by Holger Lagerfeldt
    http://www.onlinemastering.dk/mastering-faq.html
    Loudness when Producing and Mixing - written by Holger Lagerfeldt
    http://www.gearslutz.com/board/music-computers/468170-loudness-when-producingmix ing-
    tips.html
    Overload in Signal Conversion - written by Søren H. Nielsen and Thomas Lund
    http://www.tcelectronic.com/media/nielsen_lund_2003_overload.pdf
    0 dBFS+ Levels in Digital Mastering - written by Søren H. Nielsen and Thomas Lund
    http://www.tcelectronic.com/media/nielsen_lund_2000_0dbfs_le.pdf
    Level Control in Digital Mastering - written by Søren H. Nielsen and Thomas Lund
    http://www.tcelectronic.com/media/nielsen_lund_1999_level_co.pdf
    Cheers

  • TV S-Video output with Iphone 3G ?

    Hello !
    I searched a lot around, but didnt'help to clarify this :
    I would like to use video output on my Iphone 3G. My TV has an S-Video input.
    1) Does Iphone 3G has a S-Video output?
    2) If answer is yes : can you indicate the hardware ?
    3) If answer is no : it there something existing to convert YPbPr signal to S-Video ?
    Thanks for any support because I'm not a video expert and feel a little bit lost !

    Thank you for your answer. I knew this helpful article.
    So the first solution is to use composite video signal.
    But, as I would like to use the high quality component video signal to feed the S-Video input of the TV, my question is now :
    Is there a simple mean to convert "component video" to "S-Video" signal ? Is it performed with a simple adapter or does it need an active box for signal conversion ?
    Thanks for any idea!

  • Best way to connect T430 to Dual Link DVI 2560x1440 Catleap monitors?

    I have a T430 and I am looking to get one of those cheap $300 27" Korean 2560x1440 IPS/PLS monitors, but the problem is all of the cheap models only take dual link DVI, while the new T430 notebooks only output via displayport.
    I was thinking the best solution for this would be to buy a Lenovo dock that natively outputs dual link DVI (DP to dual link DVI adapters do not allow for refresh rate overclocking). Though on the Lenovo website they don't specify whether their docks output single or dual link, and I am not sure if the signal conversion is done "natively" or via some custom chip in the docks which might prevent refresh rate overclocking.  Do you guys know of any T430 docks that are definitely equiped with native dual link DVI? If the docks are only single link DVI or do not allow overclocking then that leaves either buying a $70 adapter and forgoing the overclocking or buying a significantly more expensive monitor with displayport input (and more input lag).
    What have your experiences with connecting your T430 to one of these monitors been like? And what do you think would be the best solution at the moment?

    The dock dvi is single link dvi-d, if you wish to use dual link dvi-d connection, then you should consider the Apple laptop's active miniDP to Dual Link DVI-D converter.
    Regards,
    Jin Li
    May this year, be the year of 'DO'!
    I am a volunteer, and not a paid staff of Lenovo or Microsoft

  • Is there a way to connect via HDMI to Component adapter cable or device?

    Help...would like to get an Apple TV 3rd gen for my wifes Birthday...but our old "big screen" TV (mitsubishi) only has 1 DTV component input. I use a remote component switch to rotate devices (BluRay, Wii, etc.)  Thanks.

    Welcome to the Apple Community.
    Signal Conversion.   
    DVI
    Some users with DVI have managed to get their TV's to work with DVI-HDMI cables. DVI carries no audio, so alternative connections need to be explored to enable audio. DVI doesn't necessarily support HDCP as well as other standards used by HDMI (which may or may not be an issue)
    Analogue
    There are hardware converters that will convert HDMI to various other types of output, however there are some issues with doing so that you should be aware of.
    HDCP
    HDCP compliant converters will not allow you to watch HDCP protected content such as that from the iTunes Store. Non compliant converters exist but we cannot discuss them under the Terms of Use for these communities.
    Resolution and aspect ratio
    I'm not aware of any converters that will scale the output from the Apple TV, any TV or projector which is used will need to be widescreen and support resolutions of 720p (Apple TV 2), 720p/1080p (Apple TV 3)
    DAC
    DAC (Example Only - Not a recommendation or suggestion that this is suitable in your circumstances)

Maybe you are looking for

  • No wifi and horrible battery life after iOS 7 install on iPhone 4S!

    After the iOS 7 install on my iPhone 4S, my battery life is markedly worse and my phone will not connect to my home wifi. Every other device, including my wife's iPhone 5 and two iPad 2's, still connect perfectly. Please help. I wish I could go back

  • Error while Backup through DB13

    Hi Experts. This is the first time when we are taking backup through DB13. I have inserted the Tape in the Tape drive and run the Online Full Backup. But an error was thrown as mentioned Below. Please also suggest me what are the changes which needs

  • Flash CS4/ anti-aliased options

    Does anyone know if there are options to turn off anti-alising when importing Ai files/ text, etc? ~nate

  • Training & Time Integration

    Hi We work on Indian trg scenario. After creating an event we double click on the event to get a "schedule" pop up. Here, the check box for Holiday or weekly off is ticked even for week days (working days). This is misleading and how to correct this?

  • External Definition (wsdl) with abstract xsd element

    Hello All, we are trying to call a webservice, here is the wsdl: https://www.1link.com/fr/demo-sn/site/gaiwebservice.asmx?WSDL the problem is that the GAIJobLine element is defined as abstract: <s:complexType name="GAIJobLine" abstract="true"> and th