04-12-2013 09:41 AM
using mathematical formula without using square wave function. Is it possible?
04-12-2013 09:46 AM
@Alphasmsn wrote:
Is it possible?
Yes.
What I usually do is use a boolean that I toggle every so often. I then use the Boolean to (0,1) function and multiply by the desired amplitude.
04-12-2013 09:51 AM
I want to automatically generate square wave without manually toggle it.
04-12-2013 10:06 AM - edited 04-12-2013 10:06 AM
Who said anything about manual operation? Setup a loop. Every so many iterations, you toggle the boolean. If you toggle every iteration, it looks like a triangle wave. But it should be a good start for you.
04-15-2013 01:41 AM
I am new to Labview so I have no idea how to generate using booleen.
The vi shown generate a triangle waveform, but how can I convert it to a square wave?
04-15-2013 03:02 AM
04-15-2013 10:31 AM
@Alphasmsn wrote:
I am new to Labview so I have no idea how to generate using booleen.
The vi shown generate a triangle waveform, but how can I convert it to a square wave?
Yes, I told you that would be a triangle wave. I also told you that you need to create code to toggle only every X number of iterations. Think it through. You can figure this out. Post back with what code you have tried and what it isn't doing that you want it to.
04-23-2013 10:32 AM - edited 04-23-2013 10:35 AM
screenshot attached