Ejemplo n.º 1
0
/* Action function for state "wait_x_pv2" in state set "reassign" */
static void A_reassign_0_wait_x_pv2(SS_ID ssId, struct UserVar *pVar, int transNum, int *pNextState)
{
    switch(transNum)
    {
    case 0:
    {
# line 57 "../reassign.st"
        testDiag("wait_x_pv2");
# line 58 "../reassign.st"
        testOk1(seq_pvGet(ssId, 0/*x*/, 0) == pvStatOK);
# line 59 "../reassign.st"
        testOk1(seq_pvChannelCount(ssId) == 3);
# line 60 "../reassign.st"
        testOk1(seq_pvConnectCount(ssId) == 2);
# line 61 "../reassign.st"
        testOk1(seq_pvAssignCount(ssId) == 2);
# line 63 "../reassign.st"
        testOk1(seq_pvAssign(ssId, 1/*y*/, "") == pvStatOK);
# line 64 "../reassign.st"
        testOk1(seq_pvConnectCount(ssId) == 2);
# line 65 "../reassign.st"
        testOk1(seq_pvAssignCount(ssId) == 2);
# line 66 "../reassign.st"
        testOk1(seq_pvAssign(ssId, 1/*y*/, "pv1") == pvStatOK);
# line 67 "../reassign.st"
        testOk1(seq_pvAssignCount(ssId) == 3);
    }
    return;
    }
}
Ejemplo n.º 2
0
/* Event function for state "initState" in state set "lockInjectorLaserStateSet" */
static long E_lockInjectorLaserStateSet_initState(SS_ID ssId, struct UserVar *pVar, short *pTransNum, short *pNextState)
{
# line 119 "../seqLockInjectorLaser.stt"
	if (seq_pvConnectCount(ssId) == seq_pvChannelCount(ssId))
	{
		*pNextState = 1;
		*pTransNum = 0;
		return TRUE;
	}
	return FALSE;
}
Ejemplo n.º 3
0
/* Action function for state "start" in state set "reassign" */
static void A_reassign_0_start(SS_ID ssId, struct UserVar *pVar, int transNum, int *pNextState)
{
    switch(transNum)
    {
    case 0:
    {
# line 29 "../reassign.st"
        testDiag("start");
# line 30 "../reassign.st"
        testOk1(seq_pvChannelCount(ssId) == 3);
# line 31 "../reassign.st"
        testOk1(seq_pvAssignCount(ssId) == 2);
# line 32 "../reassign.st"
        testOk1(seq_pvConnectCount(ssId) == 2);
# line 33 "../reassign.st"
        testOk1(seq_pvAssign(ssId, 0/*x*/, "") == pvStatOK);
    }
    return;
    }
}
Ejemplo n.º 4
0
/* Action function for state "wait_z_pv2" in state set "reassign" */
static void A_reassign_0_wait_z_pv2(SS_ID ssId, struct UserVar *pVar, int transNum, int *pNextState)
{
    switch(transNum)
    {
    case 0:
    {
# line 81 "../reassign.st"
        testDiag("wait_z_pv2");
# line 82 "../reassign.st"
        testOk1(seq_pvChannelCount(ssId) == 3);
# line 83 "../reassign.st"
        testOk1(seq_pvConnectCount(ssId) == 3);
# line 84 "../reassign.st"
        testOk1(seq_pvAssignCount(ssId) == 3);
# line 85 "../reassign.st"
        seqShow(epicsThreadGetIdSelf());
    }
    return;
    }
}
Ejemplo n.º 5
0
/* Action function for state "wait_y_pv1" in state set "reassign" */
static void A_reassign_0_wait_y_pv1(SS_ID ssId, struct UserVar *pVar, int transNum, int *pNextState)
{
    switch(transNum)
    {
    case 0:
    {
# line 72 "../reassign.st"
        testDiag("wait_y_pv1");
# line 73 "../reassign.st"
        testOk1(seq_pvGet(ssId, 1/*y*/, 0) == pvStatOK);
# line 74 "../reassign.st"
        testOk1(seq_pvChannelCount(ssId) == 3);
# line 75 "../reassign.st"
        testOk1(seq_pvConnectCount(ssId) == 3);
# line 76 "../reassign.st"
        testOk1(seq_pvAssign(ssId, 2/*z*/, "pv2") == pvStatOK);
    }
    return;
    }
}
Ejemplo n.º 6
0
/* Action function for state "wait_x_nil" in state set "reassign" */
static void A_reassign_0_wait_x_nil(SS_ID ssId, struct UserVar *pVar, int transNum, int *pNextState)
{
    switch(transNum)
    {
    case 0:
    {
# line 38 "../reassign.st"
        testDiag("wait_x_nil");
# line 39 "../reassign.st"
        testOk1(seq_pvChannelCount(ssId) == 3);
# line 40 "../reassign.st"
        testOk1(seq_pvAssignCount(ssId) == 1);
# line 41 "../reassign.st"
        testOk1(seq_pvAssign(ssId, 0/*x*/, "pv1") == pvStatOK);
# line 42 "../reassign.st"
        testOk1(seq_pvAssignCount(ssId) == 2);
    }
    return;
    }
}