writer
240
edits
m (→If instruction) |
|||
Line 49: | Line 49: | ||
====Add the Run Command==== | ====Add the Run Command==== | ||
Now that the If test is setup, we only need to add the "Run" instruction inside the If test to have the macro re-starting the measurement as soon as it | Now that the If test is setup, we only need to add the "Run" instruction inside the If test to have the macro re-starting the measurement as soon as it has been stopped. However, the "Run" command is not an Algorithmic, but an NVGate command.<br><br> | ||
To add NVGate command into the Macro, we will need to use "record off line" [[Image:RecordOffLine.png]] or "record on line" [[Image:RecordOnLine.png]] options. These icons will allow you to add one or serveral NVGate command in the macro by simply clicking on | To add an NVGate command into the Macro, we will need to use "record off line" [[Image:RecordOffLine.png]] or "record on line" [[Image:RecordOnLine.png]] options. These icons will allow you to add one or serveral NVGate command in the macro by simply clicking on them. Once you added all the NVGate commands you want, you need to re-click on the "record on line" or "record off line" icon to stop the recording and validate the sequence.<br><br> | ||
The "record on line" [[Image:RecordOnLine.png]] command will add the NVGate command in the macro and execute it at the same time. By example, clicking on [[Image:RecordOnLine.png]] and [[Image:RunIcon.png]] | The "record on line" [[Image:RecordOnLine.png]] command will add the NVGate command in the macro and execute it at the same time. By example, clicking on [[Image:RecordOnLine.png]] and [[Image:RunIcon.png]] will add the "Run" command in the macro and start the acquisition in NVGate. Clicking on [[Image:RecordOffLine.png]] and then [[Image:RunIcon.png]] will add the "Run" command in the macro, but will not start the acquisition in NVGate.<br><br> | ||
To add the NVgate "Run" command into our macro, we don't need to actually start the acquisition in NVGate. To add it, select the "End if" line in the macro (because we | To add the NVgate "Run" command into our macro, we don't need to actually start the acquisition in NVGate. To add it, select the "End if" line in the macro (because we want to add the "Run" command before this line), click on [[Image:RecordOffLine.png]]. Then click on [[Image:RunIcon.png]] and re-click on [[Image:RecordOffLine.png]] to stop the recording of the command : | ||
[[Image:Run.png|framed|none]] | [[Image:Run.png|framed|none]] | ||