Spry dynamic dataset table problem

We are running in a quirk of Spry that we can't seem to make it work.

When we create a data set of an XML file on the web server, a Spry table using this dataset displays correctly and is as it should be. But when we create the same group of XML data from a php/asp script on the web server, the Spry table flashes the model for a fraction of a second, and then deletes them. Web pages that contain the data sets are identical except for the source used by Spry.Data.XMLDataSet. No matter where he gets to it, the XML is identical. The XML file that we use has been generated by recording the output of the php/ASP script. The XML source file works, but the source script does not work.

Example code:
XML source: (this is generated by st.php and saved in st.xml, model based on DW CS3 Spry documentation)

<? XML version = "1.0" encoding = "utf-8"? >
<>sets
< Game >
< user_id > ZZZZ < / user_id >
< grp_id > ABCD < / grp_id >
< / set >
< Game >
< user_id > ZZZZ < / user_id >
< grp_id > EFGH < / grp_id >
< / set >
< / sets >

HTML: (here, everything is generated as DW CS3 has created, starting a new html file)

<! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" " 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 > "
< script type = "text/javascript" >
var DS1 = new Spry.Data.XMLDataSet ("st.php", "sets/set");
< /script >
< / head >
< body >
< div spry: region = "ds1" >
< table >
< b >
user_id < th > < /th >
< th > grp_id < /th >
< /tr >
< tr spry: repeat = "ds1" >
< td > {user_id} < table >
< td > {grp_id} < table >
< /tr >
< /table >
< / div >
< / body >
< / html >

-note: the "xmlns: spry" in the code above has an extra space between the slashes - I added that because the preview kept adding tags additional head in the middle of this address...

The above html code uses "st.php" as a source for the dataset, and the only difference between the two tests is to change the source to 'st.xml '. I tried to look in all the documents that I can find, and the CS3 code corresponds to all the examples for the use of XML or a set of data source php/asp. Documentation seems to assume that it should simply work little matter that I use as a source as long as it outputs xml, which is what I do. I can check if the output itself works well because it made when registering in a direct xml file. Also, if I try to build the dataset schema, DW correctly interprets the output of the php script, exactly as it does when generating the schema from the xml file.

We get this behavior if use us IIS, Apache, php, or asp, IE or Firefox. Obviously we are doing something wrong somewhere, but I can't find others with this problem, I can't find any options that could correct. Anyone has any ideas what could be the problem?

"FSchwalm" wrote in message
News:f1cq7h$KGM$1@forums. Macromedia.com...
> Get us this behavior, if we use THE IIS, Apache, php, or asp, or
> Firefox.
> Obviously we're doing something wrong somewhere, but I can't find
> other
> having this problem, I can't find any options that could correct.
> Everyone

> have any ideas of what could be the problem?

You must use the ASP/PHP code to configure the mime type of the XML file as
"application/xml".

--
----------------------------
Massimo Foti, programmer web-rental
Tools for ColdFusion and Dreamweaver developers:
http://www.massimocorner.com
----------------------------

Tags: Dreamweaver

Similar Questions

  • Dynamic temporary Table in stored procedure

    Dear expert,

    I'm trying to convert a database from MSSQL to Oracle 11 g. But I'm a little stuck on dynamic temporary tables in stored procedures.

    MS is normalize the data out dynamic SQL statements. In TSQL so I've created a Temp table with the number of columns that the SQL statement has, that I executed the SQL statement in the temporary table and then I was going to all the columns with the prompting separate command standard. Finally, I wrote the key table.

    If I want to do this process with only on SP, dynamic, rather than to define for each normalization process its own SP, so this possiple in Oracle?

    For example. "INSERT INTO Temp (PartNo, Descr, Type, price) SELECT PartNo, Descr, price from parts.

    PartNo. Descr | Type | Price
    AB00 | AKER GD245 | Monitor | 200.00
    AB01 | Samir QQ22 | Monitor | 120.00
    AQ05 | HB 5500DN | Printer | 550.00

    SELECT @R = Max (PartKey) of N_Parts
    INSERT INTO N_Parts (PartKey, PartNo) SELECT RowNum + @R, PartNo FROM (SELECT DISTINCT PartNo FROM Temp INCLUDING PartNo NOT IN (SELECT PartNo of N_Parts));
    SELECT @R = Max (PartDKey) of N_PartsDescr
    INSERT INTO N_PartsDescr (PartDKey, Descr) SELECT RowNum + @R, Descr FROM (SELECT DISTINCT Descr FROM Temp WHICH Desrc NOT IN (SELECT Desrc from N_Parts));
    ...

    Insert into Part_Data (PartKey, PartDKey, PartTKey, PartPKey)
    SELECT T0. PartKey, T1. PartDKey, T2. PartTKey, T3. Temp PartPKey T
    INNER JOIN N_Parts T0 to T0. PartNo = T.PartNo
    JOIN IN-HOUSE...

    So what is the best way, do not generate this dynamic Table Temp?

    Published by: 926165 on 08.04.2012 08:26

    926165 wrote:
    I'm trying to convert a database from MSSQL to Oracle 11 g. But I'm a little stuck on dynamic temporary tables in stored procedures.

    Just my 2 cents here.

    Conversion of database provider A to B of database provider is never really a great idea. The products are fundamentally different in many ways. Analysis of demand that needs to be ported from database at database B and then its implementation in a specific way to take advantage of the features of your new environment, accounting for all the differences between the implementations of provider will be your best bet.

    I say this because, for me at least, a conversion means that you take what you have and it in slam in what you need. The better approach is to analyse, design (to explain the differences in behavior between vendor implementations, such as mechanisms for read consistency) and proceed from there. This way, you have a solid base on which to start, instead of a skyscraper built out of toothpicks.

    See you soon,.

  • Help! &gt; How to send a dynamic HTML table as an email?

    Hello


    I want to send a dynamic html table as an email


    I'm using php/mysql and I have a mysql database


    I have a table dynaimc restrained some data from the database


    I have a form with a text box to write the email and a button "submit"


    I want to send the picture (or the information in the table) when I send the form


    is this possible?


    Help, please!

    OK, now I have you.  You create a queary to select the data you want, and then copy the following code

    $data = mysqli_query ($dbc, $query) or die (mysqli_error ($dbc));

    While ($row = {mysqli_fetch_array ($data))}

    Mail to the owner of the form

    $header = "from: [email protected]\n".

    . "Reply-To: $email\n";

    $subject = 'DB in emails data';

    $email_to = "[email protected]";

    $message =

    $row ["FirstName"].

    $row ['last_name']

    ;

    }

    mail ($email_to, $subject, $message, $header);

    So, for each column, you will enter in this

    $row ["FirstName"].

    So if the column reported, you would put

    $row ["State"].

    I hope this is the answer you are looking for.

    Gary

  • Changing aid necessary table problem

    Hello. I hope someone can help me with this problem.

    I have two tables, an and mv. Create the following script:

    create table (mv)
    the moduleId Char (2) CONSTRAINT ck_moduleId CHECK (moduleId in ("M1", "M2", "M3", "M4', 'M5', 'M6', 'M7', 'M8'")).
    credit ck_credits Number (2) CONSTRAINT CHECK (credits (10, 20, 40));
    constraint pk_mv primary key (moduleId)
    );

    create table (its)
    stuId Char (2) CONSTRAINT ck_stuId CHECK (stuId ('S1', 'S2', 'S3', 'S4', 'S5')),
    moduleId tank (2),
    primary key constraint (stuId, moduleId) pk_sa,
    constraint fk_moduleid foreign key (moduleId) references (moduleId) mv
    );

    And the scripts below is to insert data into the two:

    insert into VALUES mv ("M1", 20)
    /
    insert into VALUES mv ("M2", 20)
    /
    insert into VALUES mv ("M3", 20)
    /
    insert into VALUES mv ("M4", 20)
    /
    Insert in mv VALUES ('M5', 40)
    /
    insert into VALUES mv ("M6", 10)
    /
    insert into VALUES mv ("M7", 10)
    /
    Insert in mv VALUES ('M8', 20)
    /


    insert into a VALUES ('S1', 'M1')
    /
    insert into a VALUES ('S1', 'M2')
    /
    insert into a VALUES ('S1', 'M3')
    /
    insert into a VALUES ('S2', 'M2')
    /
    insert into a VALUES ('S2', 'M4')
    /
    insert into a VALUES ('S2', 'M5')
    /
    insert into a VALUES ('S3', 'M1')
    /
    insert into a VALUES ('S3', 'M6')
    /

    Now for the real problems.

    First of all, I need to try to overcome the problem of table mutation ensure that stuid = S1 in table its can not take the two moduleId M5 and M6.

    Just one or the other. I created a single trigger, but runs aground because of the changing table problem.

    The second problem that I need to overcome is that none of the stuids can have the ModuleID where total value of more than 120 credit credits. Credit value is stored in the table of mv.

    Thank you very much in advance for any help.

    Use a statement-level trigger:

    First of all, I need to try to overcome the problem of table mutation ensure that stuid = S1 in table its can not take the two moduleId M5 and M6.

    SQL> create or replace trigger sa_trg
      2  after insert or update on sa
      3  declare
      4  c number;
      5  begin
      6    select count(distinct moduleId) into c
      7    from sa
      8    where stuid = 'S1'
      9    and moduleId in ('M5','M6');
     10    if c > 1 then
     11       raise_application_error(-20001,'S1 on both M5 and M6!!');
     12    end if;
     13  end;
     14  /
    
    Trigger created.
    
    SQL> select * from sa;
    
    ST MO
    -- --
    S1 M1
    S1 M2
    S1 M3
    S2 M2
    S2 M4
    S2 M5
    S3 M1
    S3 M6
    
    8 rows selected.
    
    SQL> insert into sa values ('S1','M5');
    
    1 row created.
    
    SQL> insert into sa values ('S1','M6');
    insert into sa values ('S1','M6')
    *
    ERROR at line 1:
    ORA-20001: S1 on both M5 and M6!!
    ORA-06512: at "SCOTT.SA_TRG", line 9
    ORA-04088: error during execution of trigger 'SCOTT.SA_TRG'
    

    The second problem that I need to overcome is that none of the stuids can have the ModuleID where total value of more than 120 credit credits. Credit value is stored in the table of mv

    SQL> create or replace trigger sa_trg
      2  after insert or update on sa
      3  declare
      4  c number;
      5  begin
      6    select count(distinct moduleId) into c
      7    from sa
      8    where stuid = 'S1'
      9    and moduleId in ('M5','M6');
     10    if c > 1 then
     11       raise_application_error(-20001,'S1 on both M5 and M6!!');
     12    end if;
     13
     14    select count(*) into c from (
     15    select stuid
     16    from mv, sa
     17    where sa.moduleid=mv.moduleid
     18    group by stuid
     19    having sum(credits)>120);
     20
     21    if c > 0 then
     22       raise_application_error(-20002,'A student cannot have more than 120 credits!!');
     23    end if;
     24
     25  end;
     26  /
    
    Trigger created.
    
    SQL>   select stuid, sum(credits)
      2  from mv, sa
      3  where sa.moduleid=mv.moduleid
      4  group by stuid;
    
    ST SUM(CREDITS)
    -- ------------
    S3           30
    S2           80
    S1          100
    
    SQL> insert into sa
      2  values ('S1','M4');
    
    1 row created.
    
    SQL>   select stuid, sum(credits)
      2  from mv, sa
      3  where sa.moduleid=mv.moduleid
      4  group by stuid;
    
    ST SUM(CREDITS)
    -- ------------
    S3           30
    S2           80
    S1          120
    
    SQL> insert into sa
      2  values ('S1','M7');
    insert into sa
    *
    ERROR at line 1:
    ORA-20002: A student cannot have more than 120 credits!!
    ORA-06512: at "SCOTT.SA_TRG", line 20
    ORA-04088: error during execution of trigger 'SCOTT.SA_TRG'
    

    Max
    http://oracleitalia.WordPress.com

  • Build/update dynamically the table 3D

    Hi all

    I'm having a problem with the dynamic generation of a 3D of the following set of data table:

    x: {1,2,3,4,5}

    y: {1,2,3,4,5}

    Z_1: {1,2,3,4,5}

    Z_2: {1,2,3,4,5}

    Z_3: {1,2,3,4,5}

    Z_4: {1,2,3,4,5}

    Z_5: {1,2,3,4,5}

    where there is (5) Z amplitudes associated with each measurement location.  What I am able to statically (from the above values x and y tables 1 d and 2D table Z) is to create a 3D Board made up of x and is indexed intensity to the graphic format of the 2D tables.  Each page of the table corresponds to each of the 5 Z amplitudes measured at each location.  In the attached VI, the Array Build function works perfectly for the static case where the entire data is available.  I followed the example of a another discussion forum will be subject to the provisions of nest two loops construction 2D array in the inner loop and incrementing the pages on the outer loop. The static situation is resolved.

    However, my goal is to graphically present data he is taken, point by point, to the user.  The other attached VI simulates this scenario, incrementation of x and y positions based on the measure button.  Z matrix indicator shows that the 2D Array (each individual page) is in the proper format.  The construction of the 3D picture is dynamically where I'm having problems.  I tried to build table and replace a subset of table, but none of these functions to produce the desired result.

    In the case of building table, 3D table is correctly based on the first measure: for x = y = 1, 2D array page0 is set Z_1 in position (1,1), page1 has the Z_2 value in the position (1,1), page2 Z_3, etc..  However, on the second measure, as expected, the berries are concatenated page5 have Z_1 values in the (1,1) and (2,2) positions.  This result is properly formatted, however, should the counted array 3D page is limited to 5 (page0, 1, 2, 3, 4).  So ideally, page5 should in this case replace page0.  So build array results in the correct format but concatenation is not desirable.

    The subset of spare board was made with the index of the page (outside of the loop) number to specify the subset of the 3D Board needs to be replaced.  The result was an empty 3D array.

    Thank you any help to solve this problem.

    kmsk wrote:

    Any suggestions on how to handle filling out table 3D of unknown size?

    If the size of the final table has a reasonable upper limit, you can initialize an array of slightly oversized, then keep using the subset of the table replace. It will be much faster and more effective memory than gradually more and more large networks.

    When the purchase is made, you can cut to the final size.

    Aircraft add to a table 3D using 'insert into array' or 'Build array' (favorite?), cause memory frequent shifts and might slow down your code by orders of magnitude in casing of excessive fragmentation of memory.

  • The dynamic 2D table 3D-graphics

    Hello

    IM in the process of adding a 3-d chart of ActiveX to an application that I use.  I never know the number of data points with that I will have to curve in advance of the time and I therefore create a 2D array:

    double **Data;
    
    Data = malloc(size_x * sizeof(double *));
    for (i = 0; i < size_x; i++) {
        Data[i] = malloc(size_y * sizeof(double));
     }
    

    My problem is when I try to use CA_VariantSet2DArray, I still have the mistake of running too small argument table. My best guess is that the space allocated in the array is not contiguous, but I'm not sure.  I was not able to solve the problem.  Can someone help me convert my table 2D of a variant of the way I have it or suggest a better way to declare a 2D array dynamic that will work with CA_VariantSet2DArray?

    Hunter,

    Your intuition is correct.  You don't have to have a contiguous block of memory to pass to this function.  Passing the size_x and the size_y allows the service make your contiguous block in a 2d array.  Declare your table as such:

    Data = malloc (size_x * size_y * sizeof (double));

    Then you can pass it to the function and have it create the variant as expected.  However, when directly access you the data, note that you can not use data [2] [3] shortcut more and you will have to do some arithmetic to access the elements of the array pointer.

  • Adding record helps the dynamically nested table

    Hello guys im trying to add records to a nested table plsql dynamically. Here is my code that only adds a record. I can not figuered on why it's not more then add one record to the nested table. I think I would say at the table to update the index and insert the new index but I'm not sure on the index can someone throw me a BONE.
    I also tried the records, but I seem to be facing the same problem.
    create or replace
    PROCEDURE QUICKTEST AS 
    BEGIN
    /*declare and array to loop through. to write error log.*/
    declare
    TYPE local_table IS TABLE OF VARCHAR2(30);
    acct_code local_table;
    
    
    TYPE rec_type IS RECORD (       -- local RECORD type
        f1 INTEGER,
        f2 VARCHAR2(4)
      );
      r2     rec_type;                -- local type
    
    num number(17):=0;
    
    begin
    FOR Lcntr IN 1..20
    LOOP
        
        
         acct_code := local_table ('I');
         r2.f2 := num+1;
        
    num:=num+1;
    
    END LOOP;
    
    END QUICKTEST;

    I think you are looking for something in the lines of...

    CREATE OR REPLACE PROCEDURE quicktest
    AS
       TYPE local_table IS TABLE OF VARCHAR2(30);
    
       acct_code   local_table  := local_table();
    
       TYPE rec_type IS RECORD(   -- local RECORD type
          f1   INTEGER
         ,f2   VARCHAR2(4)
       );
    
       TYPE rec_type_arr IS TABLE OF rec_type
          INDEX BY BINARY_INTEGER;
    
       r2          rec_type_arr;   -- local type
       num         NUMBER(17)   := 0;
    BEGIN
       FOR lcntr IN 1 .. 20
       LOOP
          acct_code.EXTEND;
          acct_code(lcntr) := 'I' || lcntr;
          r2(lcntr).f1 := num + 1;
          r2(lcntr).f2 := 'J' || TO_CHAR(num + 1);
          num := num + 1;
       END LOOP;
    
       DBMS_OUTPUT.put_line(acct_code.COUNT);
       DBMS_OUTPUT.put_line(r2.COUNT);
    
       FOR i IN acct_code.FIRST .. acct_code.LAST
       LOOP
          DBMS_OUTPUT.put_line(acct_code(i));
       END LOOP;
    
       FOR i IN r2.FIRST .. r2.LAST
       LOOP
          DBMS_OUTPUT.put_line(r2(i).f1 || ' :: ' || r2(i).f2);
       END LOOP;
    END quicktest;
    /
    
  • Spry XML dataset error

    I am trying to create a dataset from the XML file

    dd.weatheroffice.ec.gc.ca/EC_sites/xml/AB/s0000093_e.xml

    When I click on the button 'Get the schema' I get the following errors:
    -An exception occurred! Type: NetAccessorException, Message: the address of the host / "dd.weatheroffice.gc.ca could not be resolved (0,0)
    -Fatal error during scan pattern (2,157)

    Then, a dialog box appears saying 'failed to get the dynamic workflow scheme' and muttering all the time test server and design feed.

    What Miss me?

    Thank you

    Doug

    JDM wrote:
    > I am trying to create a dataset from the XML file
    >
    > http://dd.weatheroffice.ec.gc.ca/EC_sites/xml/AB/s0000093_e.xml

    You can create a Spry data set from a remote XML file. It is a
    restriction imposed by JavaScript security and applies to all Ajax
    frames. If you want to use a remote file, you must use a proxy
    script to re - create the XML file on your own domain name.

    --
    Adobe Community Expert David Powers
    Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • A difficult dynamic SQL query problem

    Hi all

    I have a very interesting problem to work:

    We have this special table defined as follows:

    CREATE TABLE sales_data)
    sales_id NUMBER,
    NUMBER of sales_m01
    NUMBER of sales_m02
    NUMBER of sales_m03
    NUMBER of sales_m04
    NUMBER of sales_m05
    NUMBER of sales_m06
    NUMBER of sales_m07
    NUMBER of sales_m08
    NUMBER of sales_m09
    NUMBER of sales_m10
    NUMBER of sales_m11
    NUMBER of sales_m12
    sales_prior_yr NUMBER);
    /

    Columns ' sales_m01... sales_m12' represents aggregated monthly sales, what "sales_m01" is translated by "sales for the month of January, January is the first month,"sales_m02"in sales for the month of February and so on.»

    The problem I encounter is that we have a project that requires that a parameter is passed to a stored procedure that represents the number of months which is then used to create a SQL query with aggregations of next mandatory field, which depends on the parameter passed:

    Example 1: entry of parameter: 4
    Should be built dynamically to SQL query:

    SELECT
    Sum (sales_m04) as CURRENT_SALES,
    Sum (sales_m01 + sales_m02 + sales_m03 + sales_m04) SALES_YTD
    Of
    sales_data
    WHERE
    sales_id = '0599768';

    Example 2: input parameter: 8
    Should be built dynamically to SQL query:

    SELECT
    Sum (sales_m08) as CURRENT_SALES,
    SUM (sales_m01 + sales_m02 + sales_m03 + sales_m04 +)
    sales_m05 + sales_m06 + sales_m07 + sales_m08) SALES_YTD
    Of
    sales_data
    WHERE
    sales_id = '0599768';


    So in a sense, the contents of SUM(sales_m01...n) would vary according to the parameter, which must be a number between 1... 12 what is a month, which in turn corresponds to a range of real field on the table itself. The resulting dynamic query should include only those columns/fields in the table that is within the range given by the input parameter and does not account for all the other columns/fields.

    Any solution is greatly appreciated.

    Thank you.
    SQL> declare
      cols long;
      param integer := 6;
      sales_id integer := 0599768;
    begin
      for i in 1..param loop
        cols := cols || 'sales_m' || to_char(i, 'fm00') || '+';
      end loop;
    
      dbms_output.put_line('select sum(sales_m'||to_char(param,'fm00')||') current_sales, sum(' || rtrim(cols,'+') || ') sales_ytd from sales_data WHERE sales_id = :1');
    end;
    /
    select sum(sales_m06) current_sales, sum(sales_m01+sales_m02+sales_m03+sales_m04+sales_m05+sales_m06) sales_ytd from sales_data WHERE sales_id = :1
    PL/SQL procedure successfully completed.
    

    Now it should be obvious:
    Instead of dbms_output OPEN a refcursor:

    SQL> declare
      cols long;
      param integer := 6;
      sales_id integer := 0599768;
      cur sys_refcursor;
    begin
      for i in 1..param loop
        cols := cols || 'sales_m' || to_char(i, 'fm00') || ',';
      end loop;
    
      open cur for 'select sum(sales_m'||to_char(param,'fm00')||') current_sales, sum(' || rtrim(cols,',') || ') sales_ytd from sales_data WHERE sales_id = :1' using sales_id;
      .....
    end;
    /
    

    Published by: michaels2 on July 26, 2009 09:49

    replaced ',' with ' + '.

  • manipulation of the table problem

    I'm using Labview 2009 and I have a problem with windows... I have to implement the following code in Labview (X and digital input boards):

    for (i = 0 to MAX (X)) {}

    If (X [i] > (X [i-1] + 1)) {}

    X.Add (X [i], X [i-1] + 1) / / add the value X [i-1] + 1 x [i] position of the X table

    Y [i] = 0

    }

    on the other

    Y [i] = Y [i]

    }

    If I try to add items in the original array Y with the function 'Replace subset of table', the output array is not changed by the VI. If I try to initialize and to build a new table, I get a matrix of zeros. Can someone help me?

    If you want to just add 0 to the index that does not exist in X [] then try this.

  • MS Office report Express VI and table problem

    Hi all

    I have a strange problem with MS Office report VI, which is included with the report generation tool. I created an Excel template that I linked, according to the preference "Custom template for Excel" and all the named ranges. However, two of the named ranges that I entered are 1 d arrays of doubles. Now the problem:

    When I entered the berries to their specific name range (it's only 6 values), instead of simply enter the values in the table in the cells he entries like this:

    A value of 0

    1 value

    2 the value

    ...

    6 value

    He pushes the 'value' to the column next to the beach of name because of 0-6.

    He does it with two tables so it screws to the top of all formulas. Anyone know how to remove the 0-6 and simply enter the values?

    Thank you all

    The Express VI are easy and convenient, but some costs. Since the Express VI can also accept a waveform entry, you have to accept that it will add a channel name.

    With the tool report generation (who are also its limits), it's easy to add only the data you want:

    Ben64

  • simple table problem

    I have read some data from a text file and form a table according to my requirement (the illustrious photo attached).

    What my problem was when I used this table in an other vi through the connector components, all the lines in the resulting table the width of the line of maximum size, and are filled with zeros.

    How do I remove it? I need the lines ending with its own values, here in my case two first rows should have 5 items in the table, the elements of line 7 third and so on...

    Your VI makes no sense. Why not autoidenxing? Why "delete from table?

    Here's a simple possibility (just to write the resulting string in a file).

  • Table problems

    Hello OR Forums, I currently develping a VI to specify the tensions that will be send to the device that will run two mirrors. The idea and the configuration are pretty basic, but programming, it's a question. Matrices X and there are elements that correspond to a point located on a network of coordinates. For example, maybe my items in my grid for X [-2, - 1, 0, 1, 2] and my Y could be [-2, -2, -2, -2, -2]. However, the problem is that I need a larger value of X and Y for I could resign in the grid and reassemble in table X. For example, will be my next line of items [-2, - 1, 0, 1, 2] X and [-3, - 3, -3, -3, -3] for Y. However, how my program is written my last value of is less than the previous item. Thus, ideally I would form a table that would have an extra X element that corresponds to the step down in voltage on the axis Y. This would be ideal: [-2, - 1, 0, 1, 2, 2] x and [-3,-3,-3,-3,-3,-4] for y.

    Sorry for this question is a bit bad made. The application of this program is quite simple, but it seems to me a bit puzzled.

    If you want to start (start X, start) then continue to start X + step X, start. Continue (Start, X, Y). Then go to start X, Y + step start o and increment in X. Repeat for all the table again.

    Is that a correct understanding of what you want?

    If so, you can do this with a picture of the X values and an array of the values, or even with no tables at all.  Create a State with the States for Scan X machine, trace, and no matter what States are required for initialization and shutdown.  Have two shift registers to track the values X and Y or indexes. Whenever you increment X through the State X Scan. When X reaches the maximum value or the index reached the last X, change the State to trace. It increments Y and restores X X start or equivalent for the index. When you reach Max X and Y of Max, go to the State of clean shutdown or restart.

    No complicated manipulation table required.

    Lynn

  • Edge of metering size buffer/table problem (VC ++)

    Hello

    Accidentally, I posted this in the multifunction DAQ forum so forgive me for posting this again here.

    I'm trying to make an edge stamped with PCI-6115 of counting for the application that I'm developing.

    Ideally, I initialize a buffer array, then use a sample clock time and acquire the values of a counter which will then be stored in a buffer.  After a number of samples, I would then use the DAQmxReadCounterU32 function to extract this data and perform calculations.

    However, windows gives me an error when I try to initialize the size of the stamp of table is larger than 255001, I need 264000 +.

    Essentially, it seems that only this part of the code to execute:

    error int = 0;

    TaskHandle taskHandle = 0;

    TaskHandle taskHandleCtr = 0;

    given uInt32 [260000];

    After trying initialize the array of uInt32 my program crashes saying there was an error with my exe with a popup asking me if I want to send an error report to Microsoft.

    That would be a problem of windows not afford to allocated more 255000 32bits samples for this table?  If so how can I put the table on the memory embedded amount?

    Sorry guys, it actually had nothing to do with the DAQ card.

    He was apparently C++ that limits the size of the array that I called him, which was the traditional "int a [size]".

    I used this rather to solve my problem:

    int * a = NULL;
    a = new int [10000000];

    Problem solved.

    Sorry for posting in the wrong forum and thanks to all who read this.

    Howard

  • Windows xp routing table problem

    I'm having a problem with windows routing tables on the pc at my workplace.
    These computers are running windows xp sp3 and the problem occurs when I change the default gateway

    the PCs are on subnet 10.181.1.0/24 with d/g 10.181.1.11.
    with this configuration, the routing on each pc table works as expected [for example, it stores a
    Directions to its own subnet [10.181.1.0/24] but no way to other subnets [for example, it will not store
    a road to 10.180.1.0/24, it will simply send this default network traffic
    gateway].

    However, due to a re-design network, I need to change the default gateway for this lan
    to 10.181.1.254. When I do cela something strange happens. the windows routing table on
    each pc begins to store routes to the entire 10.0.0.0/8 network, even if the current
    config on the pc is still a 24 network [for example, 10.181.1.21/24, d/g 10.181.1.254].
    its as if when I change default gateway from the computer, windows, pleasures of the routing table of the
    10.181.1.0/24 subnet as if it were a network 10.0.0.0/8 classful.

    While, right? I can still connect to other networks, the pc is just using a route
    stored in its routing table local instead of sending traffic to its default gateway.
    The problem is that we have a 10.181.1.12 default backup gateway that we switch to
    If the primary gateway goes down. When we test failover to 10.181.1.12 pcs are always
    Send non-local traffic to 10.181.1.11 [because they still have these routes stored locally in their]
    Windows routing tables]. I want to send traffic to 10.181.1.254 [switch a core of layer 3, which then]
    two lanes of traffic to 10.181.1.11 or. [12]

    I tried to change the default gateway to a range of ip addresses and the same problem occurs every time.
    I rebooted each pc after having changed its d/g and the problem remains the same. I tried
    delete all the information off the power the pc ip address, then re-enter with the new d/g, then restart
    the pc but the problem remains the same.

    so, to summarize, when I change the d/g from any pc on the 10.181.1.0/24 subnet, computers table routing begins to store routes
    in its local routing table to the classful, instead of just the classless 10.181.1.0/24 network 10.0.0.0/8 network.

    Has anyone encountered this before?

    Hi biglouie2010,

    Your Windows XP question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in the TechNet Windows XP forum.

    http://social.technet.Microsoft.com/forums/en/itproxpsp/threads

Maybe you are looking for