02-09-2011 06:16 AM
Hi, my requirement is as below:
1. continuously analog output sine wave;
2. impulsive analog output (or very short-duration constant output) when the condition of the analog inputs is satisfied;
My problem is:
I can continuously output a sine wave and suddenly switch to a triangle wave for a short period, and then goes back to sine wave. But the minimum period of the triangle wave is always 1 second.
For example, if I set the switching-on time of the triangle wave is between 4 to 4.1 second, the result is always from 4 to 5 second. How can I give a implusive output or give a constant output in 0.1 second?
Many thanks for your help.
Lau
02-10-2011 03:42 AM
Hello Lau
I am the applications engineer who will be looking into your query and helping you to get your program running as you want. As I understand you are acquiring data and then using a trigger to start the output? Please correct me if I have misunderstood.
I have a few ideas but would like to see your code if that is possible, this way I can make suggestions relating to your code and offer you more personal advice.
Thank you
02-10-2011 02:07 PM
Many thanks, Steve.
Forget the data acquisition of my code. I want use time to trigger the square wave output signal, but I want the period of the square wave signal is very short, e.g. 0.1 second. Please see my attached pictures.
Using the attached code, it always gives me a sqaure wave signal last for one second period. I do not know why. Maybe I am not using a real-time labview system? or are there better way to carry out this task?
Thanks again.
Lau
02-10-2011 02:58 PM
Look at the sampling info input to the waveform generator. You have nothing wired in, so it uses its default values of 1000 Hz, 1000 samples. Thus 1 second of data.
02-11-2011 03:11 AM
Hello Lau
Thank you for your reply, I am looking into your query and am looking at examples which implement what you are looking for.
Would it be possible to have the code in vi form? Just so I can see what configurations you have and to make suggestions based on your code.
Thank you
02-11-2011 04:10 AM
Attached. Thanks very much for your help.
02-11-2011 04:19 AM
Thanks a lot for your help. It works