03-19-2008 09:13 AM
03-20-2008 06:24 AM
03-20-2008 08:04 AM
03-20-2008 09:46 AM
03-20-2008 10:02 AM
03-25-2008 03:39 AM
Hi Craig,
Sorry for the late reply, the office has been on easter holidays - have you tried using the example VI for this at all? Under LabVIEW > Help > Find Examples you can search for "square" and you should be able to see a project called "Square Wave Generator cRIO". If you could run this to see if you see the same behaviour I'd be appreciative.
Let me know how it goes,
All the best,
03-26-2008 10:35 AM
Hi Rob,
Thanks a lot for the reply. I found the example VI "square wave..." you referred to. Although the VI did not work (error code-63040 "a connection could not be established to the specified remote device..."), the notes on the block diagram did reveal the problem. You cannot have two square wave generators inside a single while loop. I have since put the generators in their own loops and this seems to work in as much as separate frequencies being generated simultaneously. However, I still have problems in getting high frequencies. Up to 2 MHz is ok, but 10 MHz and 15 MHz settings give rise to 333.33kHz and 2.857MHz respectively on the oscilloscope.
Also, is there a way of getting two separate while loops (containing sq. wave gens) to start when the user presses a control on the front panel? I have wired a boolean control (outside the loops) to 2 such while loops and nothing happens when it is run.
Thanks,
Craig.