Feature request - allow trigger to be added to sine, square and triangle wave math functions
By default these functions have their start time tied to acquisition start time only. I am using these functions as timing triggers that I want to start when a user changes the state of an input widget. The amount of time from acquisition start and change input switch is variable, so the trigger (sine, triangle, square) have different phase file to file.
To fix this I just made my own sine / triangle / square functions with the addition of timer function so two math functions rather than one.
So it would be great if there was a way to have an optional trigger channel that could be added.
Customer Support Engineer
Dear Gary,
I hope I understand your request correctly. You need to start a signal at a certain time when an outside trigger is enabled? Did you try this with the function generator?
For a better understanding of the request, we would need some additional information about it. Can you share the setup file or some pictures of your workaround with the math channels?
Best regards.
Rok
I am use the sine, square, triangle math functions as a trigger.
the work around is to setup a math channel that begins timing (counting) when the user sets a “user input” to 1. This timer is then used in standard sine/square/triangular waveforms (not the built/in one). To start and stop the wave forms, which are then used to trigger controls, c++ functions and statistical data reduction.
Dear Gary,
your approach is correct. You need to calculate the time difference from the user input to the start of acquisition. In the attachment I am sending an example formula where the sine wave is generated when pressing on Start-Stop button.
Kind regards.
Attached files: