Feature request - allow trigger to be added to sine, square and triangle wave math functions

  • Software
  • Feature request - allow trigger to be added to sine, square and triangle wave math functions
Gary Floyd

Posted on 16.02.2023 10:53

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.

Rok Kmetič
Customer Support Engineer
Posted on 28.02.2023 11:04

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

Gary Floyd

Posted on 28.02.2023 12:31

I am use the sine, square, triangle math functions as a trigger.

Gary Floyd

Posted on 28.02.2023 12:57

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.


Gregor Šmit

Posted on 07.03.2023 10:24

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.

Login to reply to this topic. If you don't have account yet, you can signup for free account .