Hi Klausc127,
In general it should be possible to create something similar to a "State Machine" by using the DAC-Script-Driver - but I've never tested it. In the script you can use global defined variables to store the status of a machine. You can use the function SFD_GetScan to interpret the status and process the value in different ways. The remaining stuff is just VBS.
But please keep in mind that because of the structure of DIAdem-DAC it is not possible to measure a specific channel depending on the status of a machine. You can only measure all channels which are necessary for the process - the same is for the output. For this you can work with NOVALUES or a dummy value.
I hope this can help you.
Greetings
Walter