847
edits
Line 5: | Line 5: | ||
[[Image:Mask4.png|framed|none]] | [[Image:Mask4.png|framed|none]] | ||
This tutorial will show you how to use a mask and a an alarm to start the recording of 3 inputs when the FFT spectrum of the first input cross the mask. To do that, we will need a to use a mask, an alarm and [[NVGate Macro|a macro]]. The setup must contain three input channels | This tutorial will show you how to use a mask and a an alarm to start the recording of 3 inputs when the FFT spectrum of the first input cross the mask. To do that, we will need a to use a mask, an alarm and [[NVGate Macro|a macro]]. The setup must contain three input channels [[NVGate_Software_overview#Step_1:_Inputs_selection|connected]] to [[NVGate_Recorder|the recorder]] and the [[NVGate FFT Analyzer|FFT plugins]]. The average spectrum must be displayed. The starting event of the recorder must be set on "Manual Trigger".<br> | ||
====Setup a mask==== | ====Setup a mask==== | ||
The Mask manager can be found in the "Tools" tab of the NVGate Ribbon : | The Mask manager can be found in the "[[NVGate Ribbons: Tools Tab|Tools]]" tab of the [[NVGate Ribbons overview|NVGate Ribbon]] : | ||
[[Image:Ribbon.png|framed|none]] | [[Image:Ribbon.png|framed|none]] | ||
Line 24: | Line 24: | ||
[[Image:Point2.png|framed|none]] | [[Image:Point2.png|framed|none]] | ||
Once you close the window, the mask is then created under the project in the [[NVGate Project manager|project manager]] and can be drop into the result graph, here the FFT spectrum : | Once you close the window, the mask is then created under the project in the [[NVGate Project manager|project manager]] and can be drop into the result graph, here the [[NVGate FFT Analyzer|FFT spectrum]] : | ||
[[Image:Mask+manager2.png|framed|none]] | [[Image:Mask+manager2.png|framed|none]] | ||
====Add an Alarm==== | ====Add an Alarm==== | ||
Once you added the mask on the graph, you can create an alarm. The alarm will then allow you to use as an event in a [[NVGate Macro|Macro]]. <br> | Once you added the mask on the graph, you can create an alarm. The alarm will then allow you to use as an event in a [[NVGate Macro|Macro]]. <br> | ||
To create the alarm, select "Add Alarm" from the NVGate ribbon : | To create the alarm, select "Add Alarm" from the [[NVGate Ribbons overview|NVGate ribbon]] : | ||
[[Image:AddAlarm.png|framed|none]] | [[Image:AddAlarm.png|framed|none]] | ||
Line 36: | Line 36: | ||
====Setup the Macro==== | ====Setup the Macro==== | ||
We will use the If command of [[NVGate Macro|the Macro]] to start the recording on the crossing of the Mask. After creating a | We will use the If command of [[NVGate Macro|the Macro]] to start the recording on the crossing of the Mask. After creating a [[NVGate Macro|the Macro]] containing a while loop "Until measurement stopped", add the "If" command inside the loop and set it up as follow : | ||
[[Image:MaskCross.png|framed|none]]<br> | [[Image:MaskCross.png|framed|none]]<br> | ||
Then, add the "Manual trigger" (by using the record option of the | Then, add the "Manual trigger" (by using the record option of the [[NVGate Macro|the Macro]]) into the If command. | ||
[[Image:ManualTrigger2.png|framed|none]]<br> | [[Image:ManualTrigger2.png|framed|none]]<br> | ||
====Conclusion==== | ====Conclusion==== | ||
You can now run the measurement and start the | You can now run the measurement and start the [[NVGate Macro|the Macro]]: The recording of the signal will began only if the spectrum of the first input cross the mask template. | ||
===Mask Parameters=== | ===Mask Parameters=== |
edits