How to parse CAN DBC file through CVI

Hi ,
I would like to know if we can parse the CAN .dbc file through CVI, let me know if there is any other approach, We use Labwindows CVI for our testing and we would like to know if we can parse through the .dbc file to get the PGN and SPN information and use them in our testing process. We do not use NI CAN cards etc we use a Supercom to transmit and recieve the messages.
Thanks in Advance
Kishore

AndreasS wrote:
Hi Kishore,
you can use the NI-CAN or NI-XNET functions to read data from .dbc files. XNET is more advanced, but so far you can't to frame to channel conversion without hardware (coming soon).
So I recommend using NI-CAN. There you can read the channel information fom the dbc file using CAN Get Names and CAN Get Property.
You can convert the CAN channels into frames using either the virtual CAN interfaces 256 and 257 (both c and LabVIEW) or using the CAN Channel to Frame conversion library (only LabVIEW). Then you just have to write the frame data on your CAN interface.
NI-CAN manual
NI-XNET manual
NI-CAN Virtual Ports
Regards,
When you say "coming soon", when is this anticipated to be out?  Also, can you use virtual CAN channels with XNET like you can with NI-CAN?
I'm trying to determine whether I should write all my new programs using XNET instead of NI-CAN, so anything you can contribute would be appreciated.  Also, is there a significant reason to use XNET instead of NI-CAN if I'm only using CAN and don't care about FlexRay or other protocols?
Message Edited by KavehV on 03-22-2010 05:48 PM

Similar Messages

  • How to parse a XML file

    I am a new learner to XML & JAVA,I dont't know how to parse the XML file using JAXP,Who can tell me,Who can write an Example?
    thx
    Best Regards.

    Using the SAXParser in JAXP the parsing of the XML file is event driven.
    Instantiate the parser:
    SAXParserFactory factory = SAXParserFactory.newInstance();
    SAXParser parser = factory.newSAXParser();
    InputSource is = new InputSource(new FileReader(theXML));call the parse method:
    parser.parse(is, this);The following events are fired as the parser works through the XML public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws org.xml.sax.SAXException
    public void endElement(String namespaceURI, String localName, String qName) throws org.xml.sax.SAXException
    characters(char[] ch, int start, int length)etc.
    You write what you want within each of these sections to handle the structure of your data. Keep in mind SAX is useful only when you know the structure of your XML.

  • 10g Admin/Desktop error :could not locate or parse the .dbc file error

    Hi there,
    can any one help me how to fix this error i get this while connecting to Discoverer Admin/Desktop edition 10g ver 10.1.2
    Unable to connect to: username@crp2
    Failed to connect to database - could not locate or parse the .dbc file
    c:\oracle\BIToolsHome_1\discoverer\secure\us-oracle3.dbc corresponding to the given Oracle Applications instance
    i had created the system environment variable FND_SECURE and i've placed the .dbc files in the folder (C:\oracle\BIToolsHome_1\discoverer\secure)
    but, i still get error
    Thanks,
    Max

    Hi Russ
    Here's some additional info from my own library:
    1. Set or check the following registry settings on your Admin PC:
    HKEY_CURRENT_USER\Software\Oracle\Discoverer 10\Database\EnableTriggers should be DWORD with a value of 1
    HKEY_CURRENT_USER\Software\Oracle\Discoverer 10\Database\DefaultPreserveDisplayPropertyForRefresh should be a DWORD with a value of 1
    2. You need to create for yourself a folder called SECURE under your ORACLE folder:
    e.g. mkdir c:\oracle\secure
    3. Copy the DBC File from the E-Business Suite database and place it in the secure directory. It will be located in the TOP directory in the database.
    4. Create a Windows System Variable FND_SECURE with the value as in step 2 above: e.g. c:\oracle\secure
    5. Update your %ORACLE_HOME%/network/admin/tnsnames.ora to include an entry for the E-Business Suite database. The database name must match the two_task entry in the dbc file.
    6. You may have to rename the dbc file so that it matches the name by which you are referring to that database in your TNS Names file
    Does this help?
    Best wishes
    Michael

  • How to compare two PDF files through PLSQL

    Hi,
    Can any body help that how to compare two PDF files through PLSQL programing and gives the differences as output.
    Thanks,

    Or simply apply an oracle text index on your pdf column:
    SQL>  create table t (id integer primary key, bl blob)
    Table created.
    SQL>  declare
    bf bfile := bfilename('TEMP','b32001.pdf');
    bl blob;
    begin
    dbms_lob.createtemporary(bl,true);
    dbms_lob.open(bf,dbms_lob.lob_readonly);
    DBMS_LOB.LOADFROMFILE(bl, bf,dbms_lob.getlength(bf));
    insert into t values (1,bl);
    commit;
    dbms_lob.close(bf);
    dbms_lob.freetemporary(bl);
    end;
    PL/SQL procedure successfully completed.
    SQL>  create index t_idx on t (bl) indextype is ctxsys.context parameters ('filter ctxsys.auto_filter')
    Index created.
    SQL>  declare
       mklob   clob;
    begin
       ctx_doc.filter ('t_idx', '1', mklob, true);
       dbms_output.put_line (substr (mklob, 1, 250));
       dbms_lob.freetemporary (mklob);
    end;
    Oracle® Database
    Release Notes
    11
    g
    Release 1 (11.1) for Linux
    B32001-04
    November 2007
    This document contains important information that was not included in the
    platform-specific or product-specific documentation
    PL/SQL procedure successfully completed.This generates a text only version of your pdf and standard text comparison methods can be applied ....

  • How to read a text file through pl/sql

    How to read a text file through pl/sql

    pl/sql runs inside the database. so your file also should be on the database server file system for you to be able to read.
    check out UTL_FILE package. This is the database package to read/write files on the database server.

  • How to Parse an HTML File?

    Hi all
    I want to parse an HTML file?
    How is it possible?
    After taking an input which is an HTML file, i need to parse it, and i need to print/modify values based on some tags?
    Please help me, how to parse an HTML file?

    You start by reading the first character and then continiung until you reach the last character.
    For a more serious answer try elaborating on your question. Its really really vague.

  • How to undeploy an .sda file through command line

    Hi,
    How to undeploy an .sda file through command line.send me the related command to do it.and related information and links.

    Hi
    Please find below the steps to undeploy thro command line :
    Shut down the sdm server
    1)SDM shutdown "sdmhome=D:\usr\sap\J2E\JCO1\SDM\program" "sdmguiport=50018" "sdmhostname=<hostname>" password="<password>" "shutdownmode=abort"
    2)sdm jstartup "mode=standalone" "sdmhome=c:\usr\sap\J2E\DVEBMGS00\SDM\program"
    3) sdm undeploy "sdmhome=D:\usr\sap\J2E\DVEBMGS00\SDM\program" "compname=c:\test.sda"
    4)sdm jstartup "mode=integrated" "sdmhome=c:\usr\sap\J2E\DVEBMGS00\SDM\program"
    5)start the sdm server again
    SDM server "sdmhome=D:\usr\sap\J2E\JCO1\SDM\program"
    Hope this helps. do not forget to reward points
    regards
    rajeshkr

  • How quickly parse big XML file (60 MB) ???

    How quickly parse big XML file (60 MB) ???

    I assume you mean load it into XML DB ?. Fundamentally your document is about the upper limit for 9.2.x. I would strongly recommend trying to break it up into a set of smaller documents using a SAX parser before trying to load it into XML DB. In 10g it should be possible to load much bigger documents than this.

  • VISA: How to get the CSV file through C/C++ code?

    How to get the CSV file through C/C++ code?
    I'm communicating with a USB oscilloscope using VISA.

    Thank you for your reply.
    I am using Apache Commons File Upload. Here is the code where I got the "fi".
         DiskFileUpload fu = new DiskFileUpload();
              fu.setSizeMax(1000000000);
              List fileItems = fu.parseRequest(request);
             Iterator itr = fileItems.iterator();
              FileItem fi = (FileItem)itr.next();
              if(!fi.isFormField())
                File tempFileRef  = new File(fi.getName());
         System.out.println("Field = "+tempFileRef.getAbsolutePath());
         }

  • How many devices can sync simultaneously through iTunes?

    I am looking to see how many devices can sync simultaneously through iTunes. I know that you can only restore one device at a time, but you can sync content to two devices at the same time. Is there a limit to how many devices can sync simultaneously? Thank you for your help!

    Thanks. I wasn't aware that you could have multiple iOS devices connected via WiFi at once. That didn't seem to work the last time I knew of anybody trying it, but obviously it was their setup, not a general limitation.
    Regards.

  • Converting normal CAN dbc file to XNET compatible dbc file

    Hello all,
    I am trying to run a certain application on RT, which access a .dbc file which is there on its hard disk.
    I transitioned to XNET now, and came to know that XNET has a different format which it supports, and is not compatible with older dbc formats. I was told by NI person to use NI XNET Database editor to deploy the dbc file, but I just want to copy the dbc file to RT which the XNET nodes should support.
    Is there any way we can convert a CAN .dbc file to XNET compatible .dbc file?
    Thanks.
    FraggerFox
    -FraggerFox!
    Certified LabVIEW Architect, Certified TestStand Developer
    "What you think today is what you live tomorrow"

    estradjm wrote:
    I have been wondering the same thing! This is terrible on NI's part, seeing as the .dbc is used so frequently.
    You can programatically deploy the .dbc file to RT and use it in your program
    -FraggerFox!
    Certified LabVIEW Architect, Certified TestStand Developer
    "What you think today is what you live tomorrow"

  • How to parse xCBL format file

    Hi,
    Is that anyone know that how to parse xCBL format in java? It would be a great help if any one can give me the examples or any information to do this.

    Using the SAXParser in JAXP the parsing of the XML file is event driven.
    Instantiate the parser:
    SAXParserFactory factory = SAXParserFactory.newInstance();
    SAXParser parser = factory.newSAXParser();
    InputSource is = new InputSource(new FileReader(theXML));call the parse method:
    parser.parse(is, this);The following events are fired as the parser works through the XML public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws org.xml.sax.SAXException
    public void endElement(String namespaceURI, String localName, String qName) throws org.xml.sax.SAXException
    characters(char[] ch, int start, int length)etc.
    You write what you want within each of these sections to handle the structure of your data. Keep in mind SAX is useful only when you know the structure of your XML.

  • How to create a .java file through a j2me program?

    I am trying to develop a small application in j2me which needs dynamic creation of a .class file. For this purpose I tried to create .java file through my j2me code, but i could not do that..I want to know whether a java file can be created on a mobile phone or not..
    I would be grateful to you on your help in this regard..

    ...develop a program xyz.java using j2me which performs the following functionalities:
    1.create a file called abc.java
    2.extract its class file...For +1+ ie to create a file (any file, no matter java or not) from j2me, device need to support File Connection specified in [jsr 75|http://www.jcp.org/en/jsr/detail?id=75]. If you're interested, learn the jsr API on how to create and manage needed file.
    For +2+ described as extract its class file one needs to have java compiler (javac) on device. *) If you're interested, ask for more details at [Java Compiler forum|http://forums.sun.com/forum.jspa?forumID=7]. Also, if the class file is for CLDC then javac needs to support "JDK 1.3-compliant" compilation. To create CLDC classes on device, one also needs to have a preverifier tool. Check this at Java Compiler forum if needed.
    Good luck - I think you'll need a lot of it...
    *) javac on device -- it should not only be present but also provide a j2me API allowing to invoke it for particular java file with needed options. Same applies to preverifier tool.

  • How to read a text file through BufferedReader

    I want to read a text file by BufferedReader, How can I do that? The format of the file as follows:
    NAME MAKER YEAR PRICE CONDITION
    13 Dead End Drive __ Milton Bradley 1993 $22.00 C09
    18 Wheeler Fever __ Donna Lee Ent. 1980 $20.00 C09
    how to parse the line from the file to extract the name, maker, year, price and condition.
    Thank you first.

    Look at: stream tutorials,
    BufferedReader, InputStreamReader, FileInputStream, StringTokenizer

  • How to play a wave file through the DAQ board?

    Hi there,
    we want to play a wave file that is saved on the harddrive via the DAQ board. Means we want to connect a amp to the analog output of the DAQ to amplify the sound and play it through a speaker.
    We couldn't find any VI that does that. Can anybody tell us how to play a wave file, or perhaps even send us a VI that can do that?
    Thanks a lot for your help
    Martin - Physical Optics Corporation

    Hi Martin,
    The only example that I could find on how to do this was using our
    older Traditional DAQ drivers version 6.9.3.  If you're using Traditional
    DAQ drivers, the vi can be found here. 
    The example reads a 8-bit mono .wav file (an example .wav file is included in the .zip file) and writes it to the analog out of your DAQ card.  I've updated the
    example to work with our newer DAQmx drivers and attached it here.  
    I hope this helps,
    Paul C.
    Message Edited by Paul C. on 08-14-2007 05:47 PM
    Attachments:
    daqmx_wav_file_to_ao_output.zip ‏27 KB

Maybe you are looking for

  • ITunes 6.0.1.3 crashes often when importing cds -- help!

    I just installed iTunes 6.0.1.3 for the first time on my PC since I have it already on my iMac. It crashes fairly consistently when importing CDs. It seems basically useless on my Windows machine. My import settings are: 320kbps/VBR-highest/normal st

  • Backorder Processing

    Hi, Please help me to resolve back order processing problem in sales order. Last year, a sales order was created on 09.05.2006 for a material with 9 order quantity. Two schedule lines were created, one on 10.05.2006 (with quantity 5) and another one

  • Restricting Document Attachment in the Student File

    Does anyone know how to restrict the attachment of documents in the Student File? I need to force users to attach documents as 'Stored Business Documents' in an archive server and therefore want to disable the 'Create Attachment' option in the studen

  • SOLVED: How To Use LDAP over SSL (no certs) from java program

    Trying to connect to OID from Java program (using Grocery Store demo as a test). Want to use SSL with no server certificate. OID is configured, and ldapsearch -U 1 works. Tried using URL with ldaps, or adding SECURITY_PROTOCOL,"ssl". In both case the

  • Calling EJB over HTTP from thick client

    Hi, But, if I want to use a thick client then how I can make calls through HTTP. I know about j2ee client container. But in addition to it, I may have to write some code on client as well on server. Any inputs/guidelines will be helpful for me. Thank