Variable number of data sets in multiplot

I would like to be able to overlay sets of spectra to compare intensity variations. I am familiar with the multiplot usage, but my question involves how to allow a variable number of data sets to be overlayed. I have a vi that plots a spectrum after the user presses a "load file" button. I would like to add a boolean that when true would continue to stack spectra on the existing plot, and when false would just plot an individual spectrum each time. How can I accomodate a variable number of data sets in the multiplot?

Assuming you're using the X-Y graph (the word "multiplot" means little to
me) then each dataset is a cluster of the X array and Y array for that
dataset. To put several datasets on the graph you make an array of these
clusters. This should be very clear in the context help for the X-Y plot
terminal.
To add spectra you simply append it to the array of spectra already in the
plot. The brute force and simplest to understand approach would be to use a
local to retrieve all the data that's currently in the plot as an array,
append the new plot to the end and write it all back to the plot, either to
its terminal or via another local. More elegant would be to buffer your
array of plots internally within the program and have an array of Booleans
allowing you to selectiv
ely show/hide plots, either by omitting datasets
when writing them to the graph or, to maintain consistency in plot styles,
writing an empty element to the array in place of hidden datasets, but if
this is meaningless to you then the first suggestion is perfectly adequate.
jeffrz wrote in message
news:101-50650000000800000050150000-982303670000@q​uiq.com...
> I would like to be able to overlay sets of spectra to compare
> intensity variations. I am familiar with the multiplot usage, but my
> question involves how to allow a variable number of data sets to be
> overlayed. I have a vi that plots a spectrum after the user presses a
> "load file" button. I would like to add a boolean that when true would
> continue to stack spectra on the existing plot, and when false would
> just plot an individual spectrum each time. How can I accomodate a
> variable number of data sets in the multiplot?

Similar Messages

  • How to create line hart with variable number of data series

    Hello,
    I am student and I am completely new to Flex programming but
    I need to urgently create an app that should have a variable number
    of data series but of ame type of object.
    eg. Profits for X,Y and Z in in run while just corp X in the
    next instance.
    How can I accomodate for this in the app? can someone point
    me in the right direction I would really greatful as this project
    is really crucial for my coursework to get finished in timely
    manner.
    Thank you

    Hey,
    I'm not really sure what you want, but you should check out:
    http://demo.quietlyscheming.com/ChartSampler/app.html
    Which has a list of different types of charts in Flex and
    will hopefully help. Also check out charting from ILOG, which is
    quite good:
    http://www.ilog.com/products/elixir/

  • File Sender / Separating a variable number of data blocks

    Hi all,
    I have a problem regarding the content conversion in a file sender adapter.
    The source data has a fixed length of 10 chars, but is contained in one big line without any newlines or other sepators.
    Example source data:
    0123456789012345678901234567890123456789
    The number of occurences can vary; that is the next file might contain more or less data blocks of 10 chars each.
    Another example:
    01234567890123456789
    Is it possible to create a content conversion that handles this kind of data? We have already tried several configurations (for example using "fieldFixedLengths = 10") but didn't succeed. In most cases only the first data block is read an the rest is ignored. Therefore it seems to me that the adapter requires a newline in order to recognise data blocks.
    The target xml structure should look like:
      <Structure>
        <Line>0123456789</Line>
        <Line>0123456789</Line>
      </Structure>
    Do you have some hints on this one?
    Thanks and regards,
    lars

    Hi Satish,
    hello Ravi,
    thanks for your replies.
    If I understand it right, you would need two message mappings in order for this solution to work, resulting in the following steps:
    - Read File into one big record using content conversion.
    - Perform the first message mapping, splitting the content using the UDF.
    - Perform the second message mapping, containing the "business-mapping".
    Is this correct or is there a way to achive this in one single message mapping?
    Thx,
    lars

  • Why would only the first line of my data set txt file work?

    Hi -
    I had a lot of success using variables and external data sets until today.
    I have an external text file that I have imported as a data set (Image/Variables/Data Sets/Import...).  All of the variables have been defined and confirmed (at least PSD hasn't told me it can't find something which is the typical error msg.)
    This external text file, with the extension ".txt" has 12 lines on it, each line is 7 comma separated values, and each line is ending in a carriage return.
    YESTERDAY when I used File/Export/Export Data Set as Files... the procedure went beautifully for the 8 times I used it.  TODAY I only get the first of the 12 lines completed and then the export stops.  There are no error messages or other signs that Photoshop has choked on something so I guess something is wrong with my text file... BUT WHAT??
    Any insight on any step in this would be helpful.  You all know that if I'm using this feature it's because I have TONS of repetition ahead of me if it doesn't work.
    TIA your expertise,
    JL

    Fixed it!
    When Exporting as Data sets as files... the step I missed was to select "All Data Sets" from the Data Set drop down.
    Thanks all.
    JL

  • Data sets and text encoding problem

    I have a problem when trying to import french text variables into my data sets (for automated generation of lower thirds). I can not get PS to display french special characters correct. all 'accented' As and Es etc. display as weird text strings, just like your browser running on the wrong text encoder.
    How do I get PS to interpret the data sets right? Any idea?
    thanx
    Gref
    ( PS CS6 (13.0.1), Mac Pro running on OS X 10.7.3)

    Thanx Bill.
    Unfortunately I cannot change the font as it is corporate. It has all the characters I need, though.
    Did I mention, that I have to generate french AND german subs? No.
    Well I tackled the german versions by processing the textfiles I get with textwrangler saving them as UTF-16. That worked with the german versions.
    Unfortunately I ran into 2 other problems now:
    First problem:
    The data set consists of 7 names and their respective functions. This processes perfectly in german (as I thought to this point) but in the french version it processes perfectly for the first 4 data sets while the fitfth has the right name but the function variable now displays the 5th function AND all the rest of the names and functions. I can not get these data sets displayed seperately. Bummer.
    But even more annoying…
    Second problem:
    When I now import my perfect german lower thirds into Avid I seem to loose my alpha information.
    Avid is supereasy to use with alpha: you have 3 choices: inverted (which is the usual way of importing) having black in the alpha transparent. normal - white transparent or ignore - no transparency.
    Importing 'inverted' alpha always worked (I use Avid for about 15 years now). but these processed PSDs don't. No alpha.
    So I tried to assign an alpha channel via Actions to these files. Now Avid seems to discard the layers completely leaving me with white text where it should be black. The PSDs have black character text layers but in Avid the characters are white. It seems like AVID just renders the white pixels of the alpha channel.
    Assigning the Alpha is no option anyway, as the whole process should make the generation of these lower third EASIER and faster for the person that has to make every lower third by hand by now.
    All of this can be boiled down to one word: ARGH!

  • PSD files created using export data set fail to import into lightroom

    If I create a set of files using variables in a data set, the PSD files won't import into LightRoom. LR says to resave with maximum compatibility, but I already have that set in Photoshop. If I open one of the files and resave it, it will import. Perhaps PS isn't honoring the maximize compatibility setting when exporting.

    Hi,
    I downloaded 10g database ver 10.2.0.1.0 from oracle site and installed it on my laptop. I took an export of schema which was on my 9i database ver 9.2.0.1.0 using 9i exp, created tablespace and user in the 10gdb and tried to import the same to 10gdb using 10g imp using the following.
    imp system/pswd@10gdb fromuser=test touser=test file=expdat.dmp log=expdat.log
    it displays
    .importing SYSTEM'S objects into SYSTEM
    .importing TEST'S objects into TEST
    and it doesnt import any objects just hangs. The Log file does'nt have any entries.
    Can anyone help me.
    Thanks in advance
    Smdas

  • Variables containing French Accent do not follow - Photoshop data set

    Hi,
    I created a Excel file for my data sets. Some variables have french accent ( é, à, è etc ).
    When I export to .csv or .txt, I have some issue regarding on which software I use to open the new file; all accents have changed to some strange characters.
    However, when I open my csv file with Numbers, or Text Edit, accents are there.
    My problem is Photoshop never show correctly the accent when I Import my datasets.  I tried to re-export from Number and/or Text Edit, but it didn't work
    Any clue ?
    Thanks

    If you are unwilling to backup your data regardless of update/upgrade, I have no sympathy for you.
    If you recall, the panther to tiger update was also no picnic. And it just makes good sense to backup all of your pictures/data anyway - regardless.
    That in mind, your story is witty and disarming! Bravo on the final success.
    I have upgrades/clean installed 3 macs with no issues on each. Maybe my luck <shrug>

  • Help Working With Variable Data Sets (PS CS3)

    I have two different projects for which I believe the Variable Data Sets would / could work.
    Project 1:
    I have created a student badge for our TV Media class and I would like to be able to use a Variable Data Set to automatically read a data file with First and Last names and then place them in the locations of my choosing. I would like to be able to import the list and have it automatically create the 30 ID cards I need and/or print them too.
    Project 2:
    I have created a really nice looking school dance ticket. Currently they are about 1.5" x 6". I would like to be able to use a Variable Data Set to automatically add a couple of different pieces of information: Date, Ticket Number (sequential).
    In each case, I have been able to successfully create a data set and replace a single variable, but I have not been able to modify more than one variable in a file.
    Each text selection is on its own layer. I have tried to create a text file that looks like this:
    FName, LName
    Joe, Smith
    Barney, Jones
    Thalia, Chamoix
    I have also tried to create two different files, such as for project two:
    Date
    January 04
    February 12
    March 19
    Number
    1001
    1002
    1003
    No matter what I have tried, I still cannot seem to get more than one variable to function at a time.
    Any assistance would be greatly appreciated.
    Thank you!

    I don't hink Data Merge is sophisticated enough to skip a page if the entire record is null, but it will skip blank lines if there is a null field and nothing else on the line.

  • Defining a spry data set from a url variable

    I am developing a family web site that, among other things, uses a single 'recipe' page to display recipes from different xml files as called by a url variable (e.g. ?xmlFile="{url}"&recipeName="{name}") from a summary page.  I can get the recipe name to reproduce using a $_GET php function, but I cannot establish the data set that way.  How can I define the data set from the incoming URL variable?  The necessary files are:
    The starting point from which I send the selected URL variable (use the scampi recipe)  http://ebogott.com/recipeBox.php.
    The file that is generated is http://ebogott.com/recipe.php?XMLfile=GrilledScampiOnAngelHair.xml&recipeName=Grilled%20Sh rimp%20Scampi%20on%20Angel%20Hair%20Pasta
    This methodology will allow me a number of cascading selections.  I know this is not unique.  I just haven't figured it out.
    don Carlos de la Playa

    don Carlos,
    The following shows the strength of the Spry framework. All very easy and simple.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:spry="http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <script src="SpryAssets/xpath.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryData.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMasterDetail.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    <!--
    var dsRecipes = new Spry.Data.XMLDataSet("recipes/recipes.xml", "recipes/recipe");
    var dsIngredients = new Spry.Data.XMLDataSet("recipes/{dsRecipes::url}", "recipe/ingredients/ingredient");
    var dsProcess = new Spry.Data.XMLDataSet("recipes/poultrySoup.xml", "recipe/process/element");
    //-->
    </script>
    </head>
    <body>
    <div class="MasterDetail">
      <div spry:region="dsRecipes" class="MasterContainer">
        <div class="MasterColumn" spry:repeat="dsRecipes" spry:setrow="dsRecipes" spry:hover="MasterColumnHover" spry:select="MasterColumnSelected">{name}</div>
      </div>
      <div spry:detailregion="dsRecipes dsIngredients dsProcess" class="DetailContainer">
        <div class="DetailColumn">{@genre}</div>
        <div class="DetailColumn">{@serves}</div>
        <div class="DetailColumn">{@time}</div>
        <div spry:repeat="dsIngredients">
          <div class="DetailColumn">{dsIngredients::qty}</div>
          <div class="DetailColumn">{dsIngredients::measure}</div>
          <div class="DetailColumn">{dsIngredients::item}</div>
        </div>
        <div spry:repeat="dsProcess">
          <div class="DetailColumn">{dsProcess::element}</div>
        </div>
      </div>
      <br style="clear:both" />
    </div>
    </body>
    </html>
    You will have to give a bit of style to the detail region.
    I hope this helps.
    Ben

  • Variable Data Set has only one thing but the error asks for more

    Hi -
    I have a PSD (CS5, Win7) where I've defines 5 layers with variable names. One of them is the Heading layer with the variable named varHeading.  The Data Set I'm importing is very simple in that only the Heading layer will change. I'm gone over the construction of this text file a number of times but when I try to Import it as a Data Set I get the error:
    "Could not parse the file contents as a data set.  There were not enough variable names in the first line of the text file."
    varHeading
    "BABY CAR SEAT AECC0841"
    "BABY CAR SEAT AECC0842"
    "BABY CAR SEAT AECC0843"
    "BABY CAR SEAT AECC0844"
    "BABY CAR SEAT AECC0845"
    My first question is - does the number of variables stored in the PSD file have to match the variable names in the first line of the text file??
    If NOT - can someone please help me figure out what I'm doing wrong?
    TIA your expert input.
    j2

    When you say you have defined 5 layers with variable names are you trying to attach the data set, that has one column, to each one at the same time? Did you create the data set in the Photoshop Data Sets Dialog ? The error that you are getting pops up when you have defined more variables than you have in your data set.

  • How can I set a variable number of values in a SQL IN clause?

    Hi,
    How can I set a variable number of values in a SQL IN clause without having to change the text of the SQL statement each time?
    I read the link http://radio.weblogs.com/0118231/2003/06/18.html. as steve wrote.
    SELECT *
    FROM EMP
    WHERE ENAME IN (?)
    But we need the steps not to create type in the system and would there be any other solution if we would like to use variable number of values in a SQL IN clause ?
    We are using JDeveloper 10.1.3.2 with Oracle Database 10.1.3.2
    Thanks
    Raj

    Hi,
    can you please explain why the solution from steve is not the right solution for you.
    regards
    Peter

  • Spry Data Set - Possible to limit number of records show

    Hi,
    I am totally new to Spry in Dreamweaver.  I tried searching the forums for an answer but I could not find anything on how to limit the number of records shown.
    For example - I have 100 rows of information in my table.  When I do the Spry Data Set and use the Master/Detail page I only want 20 records to show.  Otherwise the page looks very long and odd.  Is it possible to just show the first 20 records and the ability to scroll or link the next 20 and so on?
    If you have a link to a tutorial or more information that would be greatly appreciated.
    Thank you,
    Kathy

    have a look here http://labs.adobe.com/technologies/spry/samples/data_region/SpryPagedViewSample.html

  • Using Spry Data Set Variable in Recordset

    I have a page that contains a spry data set and a recordset. The recordset uses one of the variables from the spry data set to filter its results. how do I apply the spry data set variable to the recordset?

    I believe passing this the variable through the URL requires you to update the page, right?
    Yes
    Is there anyway to grab the spry data set variable direct and apply it to your recordset filter?
    The SpryDataSet variable can only be used on the clientside (JavaScript) so you will have to get your recordset using JS.
    A page refresh can be set in motion if you add {useCache: false, loadInterval: 500} to your dataset to then set an observer to your dataset to invoke the page refreash function.
    Gramps

  • How to set page number & current date in sqlplus result

    how to set page number & current date in sqlplus result

    Hi,
    Use the TTITLE command. For example:
    SET     PAGESIZE     15
    TTITLE     LEFT  &_date     RIGHT  "Page:" FORMAT 999 sql.pno     SKIP 2
    SELECT     ROWNUM
    ,     ename
    FROM     scott.emp
    ;Output:
    12-Jan-2011                    Page:   1
        ROWNUM ENAME
             1 SMITH
             2 ALLEN
             3 WARD
             4 JONES
             5 MARTIN
             6 BLAKE
             7 CLARK
             8 SCOTT
             9 KING
            10 TURNER
    12-Jan-2011                    Page:   2
        ROWNUM ENAME
            11 ADAMS
            12 JAMES
            13 FORD
            14 MILLER 
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only), and the results you want from that data. If your question is based on commonly available tables, like those in the scott schema, then you don't have to post any sample data: just post the output.
    Explain how you get those results from that data.
    Always say what version of Oracle (and other relevant softward, SQL*Plus in this case) you're using.

  • Could not parse the file contents as a data set. There were too many variable names in the first line of the text file.

    Could not parse the file contents as a data set. There were too many variable names in the first line of the text file.

    What are the Variables settings, what is the text file’s content, …?

Maybe you are looking for

  • Moving photos from iPhoto 9.4.3. to  iPhoto 9.5.1

    I have photos in iPhoto on an old hard drive; there were saved with iPhoto 9.4.3. I want to move them to a new laptop that has iPhoto 9.5.1 but I am unable to open the old library on the new laptop. I seem to need an update that I can't access. Any i

  • Entry missing in Integration Engine (sxmb_moni)

    Dear all, We have a Synchronous scenario from SAP ECC --PI -- Database. A synchronous outbound proxy is trigeered at EC to send some data to PI and from PI  to Database. We are not able to find an entry in PI-SXMB_MONI.Where as , wer are able to see

  • RFC User for Connectivity with ABAP Server Proxy Required?

    Hi people, I am just wondering how I set-up my connectivity between XI and my business system B. Our basis already set-up the connection to the runtime workbench from B->XI For that sake they've added the xirwbuser to B (Xi has it as well, of course)

  • A box on my screen interfering with operation

    There appears intermittently on my screen a blue box that looks like part of some HP tool.  It says "audio adjust,"  followed by 2 lines that are alternately highlighted: "volume" and "mute."  I can't remove or minimuze or move this box.  When it is

  • How a Portal Team should work

    Hello everybody, We're a new group (6 persons) in my company and we're developing our first project with SAP Enterprise Portal. We have a server with SAP EP 7 (Netweaver 2004s) but we suppose, as I've read, we'll have to install a Workplace in our pc