Announcement

Collapse
No announcement yet.

A simple data transfer problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • A simple data transfer problem

    As presented in the attached file, I would like to fill up the later part of the main(), under else{}, which is now empty. I would like to make the two variables, MeanValue and Sd, to be the same as those ones calculated in the upper part, which is under the condition of time=4:00:00. So that at the end, these three lines refkected on the chart will be horizontal from 6 am to 4 am, and change immediately from 4 am to 6 am. (time between 4 to 6 has been taken out from the chart). Could anybody help me with that? if you can do directly on the code will be better! Thank yo!!!
    Attached Files

  • #2
    Hi teresali,

    If you make "MeanValue, uppBond, lowBond" variables global by placing them outside of main you should correctly plot the lines from 4 am to 4 am. To do this, replace the following code:

    PHP Code:
        setDefaultBarFgColor(Color.green5);
    }


    function 
    main( ) {

    var 
    MeanValue
    var 
    Sd 
    var 
    uppBond;
    var 
    lowBond

    //The value of Hour, Minute and Second need to be changed to user-defined.
    if (
                
    getHour() == &&
                
    getMinute() == &&
                
    getSecond() == 0
            
    ) { 
    with:
    PHP Code:
        setDefaultBarFgColor(Color.green5);
    }
    var 
    MeanValue
    var 
    uppBond;
    var 
    lowBond


    function 
    main( ) {

        var 
    Sd 

        
    //The value of Hour, Minute and Second need to be changed to user-defined.
        
    if (
                    
    getHour() == &&
                    
    getMinute() == &&
                    
    getSecond() == 0
                
    ) { 
    Wayne
    Last edited by waynecd; 08-22-2010, 11:38 AM.

    Comment

    Working...
    X