Propagate data point to multiple consumers? I'm probably overcomplicating this.

Please see the attached screencap.
The DAQ assistant in the first case structure is taking a lot of measurements from a local cDAQ chassis.  One of those data points (#15) needs to be extracted (hence the select signals) and then merged with the signals from three remote (ethernet connected) chassis.
The issue that I'm having is that the data point, due to the fact that the chassis and consumers aren't running in any specific order or sync, sometimes just isn't there when the consumer loops run and it reads a 0 rather than the value.  This causes the test stand to think it lost hydraulic pressure and call for a shutdown.
I'm aware someone will tell me to wire the error from each DAQ assistant to the next, but that creates a massive 6.5 second loop time, which is unacceptable.  The chassis have to remain independent to keep execution time down.
I'm looking for a way to 'catch' that #15 data point and hold it for the consumers to use until the next iteration where it is replaced with the new value.  I'm not sure if Collector is what I'm looking for, or some sort of data copy, or a register.  If this was a PLC I'd know what to do with it.
Thanks in advance.
Still confused after 8 years.
Solved!
Go to Solution.
Attachments:
lostpoints.jpg ‏246 KB

As I see you are using LV in a wrong way. Why don't you run the DAQ tasks in independent while loops? You could use the same Queue, and you can add time stamps to every data package (or also a label to show the source) created in the several Producer loops. In your single Consumer loop you can just decide what to do with the data depending on the label (save to File,etc...).
Other big problem: do not use DAQ Assistant! It is OK for quick testing, but not for real application! These Express VIs initializes and closes your hardware at EVERY while loop iteration.
You should use proper DAQmx VIs: initialize your HW resources BEFORE the while loop, do your DAQ inside the loop, and close HW components when you stop the application.
There are many examples shipped with LabVIEW, have a look how to use DAQmx VIs. Also, this way you avoid the silly dynamic data wires...Much easier to live with Double arrays

Similar Messages

  • Need charting help - multiple data points between major ticks

    Hi,
    I am trying to create an AreaChart in which the data shows a
    consumption rate over the course of a week. The major points along
    the x-axis will be Monday, Tuesday, ... , Sunday (the days of the
    week). However, there are multiple data points between each day. I
    only want the days of the week to show on the axis but I want to
    plot all of the data points. How would I go about accomplishing
    this task?
    Thanks in advance,
    Brent Schooley

    Thanks, it is getting closer now. My only problem now is that
    the data points do not line up correctly with the tick marks. I've
    look through the documentation and I can't figure out what to do to
    ensure this happens. Here are the relevant portions of my code:
    [Bindable]
    public var energyDataAC:ArrayCollection = new
    ArrayCollection( [
    {date: "2007, 7, 27, 0", saved: 0},
    {date: "2007, 7, 27, 12", saved: 50},
    {date: "2007, 7, 28, 0", saved: 35},
    {date: "2007, 7, 28, 12", saved: 0},
    {date: "2007, 7, 29, 0", saved: 0},
    {date: "2007, 7, 29, 12", saved: 46},
    {date: "2007, 7, 30, 0", saved: 39},
    {date: "2007, 7, 30, 12", saved: 0},
    {date: "2007, 7, 31, 0", saved: 0},
    {date: "2007, 7, 31, 12", saved: 44},
    {date: "2007, 8, 1, 0", saved: 45},
    {date: "2007, 8, 1, 12", saved: 0} ]);
    public function myParseFunction(s:String):Date {
    // Get an array of Strings from the comma-separated String
    passed in.
    var a:Array = s.split(",");
    // Create the new Date object.
    var newDate:Date = new Date(a[0],a[1],a[2],a[3]);
    return newDate;
    <mx:AreaChart id="Areachart" height="100%" width="100%"
    paddingLeft="5" paddingRight="5"
    showDataTips="true" dataProvider="{energyDataAC}" >
    <mx:horizontalAxisRenderer>
    <mx:AxisRenderer styleName="myAxisStyle"/>
    </mx:horizontalAxisRenderer>
    <mx:horizontalAxis>
    <mx:DateTimeAxis alignLabelsToUnits="true"
    dataUnits="hours" labelUnits="days" dataInterval="12" interval="1"
    parseFunction="myParseFunction"/>
    </mx:horizontalAxis>
    <mx:series>
    <mx:AreaSeries yField="saved" xField="date"
    form="segment" displayName="Energy Saved"/>
    </mx:series>
    </mx:AreaChart>
    <mx:Legend dataProvider="{Areachart}"/>
    Any ideas?
    Thanks,
    Brent

  • Is there a way to acquire a set number of points from multiple channels?

    I had set up a VI to use AI ONE POINT.VI for multiple channels. Getting one data point for me is useless. I need, say, 100 data points from multiple channels at once. Is there a way to do that? Is there an example program I'm not seeing that already does that?
    Thanks!
    p.s. I have Labview 6.1

    Hello,
    Thank you for contacting National Instruments.
    As Dennis had mentioned, there are many example programs that ship with LabVIEW that demonstrate how to take measurements from multiple channels with either a finite or continuous amount of data to be acquired. In LabVIEW 6.1 you can find these examples by going to Help >> Find Examples >> Hardware Input and Output >> DAQ >> Analog Input >> General.
    In these examples, if you would like to sample multiple channels, you simply need to add the physical channels separated by a comma for example: 1,3,5 would sample channels one, three, and five. You can also use a colon to sample a sequence of channels for example: 4:6 would sample channels four, five, and six. This makes it easy for you to choose the chann
    els that you would like to sample without having to make any modifications to your code.
    Regards,
    Bill B.
    Applications Engineer
    National Instruments

  • Designate data points in scatter plots

    Hey,
    I`ve made a correspondence analysis in excel and want to get a scatter plot as .eps-file.
    I`ve imported the X and Y values in Illustrator and created a scatter plot. Now I would like
    to represent the numbers of data points (like in the illustration below). Is this even possible?
    If so, how? Various tutorials didnt help.
    Thanks for the help!
    Heiko

    That's possible. See http://www.m-server.de/m_g/Scatter%20graph-cs5.ai.zip
    How to create a graph design:
    http://help.adobe.com/en_US/illustrator/cs/using/WS3f28b00cc50711d9fc86fa8133b3ce158e-8000 .html#WS714a382cdf7d304e7e07d0100196cbc5f-61a3a

  • Data point display when mouse hovers over data point in TCODE QGC1

    Hi experts,
    Just want to ask if anyone knows how to add more data in the display when your mouse hovers over the data point in the control chart of transaction QGC1?
    Because currently the control chart shows u201CSeriesu201D and u201CValueu201D, Iu2019m planning to add the inspection lot date when your mouse hovers over the data point.
    Hope to have some response regarding this and thanks in advance

    Tohatsu,
    I am not sure exactly what you are trying to do but the way you have went about doing things is not the way to code in LV. Fist off break your code into functional blocks and use these functional blocks as Subvi's. This will make your block diagram easier to read. Once you do this you can get rid of a lot of code. Also you need to learn how to use the event structure, right now the way your code is set up to use it is not correct. Have a look at the examples that ship with LV. i am not even going to begin to try to understand your code because the diagram is so large. Please do not take all of this the wrong way I am not trying to be hard on you or anything, I am just giving you some constructive criticism..
    Break your code down into functional blocks and use subvi's to perform those blocks of code.
    Have a look at the examples on how to use an event structure.
    Have a look at state machines
    You would also benefit from getting the book called Labview for everyone, third edition, jeffrey travis and james kring.
    You have a lot going on in this VI. Use the eventstucture to your advantage instead of as a hinderence like it is now. the way your code is set up now everything runs in your while loop, then it waits for an event to fire. in your case the while loop will not run again until the mouse moves over the waveform chart. You are on the right track, you just need to get some fundamental basics down and you will figure out what is going on.
    Thanks for converting the code to 8.0 for me.
    Message Edited by Jhoskins on 01-30-2008 09:17 AM
    Joe.
    "NOTHING IS EVER EASY"

  • Single Chart Series with multiple color data points

    I am developing an application using the flex chart component
    and I am binding data to 3 different chart series which is pretty
    intense processing. I was wondering can I use only one chart series
    and when I bind the data points just to change the color per data
    point which meet certain criteria?
    Here one method from my application where I am dynamically
    binding data to my series.
    private function loadSeries(data:XMLList, yAxis:String):void
    seriesAdd.yField = yAxis;
    seriesAdd.xField = "Date";
    //seriesDelete.yField = yAxis;
    //seriesDelete.xField = "Date";
    //seriesChange.yField = yAxis;
    //seriesChange.xField = "Date";
    seriesAdd.dataProvider = data.Trade.(A == 'Add');
    seriesAdd.//Can I change the color per each data point if I
    have multiple data sets?
    //seriesDelete.dataProvider = data.Trade.(A == 'Delete');
    //seriesChange.dataProvider = data.Trade.(A == 'Change');
    Thank you

    I think I found something to get me started:
    http://livedocs.adobe.com/flex/3/html/help.html?content=charts_displayingdata_09.html
    My next question is if I have the following function to fill
    my data points:\
    private function myFillFunction(element:ChartItem,
    index:Number):IFill {
    var c:SolidColor = new SolidColor(0x00CC00);
    var item:ColumnSeriesItem = ColumnSeriesItem(element);
    var sales:Number = Number(item.yValue);
    if (sales >= 50000) {
    return c;
    } else {
    // They have not met their goal.
    c.color = 0xFF0000;
    return c;
    How can I access values that pertain to the specific chart
    item, but are not plotted on the x and y axis. Something similar to
    the checking on the above function, but check if value that is not
    plotted but still exists on the data provider.
    Thanks in advance.

  • MyFitnessPal creating multiple identical data points in Health app.  Why?

    I am using MyFitnessPal to sync with the Health app.  I logged my breakfast this morning using myfitnesspal.com which syncs with the MyFitnessPal app.  In many instances (carbohydrates, fat, protein, etc.) multiple data points were created with the exact same value (i.e. there were 6 data points saying 13g fat, adding up to 78g of fat so far today, which is wrong).
    Has anyone else experienced this and what did you do to fix it?
    I have an iPhone 5, using myfitnesspal.com and the MyFitnessPal app, which syncs to the Health app.

    Same problem with the Garmin Connect app... In the Health app, there are 5 identical entries for number of steps every hour, so Health shows me with 5x the number of steps I've actually taken (according to the vivosmart and hence the Garmin Connect app). There are also multiple entries for active calories (although all showing being shared at 12:00am), also using Garmin Connect as the source... apparently, today I've exerted over 12,000 calories!
    I've also got MyFitnessPal, and from what I can tell, it appears to be tracking correctly.

  • Am I able to tag a data point of a spreadsheet that is being created by a datalogging VI such that at the end I have the data with multiple tags which corelate to events during a measurement cycle

    Am I able to tag a data point of a spreadsheet that is being created by a datalogging VI such that at the end I have the data with multiple tags which corelate to events during a measurement cycle
    My final need is to take data from a datalogging VI and store it in a spreadsheet with tags that corespond to events in a subVI which is controlling motor movement. This will allow users to view all data and mark the relevent data for analysis. As usual, user want everthing but with conditions.

    Sure. What you do is take the numeric value acquired, the tags you want, and build them into an array. So now, when you write to the spreadsheet, you'll have a 2D array. One thing you have to keep in mind is that all elements of an array have to be of the same type. So if your tags are strings, you'll have to convert your numeric data into strings as well.

  • Graphing Multiple 3D Graph Types with Spherical Data Points

    I have data points that are in theta, phi and r (magnatude) that I would like to be able to 3D plot and change the text/contour to either wireframe or contoured or points on the fly.  I believe this is possible however, after looking at the NI examples, they are all done with xyz coordinates and have yet to see a 3D graph with spherical (NI, take this as a suggestion ).
    Over a year ago, I was able to create data in spherical by giving it 3 1D arrays, but it only plotted it in the form of point or line.  The examples that have a torus use parametric plots?! although I am not entirely sure I understand how it works nor how to convert to it from spherical.
    Attached is a sample input file/array.  Wanted to see if anyone had experience using the built in 3D libraries (CW 3D Graph
    8.0) to achieve something similar.
    Note: the Amplitude column is absolute and could be made positive for ease of use as well.
    Thanks
    Attachments:
    example.txt ‏47 KB

    I'm just trying the following in the main loop to get something to graph, and nothing is showing up but this error - 80020009
    static int panelHandle;
    static CAObjHandle gGraph;
    //==============================================================================
    // Static functions
    //==============================================================================
    // Global variables
    //==============================================================================
    // Global functions
    /// HIFN The main entry-point function.
    int main (int argc, char *argv[])
    int error = 0;
    VARIANT xVt, yVt, zVt;
    HRESULT hr;
    int i,j;
    char errCode[100];
    double xData[50], yData[50], zData[50][50];
    /* initialize and load resources */
    nullChk (InitCVIRTE (0, argv, 0));
    errChk (panelHandle = LoadPanel (0, "3D Analysis.uir", PANEL));
    /* display the panel and run the user interface */
    errChk (DisplayPanel (panelHandle));
    CA_VariantSetEmpty(&xVt);
    CA_VariantSetEmpty(&yVt);
    CA_VariantSetEmpty(&zVt);
    for (i = 0; i < 50; i++) {
    xData[i] = yData[i] = i;
    for (j = 0; j < 50; j++) {
    zData[i][j] = i*j;
    GetObjHandleFromActiveXCtrl(panelHandle, PANEL_CWGRAPH3D, &gGraph);
    errChk (CA_VariantSet1DArray(&xVt,CAVT_DOUBLE, 50, xData));
    errChk (CA_VariantSet1DArray(&yVt,CAVT_DOUBLE, 50, yData));
    errChk (CA_VariantSet2DArray(&xVt,CAVT_DOUBLE, 50,50,zData));
    errChk (CW3DGraphLib__DCWGraph3DPlot3DSurface(gGraph, NULL,xVt,yVt,zVt, CA_DEFAULT_VAL));
    //errChk (CW3DGraphLib_CWPlot3DPlot3DSurface (gGraph, NULL, xVt, yVt, zVt, CA_DEFAULT_VAL));
    errChk (RunUserInterface ());
    Error:
    /* clean up */
    sprintf(errCode,"%X",error);
    MessagePopup("",errCode);
    CA_VariantSetEmpty(&xVt);
    CA_VariantSetEmpty(&yVt);
    CA_VariantSetEmpty(&zVt);
    CA_DiscardObjHandle(gGraph);
    DiscardPanel (panelHandle);
    return 0;
    At this point, I am just trying to figure out which function to call and what to set the input Variants.  Seems somethings they are 1D and sometimes they are 2D.  Unfortunately the documentation is very slim and doesn't explain what the actual functions or variants represent.

  • Help: Chart with multiple data points

    I would like to create a chart which has 2 data points. The way I know it works, each metric has only one data point. If I want the metric history chart shows 2 data points (y axis) over the same period of time (x axis). Is it possible to do such metric?
    Thanks for the help.

    Don't believe you can have 2 data points as you are suggesting. Oracle is working on enhancing the reporting framework for EM, but not sure when BI will be there. You can send data from the OMR to an existing BI infrastructure and report from there.
    Sorry...
    Have a good day.

  • No Data when doing multiple selection of sub-brand in the cube

    Hey everyone.
    I am having a very strange situation.
    No Data when doing multiple selection cube.
    The thing is that the situation is created only in the transition between the servers, who have a different Build but both of them are SQL 2008R2 servers.
    The Build of one of them is 10.50.2789.0 and the other one is 10.50.4000.0 (SP2).
    The other properties of the cube are the same, it's Not possible to retrieve data from the cube on the server with the "SP2 when we  the slicing is at the level of sub-brand and removed even one item  mean we passed a multiple selection ,
    This is possible only if we connect the cube as Admin .
    While the server with the older "Build" the problem to perform the above operation when connected as a user not exist.
    What can cause this problem,and how can we fix it?
    thank's a lot.

    Hi Doron2Bull,
    According to your description, there are two servers in your scenario, and you cannot retrieve data from one of the cube, right? Are there any differences between the two cubes on different? You can import the database on the server into BIDS and explore
    Data on the fact table on the Data Source View to check if there are any data. If we can see the data when we do Explore Data on the fact table on the Data Source View (DSV), but when we browse the cube here is no data. Then there are many possibilities for
    this issue.
    On the cube's Dimension Usage, the relationship between this measure group and the dimension is not correctly defined.
    On the relational database, the dimensional key column on the fact table does not correspond to the key column on dimension table.
    There is a Default Member on another dimension, and there is no fact table row that satisfy this condition.
    If I have anything misunderstood, please point it out.
    Regards,
    Charlie Liao
    TechNet Community Support

  • How to show data value labels in the charts without moving my mouse on the data point?

    Sometimes I need to show a chart with data value labels which is not necessary to move my mouse on the data points. However, it seems Xcelsius does not support this simple feature. Any alternative ways?
    Many thanks!

    Currently, Xcelsius does not support display of labels at data points. It would be difficult to move and update labels on a chart with dynamically updated data. However, a work around for a static chart would be to add a Label component in the desired location. This can be done for multiple static charts by using dynamic visibility.

  • Reducing Number of Data Points Acquired?

    I am interested in knowing how to reduce the number of data points written to a file that was acquired at 5 Hz. I have tried to lower the sampling frequency below 5 Hz on a Compaq Daq, but I get an error saying that is an incorrect value. So, if I can't sample below 5 Hz, how do I acquire fewer data points, or how do I reduce the number of data points written to the file? I have tried Sample Compression which just ignores  data points. So, an acquired value is written multiple times at the same rate as having no compression at all. I calculated the sampling frequency from the data file witha compression ratio of 20, 30, and 40 to still be at 5 Hz.

    If you want to "compress" your data then you should perhaps try the "Decimate (single shot) VI " Owning Palette: Signal Operation VIs. With this VI you can average down an array. If you have an array sampled with 5Hz and you set the decimating factor to 5, and average=true. Then the output will be an an array downsampled to 1 Hz, with each value equal to the average value of 5 samples in the input array. The decimate function is quite new. It came in Labview 8.2 
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • How can I plot two sets of data points in 3d graph?

    I am trying to plot two sets of data points in 3d graph. I also need to make a set of data with one color and the other set with a different color. For example, I need to plot 10 (x,y,z) data points in 3d. Maybe 6 points need to be blue, and the other 4 red. Could you tell me how?

    What is your LabVIEW version? (things are a bit different in 8.6).
    Basically, you create multiple instances of the VI that gets placed automatically when you drop the 3D graph and then wire a different number to the plot ID at the bottom.
    You define all the plots (color, style) via the properties dialog.
    Have a look at my example posted here. One plot is "blue dots" and one is a "shaded surface". See how far you get.
    Message Edited by altenbach on 04-23-2009 01:11 PM
    LabVIEW Champion . Do more with less code and in less time .

  • Using table comparison transform can you point to multiple tables as target

    Using table comparison transform can you point to multiple tables as target tables?
    Thank you very much for the helpful info.

    If you want to feed the output to multiple tables, you can do so, but you have to be cautious enough on which table to be used as a comparison table in this case. The comparison table provided inside Table Comparison will be compared against the input data set for generating opcodes (Insert / Update / Delete) to input rows.

Maybe you are looking for

  • Qosmio X505 Hardware Lockups: 3 for 3

    Hello, Toshibers-- I bought a Qosmio X505-Q870 from Fry's last Saturday. After about 12 hours of use, it locks up. Hard lock up: No mouse, no keyboard, nothing. After the second lockup in a few hours, I took it back. I got the replacement Sunday nigh

  • Bullet colour In Word 2010/2013

    Can I change the colour of the bullet for a paragraph style?  I want the bullet to be a different colour to the text.  e.g. Blue bullet and grey text.

  • Path of the application which is entered in Viewer option

    Hi, What is the path of the application that is entered in the viewer options. I basically want to see the applications that are available for the MIME types. Also is there a way by which we can add new applications. Ex: Lets say I want to open the C

  • Customer Attribute

    Hi Experts,            I have a strange issue here. I need to bring the Tax classification attribute for a customer from R3 to BW. Is there any datasource that can bring it or shld i go for generic datasources.. Please reply. Thanks in advance Dave

  • Pls reply urgent

    Hi all, I am using a function mod for mail alert. The user wants cretain names as BOLD & Colors in the text. Is there any function mod which sends the mail with BOLD, COLORS & any other options? Pls urgent. Thanks in advance. Vijay