String length when using CHNAVERAGE

Hi all,
I want to average quite a number of non-waveform channels and ran into the problem, that the CHNAVERAGE function only accepts a 255byte long channel string. Working around it by using the "'[1]/Channel 1-'[1]/Channel X" syntax does not help, because channels are not in consecutive order.
Any Ideas???
Regards,
David
... using Diadem 10

Hi DavidS!
There is not any longer a length restriction in DIAdem 10.1 or newer.
May be a workaround in DIAdem 10.0 is to use channel numbers instead of channel names which increases the maximum number of channels you can specify in a 256 byte long string. Alternatively you may rearange the channels in the portal and then call the ChnRenumber function to bring the channels in consecutive order.
I hope this helps,
Christian

Similar Messages

  • Is there a way to adjust the frame length when using a FFT

    Is there a way to adjust the frame length when using a FFT?
    Thanks,
    David

    I thought that to have a longer frame rate you just need to have a longer sample set.

  • Error: "Invalid string or buffer length" when using SQLColumns!

    I am calling SQLColumns through the Oracle ODBC driver to get the column information of a table. The Client version is 9.0.1.0 and the ODBC driver version is 9.0.1.8. If I am querying a table that does not has a long table name, fine; if I am querying a long table name, failed and reporting:
    [Oracle][ODBC]Invalid string or buffer length.
    Tried with MS Oracle driver, no problem. Anybody can help?
    Thanks in advance.

    the name is very long, like 'aaaabbbbccccddddeeeeffffrrrrdddaaa'. Maybe more than 20 charactors. I haven't find the exact number, before which SQLcolumns works, after which SQLColumns stop working.

  • Keep getting string literal when using CLOBs

    Hi, I am using Oracle 11.2.0.3 on Windows 2003 R2 and I have a procedure to extract various bits of XML and GML from an XMLType column. The GML for a record can be one or more geometries and I need to derive a single SDO_GEOMETRY from and convert to WGS84. I created a function called MULTI_GML_TO_SDOGEOM in which I parse my GML as a CLOB. I then add it to a SQL_STMT variable which is also a CLOB. In processing 10,000 records, this function worked fine for 8000 but then failed when it hit a record that had over 4000 characters in the GML (seven geometries) with a ORA-01704 string literal too long. I entered debug on every line of the function and found the function failed on the open cursor statement
    OPEN c_geoms FOR sql_stmt;I can't understand why I am getting this error as the total length of sql_stmt for the record that failed was about 7500 characters and I am using CLOBs which should be able handle that length. I am not sure if I have not used the CLOBs correctly or perhaps I need to use something from DBMS_LOB package but I cannot find any decent examples and I am not really sure why this doesn't work anyway.
    Here is the function:
    CREATE OR REPLACE FUNCTION MULTI_GML_TO_SDOGEOM (
       geometry_components IN CLOB)
       RETURN sdo_geometry
    IS
    v_count             NUMBER;
    v_gml               XMLType;
    v_gml_rec           XMLType;
    v_gml_clob          CLOB;
    v_gml_clob_rec      CLOB;
    sql_stmt            CLOB;
    v_sdogeom           SDO_GEOMETRY;
    v_sdogeom_all       SDO_GEOMETRY;
    varray_sdogeom      SDO_GEOMETRY_ARRAY;
    TYPE t_ref_cursor  IS REF CURSOR;
    c_geoms         t_ref_cursor;
    BEGIN
    varray_sdogeom := SDO_GEOMETRY_ARRAY();
    IF geometry_components is not null THEN
      v_gml := XMLType ('<GeometryComponents xmlns:gml="http://www.opengis.net/gml/3.2">'||geometry_components||'</GeometryComponents>');
      v_gml_clob := v_gml.getClobVal();
      SELECT count(*) INTO v_count FROM XMLTable ('declare namespace gml="http://www.opengis.net/gml/3.2"; (: :)
                                                 //polygon' PASSING v_gml);
      If v_count > 0 THEN
        sql_stmt := 'WITH gml_input AS (SELECT XMLType ('''||v_gml_clob||''') as gmldata from dual)
                     select poly.spatial_location from gml_input,
                                                     xmltable (xmlnamespaces (''http://www.opengis.net/gml/3.2'' as "gml"),
                                                              ''GeometryComponents/polygon/gml:Polygon''
                                                               PASSING gmldata
                                                               COLUMNS
                                                               spatial_location XMLTYPE PATH ''//gml:Polygon'') poly
                     UNION ALL
                     select point.spatial_location from gml_input,
                                                     xmltable (xmlnamespaces (''http://www.opengis.net/gml/3.2'' as "gml"),
                                                              ''GeometryComponents/polygon/gml:Point''
                                                               PASSING gmldata
                                                               COLUMNS
                                                               spatial_location XMLTYPE PATH ''//gml:Point'') point';
    --    dbms_output.put_line (sql_stmt);
        OPEN c_geoms FOR sql_stmt;
        LOOP
          FETCH c_geoms INTO v_gml_rec;
          EXIT WHEN c_geoms%NOTFOUND;
          v_gml_clob_rec := v_gml_rec.getClobVal;
          sql_stmt := 'SELECT SDO_CS.TRANSFORM(SDO_UTIL.FROM_GML311GEOMETRY ('''||v_gml_clob_rec||'''), 8307) FROM dual';
          EXECUTE IMMEDIATE sql_stmt INTO v_sdogeom;
          varray_sdogeom.EXTEND;
          varray_sdogeom(varray_sdogeom.COUNT) := v_sdogeom;
        END LOOP;   -- c_geoms fetch
        CLOSE c_geoms;
        select SDO_AGGR_SET_UNION(varray_sdogeom, 0.005) INTO v_sdogeom_all from dual;
      END IF;  -- v_count > 0
    RETURN v_sdogeom_all;
    END IF;
    END MULTI_GML_TO_SDOGEOM;
    show errorsUnfortunately I cannot add the data I am processing as it is classified but here is a dummy sample of the type of GML I am parsing though this is short enough that it works:
    <GeometryComponents xmlns:gml="http://www.opengis.net/gml/3.2">
    <polygon xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:srv="http://www.isotc211.org/2005/srv"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:mgmp="http://www.mod.uk/mgmp" xmlns:smr="http://www.mod.uk/smr"
    xmlns:xlink="http://www.w3.org/1999/xlink"><gml:Polygon gml:id="bp2" srsName="EPSG:4326">
    <gml:exterior>
    <gml:LinearRing>
    <gml:posList srsDimension="2">175 -40 176 -40 176 -39 175 -39 175 -40</gml:posList>
    </gml:LinearRing>
    </gml:exterior>
    </gml:Polygon>
    </polygon>
    </GeometryComponents>And although this function is normally called from a procedure, here is a call from dual
    select MULTI_GML_TO_SDOGEOM ('<GeometryComponents xmlns:gml="http://www.opengis.net/gml/3.2">
    <polygon xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:srv="http://www.isotc211.org/2005/srv"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:mgmp="http://www.mod.uk/mgmp" xmlns:smr="http://www.mod.uk/smr"
    xmlns:xlink="http://www.w3.org/1999/xlink"><gml:Polygon gml:id="bp2" srsName="EPSG:4326">
    <gml:exterior>
    <gml:LinearRing>
    <gml:posList srsDimension="2">175 -40 176 -40 176 -39 175 -39 175 -40</gml:posList>
    </gml:LinearRing>
    </gml:exterior>
    </gml:Polygon>
    </polygon>
    </GeometryComponents>') from dual;Thanks in advance.

    Hi,
    I fail to see why you use dynamic SQL here.
    As said above, you're doing a lot of bad and unnecessary stuff, first of which being not using bind variables.
    Then I see a lot serializing/constructing on XMLType which just adds more overhead.
    Basically, the function can be simplified down to :
    create or replace function multi_gml_to_sdogeom (
      geometry_components in clob
    return sdo_geometry
    is
      v_sdogeom_all       SDO_GEOMETRY;
    begin
      select SDO_AGGR_SET_UNION(
               cast(
                 collect(
                   SDO_CS.TRANSFORM(SDO_UTIL.FROM_GML311GEOMETRY(spatial_location), 8307)
                 as sdo_geometry_array
             , .005
      into v_sdogeom_all
      from (
        select xmlserialize(content x.column_value) as spatial_location
        from xmltable(
               xmlnamespaces ('http://www.opengis.net/gml/3.2' as "gml")
             , '/GeometryComponents/polygon/(gml:Polygon|gml:Point)'
               passing xmlparse(document geometry_components)
             ) x
      return v_sdogeom_all;
    end;
    SQL> select multi_gml_to_sdogeom('<GeometryComponents xmlns:gml="http://www.opengis.net/gml/3.2">
      2  <polygon xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:srv="http://www.isotc211.org/2005/srv"
      3  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:mgmp="http://www.mod.uk/mgmp" xmlns:smr="http://www.mod.uk/smr"
      4  xmlns:xlink="http://www.w3.org/1999/xlink"><gml:Polygon gml:id="bp2" srsName="EPSG:4326">
      5  <gml:exterior>
      6  <gml:LinearRing>
      7  <gml:posList srsDimension="2">175 -40 176 -40 176 -39 175 -39 175 -40</gml:posList>
      8  </gml:LinearRing>
      9  </gml:exterior>
    10  </gml:Polygon>
    11  <gml:Point gml:id="p21" srsName="EPSG:4326">
    12      <gml:coordinates>45.67, 88.56</gml:coordinates>
    13    </gml:Point>
    14  </polygon>
    15  </GeometryComponents>')
    16  from dual ;
    MULTI_GML_TO_SDOGEOM('<GEOMETR
    <Object>
    Edited by: odie_63 on 8 janv. 2013 18:02

  • Problem with string constructor when using byte array as parameter

    I am creating a string using constructor and passing byte array as parameter.This byte array i am getting from MessageDigest's digest() method,i.e. a hash value.
    The problem is when i iterate through byte array i can able to print all the values in byte array.But when i construct a string from that byte array and printing that string ,that is printing some unknown characters.
    I don't know whether i need to pass charsequence to the constructor and the type of charsequence.Can anybody help me?
    Thanks in advance

    Is there some problem today? I'm getting this sort of thing all over.
    I already told you and so did Kayaman. Don't. String is not a holder for binary data. You have to Base-64 encode it. If you don't you cannot reconstruct the original binary digest value, so putting it into a database is completely utterly and entirely pointless.
    Is that clear enough?

  • Problem with path length when using oracle drive

    Hello!
    Does anybody else experience this problem with Oracle Drive?
    When I create a deep or nested hierarchy in which the path length is longer than 250 (the limit might be 255) characters, I cannot access the deeper subpages.
    Example:"X:\INET\START1\pfadlaengentest\das istein langer ordnername mit etwa 50 zeichen\and this is another veryveryvery long\and this is another veryveryvery lon2\and this is another veryveryvery lon3\and this is another veryveryvery lon4\and this is another veryveryvery lon5".
    I can access the page "and this is another veryveryvery lon4" but not "and this is another veryveryvery lon5"
    Is this problem due to WebDAV?
    What can I do - I think it is a critical error / bug?
    Regards Joerg.

    I opened a service request and oracle support could help me.
    The problem is the windows file system: the path length cannot be longer than 256 chars.
    There's a workaround with MS-Webfolders.
    More information is available via metalink: watch out for SR-Number 5659267.992.
    PS: Thanks to Bert
    bye :-j (joerg)

  • How to find length of string after encryption using DBMS_CRYPTO package

    Hi,
    I am planning do data encryption using DBMS_CRYPTO package. I want to find how much will be string length after encryption.
    e.g When I try to encrypt string of length between 1-15 characters it gives me encrypted string of 32 characters. When I try with 16 charcters encrypted string is of 64 characters.
    Is ther any formula to calculate length of encrypted string?
    Thanks
    Pravin

    The length change is dependent upon the algorithm you are using which can be a combination of cipher block, padding, and chaining.
    The best solution is determine the method you are going to use and apply it to the l ongest possible strings you are going to proces, then add some safety margin. There iis no penalty for defining your column as VARCHAR2(4000).

  • Wget - Connection timed out when using "long" strings

    I'm having a problem with a little script to change some settings for IP-phones. Here is the script:
    #!/bin/bash
    for i in "0" #"4"
    do
    for j in $(seq 176 176)
    do
    wget --timeout=1 --tries=1 --keep-session-cookies --save-cookies cookies.txt --post-file=postfile http://192.168.$i.$j/dologin.htm
    wget --timeout=1 --tries=1 --load-cookies cookies.txt --post-file=postfile2 http://192.168.$i.$j/update.htm
    done
    done
    postfile looks like this and is just for logging in:
    P2=<pass>&
    postfile2 looks like this:
    P270=123456&
    The problem now is, when using it like above, everything works fine. But if I make the text in postfile2 one character longer, I get this:
    Connecting to 192.168.0.176:80... connected.
    HTTP request sent, awaiting response... Read error (Connection timed out) in headers.
    Giving up.
    It doesn't matter where I put the character to make the string longer (I can for example use P32=1234567& and it works). I have tested the script from different machines and used different phones, always the same. Any ideas?

    daf666 wrote:The two files look identical, are you sure that the "bad" one is actually a capture of the timed out session? (both have same data length and same value in the content-length header).
    Yes, they are different and the bad is is from the timeout .
    daf666 wrote:Anyway, this timeout might occur, if for some reason wget will say content length is 10 and send only 9 characters in the post request..
    Any idea what I can do about it? There is something fishy going on. I did this once before a few month ago when I wanted to change other settings. I tried to do the same thing again but even this doesn't work anymore. Maybe I should just try curl .

  • Using "string-length" in STANDARD receiver determ xpath rule in PI 7.11

    Hi
    I have a situation, where I need to call one system, if the businesspartner value is 6 characters long and call an other system, if the length is different from 6 characters.
    I am trying to use the standard receiver determination by entering this rule, but it does not work:
    (string-length(/p1:ValidateUserRequest/Businesspartner)) = 6          ->   system1
    (string-length(/p1:ValidateUserRequest/Businesspartner)) not=  6   ->   system2
    Is there no way of sprucing up the standard xpath expression in the way I try?
    What alternatives do I have?
    Mikael

    Hi,
    Please try giving the XPath expression as given below:
    /p1:ValidateUserRequest [string-length(Businesspartner) = 6]  system1
    /p1:ValidateUserRequest [string-length(Businesspartner) != 6] system 2
    Please use square brackets before "string" and after "6"...its not getting displayed in my reply...:-(
    Rgds,
    Lekshmi.
    Edited by: Lekshmi N on Jan 6, 2010 12:29 PM

  • Error when dynamically acquiring string with variable string length

    Hi,
    I have written a VI to send voltage signal and read back the channel 1 and channel 2 data of a SR830 lockin amplifier using serial port. I obtain the channel readings as a single string separated by "," using the snap function. The problem is that when ever the channel 2 data gets very close to zero then the output is in engineering format like say 6.73883e-005. This is where the problem occurs. When such a situation is encountered, I always get a time out error. I have tried to increase the byte count in the read VISA ( till around 50) but then I get this error more often, but if I reduce it to something like 17, I only get this error as I mentioned above only when the channel 2 reading is very nearly zero. I have tried to reduce the byte (to as low as 8), but then I donot get back the whole channel 2 reading (this ch2 reading is also important to me). I am in a fix. Please give me a way out.
    I am attaching here the VIs.
    Attachments:
    C-V measurement by SR830.vi ‏107 KB
    sr830readout1.vi ‏31 KB
    sr830 initialize.vi ‏15 KB

    I am really sorry for the late reply. Well, I tried to increase the time constant inthe sr830 initialize VI, upto 240,000 ms. But I still get the error, and not always now when the reading is near zero. Can you please tell me whats wrong? I am in my very early days in labview and this is infact the first program I have written. BTW i am using a serial port to communicate with the SR830 lockin amplifier. Can you tell me in this context how I use SRQ? thanks in advance.

  • Number database field treated as String in formula when using 64bit runtime

    Hey just a quick shout out to those with the above problem or those following the now "closed but unanswered" thread by the same name - if you're getting "A string is required here" error messages after switching over to the 64-bit runtime, or other weird loss of formatting issues, then try turning off the "Verify on First Refresh" or "Verify Stored Procedures on First Refresh" options in File | Report Options... as the case may be.

    Previous post was here.
    Number database field treated as String in formula when using 64bit runtime
    Thanks for the find ezachman.

  • When using imovie for Ipad, how can I fast forward a project to cut the length down?

    When using imovie for Ipad, how can I fast forward a project to cut the length down to fit under the 15 minutes required for Youtube? My current project is 23 minutes, and need to cut it down below 15 minutes. I was hoping to speed up the video. The content would actually be better viewed in at a faster speed anyhow.

    Jon,
    It sounds like you did, just as you should, Save_As and Delete everything that is unwanted. If you did the Deletion from the Timeline, there should be nothing from the old Project, that should be included. A DVD is Transcoded and burned from the Timeline. If the Assets are not there, they will not included in the DVD, even if you did not Delete anything from the Project Panel.
    Tell us about the Clips now on your Timeline. Also, can you check the Timeline, by hitting the \ (Backslash key), and looking near the end of the Timeline. Do you have any "orphans" out there? Check all Video Tracks, even if you have to scroll to see them all. Does the Duration of the Timeline (viewed in the Program Monitor) match what you think that it should? If not, then you most likely have orphans, that you missed Deleteing.
    Good luck,
    Hunt

  • How to find length of a string in JSF using EL expressions.

    I am doing it as below for finding string length
    <c:set var="test" value="#{myPageBean.myMethod.length()}" />
    While evaluating the above expression,it will call getMyMethod() which will return a String. On that it will call length().
    But it this throwing parsing error,
    Is it different in JSF?..Pls help.

    BabuKhan wrote:
    I have imported the taglib in th below 3 ways and tried
    1. <anyxmlelement xmlns:fn="http://java.sun.com/jsp/jstl/functions" />
    2. <anyxmlelement xmlns:fn="http://java.sun.com/jstl/functions" />
    3. <anyxmlelement xmlns:fn="http://java.sun.com/jsf/functions" />
    Literally? Do you understand the meaning of "anyxmlelement" ?

  • Parallel sequence Hang when using Select string in CallBacks

    Hi,
    I have posted a problem yesterday explainig that my custom interface in C# was Hanging/Locked when using parallel executions. 
    => My application works fine when i run the sequences sequentially.
    So i have followed my investigations and i found the origin of the problem.
    In my application i use a special process model with 2 callbacks : 
    ProcessModelPreStep
    ProcessModelPostStep
    In these callbacks i had to look for a special step. So i write something like :
    SELECT RunState.Caller.Step.StepType.Name
    CASE "XXXXX"
    End
    CASE "YYYY"
    End
    End
    I do replace this syntax by :
    IF StrComp( RunState.Caller.Step.StepType.Name , "XXXXX" ) == 0
    End
    IF StrComp( RunState.Caller.Step.StepType.Name , "YYYY" ) == 0
    End
    And then the application hangs no more !!!! 
    This problem can be viewed directly with TestStand using a parallel processModel containing the callbacks with the select ....
    Here are 2 files which can reproduce the problem easily ...
    Manu.net
    Manu.net
    Attachments:
    ParallelModelWithCallBacks.seq ‏53 KB
    Wait10Time1Second.seq ‏7 KB

    Manu.net -
    From your sequence files, it looks like you're using TestStand 2010. I believe you might be running into Known Issue 276979 which was fixed in TestStand 2010 SP1.
    Hope this helps.
    Manooch H.
    National Instruments

  • Questions on: 1) Last Update; 2) Max String Length; 3) dynamic table keys

    Hi:
    - I am currently prototyping a plug-in but I have some questions:
    - 1) At the 'All Metrics' table, what is the intent of the 'Last Upload' field,
    and how is this field updated?
    - I have created some metrics but for some metrics the 'Last Upload' field
    has a timestamp but for other metrics there is no data.
    As far as I know, the metrics are similar but I do not know why the behaviour is different.
    - 2) Is there a maximum string length that the Oracle agent can accept?
    - I have a script which just returns all the environment variables into one cell.
    In emagent.trc, the Oracle agent issues the following warning:
    2009-08-27 12:38:47 Thread-76336 WARN upload: Truncating value of "STRING_VALUE" from "AGENT_HOME=
    - Is the truncation an issue?
    - 3) I have created some dynamic tables from performing an snmp walk, but the key that I use
    is the index of the SNMP table. The data is collected correctly, but I am not sure that using
    the table index as the key for OEM is a good idea because the metrics are stored according to the SNMP table index.
    Should the OEM key be the something like 'object name' instead of the index number from performing an SNMP walk ?
    For example, when I click a metric, the metric name is: Sensor Index 1.
    But should it not be something like 'Fan #1' ?
    Thanks John

    Metrics are collected at certain intervals, the Last Upload field indicates the date and time of the last time a metric collection was uploaded. The quicker the interval, the more recent that date should be. If you don't specify a CollectionItem in your default collection file for your metrics, they won't be collected or uploaded.
    If your metric column is a STRING type, it is stored in a VARCHAR2(4000)
    I'm not sure I understand your last problem... You have a table metric with a set of columns. The column you use as the key is just some tracking index which doesn't really mean anything. As long as your key column(s) make the row unique, the agent will be satisfied. If you want something more meaningful as your key, then it's something you will have to inject into your dataset if it isn't already there.

Maybe you are looking for

  • JFrame can not be visiable on WinXP.

    I create a frame which extends from JFrame. when a button is clicked, the frame should be visiable. On Win 2000, it runs, but on Win Xp , it does not run, the frame does not appear. But the other frame which also extends from the JFrame runs on both

  • Why can't I download the songs from my ipod to my compute

    I'm getting insanely frustrated right now. I got an ipod about a month ago and was ecstatic. I could finally get the 12 gb of music off my computer (all songs I've taken the time to copy from my own legal cds) and onto my ipod. So I got the new itune

  • IPod causes PC Crashing, won't do ANYTHING, but works fine unplugged

    OK, so today I tried booting up iTunes to put some new music on my iPod I had just ripped off of a CD. I clicked on the shortcut, and nothing ever came up. Same thing was happening with Spybot, and a re-install fixed that, so I reinstalled iTunes. Sa

  • How do I get rid of second 169.254.x.x IPv4 address on Windows Server 2008 SP2 x86?

    I'm sure this is an obvious one but can't figure it out. I have a Winserver 2008 Sp2 (x86) DC with a static IP address allocated to its only NIC.  It seems to have acquired a second 169.254.x.x address automatically which I can't get rid of and which

  • Youtube videos not working with ipod

    This problem has always happened to me. But yesterday I had enough It was one of those peaceful days. I decided to stay in my room To watch x-men evolution on my iPod (how cool is that) but anyway Not for long. I got to watch all the way up to season