Table of waveform in time real Multi ground

Hello

I've attached a picture showing part of my code. What I'm trying to do is to create the exact waveform as "Cell pressure (kPa)", but in the x-axis in real-time. I created the "wave form" and that it does not work enough. This table will 'Y' to 'build the waveform"will contain 8 items and when I run the program,"Waveform"shows all the elements in a plot rather than in 8 different locations in a single diagram.

Can someone choose where I am doing wrong?

Thank you

Hoda

Hoda wrote:

Table of waveform isn't the time component. I need to show all plots on a graph and real-time

As you convert scalar data to a cluster to the chart, he has no information indicating the time.  Missing time initial T0 and the dT for the time interval.

Outside your wire loop right now for the Xscale.Offset property for the graph node.  Because your loop time is 1 second, you must set the DT.  But if it was something else, you must set the XScale.Multiplier property as well.

Tags: NI Software

Similar Questions

  • WPF c# time real multi field update

    Hello

    I have reviewed all of the examples that came with NIMS 2013 and also sought in these forums but can't find what I'm looking for.

    I have a WPF c# application that needs to display an additional plot in real time on the same graph for each button click.

    Basically, I click on a button and my app measures some signals and track them in real-time (where X = GHz, Y = dB).  X always has a fixed range and my application stops playback once it sweeps away the beach.

    I need to make the number N of these button clicks but draw all the readings on the same graph in different colors.  Just to be clear, that a single parcel will be updated in real time and others (previous clicks) just remained there for history.

    I know I can do:

    Double [,] data = new double [16, 256];

    ... Fill them in memory and then do

    Graph.DataSource = data;

    But is not in real time and I need one trigger (another button) to call Graph.DataSource = data;

    I also know that I can do:

    ChartCollection data = new ChartCollection();

    data. Append (X, Y);

    But I get exception System.ArgumentOutOfRangeException, the Index values must be strictly increasing for each plot begins with the same number.

    What is the solution here?

    Thank you!

    Since you have several plots, independently updated, I recommend using data separately for each plot of land sources and adding them to the Data collection, rather than a collection pre-allocating and assigning it to DataSource . Because it looks like you want to update the chart with individual values, since they are acquired, you should be able to use a separate table for each parcel collection. For example:

    // Add the data as a new plot in the graph.
        var data = new ChartCollection();
        Graph.Data.Add( data );

    ...
        // Fill chart with samples as sweep data is acquired.
        data.Append( X, Y );

    Because the values of X are only for a single parcel and do not loop back when you perform several scans, you shouldn't have a problem with the exception of out-of-range.

  • How can I set the time axis on my waveform table to show run time that is to say whenever I start the program I should have 0 as the starting point

    How can I set the time axis on my waveform table to show run time that is to say whenever I start the program I should have 0 as the starting point. I've been messing around with the without success. I'm under Labview 2012.

    Thank you!

    Townes wrote:

    I can't understand what you mean. I have no formal training with labview. It took me a long time to write the simple program that I joined. Any guidance would be greatly appreciated!

    Its pretty normal for a beginner to take the time to write code. Right-click the map of waveform > Create > property node > historical data, you will get a property node, keep this at the beginning of the code and create a constant. You can also go to the VI properties and > run and select "clear indicators when it is called.

    I recommend you to go through the basic materials of LabVIEW which will give you an understanding on the basics of bases/components of LabVIEW.

  • Time real ADC/DAC for SMPS by using Labview and USB

    Hi all

    I asked the Sales Department of this same question, so here's a two-pronged approach:

    I am reserching a control algorithm for power switching, and so far, its performance simulations seem to be good.  Now, the goal is to implement the circuit from the experimental data.

    I've seen several NI USB DAQ boxes that seem to have the performance, I'm looking for (for example, the box USB-6211 a sampling rate and resolution I need).

    The control algorithm uses the following mathematical functions: add/sub/mult/div/exhibitor and derivative/integral.

    My question is this: is "strong enough" Labview take four-channel data 250Ksps, crunches the numbers in an equation and spits out the answer to an analogue on the channel, while time REAL?  I'm looking for a rate of analog output of ~ 100 kHz.

    Thank you for any suggestions you have!

    -Rick

    Hey,.

    So if you were trying just to perform an input or output, then the box USB-6211 would certainly be able to treat it as the machine clock could manage the inputs/outputs, no software. However, what you are wanting to do, basically a feedback system, he will have to avoid (at least to a USB device) because you need to be able to specify Active which is the output. So, for this reason alone and the fact that you want out of 100 kHz, this device and the USB devices in general will be not an option any what software you use, LabVIEW or otherwise. On another note, you want to make sounds more like live update, not in real time, which is more on the jitter. Bottom line, for these kinds of requirements, you might need to move to an FPGA card, something like the NI PCIe-7841R would work. It's more expensive, but for your needs, FPGA will be the only option and it comes down to the latency of the bus, but also the response time of software. With FPGA, as shown in the first scheme of the following document, you basically close your software through hardware loop.

    Basics of FPGA

    http://www.NI.com/white-paper/6983/en

    -Ryan S.

  • Average displacement Subvi does not refresh the data in time real host VI

    Hello!

    I time real host VI that has evaluate the NI 9215 cRIO block data 9073. He takes analog data and calculates the phase shift. It works well with the connected equipment and displays the results. I need to get the moving average value of phase shift, so I add moving average Subvi, where main VI entries - new value (phase shift measured) and ms and output - average value of travel time. When I run real time host VI it gives me a single data and stop get new data from Subvi. It refreshes not even values measured in real time. So the problem somewhere in the accommodation, with sub - VI. How it can be solved? How can I get real host VI with the moving average value of Subvi update running time?

    Thank you.

    Your problem is that you have a loop that runs until you press the Stop button inside your Subvi.  If you try to use a Global Variable that is functional, you have a few things wrong.

    1. the loop should run only once.  A TRUE to the conditional stay Terminal wire.

    2. the shift register cannot be initialized.  That is how he can keep the old elements in a story.  Use a first call? with a case structure so that you only initialize the table of history inside the loop on the first time the VI is called.

    But if you really want to make your life easier, just use the PtByPt.vi mean.  NOR did all the work for you.

  • How to re - sample a table at the right time?

    I have a DAQ that returns data for each layer as a vector line (table 1-D), as the sampling rate is defined by the user, so I know the dt between each data point in the table.  I take 1000 samples at 10 kHz.  However, when I draw this picture on a waveform graph, the time scale goes from 0 to 1000 (the index of the item) instead of 0 to 0.1 s (time).  I need to get this dt incorporated into data, so when I draw it appears correctly, vs time and so I can perform an FFT to obtain the frequency content.

    Use the waveform to transform your data waveforms.  One of the entries is Y (your data), another is dt (time/sample).  You probably don't care the T0.  You can then take the table of waveforms for the chart and the time will be there for you.

  • Execution of several executables in time real (.rtexe)...

    For PXI (or any embedded controller OR) several executables in time real developed in LabVIEW (.rtexe files) can work simultaneously?

    I'm almost certain that the answer is 'No', because the whole point of a RTOS is the code to be "as deterministic as possible", with the Jig and schedule reduced by removing items (such as "interference of the BONE") out of control or understanding of the developer.

    Pouvez, however, write a single RT executable that loads into two routines that work "in parallel".  If you have a multi core processor, you could book separate processors for two routines that should improve their independence from each other.

    We met a slightly different variant of this issue during the migration of code LabVIEW 7 to a LabVIEW Project "oriented" development (introduced in LabVIEW 8.x).  We used to have several different programs of LabVIEW RT who has used a code different on the PXI - when we ran the host executable, it loaded and run the appropriate code of RT (recorded in a .llb).  This works well with executable RT.

    What we developed was a system where we have recorded each RT executable as a routine named separately ( not Startup.rtexe) and set them (initially) to run as a startup.  When the host code runs, it queries the PXI for the name of the startup routine, and if it is not 'just', change us it on the PXI and make the PXI to restart.

    [In fact, don't really do us this way, that 99% of the time, we always run the same executable RT.  What we did do was to write a separate "define RT Startup" routine that we almost never executed, unless we "know" we run an earlier version or something like that.  This, in turn, tells us that the PXI is configured to run and what executable RT can be defined as startup, then makes the changes, restarts the PXI and exit.  The 'rule' is that if you change the executable RT, don't forget to change the back when you're done.]

    Bob Schor

  • How to change tables of waveforms?

    Hi, I hope you can help with this.

    I read 6 channels of analog data to a USB - 6008 1000 samples/second, 1000 sample blocks in a loop. The data come from DAQMX as an array of 6 waveforms.

    I want to (y) scale all data such as 0, 1, 2 channels are divided by 3 (because electronics has an op-amp of gain of 3 x on channels) and channels 3, 4, 5 are divided by 15 (because electronics has a 3 x the gain and there is a resistance of 5 ohms and I'm trying to measure the current).

    You might think it's ridiculously easy... but:
    (1) to "scale and offset" labview vi only works on waveforms (no tables of waveforms)
    (2) insert a node of matlab or matscript me does not work only the tables on waveforms,
    (3) with the help of a simple 'divide' VI, it is impossible to define the denominator as just one number... "3" !

    any ideas? as usual, it is the kind of problem, people have to face all the time

    Dave

    Hi Dave,.

    That's how I'd do it - use the table of values of divisor.

    Hope this helps - example in lv 8.6.

    Kind regards

  • Create a subfolder of bookmark in time real bookmarking a page in a folder that I created for a registered earlier does not work

    Create a subfolder of bookmark in time real bookmarking a page in a folder of bookmarks, I created a saved bookmark previously does not work.

    Previously on a Windows XP computer, I could choose the "select" option and create a new folder under the folder I chose to put my new bookmark. "." On this computer, the 'new folder' option is not clickable.

    I thought about it. Thanks anyway.

  • He says the Xoom * REAL * multi touch?

    Hello! First post... I'm just curious if you please, before making a decision on the tablet PC, if the Xoom supports * real * multi touch? In the specification of it says 'pinch zoom ability' or something like that, so I think not. Would be great if it's good, because I think that hardware and software wise that this the best Tablet there at the moment...

    Thank you

    DaveB


  • Get information about the physical location (serial) Visa (slot) in PXI time real (Pharlab)

    Hello

    I PXI system with controller time real (OS Pharlab) and many maps series (about 6 cards).

    The maps in the series are two different models, which each contain several (8431/8 and 8421/8) serial ports.

    And the COM Port enumeration mix and I would like to know the link between COM numbering where it is linked.

    I have already dealt with a few methods:

    1. I've tried using the node property of Visa but he cannot know which card port COM belong

    2. I tried to use the Configuration Library system and don't manage to get general information of the card and not what ports have this card.

    3 try to fill you with the VisaConf.ini, but discovers that ASRL and COM Auto-enumeration is the same.

    4. I tried to look in NISerial.ini, NISerial.dbs and NOR - RT.ini and did not find any help here.

    Application engineer or support suggest to look in the registry of the operating system Pharlab because it is windows based and material information must be stored in the registry

    Further explanation on the problem of PXI enumeration:

    PXI produce enumeration auto for the ports series (COM3, COM4, COM5...) according to the card slot, but when there is a mix of the two models of the system would then list a model (8431) from 3 to 50 (6 cards and 8 ports) and the other model (8421) 51 to 98. so if I have 8421 in 2 and 8431 slot number in the slot number 3 it would list 2nd slot COM59 to COM68 and 3rd slot COM11 to COM19.

    Why not just use NOR-MAX to manually configure the ports?

    The system is essential and can not be stopped for a long time and he operated by people who are not very technical, so the customer who wishes to be able to exchange business cards without futher configuration.

    Thank you

    Or Hirschfeld

    Application engineer

    SK-Electronika, Israel

    www.LinkedIn.com/in/orhirshfeld

    Solved and download the example of solution of community

    Get the location COM (Serial Port) and Port physical location in the chassis

  • using the module time real Labview in RTAI

    Hi all

    I want to use the module time Labview in RTAI real for real time due to its open source applications and very good performance. is it possible to make this work?

    If this is the case, can anyone introduce a single study of case or something similar to this?

    Cecile says:

    Hi all

    I want to use the module time Labview in RTAI real for real time due to its open source applications and very good performance. is it possible to make this work?

    If this is the case, can anyone introduce a single study of case or something similar to this?

    I don't think it's possible for anyone outside of OR. LabVIEW Real-time supports this time only Windows as host and as a target only material of National Instruments with specifically targeted OSes or the Pharlap ETS system on x 86 systems with hardware specific enough. Using RTAI as target OS for LabVIEW Real-time applications requires first a few changes on the time plugin real LabVIEW to support this new platform.

    None of the files in time real LabVIEW also created for either platforms OR running VxWorks or OS Pharlap, Pharlap ETS system woud be able to be deployed to a system RTAI, because they are not compatible. In the first place, you'd have to port the bunch of shared libraries that make up the time target real system running LabVIEW on one of these goals to your RTAI system which is in fact a whole new platform of LabVIEW you can create with a little effort from the LabVIEW source code. It's not really impossible for OR as most of the code LabVIEW is written platform completely independently, but it would be a combination of the parameters compilation for course LabVIEW Real-time, with the settings to produce time targets real LabVIEW VxWorks with some additional settings of Linux. Yet, it would be by far not trivial and some parts are actually hardware specific drivers that must be worn too and limit the possibilities of what RTAI material could serve even further. In short not something that would make any commercial sense NC because they invest a lot of resources with no opportunity to sell additional hardware.

    And hell freezes over up front release of NI LabVIEW source code in any form which gives access not - OR used to it!

  • Lack of time real plug-in

    I have a project in real time using a 9074 cRIO chassis. The project opens fine on my desktop but when I try to open it on my laptop, a yellow triangle with an exclamation mark inside appears at the level of the chassis and don't see anything below the level of the chassis. If I right click on it, it just says: "the plug-in for the selected item is not installed on your system or the plug-in has a license has expired. I have installed all these elements on this machine:

    NIRIO1310f1

    LV 2013 SP1

    SP1 FPGA development

    SP1 of development in real time

    NIDAQ1400f1

    Don't know what else I could possibly be missing, don't remember installing something more on my desk? No matter what project I try to open, any project won't let me in time real access below the chassis level. If anyone knows what I could miss I would appreciate the help. Or if you need more information.

    Thank you.

    I installed NIRIO14f1 and my phone seems to work again.

  • In time real CRIO - writing a file on a PC hard drive

    Hi all

    I am developing and application with the following hardware features:

    Time real cRIO 9004 target device

    HAVE cRIO 9205

    AO cRIO-9263

    and the following programming features:

    I run an FPGA VI to establish PID control where the reference signal generated in the FPGA and the real is an acquired signal through the cRIO 9205.  I also find target FPGA FIFOs host in order to pass the data from the FPGA to the application of the RT.  The time real VI will run in the 9004 cRIO processor.  Now, with the data from the FIFO I would write a file (regardless of the extension), in order to do more tests.  I did it but I don't want to use the local memory of the RT, instead, there will be a PC (hard drive) where I can place the file in order to write it (with data).  I'm not able to do so, as 1) I don't know how to call the PC hard drive and 2) I don't know what communication protocol fits better I want to develop a device to Windows Welcome.

    Nobody helps me?

    Thank you very much

    Enrique

    The cRIO-9004 unfortunately has USB, so you can not write on a USB Flash drive (which would be my first suggestion).  If you want to store the data on the host PC, you will need to write a simple TCP/IP client/server to send data to the host through TCP so that the host can receive and save to disk.  Façade of the VI may seem as it is running on the PC, but it's actually just show you data be listened to the target (you are not allowed to piggy-back on this same Creek).

    There are several examples of TCP/IP client/server integrated into LabVIEW.

    -Danny

  • Time real 8.6 and PDM

    Hi all

    Using a CRIO-9012 with time real Labview 8.6 and labview 8.6 and now that TDMS is supported and I am wanting to use it on my cRIO. Be a problem if... in addition to open or close tdms files still do not work on my CRIO even if time real 8.6 is installed. Attached is a simple vi which works on my PC but not on my cRIO, tried still more simple screw with on the CRIO tdms and it does not work. When I try to run the program on the cRIO I just lose the connection to the controller and have it reboot. It is likely to what I may have missed?

    Thank you

    Jevon

    I came across a question like this and found that the path of the file to open it TDMS must have a tiny 'c' as in "c:\". "instead of"C:\ ". »

    You will always get an error on the end, but the IO files works.

    Kurt

Maybe you are looking for