Best way to display a waform through a webservice

Hello

I know my way around text based on well enough programming languages, but I am very new to Labview.
The problem I face is something that I can't seem to know the right information on the internet.

I have a DAQmx Council I would like to show signals of analog inputs on a Web site. The webservice documentation says webservices acutally support waveforms, but if I have a terminal wiring I can't start the webservice.

What I have now is split the x and the values, add them to a table and view them on a Web page using google maps. This works, but does not give me the image of 1 read of course. I know you can do a web streaming VI as well, I could refresh every n seconds, but who don't even give me a continuous stream to the Web page, it would be just to refresh the image...

I'm totally missing something, or is there at - there no easy way to do this in labview? (I'm using labview 2013 btw)

Thank you

Vincent

Advertisement

You might want to take a look at the new community OR here: https://decibel.ni.com/content/groups/web-services

They have posted some examples of how you can use AJAX/javascript to retrieve data from a web service. You are probably right in breaking apart the waveform - javascript/google graphics do not know how to handle the type of LabVIEW waveform data so better to simply send an array of numbers to plot on the chart.

How update you the chart will be to you, your web service may send the plot XY full every time you request or you could just periodically ask for new values and add them to a local on the side buffer client/browser.

If you need faster update rates, you can go to my library of WebSockets (link in my signature).

Tags: NI Software

Similar Questions

  • Is it possible to connect a simple 1 d array to a digital indicator or what would be the best way to display the numeric values of the array on the front panel?

    Is it possible to connect a simple 1 d array to a digital indicator or what would be the best way to display the numeric values of the array on the front panel? Examples or suggestions would be greatly appreciated.

    Thank you

    Tunis

    Thank you Adam, it's originally in a while loop, I placed it in a loop for example, wired County in the for loop and presto, this son of a digital indicator. It works very well. Thanks for the help folks.

  • Best way to display points boundaries of parcel

    WPF C#

    Hi, I need to somehow score points that are off limits on my graph of LinePlotRenderers 4.  This is the data structure:

    Point DataArray []] = new Point [4 256];

    At the moment I think to simply add 4 PointPlotRenderers to display those endpoints (so he total I will have 8 plots).  But I don't know what is the best way to pump data into my chart.  If I still have points outside the limits and dataArray structured as shown above (4 x 256) may be empty, or any combination up to 4 x 256...  What is the best way to pump all that data in my chart?  I mean, I can't join them in the same table 2D because the size of the array of points off limits will not be the same.  If I do the same thing to fill with 0 then my chart will pass to the tent show 0,0.

    Does make sense?  Maybe there is another way to work with limits?

    Thank you

    If you want to use the existing Point[,] rectangular table data source, you could cover the additional plots with NaN values (i.e. new Point( double.NaN, double.NaN ) ), which the graph is not displayed.

    You can also use a Point[][] data source table in stairs, where the berries for out-of-range points can only contain useful numerical values.

    In addition, might be interested in the range of masking slider demo (by using the range of your validation, instead of a slider).

  • Best way to display a report of the hierarchy tree to APEX 4.2

    I have a hierarchical query spans four levels over two tables.  The application works very well and also includes columns hierarchical sum (i.e. the parent displays the sum of all children) using functions.

    I wonder what is the best way to view these data for users?

    At the moment I think I would have a collection now my connection with the edition special 'show' column.  Then I would include HTML to define values correct show/hide and refresh the report when you click on a node.  In my view, this would probably work, but may not be the best way.

    I disassembled my request for necessary columns (no column of the sum) and the tree APEX regions work well for this.  Y at - it a plugin alternative jquery or anything that people with what will give me the directory structure 4.2 native while allowing me to display additional columns with links?

    If I need to provide more info let me know!

    LSDev wrote:

    I'm going to use today to test these ideas, and if they don't work I'll go with the classic report hack, I thought.

    AEC: I'll try the plugin and report back on the question if I can get the links to work.

    The plugin code is clear and simple. However, the links generated HTML text in the query as:

    ...
    '' || apex_escape.html(ename) || '' employee
    ...
    

    does not work out of the box as the plug-in is escaping in HTML output column values:

        -- Render all other columns
        FOR j IN 3 .. l_value_list.count
        LOOP
          sys.htp.p('' || sys.htf.escape_sc(l_value_list(j)(i)) || '');
        END LOOP;
    

    This can be changed to allow the links:

      -- Render all other columns
        FOR j IN 3 .. l_value_list.count
        LOOP
         IF l_value_list(j)(i) not like '' || l_value_list(j)(i) || '');
        END LOOP;
    
  • Best way to display a set of data rows (15 + columns)?

    Hey,.

    I have a set of data rows in a data from a JAVA call control. Rowset contains about 15 + columns of data that I need to display to the user in a grid. What is the best way to achieve this? When I try to drag the control of data lines in the AMX only obvious choice page seems to be seen list but I can't just use some columns in a list view. Or an iterator. I guess I should use iterator somehow, but what is the best way to present this data?

    Manually, you can go and edit the list to add more columns and place fields in them.

    Check out the application workbetter to see some models list (for example, people discovered) sample.

    Oracle Mobile Application Framework samples

    You might want to rethink your design and have a limited set of fields appear in the list, and then when you select a list item data show the rest of the info.

    a very large list is perhaps not ideal for a mobile screen.

  • Best way to display the XML in a database column.

    I have a lot of xml as xmltype.

    The basic data are displayed in a report. If I click on a link in the report that I call a popup page that will display the xml code.

    This XML sometimes exceeds 32K, so I can't use a textarea directly.

    What is the best way to view the xml code?
    I thought maybe a URL region but have not used these before.

    Published by: Keith Jamieson on December 23, 2008 11:38

    Keith:

    Try to view the XML code in a textarea component as in the example below

    htp.p('');
    

    CITY

  • Best way to display the error message to the end user?

    I want a small error message box to the pop-up window on the top layer, when a customer makes a selection incorrect or invalid.

    Can someone help me find the best way to do it?

    attachMovie() allows you to instantiate a library movieclip that contains a dynamic textfield. You can assign to the text property of the textfield object and position the movieclip as needed.

  • What is the best way to display a large number of records?

    I have about 12000 registry to commit to dababase.
    What is the best way to do it?

    Which depends on?

    Today I can't commit so many registry... The dabatase seems hanged!

    Thanks in advance

    Xavi says:

    Today I can't commit so many registry

    It should be possible to insert tens of thousands of lines in a few seconds using an insert even with a complex query as the view object and validation at the end.

    SQL> create table t as select * from all_objects where 0 = 1;
    
    Table created.
    
    Elapsed: 00:00:00.03
    SQL> insert into t select * from all_objects;
    
    32151 rows created.
    
    Elapsed: 00:00:09.01
    SQL> commit;
    
    Commit complete.
    
    Elapsed: 00:00:00.00
    

    I meant RECORDS instead of REGISTERS.

    Maybe that's where you're going wrong, records are to put on the turntables.

  • Best way to display a tree expansion text / image?

    Hello world!  I create my 2nd flash interface.  Displays the chart below:

    When someone clicks on a phase of the cycle, with bland graphics out and a new window will appear.

    I know how to do that in flash.  What I don't know is how best to organize the text in the pop-up window.  Specifically, when someone clicks the sign more (look closely in the 2nd image to see an example of an extended section), I want the space below the text to expand, showing more text or image.  When the user is finished, they click the 'X' to close the enlarged section.

    It is a format of menu tree.  However, instead of simply to develop a little phrase, it spread to show images or an entire paragraph.


    Issues related to the:

    1. Should what code I use to do this?  I guess I can't insert just CSS / Javascript in flash, lol.
    2. I make my window flash player big enough to fit all the elements, in which case the user extends to all sections and wants to see it all enjoy a view? Or is there a way to dynamically increase the vertical size of the flash drive to accommodate the expanded text?  I like how HTML allows you to dynamically extend the height of vertical cell, as more text is added.

    My due date is September 24.  If I can't have the ability to develop / hide sections, I'll show just the window with everything already extended... or I'll just post it in a separate window within the player.

    Yes these are basic effects supported by jQuery. Here is a sample API with these effects and demos page. Just click on an effect and scroll down on the page and it will demonstrate the effect.

    http://API.jQuery.com/category/effects/

    Here's a random example of a batch of expand/retract that I made earlier. In the content area, you can see chart and keys to enlarge / reduce. If you change the model to iVentrilo, you will see a bunch of additional specific controls model drag down. These sub controls have more enlarge / reduce jQuery on them as the change of details on "Customize." Those under the options that you choose to hide the collapse, etc etc. Just an example of nested expand collapse, although not terribly optimized performance, it was a fast job...

    With the CSS absolute positioning and z-index, you can put graphics on other charts, use JS/jQuery to animate the movement, visibility and other properties of any object and easily do what you want (even spinning wheels).

  • What is the best way to display lots of bitmaps

    Hello world

    My application should display a large number of bitmaps on the screen. Oringally, each bitmap is only in one color, but I may have to display bitmaps with textures as well. Now I have more than forty small bitmaps inside the BitmapField on a single screen, and it takes about two seconds to load and make it all. I read the bitmap directly an ARGB table.

    I have made the right choice? Or is there a better way to do it?

    If you complete just one Bitmap with one color, consider the following:

    Bitmap currentBitmap = new Bitmap(width, width); // you are creating squares, aren't you?
    Graphics g = Graphics.create(currentBitmap);
    g.setColor(color.getColor());
    g.fillRect(0, 0, width, width); // now your bitmap is ready - use it!
    

    Should be faster...

  • Best way to display single Pages Vertical and Horizontal spreads

    My client wants to have a version horizontal and vertical of his folio which presents itself as a two page spread and simple pages vertically. When the device is rotated from vertical to horizontal, the vertical two pages should appear and when you rotate from horizontal to vertical the first page of the spread should appear (like the Ikea catalog).

    I know you can do it by this method:Re: 2 vertical Layouts (page and page from right to left) every 1 horizontal provision (2page Spread). The problem is to have 800 articles is a bit messy. If you use a schooling and _v layouts, pages / "spreads" are not correlated when turned. The items will be InDesign.

    Is there a way to either eliminate/customize the generic table of contents How are done if I go with different items reported in the post on the forum or override/customize (I hope with javascript) what an article page is displayed after the rotation if I use _it and _v layouts?

    Thank you.

    An article by pair of pages is the only sensible way to get the job done. You can automate the production in writing (or commissioning) a javascript that would create the article files and place pages and spreads from a basic document, continuous in h and v layouts. You can place them as pdf or better, live under indesign, that allow you to make changes in the basic document and just update the articles). In the end, you would add interactivity directly in the articles.

    As with the table of contents with 800 entries would be dangerous for the health of your readers, you can try "hide TOC" in Folio Producer, leaving only main feature articles (section covers) visible.

  • Best way to display availability for the booking system

    Hello

    I currently have a form with a menu drop-down allowing users to select the number of seats that they would like to book.

    Currently, the field reduced from 10 to 0 in conjunction with the number of seats available.

    The problem is that I add another variable to the scenario whereby the same field will reduce if the parameter 'event' affirm that only a certain number of seats can be reserved per transaction.

    There are 2 variables:

    -$seats_available (that's the number of seats have not yet been booked)

    - $row_prod_detail ['seats_per_booking'] (how many seats is allowed per transaction)

    I tried to add an OR statement in the form field, but it returns 1-5 and 1-10, that everything in the menu dropdown-> resulting in 15 options.

    Here's the code for form field:


    < label for = "quantity" > < / label >

    < select name = "quantity" id = "quantity" class = "quantity_dwfield" >

    < option value = "-1" selected = "selected" > amount seats < / option >

    < option value = "-1" > - < / option >

    <? PHP if ($seats_available < = 10 | $row_prod_detail ['seats_per_booking'] < = 10) {? >}

    <? PHP if ($seats_available == 0 | $row_prod_detail ['seats_per_booking'] == 0) {? >}

    < option value = "" > No. seats left! < / option >

    <? PHP}? >

    <? PHP if ($seats_available == 1 | $row_prod_detail ['seats_per_booking'] == 1) {? >}

    < option value = "1" > 1 < / option >

    <? PHP}? >

    <? PHP if ($seats_available == 2 | $row_prod_detail ['seats_per_booking'] == 2) {? >}

    < option value = "1" > 1 < / option >

    < option value = "2" > 2 < / option >

    <? PHP}? >

    <? PHP if ($seats_available == 3: $row_prod_detail ['seats_per_booking'] == 3) {? >}

    < option value = "1" > 1 < / option >

    < option value = "2" > 2 < / option >

    < option value = "3" > 3 < / option >

    <? PHP}? >

    <? PHP if ($seats_available == 4 | $row_prod_detail ['seats_per_booking'] == 4) {? >}

    < option value = "1" > 1 < / option >

    < option value = "2" > 2 < / option >

    < option value = "3" > 3 < / option >

    < option value = "4" > 4 < / option >

    <? PHP}? >

    <? PHP if ($seats_available == 5: $row_prod_detail ['seats_per_booking'] == 5) {? >}

    < option value = "1" > 1 < / option >

    < option value = "2" > 2 < / option >

    < option value = "3" > 3 < / option >

    < option value = "4" > 4 < / option >

    < option value = "5" > 5 < / option >

    <? PHP}? >

    <? PHP if ($seats_available == 6: $row_prod_detail ['seats_per_booking'] == 6) {? >}

    < option value = "1" > 1 < / option >

    < option value = "2" > 2 < / option >

    < option value = "3" > 3 < / option >

    < option value = "4" > 4 < / option >

    < option value = "5" > 5 < / option >

    < option value = "6" > 6 < / option >

    <? PHP}? >

    <? PHP if ($seats_available == 7 | $row_prod_detail ['seats_per_booking'] == 7) {? >}

    < option value = "1" > 1 < / option >

    < option value = "2" > 2 < / option >

    < option value = "3" > 3 < / option >

    < option value = "4" > 4 < / option >

    < option value = "5" > 5 < / option >

    < option value = "6" > 6 < / option >

    < option value = "7" > 7 < / option >

    <? PHP}? >

    <? PHP if ($seats_available == 8 | $row_prod_detail ['seats_per_booking'] == 8) {? >}

    < option value = "1" > 1 < / option >

    < option value = "2" > 2 < / option >

    < option value = "3" > 3 < / option >

    < option value = "4" > 4 < / option >

    < option value = "5" > 5 < / option >

    < option value = "6" > 6 < / option >

    < option value = "7" > 7 < / option >

    < option value = "8" > 8 < / option >

    <? PHP}? >

    <? PHP if ($seats_available == 9: $row_prod_detail ['seats_per_booking'] == 9) {? >}

    < option value = "1" > 1 < / option >

    < option value = "2" > 2 < / option >

    < option value = "3" > 3 < / option >

    < option value = "4" > 4 < / option >

    < option value = "5" > 5 < / option >

    < option value = "6" > 6 < / option >

    < option value = "7" > 7 < / option >

    < option value = "8" > 8 < / option >

    < option value = "9" > 9 < / option >

    <? PHP}? >

    <? PHP if ($seats_available == 10: $row_prod_detail ['seats_per_booking'] == 10) {? >}

    < option value = "1" > 1 < / option >

    < option value = "2" > 2 < / option >

    < option value = "3" > 3 < / option >

    < option value = "4" > 4 < / option >

    < option value = "5" > 5 < / option >

    < option value = "6" > 6 < / option >

    < option value = "7" > 7 < / option >

    < option value = "8" > 8 < / option >

    < option value = "9" > 9 < / option >

    < option value = "10" > 10 < / option >

    <? PHP}? >

    <? PHP}? >

    <? PHP if ($seats_available > 0 | $row_prod_detail ['seats_per_booking'] > 10) {? >}

    < option value = "1" > 1 < / option >

    < option value = "2" > 2 < / option >

    < option value = "3" > 3 < / option >

    < option value = "4" > 4 < / option >

    < option value = "5" > 5 < / option >

    < option value = "6" > 6 < / option >

    < option value = "7" > 7 < / option >

    < option value = "8" > 8 < / option >

    < option value = "9" > 9 < / option >

    < option value = "10" > 10 < / option >

    <? PHP}? >

    < / select >



    Any help would be much appreciated!

    I've never actually created a loop in my life! I know; disappointing.

    How would I go to do this? I saw a few tutorials, but none of them does solve several variables (the show something like 0-10, but not 10-0 as a default and change if one of the variable becomes less than 10)

    The loop must:

    • Show 1 to 10 if BOTH $availability AND $seats_per_person are MORE than 10
    • Display 1-x if EITHER $availability OR $seats_per_person are below 10 (Eg. If $seats_per_person is limited to 3, then the loop will go from 1-3 If $availability is 1, then regardless of the cap $seats_per_person (out of 3) he only show 1)

    EDIT:

    That's what I got. It seems to work, but I'm doing something I shouldn't? like formatting / organizational wise?

  • Best way to display a magazine on a website which is also mobile friendly

    Hello world

    We are conducting currently a new website built and one of the key features we want to put on the site's layout magazine style articles.

    Of course, the main problem is the difference in size of say a mobile computer vs. A full page of text on a laptop would be difficult to read on a mobile device. So, I guess on a mobile device, the text would need to adapt to the width and then the user would scroll down. This would mean while a magazine-style layout wouldn't be possible.

    Someone overcome this obstacle and examples would be great.

    Thanks for the help

    Andy

    You pretty much put the nail on the head, you can't have a magazine on a handheld device layout, it will not work.

    Mobile design is not only scaling of things down to screens more small adjustment. The spacing and the size of the links must change to be more "finger friendly", the text should be put to a comfortable size read without having to constantly "pinch and flick" and in many cases, images and other elements are just removed entirely.

    All this can be done using CSS Media Queries to control your page works once you drop of a given size. On large screens and tablets, the css you are using can very easily give a magazine layout. Once you pass a certain "point break" you need to simplify your layout so mobile users can quickly and easily get the information they want.

    A few pages to find the basics using CSS to control your layout and questions from the media...

    http://www.w3schools.com/CSS

    Responsive Web Design Media Queries

  • What is the best way to have an indicator that scrolls the content of a table that is updated during the execution of a program?

    I have a program that runs continuously. During this time the errors are produced and I store them in a table. What is the best way to display the table in a window that the user can scroll upwards or downwards, while the program is running?

    Thank you.

    Hi chuck,

    If allowing you to feed two tables to the table you will see also all of these channels in the table

  • Best way to MouseDrag several objects around a scene.

    So I'm having a little trouble tried to drag the 3 s Box in a scene.

    Originally, I had it in place where everyone was transferred to an x, is translated Z, then assign a DRC. Then I thought that instead of the click of the mouse on the box itself, I'd be at the root. From there, I would look through all the root.getChildren (then) that see if it contained the x, position y.


    So to know who my children root I clicked on I did .setOnDragged of root.getChildren.get (current) to figure out that it was dragged.

    The code itself has worked with the exception of find which box I was.

    The question that I find, is that I only PositionX, getSceneX and getScreenX. SceneX and X produce the same value and ScreenX is useless. I then tried to do event.getX () - root.getLayoutX () contains the function works, but it did not work and would require me to change many things. getLayoutX() a = 0, since I did not indicate the location of the root, only the locations of the box.

    From there on, I was wondering if there was a better way. Then I thought maybe to loop through each element in my root or in an arrayList (which is what I used, but realized the root.getchildren should work like the original) but the problem is he keeps only save one last list, then just shut up and that's it.

    So I want to know, what would be the best way to understand what object am I?

    Initially, I use contains (Swing) but Swing is different, and as we can save mouseEvents to each node, should we not we know now exactly what we we are, while making a loop in each of them? I think it's easier than having to check each contained unique mouse position, especially if I have 10000 points to check?

    Edited by: KonradZuse March 18, 2013 20:05

    KonradZuse wrote:
    Thanks for the help!

    I can now draw a box, so there is no question about it, just that I have several boxes and I need to be able to drag each without knowing the total.

    I have 1000 boxes, or 5, I can't save a mouse to each event

    Why not?

    so I thought I would go, and then I realized after I posted this I could use the function 'Mouse_ENTERED' or 'Mouse_PRESSED' field and then move each individual, but it would still be a loop in each of them and then find who's who.

    I do not see that your example below has a certain meaning.

    I have never seen sphere.addEventHandler (MouseEvent.ANY, new DragShapeHandler()); so thank you for this tip.

    Buy it, you can also do

    DragShapeHandler handler = new DragShapeHandler();
    box.setOnMousePressed(handler);
    box.setOnMouseDragged(handler);
    

    If you prefer the convenience methods. (It is important that convey you the same reference for both).

    >

    It seems that the "DragShapeHandler" will basically get the source node and then move it? If we really do not need to know which.

    OK-ish. It uses event.getSource () to determine the source of the event (i.e., the node on which the event occurred). But you might as well set a field in the DragShapeHandler class with the node that had to be moved:

      class DragShapeHandler implements EventHandler {
    
        private double sceneAnchorX;
        private double sceneAnchorY;
    
        private final Node nodeToMove ;
    
        DragShapeHandler(Node node) {
           this.nodeToMove = node ;
        } 
    
        @Override
        public void handle(MouseEvent event) {
          if (event.getEventType() == MouseEvent.MOUSE_PRESSED) {
            sceneAnchorX = event.getSceneX();
            sceneAnchorY = event.getSceneY();
          } else if (event.getEventType() == MouseEvent.MOUSE_DRAGGED) {
            double x = event.getSceneX();
            double y = event.getSceneY();
            nodeToMove.setTranslateX(node.getTranslateX() + x - sceneAnchorX);
            nodeToMove.setTranslateY(node.getTranslateY() + y - sceneAnchorY);
            sceneAnchorX = x;
            sceneAnchorY = y;
          }
        }
      }
    

    and then:

    ...
    box.addEventHandler(MouseEvent.ANY, new DragShapeHandler(box));
    ...
    sphere.addEventHandler(MouseEvent.ANY, new DragShapeHandler(sphere));
    

    I slightly prefer the getSource(), I think that, like the box.addEventHandler (..., DragShapeHandler (box)) new; is a little unnatural. Without doubt, however, this version is more robust (it's more type-safe because you are forced to specify a node to drag, while the source of the event could theoretically be any object).

    >

    That's a lot of sense that you're making a new node and just dragging it as such. so I can creater add a picture of the area between them and I just needed to understand the point of click, to get the box then he would know to do hmm...

    Should really "to display the box" as stated above. Just register a Manager with any node you want to be able to drag and the Manager he will drag.

Maybe you are looking for