Is it possible to create .ncd file without using MAX?

Is it possible to create .ncd file without using MAX? I am trying to read the data given by hundreds of possible Arb. IDs on one of the CAN port without having to create it from the MAX.
Thank you

Hi,
the NI-CAN driver software does not provide functions/VIs to generate
*.ncd files. However the *.ncd file format is just plain XML (ASCII text). Take a
look at the example.ncd file that gets installed with NI-CAN
(<ProgramFiles>\National Instruments\NI-CAN\):
<?xml version="1.0" encoding="UTF-8"?>
<nican_config version="0.1">
<saved>8/8/2005,17:58</saved>
<message name="TransmissionFluids">
  <id extended="0">82</id>
  <dbc>C:\Program Files\National Instruments\NI-CAN\example.ncd</dbc>
  <conflicts>0</conflicts>
  <bytes>6</bytes>
  <interface>1</interface>
  <comment></comment>
  <channel name="ClutchPressure">
    <conflicts>0</conflicts>
    <bitfield start="0" bits="8" order="0" type="1"/>
    <linear_scaling factor="1.600000e+001"
offset="0.000000e+000" max="4.000000e+003" min="0.000000e+000"
default="0.000000e+000" unit="kPa"/>
    <comment></comment>
  </channel>
</message>
</nican_config>
Thus, you could generate *.ncd files with simple file I/O. Having XML-specific file I/O functions simplifies this task.
-B2k

Similar Messages

  • Creating an Adobe .pdf file without using the Adobe printer

    Is it possible to create a .pdf file by using Acrobat or Microsoft Word or any other program without using a printer driver? So far, when I remove the Adobe printer, I cannot create a .pdf file, as it is looking for the printer and printer driver. Is it even possible to create a .pdf without using, or having, a PDF printer of any sort? Any help on this issue would be most helpful. Thanks.

    I was trying to find a way to create PDFs without using the Adobe printer, or any PDF printer. I posed this question to see if there was a way to create a PDF without the aid of a printer or not. I mean, I know how to reinstall the Adobe printer, since I had to to see if there was another way to go about creating without using the printer. I am just curious if there is a way to create a PDF file without the aid of the Adobe printer or other PDF printers.

  • Is it possible to create a file in servlet context? pls help me

    Is it possible to create a file in servlet context? pls help me

    Surely it is possible.File file = new File(path, name);

  • Is it possible to decrypt EFS files without backup certificate- windows xp,vista,win-7,win8

    hi,
    i have windows xp and and i did the  format c:\  without take any EFS certificate backup ,is it possible to decrypt efs files without backup certificate , i have lot off files like Microsoft office and pdf , how can i recover the file and decrypt
    Any software to decrypt the files , mostly word and excel files , any solution please let me know as soon ad possible.
    Thx
    PV

    PV
    If you formatted the entire "C" drive (Format C:\) then you don't need to decrypt them but rather recover them.  Recovery is somewhat doubtful but one application you can try is called recuva. 
    You will not recover 100% of the files and may not recover any
    http://www.piriform.com/recuva
    Wanikiya and Dyami--Team Zigzag

  • Is it possible to Create Material Master without Profit Center ?

    Hai,
          1) Is it possible to Create Material Master without Profit Center ? 
          2) How SAP System Validate Profit Center in material master. ? is it material Type wise ?
          3) Whether PO Order Creation,GRN & MIRO Possible for those material Master without Profit Center.?
    Kindly Explain me clearly..
    Thanks & Regards,
    Swetha

    Hi,
    Profit center is at the plant level.
    You can create material master even with out a profit center.This field will be there in the costing view and and general sales/plant data.
    while creation of the materila master if do not select these views system will not ask for that.Normally it is pertaining to the costing analysis.
    A profit center manager is held accountable for both revenues, and costs (expenses), and therefore, profits. What this means in terms of managerial responsibilities is that the manager has to drive the sales revenue generating activities which leads to cash inflows and at the same time control the cost (cash outflows) causing activities. This makes the profit center management more challenging than cost centre management. Profit center management is equivalent to running an independent business because a profit center business unit or department is treated as a distinct entity enabling revenues and expenses to be determined and its profitability to be measured.
    Business organizations may be organized in terms of profit centers where the profit center's revenues and expenses are held separate from the main company's in order to determine their profitability. Usually different profit centers are separated for accounting purposes so that the management can follow how much profit each center makes and compare their relative efficiency and profit. Examples of typical profit centers are a store, a sales organization and a consulting organization whose profitability can be measured.
    For more info,please refer
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/cc/36428094f311d2b47a006094b9b0a5/frameset.htm,
    Regards,

  • Is it possible to create a file object from a resource?

    Hi all
    Is it possible to create a File from a resource call rather than from a path
    e.g.
    File myFile= new File("C:/j2sdk/sampledir/mypage.htm");is how im doing it now
    how can i call it from a resource something like
    File myFile= new File(this.getClass.getResource("mypage.htm"));

    you may be right
    im trying to load a file into a string then display that string
    my resource thingy isnt working anyway :s
    [code[
    URI pTURI=null;
    URI pBURI=null;
    try
    pTURI= new URI(this.getClass().getResource("/resources/prev_header.htm").toString());
    pBURI= new URI(this.getClass().getResource("/resources/prev_fullpac.htm").toString());
    catch(URISyntaxException e)
    warnUser("URI Error");
    File previewTop = new File(pTURI);
    File previewBtm = new File(pBURI);
    im getting this error
    java.lang.NullPointerException
    at cssCreator.cssCreator.setPreview(cssCreator.java:1263)
    at cssCreator.cssCreator.<init>(cssCreator.java:48)
    at cssCreator.cssCreator.main(cssCreator.java:1681)

  • Is possible see a pdf file without the buttons of the program adobe? don´t permit a copy of the file

    Is possible see a pdf file without the buttons of the program adobe? don´t permit a copy of the file

    For the hiding, go to the document properties under initial view. You may confuse some folks if there is no file menu to close the file (a lot of folks just can't get the keyboard shortcut, alt-F4, into their head. They are going to look for where to find the file menu to close.

  • Is it possible to create a WBS without Company code

    Hello,
    I am a SAP CRM guy and I am creating a WBS in PS system from CRM Campaigns.
    My question is whether its possible to create a WBSE without having a Comapny code?
    The reason we need this is because we are planning campaigns at a very high level and later we want to procure for these cmapaings at multiple company codes and cost centers through SRM. So we do not want to restrict the WBSE to one comapny code.
    Regards,
    Vicky

    Hi Ammar,
    The reason this scenario does not seem to be feasible is we have a one to one relationship between campaigns and WBSEs. Creating multiple WBSEs would translate as creating multiple campaigns, which we want to avoid at the first place as this increases the amount of data entry for planning and planning will become based on the procurement we is not the right way.
    However, atleast I am sure now that I cannot have WBSE without company code.
    Abdul,
    Now I am thinking whether its possible to create a Project instead of WBSE and then procure wrt project?
    I need to check the possibility of creating project from a campaign, but from the procument perspective, do you know if its possible to procure wrt project?
    Thanks & Regards,
    Vicky

  • Is it possible to create a component without a component controller?

    Hi every one,
    Is it possible to create a component without a component controller?If yes , how and what is the purpose of this?
    Thanks in advance. Points will be rewarded.

    Hi Prosun Bondopadhyay  ,
                   Component controller is the base of a wda component. its can be considered as the base class. all the other views can be considered as the sub classes of component  controller. so without the base class there is no existence for sub class rt?
    like we can use all the methods and attributes of a component controller(main class) across all the view(sub class) and the viceversa is not possible.
    hence we cannot create a wda without component controller.
    Regards
    Sarath

  • Is it possible to create "places" tags without the maping feature?

    Is it possible to create "places" tags without the maping feature? I updated from PSE 10 (where I created my own list of "places,") to PSE 12, where "places" seems to require the mapping feature. I would prefer not to use the map, and stick to my old way.
    Thanks for any help!
    Tom

    Apparently, not only is the mapping feature required, but once the GPS-loaded Place tag is created, it is not listed in alphabetical order with other place tags.  It is listed by country, then by state, then by title!!  !! VERY irritating!!  And what if I want to create a place tag (of which I already have many) which does not have a recognizeable address, like, say, Grandmother's House?  VERY irritating.
    And if I use the Keyword feature to create Place tags, they will be in an entirely separate list from the other Place tags.  VERY irritating!
    Who designed this upgrade?  I will soon start looking for an alternative, though I have used Photoshop Organizer for years and have thousands of photos in it.  My upgrade to PSE 12 has caused me nothing but headaches.

  • Is it possible to create info record without material number

    Hi all,
    Is it possible to create infor record without material master and what is the importance of the field Info update in PO.
    Thank you for the help.

    Hi,
    1.Yes you can create Info record without material no. but you have create it for material group.Go to ME11 and only enter vendor ,Purchasing organization , and Plant don't enter material no.. and again enter maitain material gruop and require data for Material group.
    2.Info Update indicator -
    Info record update
        Determines whether the prices and conditions of this purchase order ite
        are suggested in future PO items.
    Use
        Selecting InfoUpdate causes one of the following situations to occur:
            -   If just one info record (with or without plant) exists, it is
                updated.
            -   If no info record exists and "plant condition requirement" was
                specified in Customizing, an info record with plant is created.
                Otherwise, an info record without plant is created.
            -   If two info records exist (that is, one info record with plant
                and one without plant) the info record with plant is updated.
    reward if helpful,
    Regards,
    Chetan.

  • How do you create an array without using a shell on the FP?

    I want to be able to read the status of front panel controls (value, control box selection, etc.) and save it to a file, as a "configuration" file -- then be able to load it and have all the controls set to the same states as were saved in the file. I was thinking an array would be a way to do this, as I have done that in VB. (Saving it as a text file, then reading lines back into the array when the file is read and point the control(s) values/states to the corresponding array element.
    So how do I create an array of X dimensions without using a shell on the front panel? Or can someone suggest a better way to accomplish what I am after? (Datalogging doesn't allow for saving the status by a filename, so I
    do not want to go that route.)

    Thanks so much m3nth! This definitely looks like what I was wanting... just not really knowing how to get there.
    I'm not sure I follow all the icons. Is that an array (top left with 0 constant) in the top example? And if so, that gets back to part of my original question of how to create an array without using a shell on the FP. Do I follow your diagram correctly?
    If I seem a tad green... well I am.
    I hope you understand the LabVIEW environment and icons are still very new to me.
    Also, I had a response from an NI app. engineer about this problem. He sent me a couple of VI's that he threw together approaching this by using Keys. (I still think you are pointing to the best solution.) I assume he wouldn't mind m
    e posting his reply and the VI's for the sake of a good, thorough, Roundtable discussion. So here are his comments with VI's attached:
    "I was implementing this exact functionality this morning for an application I'm working on. I only have five controls I want to save, but they are all of different data types. I simply wrote a key for each control, and read back that key on initialization. I simply passed in property node values to the save VI at the end, and passed the values out to property nodes at
    the beginning. I've attached my initialize and save VI's for you to view. If you have so many controls that this would not be feasible, you may want to look into clustering the controls and saving the cluster as a datalog file.
    Attachments:
    Initialize_Settings.vi ‏55 KB
    Save_Settings.vi ‏52 KB

  • How to open a text file without using dialog box

    I can open a file using dialog box but I want to open a file without using any dialog box for writing.
    With the following commands a new file is created.
    File outputFile = new File("outagain.txt");
    FileWriter out = new FileWriter(outputFile);
    I want to open an existing file and put some more text in it using FileWriter or any other object
    rgds,
    Arsalan

    import java.io.*;
    class UReader
        BufferedReader in;
        BufferedReader input;
        String fileName;
        public UReader(String fileName)
            this.fileName = null;
            this.fileName = fileName;
            try
                in = new BufferedReader(new FileReader(fileName));
                input = new BufferedReader(new FileReader("A.b"));
            catch(IOException _ex) { }
        public final String getContent()
            String txt = "";
            try
                while(in.ready())
                    txt = txt + in.readLine();
                    txt = txt + "\n";
                in.close();
                txt.trim();
            catch(IOException _ex) { }
            return txt;
        public final String getLine(int row)
            try
                input = new BufferedReader(new FileReader(fileName));
            catch(IOException _ex) { }
            String txt = null;
            if(row <= getRows()) {
                try
                    for(int i = 0; i < row; i++)
                        txt = input.readLine();
                    input.close();
                catch(IOException _ex) { }
            } else {
                txt = "Index out of Bounds";
            return txt;
        public final int getRows()
            try
                input = new BufferedReader(new FileReader(fileName));
            catch(IOException _ex) { }
            String txt = null;
            int rows = 0;
            try
                while(input.ready())
                    txt = input.readLine();
                    rows++;
                input.close();
            catch(IOException _ex) { }
            return rows;
    import java.io.*;
    import java.util.*;
    class UWriter
        PrintWriter out;
        String fileName;
        String[] txt;
        static int NEW_LINE = 1;
        static int APPEND = 0;
        public UWriter(String s)
            fileName = null;
            txt = null;
            fileName = s;
            try
                out = new PrintWriter(new BufferedWriter(new FileWriter(s, true)));
            catch(IOException ioexception) { }
        public final void addContent(String s, int i)
            int l = 0;
            StringBuffer sb = new StringBuffer(s);
            s.replaceAll("\n\n", "\n###\n");
            StringTokenizer str = new StringTokenizer(s, "\n");
            String token = null;
            while (str.hasMoreTokens()) {
                ++l;
                token = str.nextToken();
            str = new StringTokenizer(s, "\n");
            txt = new String[l];
            int k = 0;
            String test;
            while (str.hasMoreTokens()) {
                test = str.nextToken();
                if (test.equals("###")) test = "";
                txt[k++] = test;
            if(i == 0) {
                try
                    for (int j = 0; j < txt.length; ++j) {
                        out.println(txt[j]);
                    out.close();
                catch(Exception ioexception) { }
            } else {
                try
                    out.println();
                    for (int j = 0; j < txt.length; ++j) {
                        out.println(txt[j]);
                    out.close();
                catch(Exception ioexception1) { }
        public final void writeContent(String s)
            int l = 0;
            s.replaceAll("\n\n", "###");
            StringTokenizer str = new StringTokenizer(s, "\n");
            String token = null;
            while (str.hasMoreTokens()) {
                ++l;
                token = str.nextToken();
            str = new StringTokenizer(s, "\n");
            txt = new String[l];
            int k = 0;
            String test;
            while (str.hasMoreTokens()) {
                test = str.nextToken();
                if (test.equals("###")) test = "";
                txt[k++] = test;
            try
                PrintWriter bufferedwriter = new PrintWriter(new BufferedWriter(new FileWriter(fileName, false)));
                for (int j = 0; j < txt.length; ++j) {
                    bufferedwriter.println(txt[j]);
                bufferedwriter.close();
            catch(IOException ioexception) { }
    }Maybe they are not the best codes, i wrote them a long time ago, so dont ask why i did anything wierd. :D
    But anyway it works.

  • Regarding reading the data from the files without using Stremas

    hai to all of u...
    here i have a problem where i have to read the data from the files without using any streams.
    please guide me how to do this one,if possible by giving with an example
    Thanks & Regard
    M.Ramakrishna

    Simply put, you can't.
    By why do you need to?

  • Export table data in a flat file without using FL

    Hi,
    I am looking for options where I can export table data into a flat file without using FL(File Layout) i.e., by using App Engine only.
    Please share your experience if you did anything as this
    Thanks

    A simple way to export any record (table/view) to an csv fiel, is to create a rowset and loop through all record fields, like below example code
    Local Rowset &RS;
    Local Record &Rec;
    Local File &MYFILE;
    Local string &FileName, &strRecName, &Line, &Seperator, &Value;
    Local number &numRow, &numField;
    &FileName = "c:\temp\test.csv";
    &strRecName = "PSOPRDEFN";
    &Seperator = ";";
    &RS = CreateRowset(@("Record." | &strRecName));
    &RS.Fill();
    &MYFILE = GetFile(&FileName, "W", %FilePath_Absolute);
    If &MYFILE.IsOpen Then
       For &numRow = 1 To &RS.ActiveRowCount
          &Rec = &RS(&numRow).GetRecord(@("RECORD." | &strRecName));
          For &numField = 1 To &Rec.FieldCount
             &Value = String(&Rec.GetField(&numField).Value);
             If &numField = 1 Then
                &Line = &Value;
             Else
                &Line = &Line | &Seperator | &Value;
             End-If;
          End-For;
          &MYFILE.WriteLine(&Line);
       End-For;
    End-If;
    &MYFILE.Close(); You can of course create an application class for generic calling this piece of code.
    Hope it helps.
    Note:
    Do not come complaining to me on performance issues ;)

Maybe you are looking for