10-28-2013 08:16 AM - edited 10-28-2013 08:21 AM
Hello all,
I am creating my very first VI and I am facing an issue. I would like to generate a square wave signal and periodically compare the value of the signal with a threshold in order to produce a numeric value taking value 1 if the signal value is greater than the threshold or 0 otherwise. I have been able to find how to compare the signal value with the threshold but I am not able to find how to set the frequency of the comparison.
Thank you in advance for your help !
Kind regards
Alex
10-28-2013 08:38 AM
I would suggest that you take some time to go through some of the many free tutorials on LabVIEW that are on the Web (a couple of the popular ones are listed in my signature). For example, they will teach you about loops, which is what you need to use here. It will be much more efficient (and quicker) to learn the fundamentals systematically than to ask questions here about each step of the way (there is always a time lag between Q and A).
Cameron
10-28-2013 08:41 AM
I am not able to open your LabVIEW 2012 VI, since I still have 2011 SP1 running here.
However - a simple "Wait until next Millisecond mutiple" or a "Wait" from the timing palette would probably be sufficient here. See attached sample code.
10-28-2013 08:58 AM
Thank you to both of you ! I will take a look at the sample code and docs you provided to me.
10-28-2013 09:03 AM
Hi alexaviator,
Please see the help menu before using the VIs. also connect it properly in the frequency part.
Use atleast CTRL+H for references .