Need for a versatile to pass data to the chart

Hello

I have a sub - vi that performs data analyses. I pulled out the results through a def type. I want that this type def to include data necessary to plot the results on a XY Chart.

My problem is that the data will sometimes contain only 1 and sometimes multiple data series dear. or sometimes the output should be a cluster of two 1 d-tables, sometimes it must be an array of clusters. Is there a good way to do this?

vs

udka wrote:

You can try using for loop with indexing enabled so you will come to know how much coulumns you have during execution and clusters and then indexing on so that you always have table of clusters.

You are on the right track.  Just need a little before the loop to transpose the table (to properly make the indexing job) and remove the data from the x-axis.

Tags: NI Software

Similar Questions

  • Marshall plan: how to pass data between the main field and sub-application

    Hello

    I'm trying to load a Flex 3.5 application in Flex 4. In the process, I need to move a strong local typed object from main application to the loaded swf file. And I also have to pass a rope and a bitmap of application sub to the main application. Have an example to show how to pass data in the application domain?

    Thank you

    SW

    Define scaleContent = true, set a breakpoint on SWFLoader.as:doScaleContent and

    see if he thinks there's a swfBridge.

  • I have all the Adobe Creative Suite with all the programs installed on my mac, I bought a new mac and go to sell the need for others, but I have to get the programs on the new computer and I also lost the serial number for it, what can I do about it?

    I have all the Adobe Creative Suite with all the programs installed on my mac, I bought a new mac and go to sell the need for others, but I have to get the programs on the new computer and I also lost the serial number for it, what can I do about it?

    Find the serial number of your Adobe product quickly

  • Need ideas for compare current Oracle EBS data against the data warehouse to establish data matches course.

    Hello, I am new to the Oracle Forum. I'm a BI developer and I need to compare data Oracle EBS in my organization with the data in the data warehouse to make sure they match. I am using Informatica for this process by pulling the two sources and comparing. Can someone give me a brief example to make this process or similar methods with Informatica and its transformations so that it can be useful. Thanks in advance. Let me know if you need more information about the process.

    Looks like you are trying to make a reconciliation process? That is you can have implemented BIAPPS (or something custom) and now I want to check your ETL? If this is the case then it's good enough for a test case - we usually start with senior level (actual numbers for each group of companies, for example), then a subset of other different queries for example as per a level in the hierarchy of the org, by position, dates etc.

    and much more expensive as the implement of OLIVIER

    I don't think there are many in the world that is more expensive than the implementation of OLIVIER!

  • How to pass data to the tables according to the value of the first 4 digits of 7 strings of numbers

    I want to sort incoming data, in several bays based only on the first 4 digits of each string.

    For example, a hexadecimal string may be 41322033333533 which is A1 3353.

    A1 is a sensor. particularly, and I want to send all data from the A1 to a table. I have 8 sensors data and want to send the data to separate the bays of sensor. My sensor names are A1, A2, A3, T1, T2, T3, W1

    I will use a structure of the matter, for loop and a comparison of '=' for the data. However, I want to only compare the first 4 digits of the string and I can't find an operator for this. Any advice on how to proceed would be appreciated.

    With a thread like this

  • Need for a method to be called when the pop-up screen

    Hello

    I have a requirement in my application. I have a screen from which I'm moving to screen B. When I Pop the screen B, I need a method that must be called in the screen has. Looks same as onActivityResult() in Android.

    I am currently using onExpose(). But this method is called for all in the screen has. In the menu click or button also. Is there another way to do this?

    Help, please...

    You have two options I can think immediately, which do not have to change anything in screen B.

    (1) use pushModal when you call B screen.  The statement immediately after the pushModal will be executed as soon as B screen is popped.  In general, I try to avoid the modal screens, but in this case, it's probably what I would do.

    (2) set an indicator immediately before you tap screen B.  Test the flag in onExposed().  If the flag is not set, then the onExposed was called for another reason and you can ignore it.  If the flag is set, then turn him off and process you want, knowing that the screen that has been exposed as screen B jumped.

    Either should work for you.

  • Balance sheet for a YEAR between two dates in the dashboard

    Hello

    Could someone help me please how can I calculate the 'balance of the CDA' between two different dates, who is invited to the dashboard? Means: we have an "effective date" and a "prior date" as a promt in the dashboard user who selects dynamically. When displaying in the report, it should show us the "CDA balance" between the two dates selected dynamically by users in the dashbowrd prompt. Please suggest.

    Thanking you,
    BK.

    Now that you understand the concept, it is easy to change the constant (i.e., 2011-01-01) to a variable.

    1) start with your repository variable that contains your current date: CURRENT_DATE

    (2) TIMESTAMPADD (SQL_TSI_DAY, DAYOFYEAR (CURRENT_DATE) *-1 + 1, CURRENT_DATE) is the SQL to get the first day of the year.

    Replace the hardcoded hard 01/01/2011 with the SQL above and now it will work for the beginning of the current year. You can change the SQL code for the beginning of a given year.

    Ex. TIMESTAMPADD (SQL_TSI_YEAR-1, TIMESTAMPADD (SQL_TSI_DAY, DAYOFYEAR (CURRENT_DATE) *-1 + 1, CURRENT_DATE)) you will get the start of "last year." This should help you with your problem.

    Now that you have everything, please mark the appropriate messages 'useful' and 'proper' and then mark the thread as answered and others if you are looking for a similar solution can easily find the answer. Thanks and good luck!

    Edited by: David_T November 28, 2011 07:56

  • Pass data to the swf format.

    Hello

    I would spend my SWF file in an amount of data (text).

    • Is there a limit? I don't speak of thousands of characters
    • I know the simple way of file.swf? data = "mydata"
      but I know that you can transmit data via 'flash vars', when you embed the file in HTML (object <>...
      How to pass the data in this way? Is it's better to simply read from a text file?

    Thank you!

    Gunto

    var sendLV:LoadVars = new LoadVars();

    var receiveLV:LoadVars = new LoadVars();

    {receiveLV.onData = function (src)}

    trace (SRC);

    }

    If you send data to the executable file:

    sendLV.data1var = "whatever";

    sendLV.data2var = "whatever" another;

    etc.

    //

    sendLV.sendAndLoad (sometextfileorexecutable, receiveLV, "POST");

  • Save the data in the chart to the file constantly

    I'm analog data Aqcuerir of USB 6000 data acquisition and display on the chart. I have to save all the data in a file as well (text or excel... or at least a file). It is easy to configure so that the data is saved after the stop button was so press until the end of the race. However, I need to write to a file when running because he could be running for days. In such a period extended, the buffer is an overload, and the data is lost.

    Could you please indicate some kind of how to write data to a file constantly during measurement, wthout record in the buffer?


  • Constantly add data to the chart 2D

    Hi I'm going to be very difficult to deal with some great paintings. What I'm trying to do is create a program that monitors the 23 entries of a controller for cRIO. Here is the flow of the program:

    1. the program starts and collects 1 sample per second of each entry and place into a 2D array, which has 23 columns and 10 rows

    2 only collect 10 samples, constantly replace the samples in this array.

    3. once a threshold is crossed any of the entries take the previous table and add it to a different 2D array that contains 360 000 rows and 23 columns.

    4. once the table is inserted permanently add data of each entry in the new table at 100 samples/s.

    5. the big Board has 360 000 lines because the program must be able to record data for one hour if necessary.

    I used 23 separate tables and it worked OK but it was much to ineffective and the program was slow. I can't get data to enter in the right table and I'm pretty frustrated so any help will be much appreciated. Thank you

    Adam

    At least I'd be initialize your berries to the largest possible size that you may encounter. When adding data use the subset of table replace to update the table with your new data. In addition, I would put these paintings in a shift register. Avoid to display an indicator of control to data, do not use local variables or property nodes to access the data. or the other.

    Also, do you need to have all the data in the application while it is running? You can use medium running or other methods to reduce the amount of data, you should keep in mind? May store data to disk and keep only part of it in memory and read only comprehensive data when you need it?

  • It is better to define a waveform properties of scale before or after sending new data to the chart?

    Hi, I wonder what is the best time to update the properties of the graphic scale waveform.

    I'm sampling data every 15 minutes for 192 samples, or 48 hours.  I want to draw these samples with x in absolute scale so the scale maximum x is time and x minimum scale at the time mode is x max in less than 48 hours (172800 seconds).  I want also to intermediate-scale markers 6 hours apart and to be multiples of 6 hours.  for example at 06:00, 12:00, 18:00.  It works by using nodes of property but sometimes intermediate markers are on the hour 6 multiple and sometimes they are at 6 hours after the scale min marker.  for example, 09:15, 15:15, 21:15.  Is there a way to ensure that the intermediate markers are on the hour 6 multiples?

    Thank you

    Neville

    Neville,

    I don't think there is a function of the order of execution by using nodes of property information across your graph. If you are concerned about the speed of your VI, I would recommend writing to the property node before update you the chart. I believe that this will ensure that the chart will update only once: when the new data is sent to the curve, as opposed to the update with the new data, then with the new scale.

  • problems with the date in the chart in the first instance

    Hello

    I have a date selection field (P2_START_DT), which has a default value in a table

    Here's the code I used to set the default (thanks again to the expert for assistance)

    Start

    Select max (REC_DATE) dt in: P2_START_DT

    from TABLE_A;

    return: P2_START_DT;

    end;

    on the same page, I have a report (Type: SQL query) and a chart that takes P2_DATE as a parameter

    This is a sample report SQL condition

    ...

    where

    RECORD_DATE >: P2_START_DT

    This is a condition of samlpe SQL used for the graphics

    ...

    where

    RECORD_DATE >: P2_START_DT

    condition is about the same for both

    My problem is that when the page is loaded for the first time, the P2_DATE field and the report shows good data but my chart shows nothing.

    to test, I added a button to submit the page.

    When I click on the button both my chart and the report shows the right data... suggesting that for some reason any graph is not picking up the default value for P2_START_DT when the page is first loaded

    Please notify.

    The default value for your item is not saved in session state until you offer page.  When your chart is rendered the first time the value of your object in session state (which makes graphic references) is not defined.

    Create a calculation for your section header to set the value of the element in the session before the rendering of the graphics state.

    Calculate the point: P2_START_DT

    Calculation Point: before header

    Type of calculation: (single return value) SQL query

    Calculation:

    select max(REC_DATE) dt
    from TABLE_A;
    

    Condition Type: point value / Expression 1 a NULL column

    Expression 1: P2_START_DT

  • HSlider as the range of dates in the charts

    IM using hslider as a date range to view database
    on the dates selected for the chart.
    My problem is how to change the chart data, based on the selection of the date of the hslider
    Note: there are 3 sets of line in the table, so the data set should be based on the range of the hslider date selection

    Any idea! Examples

    found a use for good double cursor if you try to do something like google, thank you cards to brendan, good job.
    http://www.stretchmedia.ca/code_examples/chart_range_selection/main.html

  • How to sort the data in the chart

    Hi, the data feeds that I show on my chart are a kind of account for each of their life cycle. For example, we have 20 in lifecycle = Production, 15 to life = pre direct cycle, 15 = testing life cycle, so on. I want to be able to sort the data by the nature of the life cycel, so in this case, the test-> advance live-> production rather than alphabetically. How to do this?

    Put a 2nd column in your report by using the field of life cycle and then write a CASE statement WHEN:

    CASE {cycle} during the 'Test' THEN 1
    WHEN 'pre Live' THEN 2
    and so on...
    ELSE 0 END

    Hide this column and use it as the sort order.

    see you soon
    Alex

  • How to pass data in the drop-down list to two separate outputs

    Hi all

    currently I have a drop-down list named chg with this value:
    ValeurRet += "< option >" + bean.getCode () + "-" + bean.getDescr () + "< / option >";
    Therefore, the value of my combo would be sth like this: 00000 - something

    the problem is that when I recover data return selected in the list, the value will be a string as above and not two separate the value.

    I need to pass the value here in order for me to compare the string containing the data in my database:
    nim.setCode (RutString.getParameterToString (request, "chg"));
    nim.setDescr (RutString.getParameterToString (request, "chg"));

    Now the data in my database is the following:
    Code: 00000
    DESC: something

    given that the above value is contained in the chg rather than the reverse, I couldn't use AS for my select statement.

    So is it possible for me this problem? Thnks in advance for your help!

    You can do two things:
    (1) pass the selection string from the sql query and use the sql functions (or pl/sql) to cut the chain and use only the part you are looking for (SQL has a SUBSTR function and others that allow you to do this)
    (2) you want to at any time in your workflow in a java class, you can do this with the String methods and the parts of the query string.

    Timo

Maybe you are looking for

  • Firefox prevented me from installing add on extensions

    I am trying to install facebook purity add on / extension and on chrome, had no problem, works fine, but firefox keeps giving me the dreaded pop up that says "" Firefox prevented this site to install add on ' I went into permissions and listed at thi

  • Mac Mini Late 2012 restarts randomly

    I use a Mac Mini Late 2012 (standard loadout MD387 except for an upgrade to 8 GB of RAM) as a small home server. It is essentially: Plex Server File server Print Server (AirPrint incl.) TM Server VPN server I would say that it is completely idle abou

  • Why Support of Firefox home page load when I open firefox?

    Why Support of Firefox home page load when I open firefox? I'm on Dial-Up and I have my homepage to Yahoo.com. Home page of Firefox Support both Yahoo.com pages load at the same time. It takes too much time. I already read the homepage of support and

  • N300 Trek reboot?

    I'm sorry if this has been discussed, but for the world of me, I can't navigate this archaic forum with a value of beans. Anywho, brand new Trek restarts anytime a disconnect any device. I know I read a bunch of messages somewhere on this forum? I ne

  • LaserJet MFP M127 Pro: LaserJet MFP M127 error message and don't scan Pro

    Relatively new LaserJet M127 gives me a "charging document" error message when you try to copy something that is clearly on the glass.  I tried to scan a document and it also gave me a message to load paper when I already had a loaded document.  It i