12-16-2008 07:50 PM
I need to simulate two different sets of frequencies, 9544hz and 6362hz and display this 2 sets of frequencies side by side as square waves on a waveform graph with a period of 55.55ms. Is anyone able to help?
12-16-2008 08:54 PM
Since period 1/frequency and neither of your frequencies have a period of 55.5ms, I don't know what you mean.
As far as simulating a frquency, the simplest way is to use a couple of Simulate Signal functions. Use the Merge Signals function to take both of the outputs and just wire that to a graph.
If you are having problems, please post the code you have written.
12-17-2008 01:15 AM
hi there, this is my program. What I'm trying to do is to try and display the 2 different sets of frequencies on the same wavegraph side by side(as square waves).
12-17-2008 02:23 AM
Reizo,
find the attached VI , if i understood your question well , then this one should work fine
Regards...
12-17-2008 02:46 AM
hi, the program seems to be working fine. Only questions I have is how come the frequency counter is always at 10000 and how do you make one of the waveform red in color?
Thanks.
12-17-2008 03:35 AM - edited 12-17-2008 03:37 AM
1st , it is more accurate to use the Tone measurements Express VI than the timing ans transition Express VI. Find the attached file
you can change the Plot Color, Name, viewing wither programatically or manually
for
manually configuring the Plot(s) behaviour , scale the Plot Legend as
seen inside the Red Circle, so you will find the available plots on the
graph or chart indicator
for changing color and appearance , click on the icon inside the Blue circle as shown below and choose the properties you want to edit.
Best Regards
12-17-2008 09:06 AM
Methinks you just got duped into doing someone's homework! Twice!
12-18-2008 02:36 AM
I've just been informed that what I've done is totally wrong.
I'm supposed to simulate square waves of these 2 frequencies 9544hz and 6362hz and display them toggling after one another in a single waveform graph with a period of a 1 freq as 55.55ms.
Something like this in a waveform graph
Square waves of 9544hz(period 55.55ms) followed by square waves of 6362hz(period of 55.55ms) followed by 9544 and 6362 and so it goes..
12-18-2008 07:37 PM
Hi reizo,
The vi that MAshraf posted is a very good starting point for you. In the example, it shows you how to create signal using express vi. You can create a signal that is 55.55ms by changing the number of samples in the express vi.
From your Word document, it seems like you want to append one waveform after another. You can append the output of the express vi by using Append Waveforms.vi.
I believe with MAshraf's vi and the information above, you will be able to create your own waveform of alternate frequencies.
Regards
Lee
Applications Engineer | NI ASEAN
12-22-2008 02:12 AM
when I tried to run after modifying, it gaveme this error ' Possible reason(s):
LabVIEW: The t0 does not align with the end of the previous signal.'so I unticked the option 'append only if t0 and dt matches' at the append signals function. After unticking, I'm able to run the whole program but my waveform graph only shows 1 waveform. Am I on the right track?