millansf Posted September 30, 2007 Report Share Posted September 30, 2007 I would to generate a sinusoidal pulse (burst). I´m working with cRIO and the analog output ni 9263. I try this VI, but I only get a pulse train with variable amplitude Quote Link to comment
rpursley Posted October 1, 2007 Report Share Posted October 1, 2007 Your loop timer was set to 1 ms and the frequency of your sinusoid was 10 kHz (period = 100 us), so you are undersampling your sinusoid which is why you see what you see. QUOTE(millansf @ Sep 29 2007, 10:29 AM) I would to generate a sinusoidal pulse (burst). I´m working with cRIO and the analog output ni 9263. I try this VI, but I only get a pulse train with variable amplitude Quote Link to comment
millansf Posted October 1, 2007 Author Report Share Posted October 1, 2007 QUOTE(rpursley @ Sep 30 2007, 02:26 AM) Your loop timer was set to 1 ms and the frequency of your sinusoid was 10 kHz (period = 100 us), so you are undersampling your sinusoid which is why you see what you see. But if I want to get a sinosuidal pulse, the period of the loop timer must be bigger than the period of the sinusoid. For example i want 5 periods of the sinusoid inside a period of thepulse train thanks! Quote Link to comment
rpursley Posted October 2, 2007 Report Share Posted October 2, 2007 The loop period sets the rate for each point that the sine generator produces not for each cycle (or group of points). For example, if you want to generate a sinusoid at 10 kHz that consists of 100 points/cycle, then your loop timer must be set to 1 us. QUOTE(millansf @ Sep 30 2007, 04:46 AM) But if I want to get a sinosuidal pulse, the period of the loop timer must be bigger than the period of the sinusoid. For example i want 5 periods of the sinusoid inside a period of thepulse trainthanks! Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.