Writing CAN data to a spreadsheet or word processing file.

Hi. I need to know how I can write CAN data to a spreadsheet or word processing file. I have a vi that reads information from a CAN device and I need to write everything that is read to a spreadsheet or word processing file. Also I'm getting an error message using a vi that uses the frame API to write and read frames. It happens when I change the read or write queue value. Right now they are set at 100 each and when I change them just a little(even by 1) there is an error. Thanks in advance.

I would recommend against writing DIRECTLY to Excel, while the CAN vi is running, the MSOffice interface is too slow to be doing while the CAN vi is running. There are 2 different ways you can get around this problem though.
1. When you receive a CAN frame you want to log, write it to a buffer of some kind in Labview (this could be a string buffer wired to a shift register, it simply adds the new data to the end of the buffer) then when your VI closes, it writes the string data to an excel worksheet.
2. You could log the data to a text file, if you use the Write File.vi (in the File I/O pallette) you can quickly write data to a file if it is done correctly. DO NOT use the VI's on the first row (Write to Spreadsheet.vi and Write Characters to File.vi) because they will be too slow, they open the file, write data, and then close the file each time they run, which takes too much time.
As for changing the buffers, you can do that, if you change the buffers at the time you call ncCANConfig, if you change the buffers after that you will get an error.

Similar Messages

  • How can I make a backup listing of all of my Firefox bookmarks, with complete URLs, so I can print it out from a word processing document?

    == Issue
    ==
    I have a problem with my bookmarks, cookies, history or settings
    == Description
    ==
    How can I make a backup listing of all of my Firefox bookmarks, with completely written out URLs, so I can print it out from a word processing document? Please email me the answer-
    [email protected]
    <blockquote>duplicate. Locked. Please continue [https://support.mozilla.com/en-US/forum/1/727213 here] -MJB</blockquote>
    == Firefox version
    ==
    2.0.0.4
    == Operating system
    ==
    PPC Mac OS X Mach-O
    == User Agent
    ==
    Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
    == Plugins installed
    ==
    *-Netscape Navigator Default Plug-in
    *Runs Java applets using the latest installed versions of Java. For more information: Java Embedding Plugin. Run version test: Test Your JVM.
    *Plugin that plays RealMedia content
    *The QuickTime Plugin allows you to view a wide variety of multimedia content in web pages. For more information, visit the QuickTime Web site.
    *Shockwave Flash 9.0 r260
    *Provides support for Digital Rights Management
    *Provides support for Windows Media.
    *Java 1.3.1 Plug-in (CFM)
    *Macromedia Shockwave for Director Netscape plug-in, version 8.5.1
    *Java 1.3.1 Plug-in

    Hello.
    Although possibly not related to your problem, I have to remind you that the version of Firefox you are using at the moment has been discontinued and is no longer supported. On top of this, it has known unpatched bugs and security problems. I urge you to update to the latest version of Firefox, for maximum security, stability, performance and usability. You can get it for free, as always, at [http://www.getfirefox.com getfirefox.com].

  • Pages Will NOT Import Appleworks v6 Word Processing Files

    I've seen a number of posts in the community section that state that Pages will open AppleWorks 6 Word Processing files. That has not been my experience. I have the latest version of Pages and use OS 10.8. When attempting to open files such as "xms2002newsletter [v6.0].cwk" I get import error messages that "xms2002newsletter [v6.0] is not a word processing document." But it was. Same for all other version 6 AppleWorks docs. Tried keynote just for grins. Don't know if others have a similar experience, but Pages will not open AppleWorks v6 Word Processing documents for me.

    As fruhulda said, it was an AppleWorks 6 draw document.
    The only program other than AppleWorks that can open those files is an expensive version of EazyDraw & I'm not sure it could handle such a complex (& busy) document.
    Have a Merry Christmas & enjoy the rare Christmas snow we're expecting tomorrow.

  • Opening 2 pages from same word processing file side by side

    I am new to Macs and not much of a computer user, however is it possible to have my second page of a word processing file open up beside the first page rather than below. I thought viewing 2 pages at once would be a nice benefit of the 20" display?
    g5isght   Mac OS X (10.4.3)  

    Yes. that's because books, magazines, etc. always begin on a right facing page. There are several ways around this. If you aren't planning to duplex or booklet print your document, the easiest way is to hit return on the first line of the first page, then go to Format>Insert Page Break, to create a new page right away, which will be a left facing page, and then the next page will be a right page so they'll appear side by side. Before printing, put your cursor at the beginning of the first real page and backspace to get rid of the fake first page.

  • How do I save data in different spreadsheets inside an excel file?

    I am already able to save data into an excel file, but how can I instead send the data separated into segments, where each segment is placed on a different spreadsheet on the excel file I specify.

    In the ActiveX examples that ship with LV there is a good example of how to control Excel. Part of the process of opening a Excel file is to open the workbook (Excel document) and then open a specific worksheet (spreadsheet).
    Try experimenting with that example and you should be able to figure out how to select different worksheets. If you still have trouble give another holler.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Can you make a mail merge from a page layout?  I can successfully do so from the word processing section of pages

    I am trying to mailmerge to a form and need to center certain sections on the same line.  Impossible to accomplish in the word processing portion because it wants to center the entire line.  I would like to use the page layout section but the "enter merge field" is gray.
    I have been able to accomplish the task using Filemaker but some of my constituents do not have Filemaker and I would like to make a template for them to use with numbers, excel,etc.

    Can't see what Layout mode could possibly offer that you don't have in Word Processing mode.
    Tried using centre tabs? You are using tabs, and not just hammering away at the spacebar?
    Peter

  • AppleWorks word processing files from PowerPC G4 10.4.11 to new Intel Lion 10.7.5 iMac ?

    I have only previously had a PowerPC G4 (still working) and have a number of files on AppleWorks ' word processing '.
    I have recently invested in only my second computer ( Intel iMac Lion 10.7.4 ), and have discovered AppleWorks has been defunct since 2006 !
    How can I export them from the G4, hopefully in a form they can still be edited and printed, rather than just as inaccessible archives ?

    The only program which can actually open AppleWorks word processing documents is Apple's Pages, part of the iWork suite and available singly through the Mac App Store (however it will not open AppleWorks 5 documents, only Appleworks 6). This is the nearest thing available to AppleWorks for drawing and word processing: you can insert pictures and draw objects, and create complex layouts - indeed a number of attractive templates are provided. On the whole it will open AppleWorks word processing documents correctly, even when they embed images and drawings. The text display is better, particularly of small font sizes; and there are more options for handling images, such as shadows and reflections.
    More information here: http://www.wilmut.webspace.virginmedia.com/notes/aw/page2.html
    As to the other document types:
    Draw Documents can be opened directly only in EazyDraw (the more expensive version from their website, not the cheaper one from the Mac App Store, and you will need v4.0 'Retro' not the most recent version) or Intaglio (though this appears not to be able to handle very complex drawings).
    Spreadsheets can be opened directly only in Numbers.
    Presentations can be opened directly only in Keynote.
    Nothing will open Databases or Paint documents.

  • Appleworks word processing files to page files

    I've got many hundreds of AppleWorks files merged onto my new iMac from my G5 OS 10.3.
    For now 10.5 is allowing me to create Page files of them (not perfectly copied in some cases). Is there a way for the computer to search for all of them and to save them in Page in one operation? Or must I do each one separately?
    Thanks,
    Stacy

    Pages will open AppleWorks 6 Word Processing documents directly. Just select a number of them in the Finder and drag them onto the Pages icon in the Dock.

  • Can data be purged without the archiving process in BW system?

    Dear all,
    can anybody give me some comments on the data purging process?  After checking some materials about BI data archiving,  I am wondering:
    if data can be purged skipping the archiving process?  As long as no requests to retain the historical data, it should be good for performance reason to purge some useless data.
    My doubt to this question is:
    1. Will there be any inconsistency if we do the data purging manually without instruction of SAP standard process?
    2. Will there be any particular issues for DSO and Cube data purging?  Since there should be some business related dependencies.
    It would be highly appreciated for sharing the best practice in data purging or archiving in BW system!
    thanks in advance!
    Jennifer

    Hi,
    as others are pointing you should never delete data with other means than SAP standard procedures (request, selective, archiving....); in other words, do not delete data directly from the the BW DB tables!! This would definitively lead to big troubles... I am not sure what you mean exactly by "manually"...
    Deleting data (purging and or archiving) should always been considered carfully:
    - is the cube/dso a source of data for other targets (datamart)? If this is the case then the deletion should be carefully analyzed
    - for DSO/ODS it is particularly important to ensure that the keys of the records to be deleted will never be loaded again in the DSO; because of the overwrtie capabilities for these containers, this situation will obviously lead to incorrect data posted in subsequent targets
    Currently we've never used the archiving functionalities of BW... We monitor closely the data genererated by BW itself in datamart scenarios (PSA in between providers can grow very fast) and have implemented a customized process for that since it wasn't possible to archive PSA in BW3x....
    Most of the data stored in our providers are still used by our consummers (six years of data, some 3TB) and we use the logical partitionning extensively on the calendar year; this enable us to "move" "old" data to less expensive storage line.
    hope this helps....
    Olivier.

  • How do I share data from one spreadsheet into another spreadsheet that is a separate file?

    I am trying to create a spreadsheet that will pull data from another spreadsheet in a different file for a what if scenario.  Is there a way I can reference a cell from that file besides adding a separate tab in the original file?

    For Numbers '09 (Mac), the answer is no, Numbers does not support references to a cell in a separate file.
    But the profile information at the bottom of your message, and the use of 'tab' in the message suggests you are using Numbers for iOS. I've requested your question be transferred to the iWork for iOS community, where the users of that version tend to be more plentiful than here, where the topic is Numbers (for Mac).
    Regards,
    Barry

  • Can I mix Pages page layout and word processing together in one document?

    Hello there ! I am quite new to Pages and I am desperate to learn as i want to get rid of everything being Microsoft
    As you all know when you open Pages you can choose between page layout and word processing !
    the thing is i thought that after using a page layout you could just go with word processing easily... well no, you can't, but i'm sure i'm missing something...
    For exemple i really like the catalogue brochure and it would be perfect for me to start a project... but after a few pages, i can just add blank pages and if i want to type text, i have to add text boxes... i don't want that, I want word processing... and another thing in this brochure i can't add table of content because it is not by default in the template...
    So my question is quite basic here, can we link Page layout and word processing without having to use text boxes and everything ?
    Thanks in advance !
    Have a good day

    Alexander,
    Welcome to Apple discussions.
    The simple answer is no. What differentiates page layout from word processing mode is that the PL mode has no text layer. So everything that goes on the page must be an object of some kind. And any pages you add to a PL document must also be PL. You can't mix the two modes. One way around it is to start with a blank page, insert a text box, then stretch the box so that it covers the entire page. You can the type in it as if it were a text layer in a WP file. You can even capture that page so that you can add it automatically when you need it, or save it as a template.
    As for building a Table of Contents, it appears that Pages only sees text styles that are on the text layer, which means it won't see styles that are in objects -- which means it won't work with a PL document. From being a long-time reader of this discussion group, I've noticed it's rare that someone wants to add a ToC to a PL document.
    If you find that you're going to be mixing text and graphics, start with a word processing template. If you really like the Catalog Brochure, you could always copy some or all of its elements over to a blank WP template.
    Hope this helps.
    -Dennis

  • Can Java be used to parse Microsoft Word(.doc) files?

    Hi guys ,
    I want to know whether Java can be used to parse Microsoft Word(.doc) files for searching a string or for checking for grammatical errors, etc
    Thanks in advance.
    Avichal

    Hey man, anything and every thing can be done these days.
    About ur question doc is like all other normal text files with some extra features and extra character supports and other stuffs.
    If u neglect those parts and if u consider it to be a normal text file then its a much simpler job.
    Here is a code that searches for the key word in all the doc files, txt files, pdf files and html files
    in the mentioned folder and sub folders. Any way its a servlet u can change it to a normal program.
    It first check the file to know whether they are doc, pdf, html or txt files if yes then it will read the file and
    store the contents in the vector and parse the vector for the search string and display the result.
    Along with the result the below code will also display the time taken and the number of search string found in the document
    import java.io.*;
    import java.util.*;
    import java.net.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class search_local extends HttpServlet
         public void service( HttpServletRequest _req, HttpServletResponse _res ) throws ServletException, IOException
              long startTime = System.currentTimeMillis();          
              File RootDir     = new File( _req.getRealPath( "/docs/" ) );
              if ( RootDir.isDirectory() == false )
                   System.out.println( "Invalid directory" );
                   _res.setStatus( HttpServletResponse.SC_NO_CONTENT );
                   return;
              Vector kList = new Vector( 3 );
              StringTokenizer st = new StringTokenizer( _req.getParameter( "search_text" ), "+" );
              while ( st.hasMoreTokens() )
                   kList.addElement( st.nextToken().trim() );
              //- Run through list
              Vector toBeDone     = new Vector( 10 );
              Vector found     = new Vector( 10 );
              String dir[] = RootDir.list( new htmlFilter() );
              cDirInfo tX = new cDirInfo( RootDir, dir );
              toBeDone.addElement( tX );
              while (  toBeDone.isEmpty() == false )
                   tX = (cDirInfo)toBeDone.firstElement();
                   try
                        int x = 0;
                        for ( ;; )
                             File newFile = new File( tX.rootDir, tX.dirList[x] );
                             if ( newFile.isDirectory() )
                                  File t = new File( tX.rootDir, tX.dirList[x] );
                                  String a[] = newFile.list( new htmlFilter() );
                                  toBeDone.addElement( new cDirInfo( t, a ) );
                             else
                                  int freq = searchFile( kList, newFile );
                                  if ( freq != 0 )
                                       found.addElement( new cPage( freq, newFile ) );                              
                             x++;
                   catch( ArrayIndexOutOfBoundsException E ){}
                   toBeDone.removeElementAt(0);
                   dir     = null;
              long totalTime = System.currentTimeMillis()     - startTime;
              formatResults( found, kList, totalTime, _req.getRealPath( "/docs" ), _res );
         private void formatResults( Vector _fList, Vector _kList, long time, String _root, HttpServletResponse _res ) throws IOException
                 _res.setContentType("text/html");
              PrintWriter Out = new PrintWriter( _res.getOutputStream() );
              Out.println( "<HTML><HEAD><TITLE>Search results</TITLE></HEAD>" );
              Out.println( "<BODY><H3>Search Results</H3><BR>" );
              Out.println( "Keywords:<B> " );
              Enumeration E = _kList.elements();
              while ( E.hasMoreElements() )
                   Out.println( (String)E.nextElement() + " : " );
              Out.println( "</B><BR><BR><CENTER><HR WIDTH=100%></CENTER><BR>" );
              E = _fList.elements();
              cPage sPage;
              String link;
              while ( E.hasMoreElements() )
                   sPage = (cPage)E.nextElement();
                   link  = sPage.cFile.toString();
                   link  = "http://localhost/BugFix/docs/" + link.substring( link.indexOf( _root )+_root.length(), link.length() );
                   Out.println( "<FONT SIZE=+1><A HREF=" + link + ">" + sPage.cFile.getName() + "</A></FONT>" );
                   Out.println( "<FONT SIZE=-2>(" + sPage.freq + ")</FONT><BR>" );
              if ( _fList.size() == 0 )
                   Out.println( "<I><B>No sites found!</I></B><BR>");
              Out.println( "<BR><CENTER><HR WIDTH=100%></CENTER>" );
              Out.println( "<BR><FONT SIZE=-1>Time to complete: " + ((double)time/1000) + " seconds</FONT>" );
              Out.println( "</BODY></HTML>" );
              Out.flush();
         private int searchFile( Vector _klist, File _filename )
              //- Links the file
              int     frequency=0;
              try
                   DataInputStream In     = new DataInputStream( new FileInputStream( _filename ) );
                   String LineIn, token;
                   boolean bValid = true;
                   Enumeration E;
                   cLineParse lp;
                   while ( (LineIn = In.readLine()) != null )
                        lp = new cLineParse( LineIn.toUpperCase() );
                        while ( (token=lp.nextToken()) != "" )
                             if ( token.indexOf( "<" ) != -1 && (
                                   token.indexOf( "<A" ) != -1 ||
                                   token.indexOf( "<HE" ) != -1 ||
                                   token.indexOf( "<APP" ) != -1 ||
                                   token.indexOf( "<SER" ) != -1 ||
                                   token.indexOf( "<TEX" ) != -1  ))
                                  bValid  = false;
                             else if (     token.indexOf( "<" ) != -1 && (
                                            token.indexOf( "</A" ) != -1 ||
                                            token.indexOf( "</HE" ) != -1 ||
                                            token.indexOf( "</APP" ) != -1 ||
                                            token.indexOf( "</SER" ) != -1 ||
                                            token.indexOf( "</TEX" ) != -1  ))
                                  bValid  = true;
                             else if ( bValid )
                                  E = _klist.elements();
                                  String key;
                                  while ( E.hasMoreElements() )
                                       key     = ((String)E.nextElement()).toUpperCase();
                                       if ( token.indexOf( key ) != -1 )
                                            frequency++;
                   In.close();
              catch( IOException E ){}
              return frequency;
    class cPage extends Object
         public int     freq;
         public File cFile;
         public cPage( int _freq, File _cFile )
              freq = _freq;
              cFile = _cFile;
    //- End of file
    //----- Supporting classes
    class htmlFilter implements FilenameFilter
         public boolean accept(File dir, String name)
              File tF     = new File( dir, name );
              if ( tF.isDirectory() )
                   return true;
              int indx = name.lastIndexOf( "." );
              if ( indx == -1 )
                   return false;
              String Ext = name.substring( indx+1, name.length() ).toLowerCase();
              if ( Ext.equals( "html" ) ||
                    Ext.equals( "pdf" ) ||
                    Ext.equals( "txt" ) ||
                    Ext.equals( "doc" ) )
                    return true;
              return false;
    class cDirInfo
         public File     rootDir;
         public String[] dirList;
         public cDirInfo( File _r, String[] _d )
              rootDir     = _r;
              dirList = _d;
    class cLineParse
         String L;
         public cLineParse( String _s )
              L = _s;
         public String nextToken()
              String ns="";
              boolean bStart = false;
              for ( int x=0; x < L.length(); x++ )
                   if ( L.charAt(x) == '<' && ns.length() != 0 )
                        L = L.substring( x, L.length() );
                        return ns;
                   else if ( L.charAt(x) == '<' )
                        ns     = ns + L.charAt( x );
                        bStart = true;
                   else if ( L.charAt(x) == '>' ||
                               L.charAt(x) == '\r' ||
                         ( L.charAt(x) == ' ' && bStart == false ) )
                        ns     = ns + L.charAt( x );
                        L = L.substring( x+1, L.length() );
                        return ns;
                   else
                        ns     = ns + L.charAt( x );
              L = "";
              return ns;
    }

  • Can anyone recommend a document word processing App for new ipad?

    Can anyone recommend an App for word processing for the new ipad?  I was hoping to be able to use the dictation function to save some time.  Cloudon, evernote...anything better?

    There are word processing apps such as Apple's Pages and from third-parties apps such as Documents To Go and QuickOffice Pro HD.

  • Word processing glitch in iOS 6

    Since downloading iOS6 I've had a problem with moving word processing files between the desktop iMac and the iPad in both Pages and all .txt files where the iPad apps delete all contractions/apostrophes. I've tried everything, including retyping the files and editing the aprotrophes back in at both ends, but nothing works; every time I open the files on the iPad, are deleted. Plus Elements files are showing up in the Dropbox folder "translated" into Asian characters. Both of these problems are new since upgrading the iOS.
    Anybody having similar problems, and anybody have a solution? Thanks,
    Brian

    Lady Artemis wrote:
    We upgraded our Mac OS X to a Maverick in order to run a Dragon Program. However, we no longer have a word processing program!  Appleworks is not supported.  Doesn't the upgraded Maverick have a word processing program included?
    Not included.  You can purchase Pages in the App Store, or use a free word processor like Bean or a free office suite like  LibreOffice or OpenOffice (and there's also MicroSoft Office for Mac)

  • Templates opening at 'word processing' format instead of 'page layout'

    I have many templates created before upgrading to iwork-8. When I use them in the latest version they automatically open as a 'word processing' format. But I need them to be in page layout format. Any suggestions?

    Not,
    Before Pages 3, there was no page layout template -- there was only word processing. So Pages open up any document (prior to Pages 3) as a word processing doc. You can't change it. You can only copy the material to a new template.
    But I have to ask -- what do you want to do that can't get done in a word processing doc?
    -Dennis

Maybe you are looking for

  • Satellite X200-219: Can I add a third HDD

    Hi First can I say great laptop (although more frequent display driver updates would be nice :D). So, I was kicking about the Intel Matrix Storage console being nosey, and it turns out I have one unusued port (port 1). Does that mean it's possible to

  • JCO connection error explain

    Hi All, I have a list of JCO which is comes with intallation  of ESS those starting with "SAP_" all of them are green and ping is successfull Apart form these I created few system defined JCO connection to connect to backend for the systems I defined

  • Working with large spreadsheets

    I have recently started using Numbers for my spreadsheets after years of using Excel and have a query. If you need to input data in a cell which is a long way down the spreadsheet or far off to the right the column or row titles can be lost off the s

  • Problem accessing database from form builder

    I have been trying to access my database using form builder ( developer 6.0). Everytime, I try to connect, it displays message saying, no "tns listener", "incorrect driver designation". But I have already configured tns listener using 8i enterprise e

  • Upgrade operating system

    Hi I will upgrade Operating system from HPUX 11.11 to 11v2. Oracle version is 9.2 Does the current oracle version work under upgraded os version? I couldnt find any document related to this in metalink. Thanks