make a graph in real time of 1 DBL value at a time, using a loop for

I have a somewhat interesting programming task where I have the following situation: (I have attached a mac version of vi Labview 2013)

-Using a patented (pre-made and uneditable) sub - vi, who receives a value of 0 or 1 as input and reads off a single measure, whenever he receives 1 while a value of 0 is necessary to 'reset' of the vi to rehearse a new measure.

-I would like to run this sub - vi repeatedly in a loop For each value of "measure" are sent to a curve of waveform to give a direct value (real time) for the graphic to display.

-As it is, I have a vi file that simulates action in a loop but built in a 1 d array to get exuent values sent a waveform curve.

-I don't know how to make a real-time graph which receives 1 value double both.

-In addition, I want only every 2nd value sent to the loop for, but I already have several ideas on how to do it.  First of all, I am concerned about the target in real time.

Kyle Shiel

A graphic, not a graphic, allows you to update a point at a time. It would be inside the loop for. update the chart or not, you can use a select statement or the structure of the case.

These are pretty basic functions in LabVIEW. Please see the free tutorials.

Tags: NI Software

Similar Questions

  • Get the frequency of a graph in real time of the waveform trace

    Hello

    I want to get the frequency of the graphics path in real time. The data comes from a connected to an Arduino UNO ADXL345. I use LINX to read data.

    I separated given x, y, z in order to plot separately and later to get their respective frequencies as well.

    Here is an excerpt of my VI as well as the front panel.

    I used a the Measurment file for each axes entry so I have a copy of the data.

    Before posting, I tried the LabView Spectral tutorial first. But it's different from what I want to happen because you know the exact frequency in this tutorial.

    I have also attached my VI.

    Thank you!

    If all you want is to know the spectral content of a signal in the time domain, there are a number of examples show how to do it. I would start by looking at the functions of the FFT.

    Mike...

  • Real-time using RS232 communication

    Hi all

    I want to read a serial port at all times. Transmission speed is 2400. All the 1 sec 5 data packets are sent by the transmitter (hardware). Data package consists of 4-byte ASCII character as-A, d1, d2, d3. . Where A is used for synchronization of the data set, because d1, d2, and d3 are random and should be isolated for furthur v.f.. Here I am attachng my VI.

    Problem:-instead of get 5 packs in 1 second I'm receiving only 2 packages in a second.

    Questions:-ground for above problem? Y at - it another way to do it in real time. ? improvements to the VI Suggetions.

    Please answer for above post your answers will be a great help for me. Please do not hesitate to ask any necessary clarification.

    Thank you!

    @smercurio: Thnak you for your response. You are correct that globle variables were used to transmit the data received from other loops. As you say I will use local variables instead of globle variable.

    In addition, I would like to indicate more clearly that I forgot to mention that each byte 4 data are transmitted in the interval of 200ms. This 200ms includes the time required to transmit also the 4 bytes.

    Earlier, my second loop has been integrated into the 1st loop itself. But since I was getting only 2 packages instead of 5 in one second, I removed this reflection to loop 1st form it might take time for the loop iteration. But stil problem is not solved.

    Do you not assign data received by globle variable is taken on time?

    Note * I have varified 5 packet rate / sec using Terminal Server.

  • XY-graph, constant real time of 30 minutes interval

    I want to create an XY Chart with a time interval of 30 minutes. X - minimum scale should be the time that the program starts and the X-range maximum 30 minutes from starting point. Example: From 10:00 program: the chart must be on the scale of 10:00 to 10:30, no autoscaling. After 30 minutes, I want to from 10:30 to 11:00.

    Someone knows how to do this?

    Right click on the XY graph and play with the properties and you should be able to achieve what you want.

    This is the programmatic approach to do this.

    Also atatched is the code for the same (registered in the 2012 version of LV).

  • Move the data to the left and to the right on the graph in real time

    I have a 1 d table X and Y Bay 1 d of the XY graph.

    I want to move the chart along the x axis. I not want to act as if I'm grabbing the plotted values and moving them.

    I thought that would be simpler to add a slider value to each of the X 1 d elements of the array. The value keeps adding when I move the cursor is positive and subtracting when the cursor is negative. I want the graphic to move left or right when the cursor moves.

    Any ideas?

    Thank you!

    Michael,

    Here's what I found works. It is much simpler than what you suggested, but there may be a few errors that can result from programming immproper. I'm not sure.

  • data acquisition in real time using the module sim900d (not arduino0

    Hello

    I'm doing my final year project. I'll send the data from a remote location using sim900d for the other module (sim900d) connected to my laptop. Now, I need to import data acquired through sim900d connected to my laptop in Labview. But I don't know how. Kindly guide me

    I looked for it and thus to find a link that uses the serial port to send to commnads

    http://www.codeproject.com/tips/583315/using-SerialPort-and-at-commands-for-querying-cell

    so now send orders AT serial number is easy. first of all examine the emitting part. for this you need VI config series VISA and VISA series write VI. You can serach these VI by right click I your new VI block diagram and press search on the top left corner. Here you type the serial port and you will get a list of the VISA series live.

    Here is also a link to or

  • Register the event on the target in real time using LabVIEW 2012

    Hi all,

    It seems that LabVIEW 2012 RT does not support user events. Screws are not in the range of function and the help of LabVIEW says that it is not supported. In LabVIEW 2010, everything seems fine.

    That's happened? We need this feature.

    Thanks in advance.

    Hello

    Thank you very much. We will use this workaround, which is not a lot of work if you know what to do. Develop a VI on workstation and the execution of switching left target to the low edge also implements the correct block as well as feature diagram objects.

    This can be fixed in the next patch-Patch because a lot of users could by irritated by this behavior?

    Thank you

    Tyler

  • Unable to see the real time data to display for an access database



    I am using the following:

    ASP.net c#
    Server 2003 Sp2.
    PS CS3
    Access db

    I am trying to connect to a 'local' database on my server.
    I use the database connection string"

    Provider = Microsoft.jet.OleDb.4.0;
    Data Source=C:\catalog\Catalog\files.mdb;
    Persist Security Info = False
    OLE db connection

    While in the data link properties window, the connection is successful, but in the ole db connection window I get "an unidentified error has occurred".

    If I just press ok I can't see one of the table in my db.

    All I want to do is to configure the display of live data

    Thanks in advance for your help.

    "madhooper" wrote in message
    News:fcc6vt$JD6$1@forums. Macromedia.com...
    >
    >
    > I use the following:
    >
    > Asp.net c#
    > Server 2003 Sp2.
    > DW CS3
    > Access db
    >
    > I am trying to connect to a 'local' database on my server.
    ' > I use the database connection string.
    >
    > Provider = Microsoft.Jet.OLEDB.4.0;
    > Source=C:\catalog\Catalog\files.mdb data;
    > Persist Security Info = False
    > ole db connection
    >
    > While in the data link properties window, the connection is successful, but
    > in
    > ole db connection window I get "an unidentified error has occurred."
    >
    > If I just press ok I can't see one of the table in my db.
    >
    > All I want to do is to configure the display of live data
    >
    > Thank you in advance for your help.

    You have configured your server to test?

    Set up a test server
    http://livedocs.Adobe.com/en_US/Dreamweaver/9.0/WSc78c5058ca073340dcda9110b1f693f21-79e0.h tml

    Preparing to build dynamic sites
    http://livedocs.Adobe.com/en_US/Dreamweaver/9.0/WSc78c5058ca073340dcda9110b1f693f21-7a31.h tml

  • Timeline question on how I can change the time in a loop for

    In the following code segment:
    for(index in [0..3]) Timeline
    {
        keyFrames:
        [
            KeyFrame
            {
                time: 0s
                values: cars[index].translateX => 0
            }
            KeyFrame
            {
                time: 15s
                values: cars[index].translateX => 800 tween Interpolator.LINEAR
            }
        ]
    }.play();
    How can I make the time to be 15 + 2 * index seconds, for example, instead of 15 s always?

    Any input would be greatly appreciated!
    Thanks in advance!

    I imagine something like (not tested)

    var duration: Duration;
    var tmp = bind index on replace {
       duration = Duration.valueOf((15 + 2 * index)* 1000);
    }
    :
    :
    KeyFrame
    {
       time: bind duration
       values: cars[index].translateX => 800 tween Interpolator.LINEAR
    }
    

    To get help sooner, after a NBS.

    Note that I'm not JavaFX and the suggestion is the API reading.

    DB

    Edit you get coffee and complete your registrations pending. Answering questions on a forum should be identified as such, for those who come across them in a search.

    Published by: Darryl Burke

    Published by: Darryl Burke - added the necessary: between the lifetime and the

  • The performance improvement chart real time

    I'm working on a simple graph in real time. The data is queried every 50ms, and each survey results in a line one pixel wide, height in pixels (data_point) . The chart scroll such as new data is located on the right, and the oldest values ends up by falling from the left.

    In other words, pretty basic.

    My solution is embarassingly brute-force, in what I just use theMC.graphics.clear () and a loop of lineTo()s for each graphic update. If this appears correctly (and I can control the refresh rate to mitigate CPU burn), it should be painfully obvious why I want to get away from this method.

    I have to scroll or pan the a full graphic pixel to the left (and remove the line to the left) and then just pull a new line on the right, but I don't know where to start. Assuming that such a thing is possible in AS3, someone would be kind enough to point me in the right direction?

    This can be done a few ways.

    First class graphics.

    its safe to assume that you draw with the graphics removed the displayObject?

    Otherwise, you make several updates in the loop.

    Remove the displayList drawing while pulling all parcels.

    Then, BitmapData.

    You can use scroll(1,y) to move the image to the left.  In addition, by using bitmap data, you can lock the bitmapData to limit the refreshment of a given area.

    workign with the image bitmap information is easier to use when drawing...   Of course, this requires a little more math you can't use just line with bitmapData.

    But you can use a matrix to rotate a line at 90 degrees and increase in length.

  • Real-time drawing in flex

    Background:

    I have a table of about 10 000 points, what I need to graph. The original way that was done in PHP was to simply create a 10 000 image pixels wide and put in a box with overflow hidden and use JavaScript to move the image to the left at all times to make it look more lively. When I try to do that in flex using mx:move, the graph is too nervous. I want to go smoother. When I use only 200 of our data points in the chart moves pretty smooth for me. I tried to increase the pace and also used mx:AnimateProperty on 'x', but it seems to be the size of the image that is the problem.

    Current idea:

    My new idea is to have a window of 500 pixels and draw the graph in real time. The theory is that the graph would begin putting 500 points in the area of the first 500 values in the table. then, in each image, each point takes the value of one on his right and the last of them takes the next value in the table. I have not the slightest idea where to begin to make this happen or if it is still the best course of action. Any help is appreciated.

    or perhaps cela?

    http://www.stretchmedia.ca/code_examples/chart_range_selection/main.html

  • cumulative subtraction on real-time data

    Hello

    I'm new to LabVIEW and have a fundamental issue in the case. I am acquiring data on the frequency of multiple CHOICE which I want to treat in order to display the change in mass on a graph in real time!

    I have a formula that says f1 - f2 = const * dm (dm is the change in mass)

    So I want to calculate f1 - f2, f2 - f3, f3 - f4 and so on... I know the concept of shift registers, but am not able to implement in my circuit

    I have attached the VI. Please guide me.

    Thanks in advance!

    Hi netra.

    'circuit' is called "block diagram" in terms of LabVIEW! It is a programming language and no designer of electronic circuits...

    In your VI I place no 'f', 'mass', 'frequency' or 'Multiple CHOICE' indicators. It is really difficult to follow your VI when your description does not provide any useful information.

    Create a shift register in your loop. Store the current value in the shift register. A subtraction to calculate the difference of current and previous value:

    The same solution is displayed using a feedback node instead...

  • Continues to draw in real time

    Hi all!

    I use the graph XY to plot multiple data receives serial com and I wanted to show the graph in real time. My question is, how to do from the beginning?

    Thank you!

    Why do you use an XY graph instead of a chart?

  • graphics update in real time

    Hello

    In the attached VI in labview 8.5, I wanted to show two plots on the same graph in real time.  In other words, for each iteration in the 'loop', updates to the graph.  I am not able to do this with one of the plots (y1) but holds two data sets - are to appear on the graph (that is to say the y1 and y2).  Is it possible to do it in real time?

    Thank you

    hiNi

    It is possible to do it with a XY Chart. The data of the XY-graph accepts for plotting of graphs of mutiple are a set of clusters. The cluster consists of two arrays containing the x values and y. I have included the vi with the solution for you.

    I hope that this solves your problem.

    Best regards.

  • a pc with a stand-alone module, real-time can display of its own data

    Hi all

    It is sort of a basic question, and it's probably why I can't find the answer explicitly in textbooks or the forum posts.

    If I want to use a PC as a unit in real time, and I install the LabView time real OS on it and make an Application of real-time on another machine and compile it in the PC target in time real LabView, can I attach a monitor or a kind of screen directly to the PC unit in real time to display some data I need?  Or do I still need a Labview PC to act as a host for display data and interface with a user?

    Thanks for the info!  I have some experience of labview, making some other applications but I have never used the RealTime module yet so I don't know much. So if there is a good place for more information in time real LabView for use a PC as a device target, which may also be of interest and would be appreciated!

    Thanks again.

    Steve

    Hi Steve,.

    Our objectives in real time are designed to work in headlessly, which means that they are independent and have no user interfaces.  It comes to screens.  For a display of information, you must use a host VI, on a host computer. There are several ways to move data between a target RT and a host PC including, but without limitation, TCP, UDP, network flow, published static Variables of network and Web Services.  These are all covered in documents on best practices.

    Here is a page real-time best practices:

    http://zone.NI.com/reference/en-XX/help/370622J-01/lvrtbestpractices/rt_portal/

    Here's a page on the conversion of a desktop computer to a target RT:

    http://zone.NI.com/DevZone/CDA/tut/p/ID/2733

    Good luck with your project.

Maybe you are looking for