Changeset 15134 for trunk/FACT++/scripts


Ignore:
Timestamp:
03/22/13 17:10:03 (12 years ago)
Author:
tbretz
Message:
Connect and stop the FAD together with the other programs to get the corretc status for the feedback - if this gives trouble, we have to move it back and check for 'Disconnected' of the fadctrl before we can handle the Feedback states.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/scripts/Startup.js

    r15093 r15134  
    7979include("scripts/handleRatectrlConnected.js");
    8080include("scripts/handleLidClosed.js");
    81 
    82 checkSend(["BIAS_CONTROL","FTM_CONTROL", "FSC_CONTROL", "FEEDBACK", "RATE_CONTROL", "MCP"]);
     81include("scripts/handleFadConnected.js");
     82
     83checkSend(["BIAS_CONTROL","FAD_CONTROL","FTM_CONTROL", "FSC_CONTROL", "FEEDBACK", "RATE_CONTROL", "MCP"]);
    8384
    8485dim.send("MCP/RESET");
     
    9091loop.add(handleFeedbackConnected); // Feedback needs FAD to be Connected
    9192loop.add(handleRatectrlConnected);
     93loop.add(handleFadConnected);
    9294//loop.add(handleLidClosed);
    9395loop.run();
    9496
    95 console.out("Bias crate connected and voltage off.");
    96 console.out("Feedback switched off.");
    97 console.out("FTM connected and idle.");
    98 console.out("FSC connected.");
    99 console.out("Rate control connected.");
    100 //console.out("Lids closed.");
     97console.out("biasctrl:    "+dim.state("BIAS_CONTROL").name);
     98console.out("ftmctrl:     "+dim.state("FTM_CONTROL").name);
     99console.out("fscctrl:     "+dim.state("FSC_CONTROL").name);
     100console.out("feedback:    "+dim.state("FEEDBACK").name);
     101console.out("ratecontrol: "+dim.state("RATE_CONTROL").name);
     102console.out("fadctrl:     "+dim.state("FAD_CONTROL").name);
     103console.out("mcp:         "+dim.state("MCP").name);
    101104console.out("");
    102105
     
    128131// Now we can safely try to connect the FAD boards.
    129132// -----------------------------------------------------------------
     133/*
     134 include("scripts/handleFadConnected.js");
    130135
    131136// If FADs already connected
    132 include("scripts/handleFadConnected.js");
    133137
    134138checkSend(["FAD_CONTROL"]);
     
    150154console.out(dim.state("FAD_CONTROL").name);
    151155console.out(dim.state("MCP").name);
     156*/
    152157
    153158// ================================================================
Note: See TracChangeset for help on using the changeset viewer.