Best way of including timing in a waveform graph?

Hello all,
I've been toying with a number of different ways to do this, but so far I haven't had all that much luck. I've posted a picture so you can see what's going on. All I have is 4 plots that need to be plotted with accurate timing information on the x-axis. I guess I'm just wondering what the best way to go about this is. This method seems to be the most cluttered and messy that I've done, but is the only one I've gotten to have the actual correct timing info on the graph. I would put a wait in the loop, but I need to acquire this data as fast as possible. Thanks for any help!
Geoff
Attachments:
Graphing Test.jpg ‏74 KB

The display options you have chosen are OK on their own.
If you're looking to get more speed out of the code, try only graphing the data every 10 iterations or so. You can save the processed data (your waveforms) in a shift register where they can then be appended every 10 iterations.
This will obviously not clean up your code. The best way to clean up your code might be to simply throw the conversions you're performing into a sub-vi. Or create a time input for your "meters" VI and have thr processing done there with correctly-scaled values being outputted.
Hope this helps
Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)

Similar Messages

  • What's he best way to include Adobe PDFs on my blog?

    What's he best way to include Adobe PDFs on my blog?
    I create worksheets as a teacher and would like to share them from my blog. Currently I am linking to Scribd etc to share PDFs. If I upload the worksheets as an image is there a way to adjust the size/resolution of the PDF for easier viewing? 
    Thanks!

    PDFs are just files. Can you upload files to your blog space? If yes, just upload the PDFs then, in a blog entry, provide the web link (URL) for each file (PDF).
    Or, place the PDFs into your free acrobat.com "files" storage (5GB free). You have one as you have an Adobe ID (needed to make your post here eh).
    https://cloud.acrobat.com/
    You can have acrobat.com provide a "share" link to the PDF. Place that into a blog entry.
    Or - same idea as above (use a "file share" service) -- Microsoft's OneDrive, Adobe's Creative Cloud, Google drive, DropBox, others ...
    Be well...

  • What is the best way to include an xml file in JSP?

    I have a jsp page that I need to include an xml file. The xml file
              uses an xsl to render the file. What is the best way to include the
              xml file and still maintain the structure of the style sheet?
              Thanks
              Jennifer
              

              The best way is using the tag lib. If you cannot, but you can use JAXP, you can
              try
              javax.xml.transform.Transformer.transform(Source xmlSource,
              Result outputTarget)
              throws TransformerException
              You construct the transformer with you xsl, use you xml file or DOM to form xmlSource,
              and use JSPWriter "out" to form outputTarget (StreamResult). But if your JSP page
              generates the xml itself, tag lib is the only way.
              [email protected] (Jennifer) wrote:
              >[email protected] (Jennifer) wrote in message news:<[email protected]>...
              >> I have a jsp page that I need to include an xml file. The xml file
              >> uses an xsl to render the file. What is the best way to include the
              >> xml file and still maintain the structure of the style sheet?
              >>
              >> Thanks
              >>
              >> Jennifer
              >
              >Or is there a way to parse the xml file with the jsp page to display
              >the information. I cannot use the Java Standard Tag Libraries as the
              >version of iplanet we are running does not support the JSTL
              >
              >Thanks
              >
              >Jennifer
              

  • Best way to include 1-800, 866, 877, 888 into Device/line approach to CSS

    I am running Call Mgr 4.1.3. Due to the number of small remote sites that we are expanding to, I have been using the Device/Line approach to Class of Service to minimize the number of CSSs and PTs. I used the textbook method of defining BlockLocal, BlockLD, BlockIntl, Block nothing. My LongDistance Translation Pattern is 9.1[2-9]XX[2-9]XXXXXX. This blocks 800, 866, 877, and 888 in my BlockLD partition. What is the best way to include these 8xx series toll free numbers into the Device/Line method so that they are included into the COS that allows local calling? My guess is that in the 9.1[2-9]XX[2-9]XXXXXX translation pattern assigned to the BlockLD partition, I would add 9.1800XXXXXXX, 9.1866XXXXXXX, etc, translations and click "route this pattern" and associate it also with the BlockLD partition.
    Is that the correct approach - or is there a better approach? Thank you.

    Thank you so much for the fast reply Preran. But for me the tricky part is to implement the html code from the sample page into actions within Edge and to those images I want to be affected.
    The html-code on the sample file is;
    <div id="cubeCarousel">
        <div id="cubeSpinner">
            <div class="face one">
                 <img class="img_slider active" src="img/black.jpg">
            </div>
            <div class="face two">
                <img class="img_slider" src="img/blue.jpg">
            </div>
            <div class="face three">
                <img class="img_slider" src="img/purple.jpg">
            </div>
            <div class="face four">
                <img class="img_slider" src="img/red.jpg">
            </div>
        </div>
            <div class="nav">
                <div class="left arrow"></div>
                <div class="right arrow"></div>
            </div>
    </div>
    What I don't understand is how write this code in Adobe Edge so the jQuery scripts connect to images in my Edge composition.
    Is there any guidelines for the syntax and how I should write these lines in Edge, or any tutorial that show this? Or do you have anu code example that I can use as "dummy"?
    BR
    /Bengt

  • Best way to include javascript-script into different struts-pages

    Hi,
    I'm running a struts-based webapplication using the tiles-templates for my layout. Now I have to use some javascript-code for a pop-up window and another javascript for tracing on multiple pages but in different combinations. As I do n't want to copy-paste it on every page, but put it on a single place for better maintenance I'm wondering what would be the best way to do this together with the struts-logic.
    I thought about the following options:
    1.) Using the "template:put" feature like this:
    <template:put name='js' content="/myJavascripts.jsp"> I don't think this would be a good option, as I always have to include the whole javascript and I cannot distinguish between my two different javascripts
    2.) Using the template:insert feature like this:
    <template:insert template="/myJavascripts.jsp"/>. This is a lot better, as I can split my two javascripts into two different files and can always decide, which one to include with the template:insert tag. But I'm not sure, if this is conforming with the struts-concept, as I do not use any template:put or template:set tags
    3.) Using simple jsp:include or <%@ include ... %> tags.
    This would be the easiest way to include my pages with <%@ include file='/myJavascripts.jsp' %>. Same advantages like template:insert but I don't need the additionally features of the template:insert-tag. But still the same question: is this the concept of struts? Or will I become any difficulties with this concept later??
    Any recommendations or further ideas are greatly appriciated.
    Thanx for your help
    Thomas

    Getting PDFs to download is fairly easy and the method is described here.....
    http://www.iwebformusicians.com/WebMusic/PDFs.html
    To get multi page docs to display in the browser requires the use of Google Docs viewer, ISSUU or some such thing....
    http://www.iwebformusicians.com/PromoPage/ISSUU.html
    Safari is the only browser I know of that will display PDFs in an iFrame without a plugin.

  • Best way to pass an array of waveforms inbetween VIs

    In my VI I am developing I have multiple data sources that output a single waveform. I group these waveforms togeather to make a wave form array. The user selects which waveform they would like to display and they are displayed on a graph on a different form. Right now I have each different graph VI generating the whole array and displaying the selected element.
    My question is, this seems to be not efficent because I am generating data in 3 spots. I would think it would be better to generate it in one spot and then pass only the need data to the three graph VIs. What is the best way todo this? A global variable? Queue? Any suggestions?

    You're probably tired of hearing me say this, but the global function idea is the best.
    A global variable makes a COPY of the data each time you read it. That takes time, and memory. If each of 3 window reads the global, and picks out a channel, then you've made 3 copies of the original data. Depending on your data size, that may or may not be a problem.
    A queue means that once you read the data, it's lost from the queue. If window A reads from the queue, that data chunk is not in the queue any longer, so Window B can't read that same data.
    If the main window generates the data and deposits it in a global function, then each window can ask the global function for a specific channel to display.
    DATA STORAGE.vi:
    Inputs:
    WRITE/read (bool
    ean)
    DATA IN (2-D array of DBL, for example)
    Channel Index (I32)
    Outputs:
    DATA OUT: 1-D array of DBL (or waveform, maybe).
    Code:
    WHILE
    If WRITE/read
    Store DATA IN in a shift reg.
    else
    Pass Shift reg IN to Shift reg Out.
    Pick out channel via CHANNEL INDEX
    Pass selected data to DATA OUT.
    Loop NEVER.
    The purpose of the loop is just to have a shift reg. It doesn't really loop - it executes once per call.
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

  • Best way to include appendices to pages document

    I am trying to transition from using MS office (for over a decade now) to using the Apple suite of apps.
    I am in grad school so I write a lot of papers. I am working on one now that requires appendices at the end. I am working on the paper in sections right now (main body, appendices 1, 2, 3, etc..) and was curious what the best way to do something this is in pages?
    Can you create different sections within one one document instead of simply copying and pasting the appendices at the end of my document? That would be a big hassle, going back and forth between different files. Like I said, I would like to be able to keep them all on one document.
    Any ideas? Do you think it's perfectly doable in grad school to use only Pages for your word processing needs? (I've had to many crashes with Office on my mac, and am ready for the full change over.) Any advice, or suggestions?

    Rick
    I am not a real user of Word but I can give you some of the obvious things that Word has that Pages does not.
    1. More layouts: Draft/Web/Outline/Print/Notebook/Publishing
    2. A real desktop in Publishing that you can move objects to and off that surrounds the page
    3. Themes which set basic fonts and color schemes
    4. Non-printing characters
    5. Much bigger collection of Objects/Shapes
    6. Sophisticated diagramming tools (SmartArt)
    7. ClipArt
    8. Symbols palette
    9. Libraries
    10. Citations
    11. Scrapbook for clippings
    12. Bilingual dictionaries with translation service
    13. Projects, a way of co-ordinating your files across MsOffice software including Entourage to merge/create bulk email
    14. Templates for tables
    15. WordArt a way of altering text decoratively
    16. Autofit
    17. Macros
    18. Labels/Envelopes/Letter Wizzard/Pre-Printed
    19. Format Painter to copy apply formatting
    20. Inbuilt Sorting
    21. A Work Menu
    22. Multiple (customizable) Toolbars
    23. Much bigger and extendable Autotext feature
    24. Much bigger selection of Auto-shapes
    25. Line Numbering
    26. Much bigger and more flexible T.O.C.
    27. Much wider choice of Hyperlinking both within and between documents, email and web pages
    28. Much bigger selection of languages
    29. More flexible document protection
    30. Customizable keyboard
    31. Document tiling
    32. Audio notes
    33. Proofing tools
    34. Much bigger preference choices
    35. 3D objects
    36. Multiple Master pages
    37. Varied page orientation and sizes within the same document
    38. Ability to swap images
    39. Hyphenation control
    40. Open XML
    41. Automator support
    42. Wider range of document formats
    43. Greater compatibility with PC formats
    44. Direct link to user community
    45. Autosave/Recovery
    This was what a quick browse revealed. I suggest you try both sets of applications and explore, as I have done, for things that you find interesting.
    Peter

  • Best way to include mathematical formulas?

    Hi all,
    my primary interest in possibles uses of iBooks Author are textbooks with heavy load of mathematical formulas. Without serious testing there appear some ideas how it may work.
    Folks, did anyone made experiences (especially with the final appearance on the ipad) including formulas both inline the main text and in individual paragraphs? Any idea about automatic referencing/numbering?
    Any comments are very appreciated. Thanks for your help!
    hwg_ros

    I don't know which is the best way but there are a couple that may work for you. 1 - check out the movie on this demo page (a description of how it was created is included) and 2-read Tutorial #18 and this example of the method.
    OT

  • Best way to include a jpg file in a project (where to locate the file)

    Inside of my main VI - I am "building a path to the current VIs" directory where I have a jpg file. This jpg file displays fine when running this VI.  To do this I get the current path, strip the VI name and then add the jpg name to the path.
    Now when I build an exe file and run it the jpg is not displayed.  In the build specification it appears to force the jpg file to be in the support (or data) directory.   Because of this it can no longer find the jpg when running in exe form.  I also notice that the path returned when running a exe includes the VI name as well as the exe name.
         My question is what is the correct way to set up a path to this jpg (and perform an exe build) that will work both when I run the VI normally and when I use it as an exe?

    See e.g.: http://forums.ni.com/ni/board/message?board.id=170​&message.id=270985#M270985
    Another option would be to add the image data as a diagram constant inside the VI if it the image should be an integral part of the VI. .
    LabVIEW Champion . Do more with less code and in less time .

  • What is the best way to include external files in an application?

    I am developing a vocabulary-training program (Adobe AIR using Flex Builder 3). Asks you what an equivalent of a czech word is in english and the other way. I am storing the "dictionaries" in external XML files. I would like to include about twenty of them in the installation. So far I just had them in the applicationDirectory, but now, I added an editing feature and I ran across the fact, that I cannot write into the applicationDirectory. So I figured the most intuitive place for the dictionaries would be in the documentsDirectory/name of program. However, how do I tell the AIR installation to make the according folder and include the files?
    How do I do this, or what do you think is a better solution? Thanks!

    If this post answers your question or helps, please mark it as such.
    I'm creating an application that stores data in the "applicationStorageDirectory".      
    Mac storage directory is <appData>/<appId>/Local Store/
      where <appData> is user preferences folder, typically /Users/<user>/Library/Preferences
    Win: storage directory is <appData>\<appId>\Local Store\
      where <appData> is typically C:\Documents and Settings\<userName>\Application Data
      Note: Vista uses "junctions", which behave like shortcuts but look just like regular folders.
        It is not possible to access them, and any attempt to do so will give you an "Access Denied" error.
        Here is the real folder location:
          C:\Users\<userName>\AppData\Roaming\ContactManager\Local Store\contacts.xml
    Linux: <appData>/<appID>/Local Store/    where  <appData>  is  /home/<user>/.appdata
    Here is how to code to read from and write to a file there in an AIR app:
    var contactsFile:File;
    var contactsXML:XML;
    var contactsXLC:XMLListCollection;
    var stream:FileStream;
    contactsFile = File.applicationStorageDirectory;
    contactsFile = contactsFile.resolvePath("contacts.xml");
    stream = new FileStream();
    if (contactsFile.exists) {
        stream.open(contactsFile, FileMode.READ);
        contactsXML = XML(stream.readUTFBytes(stream.bytesAvailable));
        stream.close();
        contactsXLC = new XMLListCollection(contactsXML..contact);
    }else{
        var outputString:String = '<?xml version="1.0" encoding="utf-8"?>\n<contacts>\n';
        for each(var xml:XML in  contactsXLC){
          outputString += xml.toXMLString();       
          outputString += "\n";
        outputString += "</contacts>\n";
        outputString = outputString.replace(/\n/g, File.lineEnding);
        stream = new FileStream();
        stream.open(contactsFile, FileMode.WRITE);
        stream.writeUTFBytes(outputString);
        stream.close();

  • Best way to include drawing in an email?

    When writing emails, I often need/want to draw something to illustrate what I am talking about. Lately it was a rough plan of my house to show the rooms. Sometimes it could be an article of clothing. Nothing professional or precise.
    I find that drawing with a mouse has a lot to be desired and would much prefer drawing with a stylus right on the screen, but failing that, I wouldn't mind using my fingertips. I do not want to use some  other gizmo "in addition to" in order to draw something for the email or notes.
    To do this, is the iPad my best bet? I can see myself ending up sending emails on my iPad if this is true.
    Thank you for any enlightenment on this.
    -L

    Meg, I have thought about it overnight and am leaning towards getting the iPad2 with the hope that it might have some apps that let me incorporate my drawings, notes, and audio files into Apple Mail.
    I have been watching some iPad2 videos on the Apple site and  it gives one the impression that the person is writing words and drawing pictures with his fingertips right onto the iPad2 screen. Am I wrong in thinking this?
    My desire is to be writing an email to someone and illustrating whatever I am trying to describe right on top of the email. Is that possible? Or would I have to do this in some other way? Would I have to draw a picture of, for example, a house plan or a new gizmo, and then attach it to my Apple Mail?
    I downloaded AudioNoteLITE for my iMac last night and it is great, but it does not allow for drawing. It does allow for typing and recording sound. Then one can put the file into an email.
    So are there any other solutions in addition to Bamboo Paper??
    -L

  • What's the best way to include many files into a website?

    I have a several hundred documents that I would like to load onto my website. I'm trying to find a faster way than hyperlinking them all one by one. Right now they are in pdf format but that can change. I'm hoping for the end result to be one page (possibly with subpages) with the different links for the documents on them. The visitor doesn't necessarily need the ability to download them, just the ability to view them. Is there a faster way to bulk or batch load multiple files into a site? Thanks in advance.

    Getting PDFs to download is fairly easy and the method is described here.....
    http://www.iwebformusicians.com/WebMusic/PDFs.html
    To get multi page docs to display in the browser requires the use of Google Docs viewer, ISSUU or some such thing....
    http://www.iwebformusicians.com/PromoPage/ISSUU.html
    Safari is the only browser I know of that will display PDFs in an iFrame without a plugin.

  • Best way to draw (not plot) on a graph?

    Hi -
    I need to alter the appearance of a graph somewhat. The user doesn't want any full grid lines, but he does want a small crosshair (like a plus sign) drawn in each of the four quadrants. The CanvasDrawLine() function would be good for this, if it worked on graph objects, but it doesn't. I guess I could use bit files, but...is there an easier/better way?
    EDIT: after reading a little more on bit maps, it's not clear to me that these will work, either. So...any other ideas at all?
    Thanks.
    Solved!
    Go to Solution.

    Going on the line of wolfgang suggestion, you could also have two graphs one on top of the other. The lower one can have all fixed elements (scales, axes, crosses and so on), while on the upper one, with transparent background, you can draw / erase your data plots. As long as you keep axes for both graphs with the same scale the system works like a charm, and you don't need to struggle with pixel conversion between the graph and the picture.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • What is the best way to detect peak to peak voltage for the following waveform ?

    I have two channels of waveform train ( ie W1 & W2 ), each of them is of frequency 64KHz.
    Each channel of waveform train consists of sinewaves of 64KHz of fixed amplitude, say 2 V pk to pk, running for 100 cycles, and then rest for 0.15 sec continue with a sinewave of 64KHz of another fixed amplitude, say 1 V pk to pk running for 100 cycles as well, and then rest for 0.15 sec. The above cycle considered as a complete waveform cycle.
    The above complete waveform cycle repeat for 10 cycles and rest for 1.3 sec and repeated itself.
    From the two simulated waveforms (ie W1 & W2), I need to detect and measure the peak to peak voltage of each of the 100 cycles sinewaves.
    What is th
    e best way to achieve that ?

    The waveform is free running as described above, ie sinewave running at approximate 64 KHz for about 100 cylce at fixed amplitude, say 2V ( actual number of cylce unknown, could slightly more or sightly less, depanding on the machine ) then rest for approximately 0.15sec, another sinewave running at approx. 64KHz at fixed amplitude, say 1.5V ( actual number of cylce unknown, could slightly more or sightly less, depanding on the machine ) running for approx 100 cycles continue...then rest for approx. 0.15 sec .....the above waveform repeated itself and free running .....I would like to capture or trigger each of the 100 cycles sinewave (rest time of 0.15 sec between each approx100 cycles of sinewave) to measure the peak to peak voltage and st
    ore them in array for analysis purpose....what is the best way to achieve that as I do not have time reference, I only know that the waveform is running at the pattern described above.
    Thanks for your help !

  • Best way to draw thousands of graphic objects on the screen

    Hello everybody, I'm wanting to develop a game where at times thousands of graphic objects are displayed on-screen. What better way to do this in terms of performance and speed?
    I have some options below. Do not know if the best way is included in these options.
    1 - Each graphical object is displayed on a MovieClip or Sprite.
    2 - There is a Bitmap that represents the game screen. All graphical objects that are displayed on screen have your images stored in BitmapData. Then the Bitmap that represents the game screen copies for themselves the BitmapData of graphical objects to be screened, using for this bitmapData.copyPixels (...) or BitmapData.draw  (...). The Bitmap that represents the screen is added to the stage via addChild (...).
    3 - The graphical objects that are displayed on screen will have their images drawn directly on stage or in a MovieClip/Sprite added to this stage by addChild (...). These objects are drawn using the methods of the Graphics class, as beginBitmapFill and beginFill.
    Recalling that the best way probably is not one of these 3 above.
    I really need this information to proceed with the creation of my game.
    Please do not be bothered with my English because I'm using Google translator.
    Thank you in advance any help.

    Thanks for the information kglad. =)
    Yes, my game will have many objects similar in appearance.
    Some other objects will use the same image stored, just in time to render these objects is that some effects (such as changing the colors) will be applied in different ways. But the picture for them all is the same.
    Using the second option, ie, BitmapDatas, which of these two methods would be more efficient? copyPixels or draw?
    Thank you in advance any help. =D

Maybe you are looking for