values between Flash and PHP

I use AS2 and passing some values from flash to php, files flash is on page file1.php values pass very well, he pass values when the user, click the button

When the button is pressed {var myVal:LoadVars = new LoadVars(); myVal.flieName = "fileid1"; myVal.send ("file1.php", "_parent", "POST");}

Problem: when she passes the values, it refreshes the page and Flash file is also refreshed, and Flash from frame 1 and all the values on flash becomes by default, in other words, when the user click on "file1.php" is submitted, so that the page is refreshed what's the solution, which, after passing the values from the page rest or flash remains as it is (do not update content)

use:

{

var receiveLV:LoadVars = new LoadVars();

{receiveLV.onData = function (src)}

}

var myVal:LoadVars = new LoadVars(); myVal.flieName = "fileid1"; myVal.sendAndLoad ("file1.php", receiveLV, "POST"); }

Tags: Adobe Animate

Similar Questions

  • Security between Flash and PHP backend

    If you have a front end with flash/flex and a backend with PHP.

    How you then you ensure that casual browsers use not your swf file not get directly access the classes PHP backend providing the data?

    I guess it's about authentication and authorization and sessions. I would be grateful if someone could point me to some good material on securing the php backend which connects the SWF, such as only the swf file can access the backend PHP classes. Or maybe I need to ensure the backend PHP classes themselves? Can someone give me a little push in the right direction?

    All info session must be stored in the browser (cookies). If any part of your code handles the password/username etc - you do it wrong.

    PHP session needs to store information (username, token authenticated, etc.). So, Yes, it matters little if you use SWF on your JS/HTML client.

  • How to exchange values between ASP and Flash?

    Hello, I want to swap values between ASP and Flash. I don't want to send it in the form of a querstring as:

    myswf.swf? var1 = value.

    I don't want my user to see or change this value.

    Thank you

    Use the urlloader class.

  • Pass parameter value between c# and TestStand

    Hello

    I'm currently futured, customize the User Interface complete

    I Test.seq master who has all the tests and I need to run only the selected test user in the user interface.

    so I thought to transmit the selected user code c# UserInterface test form to master Test.seq.

    How can I pass the value of the parameter or is there another way I can share data between USerINterce and seq file?

    Thanks in advance

    IVI


  • Color change of values between Illustrator and InDesign

    I have googled and looked here for an answer to my question, but have not been able to find anything.

    I designed several pieces of encumbered asset, all using the same unique color. Some of the pieces I designed in Illustrator and the other in InDesign.

    The problem is, when I copy and paste the yellow color value (if it is RGB or CMYK - I tried both ways), it CHANGES between Illustrator and InDesign. The color stays the same between Illustrator documents, but if I C + P InDesign - or vice versa-, the color value change literally before my eyes. And I don't want to say 'looks like' different, real changes in number.

    Here's a real example:

    Call a box in Illustrator and chose the color #f8f1e0 / 2% 3% 12% 0%. Call a box in InDesign, C + P had the values of color in there, and it DID change the color appropriate for a moment. You click OK. Click New in the color picker and color is now #f8f1e1 / 2% 3% 11% 0%.

    If it is relevant, it seems that the color will change to a slightly darker every time.

    And Yes, the two documents has STARTED OUT as CMYK documents and stayed like that. I also have my color sync via Bridge. I'm working on CC 2015 and all programs are up to date.

    Any idea of what could happen? Thank you in advance.

    ETA: Okay, I just chose preview overprinting in Illustrator and also changed the color of #f8f1e0 to #f8f1e1. I see now this is not a malfunction of the program, but can someone explain WHY this happens? I'm still new to color management and it's quite confusing for me. Thank you once again.

    ETA: thing: when I save the InDesign document to readable PDF and then pull it in Illustrator, the color is now #f8f2e2, even when you preview overprinting.

    Hexadecimal values are RGB color, so if you plug one in the color chart the resulting CMYK values are a conversion of the color management of the profile the document CMYK document RGB profile. You will get different CMYK conversions according to the profile source RGB, CMYK destination profile, intend to color and compensation of the black point used for the conversion.

    In addition the InDesign documents can have colors RGB and CMYK with CMYK and RGB profiles assigned that do not necessarily correspond to the color settings work profiles, in order to sync'ng your color settings may not get everything to match.

    Ultimately if you want to match the CMYK color or nuances between AI and ID, make sure you document assigned CMYK profile matching (Edit > assign profile...) and enter CMYK and hex does not values

  • High Score Table: writing a Simple with Flash and PHP text file

    I'm having a problem getting Flash to work with PHP that I need Flash to read and write to a text file on a server to store data simple name partition for a games Hi score table. I can read the text file in Flash fairly easily, but I also have to write to the file when a new high score is reached, so I need to use PHP to do that. Can I send data from flash to php by POST file, but so far it does not. The PHP file is confirmed that the work that I added an echo in the file that displays a message to verify that the server is running PHP - files were also uploaded to a remote server so I could test them correctly. Flash code is as follows:

    FileWriter php

    var myLV = new LoadVars();

    sendData() {} function

    //sets variable 'hsdata' to send to php

    myLV.hsdata = myText;

    myLV.send ("hiscores.php");

    }

    I believe that it sends the variable "myText" in the php file in a variable called 'hsdata' I want the php file to write to a text file. The mytext variable is just a long chain that has all of the partitions and the names in the scores. OK, XML would be best way to do it, but for the speed, I want to just get the basic features of work, so store a shot of simple text is sufficient for now. The PHP code that reads the Flash variable "hsdata" and wrote for the "scores.txt" text file is due to:

    <? PHP

    sets the variable to the data posted from flash

    $flashdata = $_POST ['hsdata'];

    File Manager opens the file and clears all content with arg w

    $fh = fopen ("scores.txt", "w");

    Adds data to the file

    fwrite ($fh, $flashdata);

    closes the file

    fclose ($fh);

    echo "php file works;

    ? >

    Any help with this would be greatly appreciated - once I get php to write text files simple I should be ok. Thank you.

    var outLV = new LoadVars();

    var inLV = new LoadVars();

    sendData() {} function

    outLV.hsdata = 'Hello from Flash';

    outLV.sendAndLoad ("http://www.mysite.com/hiscores/test23.php", inLV,"POST");

    }

    inLV.onLoad = {function (success)}

    If (success) {}

    sets the dynamic text box to show the variable sent by php

    statusTxt.text = this.phpmess;

    } else {}

    statusTxt.text = 'No Data Received';

    }

    };

    It works well and function of inLV.onLoad of the reports it receives data, but does not display the variable received from PHP. The PHP file is like this:

    <>

    $mytxt = $_POST ['hsdata'];

    $myfile = "test23.txt";

    $fh = fopen ($myfile, 'w');

    Adds data to the file

    fwrite ($fh, $mytxt);

    closes the file

    fclose ($fh);

    $mess = "Hello there php ';

    echo "phpmess =". "." $mess;

    ?>

  • Simply select the values between min and max of a value accumulated during the day

    Hello Forum,

    a value is accumulated more a day and over a period of time. The next day, the value is reset and starts to build up again:
    with sampledata as (select to_date('09.09.2012 00:04:08', 'dd.mm.yyyy hh24:mi:ss') ts, 120 val from dual union all
                       select to_date('09.09.2012 01:03:08', 'dd.mm.yyyy hh24:mi:ss') ts, 120 val from dual union all
                       select to_date('09.09.2012 02:54:11', 'dd.mm.yyyy hh24:mi:ss') ts, 120 val from dual union all
                       select to_date('09.09.2012 03:04:08', 'dd.mm.yyyy hh24:mi:ss') ts, 120 val from dual union all
                       select to_date('09.09.2012 04:04:19', 'dd.mm.yyyy hh24:mi:ss') ts, 120 val from dual union all
                       select to_date('09.09.2012 05:04:20', 'dd.mm.yyyy hh24:mi:ss') ts, 120 val from dual union all
                       select to_date('09.09.2012 06:12:02', 'dd.mm.yyyy hh24:mi:ss') ts, 23 val from dual union all
                       select to_date('09.09.2012 07:12:03', 'dd.mm.yyyy hh24:mi:ss') ts, 29 val from dual union all
                       select to_date('09.09.2012 08:12:04', 'dd.mm.yyyy hh24:mi:ss') ts, 30 val from dual union all
                       select to_date('09.09.2012 09:12:11', 'dd.mm.yyyy hh24:mi:ss') ts, 45 val from dual union all
                       select to_date('09.09.2012 10:12:12', 'dd.mm.yyyy hh24:mi:ss') ts, 60 val from dual union all
                       select to_date('09.09.2012 11:12:13', 'dd.mm.yyyy hh24:mi:ss') ts, 75 val from dual union all
                       select to_date('09.09.2012 12:21:24', 'dd.mm.yyyy hh24:mi:ss') ts, 95 val from dual union all
                       select to_date('09.09.2012 13:21:26', 'dd.mm.yyyy hh24:mi:ss') ts, 120 val from dual union all
                       select to_date('09.09.2012 14:21:27', 'dd.mm.yyyy hh24:mi:ss') ts, 142 val from dual union all
                       select to_date('09.09.2012 15:21:30', 'dd.mm.yyyy hh24:mi:ss') ts, 142 val from dual union all
                       select to_date('09.09.2012 16:21:32', 'dd.mm.yyyy hh24:mi:ss') ts, 142 val from dual union all
                       select to_date('09.09.2012 17:21:33', 'dd.mm.yyyy hh24:mi:ss') ts, 142 val from dual union all
                       select to_date('09.09.2012 21:21:33', 'dd.mm.yyyy hh24:mi:ss') ts, 142 val from dual union all
                       select to_date('09.09.2012 23:21:33', 'dd.mm.yyyy hh24:mi:ss') ts, 142 val from dual union all
                       select to_date('10.09.2012 00:04:08', 'dd.mm.yyyy hh24:mi:ss') ts, 142 val from dual union all
                       select to_date('10.09.2012 01:03:08', 'dd.mm.yyyy hh24:mi:ss') ts, 142 val from dual union all
                       select to_date('10.09.2012 02:54:11', 'dd.mm.yyyy hh24:mi:ss') ts, 142 val from dual union all
                       select to_date('10.09.2012 03:04:08', 'dd.mm.yyyy hh24:mi:ss') ts, 142 val from dual union all
                       select to_date('10.09.2012 04:04:19', 'dd.mm.yyyy hh24:mi:ss') ts, 142 val from dual union all
                       select to_date('10.09.2012 05:04:20', 'dd.mm.yyyy hh24:mi:ss') ts, 142 val from dual union all
                       select to_date('10.09.2012 06:12:02', 'dd.mm.yyyy hh24:mi:ss') ts, 14 val from dual union all
                       select to_date('10.09.2012 07:12:03', 'dd.mm.yyyy hh24:mi:ss') ts, 34 val from dual union all
                       select to_date('10.09.2012 08:12:04', 'dd.mm.yyyy hh24:mi:ss') ts, 58 val from dual union all
                       select to_date('10.09.2012 09:12:11', 'dd.mm.yyyy hh24:mi:ss') ts, 70 val from dual union all
                       select to_date('10.09.2012 10:12:12', 'dd.mm.yyyy hh24:mi:ss') ts, 120 val from dual union all
                       select to_date('10.09.2012 11:12:13', 'dd.mm.yyyy hh24:mi:ss') ts, 142 val from dual union all
                       select to_date('10.09.2012 12:21:24', 'dd.mm.yyyy hh24:mi:ss') ts, 153 val from dual union all
                       select to_date('10.09.2012 13:21:26', 'dd.mm.yyyy hh24:mi:ss') ts, 153 val from dual union all
                       select to_date('10.09.2012 14:21:27', 'dd.mm.yyyy hh24:mi:ss') ts, 153 val from dual union all
                       select to_date('10.09.2012 15:21:30', 'dd.mm.yyyy hh24:mi:ss') ts, 153 val from dual union all
                       select to_date('10.09.2012 16:21:32', 'dd.mm.yyyy hh24:mi:ss') ts, 153 val from dual union all
                       select to_date('10.09.2012 21:21:33', 'dd.mm.yyyy hh24:mi:ss') ts, 153 val from dual)
    select   ts, val
    from     sampledata
    order by ts asc;
    How should I change the select statement to ignore all data sets before the first minimum and duplicates after the maximum of a day to get such a result:
    TS     VAL
    09.09.12 06:12     23
    09.09.12 07:12     29
    09.09.12 08:12     30
    09.09.12 09:12     45
    09.09.12 10:12     60
    09.09.12 11:12     75
    09.09.12 12:21     95
    09.09.12 13:21     120
    09.09.12 14:21     142
    10.09.12 06:12     14
    10.09.12 07:12     34
    10.09.12 08:12     58
    10.09.12 09:12     70
    10.09.12 10:12     120
    10.09.12 11:12     142
    10.09.12 12:21     153
    Thank you

    Hello

    msinn wrote:
    Hello Forum,

    a value is accumulated more a day and over a period of time. The next day, the value is reset and starts to build up again:

    Thanks for posting the sample data and results. Be sure to explain how you get these results from these data. For example "for each day, I just want to show the lines after the daily low was reached. For example, on September 9, the lowest val was 23, which occurred at 6:12, so I don't want to show all lines earier to 06:12 September 9. In addition, when a val is the same as or more than the previous same day val (in order by ts), then I don't want to display the line later. For example, on 9 September, there are several consecutive lines, starting at 14:21 which all have the same val, 142. I want to only display the ealiest of this group, the line of 14:21. »

    Here's a way to do it, using analytical functions:

    WITH   got_analytics     AS
    (
         SELECT  ts, val
         ,     MIN  (val) OVER ( PARTITION BY  TRUNC (ts)
                                  ORDER BY       ts  DESC
                        )      AS min_val_after
         ,     CASE
                  WHEN  val = MIN (val) OVER (PARTITION BY  TRUNC (ts))
                  THEN  -1    -- Impossibly low val.  See note below
                  ELSE  LAG  (val) OVER ( PARTITION BY  TRUNC (ts)
                                              ORDER BY         ts
                               )
              END      AS prev_val
         FROM    sampledata
    )
    SELECT       ts
    ,       val
    FROM       got_analytics
    WHERE       val     <= min_val_after
    AND       val     >  prev_val
    ORDER BY  ts
    ;
    

    This requires that val > = 0. If you don't know a lower bound for val, and then the same basic approach still works, but it's a bit messier.

  • Flash and PHP

    Hi, let's say I have a dynamic text field (name of the variable is "txt") that I wanted to read a PHP file and output the content from there.

    My AS code is:

    var myPHP:LoadVars = new LoadVars();

    myPHP.load ("variables.php"); my php file

    myPHP.onLoad = function (success: Boolean) {}

    If (success) {}

    txt = myPHP.msg; display content from php

    }

    }

    PHP code in variables.php:

    <? PHP

    Define Variables

    $msg = ($_GET ['msg']);

    Send it to Flash

    echo "msg = $msg;

    ? >

    If I key in the url as follows and send something to the msg:

    variables.php? MSG = Hello

    It will echo "msg = Hello", but the text inside the flash field turns out to be empty, not indefinite or anything like that. However, if I hardcode the php file from:

    $msg = "hello";

    It will always echo "msg = Hello" but the flash file displays the text accordingly.

    Can someone tell me why? Thank you!

    parseQueryF() returns an object with your variables as keys.   Thus,.

    var queryObj:Object = parseQueryF (your_url_string_with_query);

    trace (queryObj.sender, queryObj.Receiver);

    do not change below.

    function parseQueryF(s:String):Object {}

    var o: Object = {};

    var s1:String = s.split ("?") [1] ;

    var a:Array = s1.split ("&"); ")

    for (var i: int = 0; i<>

    var varVal: Array = a [i] .split ("=");

    o [varVal [0]] = varVal [1];

    }

    }

    p.s. Please mark answers useful/correct, if there is.

  • What is the difference between flash and flash builder professional?

    I want to create simple 2D flash games for computers.

    What is the best for this, and what are the advantages and disadvantages of each?

    They both use actionscript 3?

    -Thank you

    they use as3 and have the same script function.

    Flash offers more artistic freedom / drawing while flash builder has more components pre-integrated.

  • score update Flash and php

    Hi there, I wonder if someone can help me with this dashboard of php... our developers aren't being very useful...

    So problem is the score Panel is introduced at the beginning if the request and at the end to show your score when the game is over. The problem I have is refreshing scores (by replacing the current text in the boxes) rather than simply add the text again in the dynamic text boxes...

    Here is my code: -.

    tab var = "game1score" ;// updated for each game / / game2score, game3score...

    filesend var = 'receive.php ';

    var modesend = 'post';

    This is called when the scores are displayed at the beginning of the game

    private void onHighScoresButtonClick(event:MouseEvent):void {}

    var receptobjet = variableTransaction (filesend, modesend, tab, false, false);
    highScoresPage.rejouerButton.visible = false;
    highScoresPage.blueMan.visible = false;
    removeChildAt (0);
    addChildAt (highScoresPage, 0);
    }

    function variableTransaction (modesend, file tab, var1, var2) {}

    var URLload = new URLLoader();
    var URLrequest = new URLRequest (file);
    var variables: URLVariables = new URLVariables();

    variables. Tab = tab;
    variables.var1 = var1;
    variables.var2 = var2;

    If (modesend == 'post') {}
    URLrequest.method = URLRequestMethod.POST;
    } Else if (modesend == 'get') {}
    URLrequest.method = URLRequestMethod.GET;
    }

    If (var1 == false & & $var2 == false) {}

    URLload.dataFormat = pouvez;
    URLrequest.data = variable;
    URLload.load (URLrequest);

    URLload.addEventListener (Event.COMPLETE, modeComplet, false, 0, true);
    } else {}
    URLrequest.data = variable;
    URLload.load (URLrequest);

    var receptobjet = variableTransaction (filesend, modesend, tab, false, false);
    }

    }

    function modeComplet(event:Event) {}

    for (var p:uint = 1; p < = 10; p ++) {}

    var currentPseudo:String = 'Nick' + p;
    var currentScore:String = 'score' + p;

    If (event.target.data ["Nick' + p]) {}
    highScoresPage [currentPseudo] .appendText (["nickname" + p] event.target.data);
    If (event.target.data ["score" + p]) {}
    highScoresPage [currentScore] .appendText (["score" + p] event.target.data);
    } else {}
    highScoresPage [currentPseudo] .appendText ("\n");
    highScoresPage [currentScore] .appendText ("\n");
    }
    }
    }
    }

    private void gameEnd(event:Event):void {}

    Nick var = highScoresPage.pseudo0.text;
    var score = highScoresPage.score0.text;

    filesend var = "send.php";
    var modesend = 'post';

    variableTransaction (filesend, modesend, tab, nickname, score);

    var persoArray:Array = [gamePage.a1, gamePage.a2, gamePage.a3, gamePage.a4, gamePage.a5];
    var animalArray:Array = [gamePage.b1, gamePage.b2, gamePage.b3, gamePage.b4, gamePage.b5];
    var persoHitArray:Array = [gamePage.h1, gamePage.h2, gamePage.h3, gamePage.h4, gamePage.h5];
    var animalHitArray:Array = [gamePage.h6, gamePage.h7, gamePage.h8, gamePage.h9, gamePage.h10];
    for (var i: uint = 0; i < persoArray.length; i ++) {}
    (persoArray [i]) .removeEventListener (MouseEvent.MOUSE_DOWN, persoMouseDown);
    (persoArray [i]) .removeEventListener (MouseEvent.MOUSE_UP, persoMouseUp);
    (persoArray [i]) .buttonMode = false;
    }
    for (var j: uint = 0; j < persoArray.length; j ++) {}
    (animalArray [j]) .removeEventListener (MouseEvent.MOUSE_DOWN, animalMouseDown);
    (animalArray [j]) .removeEventListener (MouseEvent.MOUSE_UP, animalMouseUp);
    (animalArray [j]) .buttonMode = false;
    }
    for (var k: uint = 0; k < persoHitArray.length; k ++) {}
    (persoHitArray [k]) .visible = true;
    }
    for (var l:uint = 0; < animalHitArray.length; l ++) {}
    (animalHitArray [l]) .visible = true;
    }

    buttons.rulesButton.removeEventListener (MouseEvent.CLICK, onRulesButtonClick);
    buttons.startGameButton.removeEventListener (MouseEvent.CLICK, onStartGameButtonClick);
    buttons.highScoresButton.removeEventListener (MouseEvent.CLICK, onHighScoresButtonClick);
    buttons.infoButton.removeEventListener (MouseEvent.CLICK, onInfoButtonClick);
    completePage.linkButton.removeEventListener (MouseEvent.CLICK, onLinkButtonClick);
    mainTimer.removeEventListener (TimerEvent.TIMER, incrementCounter);

    countdownTimer.removeEventListener (TimerEvent.TIMER_COMPLETE, levelEnd);

    countdownTimerEnd.removeEventListener (TimerEvent.TIMER_COMPLETE, gameEnd);
    highScoresPage.rejouerButton.removeEventListener (MouseEvent.CLICK, onRejouerButtonClick);
    psuedoPage.goButton.removeEventListener (MouseEvent.CLICK, onGoButtonClick);

    gamePage = null;

    removeChildAt (0);
    addChildAt (highScoresPage, 0);

    highScoresPage.rejouerButton.visible = true;
    highScoresPage.blueMan.visible = true;

    }

    What do you mean by "every time" that I go to the page of best scores?   What happens when you click on the button of best scores?

  • What is the difference between the flash and the Prime Minister

    I know that Flash is generally used for breeding game and Prime Minister for video creation, but I saw the people can also use the Flash for video production as well. So I need to know what are the differences between the two men.

    Flash is often used for animation and interactive animation in particular.

    First is used for video production, but with some limitations, such as the version support, or lack thereof, can work with Flash animations.

    There are some ADJUSTABLE, as there is with the Premiere and After Effects, but each program has specific uses.

    Good luck and that's the short answer. Others will probably be able to give you a point-by-point difference between Flash and first.

    Hunt

  • How to read data in Adobe Flash and align it to look like it's column?

    I am doing an application that already exists, but I add a few improvements. I'll explain what this app is. There is a server and client side. The client side adds data to the Access database (the columns are time, name and surname). On the other computer is an application that displays this data (I don't know if he reads a database or another type of file, but I did a database). I know that server-side plays an .swf Flash file. This screen stays for about 30 seconds and then the application plays videos in the video player installed (ads, this model is connected to a TV) for some time and then the screen goes back to the display of the data.

    I'm 18 and I have very limited knowledge of Adobe Flash (I learned something at school). I've done completely client-side app. I now how to create server-side. My main problems are: how to connect to Adobe Flash to the database (is it possible to transfer this data to any other file that can be connected to the Flash?), how to read data from database for Flash and how to display it. I don't want to display the data in the grid. In the application that already exists, each word is like a new text (tool in Flash) and it is aligned. Is it possible to add a loop that creates new texts and plays database cell? How to refresh the Flash screen?

    I know it's a very complex issue, but your help would be very appreciated. I did on the client side in Delphi. If you need more information or if you do not understand something of my explanation, don't bother to ask. Thank you!

    You can transfer data back and forth between Flash and database on a server with PHP as the intermediary.  If you are looking for Gioogle use terms like 'AS # PHP MySQL tutorial' (fillin 2 or 3 for the ' # '), you should be able to find something to help you along there.

    What about adding new textfields and harmonizing, it depends on what version of as you use.  In AS3, you use just...

    var tField = new TextField();

    tField.x = a value to match.

    addChild (tField)

    As far as refreshing goes, this would require removing all Textfields you added and re-create new ones like you did the first time.  Yet once, it depends AS version that you use.  In AS3, you can use removeChild()

  • Delay between angle and entered analog on a 6221

    Hello

    my test setup consists of a (8184 current run LabVIEW RT) embedded PXI controller which uses a PXI-6221 of data acquisition. One of the outputs analog of the 6221 creates a demand for speed that is sent to a servo controller. the servo drives then the test configuration. Between the servo and the remaining test configuration, a quadrature encoder is located. Both the 6221 meters are used to measure the position of the servo (using the trains of pulses A and B) as well as the speed of the servo (frequency of A pulse train). In addition to these counter inputs, some analog inputs of the 6221 serve as well to recored the configuration of test signals.

    In this configuration, one of the analog signal has a frequency of n periods per revolution of servo (determined by the mechanical design of the test facility). But when I leave the servo turn to for example 100 rpm, then decelerate from status quo with a constant deceleration and then draw the analog signal against the measured angle, I see clearly that as long as the speed is telling, I n periods per turn (or a passage from my analog AC to zero each 1/2n towers); However, as soon as the slowdown begins, the plot gets stretched along the axis of the angle (so the plot tells me there are less than n analog periods per turn, which is impossible because it would require the mechanical destruction of the facility).
    However, I can calculate a position based on speed information signal, as I got to the second counter (by integration of the speed). When I do this for the above velocity profile and draw the analog signal against the calculated angle, I see exactly n times / revolution, no matter how fast the installation program is rotating (just the expected behavior).

    So, apparently, the speed measured is "in phase" with analog signals, while the measured angle has a "phase error. Draw the angles measured and calculated against the time tells me the same thing: the measured angle is always late (compared to the calculated angle). The period is not constant throughout the measurement; I've seen values between 30 and 170 ms within a single record. Due to this change of variable, inserting a delay for all channels, but the angle is not a great idea.

    Unfortunately, calculation of the position of the speed signal is no option for me, because the direction of rotation is changed during measurement; because speed information I have based simply on a frequency of pulse train, it contains no information management, therefore a calculated position would be unaware of the changes of direction.

    Does anyone have an idea whence thios delay and what I can do to fix this problem?
    Try a position different methods of decoding or exchanging the meter channels has not made a difference.

    Thank you!

    Hey Kevin,

    attached you will find the last block diagram (no new translation this time, since no changes have been made that require a), which includes your last suggestions (explicitly start the task of AI, remove the excess constraints) with a flat sequence structure that applies all the preparations of task to finish before the start of the first task (I know I could have achieved the same effect of intelligent routing of the signal error, but I think the code is) better readable this way).

    Without OPI, LabVIEW tends to start to have, ao and tasks of the angle of the very different moments, which (for some reason that I don't understand - we have a sample clock based calendar here, and the sample clock is run, well after the three mentioned tasks...) tends to cause delays in the order of several 10-100 ms between tasks. With the structure, this problem is eliminated.

    The Sub - VI just above DAQmx writing contains the "conduct" code that I used in the last screen shot to "serialize" the requested speeds - in this way, the table that contains the requirements of speed does not need to be rebuilt.

    The code that creates a weather channel frequency implicitly timed measure left the VI shown here in a second VI that is running on the host computer, because everything that involves a calculation and does not require any intzeraction with the DAQ hardware is better placed there (the 850 MHz on the PXI controller celeton is slower than 2 definitiely something host GHz Dual-Core system).

    The behavior you mentioned for the task "not started" HERE is what wrote using LabVIEW. I thought the block of relaxation that I had at the beginning would treat the start of the task - at least, the code like this figure repeatedly in the examples that come with LabVIEW.

    I don't really understand what has caused the problems I've had - it seems that it was the combination of the measure quickly loop iteration with the start of task based on trigger HERE, but I do not understand what are the mechanisms in the background caused the problem (too forced loop was not the cause; the same block diagram works well with an additional loop timer).

    If the solution was composed of the following steps:

    -remove the old code calculating speed, replace it with a better code out of the main loop. This allows to

    -reduce considerably the frequency of the main loop.

    -Pull the DAQmx writing out of the loop, and

    s ' ensure that all tasks are started explicitly just before the main loop starts to run.

    -Possibly remove excess constraints of the main loop.

  • Flash and incompatibility

    I took a break to develop ads online about 5 years ago, while Flash was skyrocketing. With the introduction of HTML5 & flash incompatibility with smartphones and tablets is Flash still in service when creating Web sites and ads? Please could you me the relationship between Flash and HTML5 in the production of ads and Web sites today? Thank you.

    Yes, no flash player is necessary for html5 post flash pro files.

    Flash pro publishes html5 files so no further conversion is necessary.  some (or a lot of) published files mounting may be necessary for advanced options, but no other application (such as swiffy) is necessary.

    and the pro flash files work more surely than the published files swiffy.

  • Exchange of values between two columns

    I have a MEMBERS_SYSTEMS_ID table with three columns ID, B1, B2.
    I need to swap values between B1 and B2 for particular values of ID.
    IAM trying the following but is not working, please help solve + [If you can also tell why my SQL does not work which would be awesome] +.

    BEGIN
    DECLARE the temp varchar (50)
    UPDATE MEMBERS. MEMBERS_SYSTEMS_ID

    SET temp = B2,
    B2 = B1,
    B1 = temp
    WHERE ID IN ('85 ', ' 86');
    END

    You cannot update a variable as part of an update, only columns in the table. And, in fact, you don't have an intermediate variable, just do the update directly as:

    SQL> SELECT * FROM t;
    
            ID DESCR1     DESCR2
    ---------- ---------- ----------
             1 Descr2     Descr1
             1 Other2     Other2
             2 Two1       Two2
    
    SQL> UPDATE t
      2  SET descr1 = Descr2,
      3      descr2 = descr1
      4  WHERE id = 1;
    
    2 rows updated.
    
    SQL> SELECT * FROM t;
    
            ID DESCR1     DESCR2
    ---------- ---------- ----------
             1 Descr1     Descr2
             1 Other2     Other2
             2 Two1       Two2
    

    John

Maybe you are looking for

  • Why do I see "device not found" airport Admin?

    I have an AirPort extreme and my parents have a TimeCapsule. They are both showing the message "device not found" in the administration of the airport. We tried cycling power etc. Our networks still work, however we can not connect to manage and back

  • Once an unapproved site is added as an exception, how can I delete the exception?

    using FireFox 27.0I want to remove an exception for a website utrusted. There is no tools / Option / security in this version.Preferences / security is not the list either.

  • Siri is too sensitive

    Hello! Almost everytime I try to unlock my iPhone 6 Siri active. It is very annoying. I'm not holding the button, I'm pushing just a little time and Siri continues. If I have a Apple Watch and use Siri, I would totally turn off Siri because of this.

  • Cannot get path bar to display in the Finder in El Capitan

    I can't get the path bar to display in the Finder in El Capitan.  When I look in the view menu, the 'bar Hide path' option is grayed out (not adjustable).  What is the cause? Thank you!

  • Windows XP and Satellite A200 PSAF5E

    I am trying to install windows XP on EQUIUM A200 PSAF5E, but I can't. I had followed the link: http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?MessageID=107596 and according to the instructions it looks very easy, but the link to downlo