12-04-2008 09:34 AM
Hi I need help on labview.
(1) I need to create a knob that increase the amplitude of a sine wave. I need to increase the amplitude of the sine wave while the program is running using the knob. I am only able to increase the amplitude of the sine wave when i stop the program, turn the knob to another amplitude and start running again. I cant increase the amplitude of the sine wave while running. Pls help me in this area.
(2) I need also to create an array to store the amplitudes of the waveform that i need.The array must send in information One by one to the waveform generator at time intervals. Can someone help me in this area. Thanks
12-04-2008 09:40 AM
Place the sine function generator and control icon inside a while loop. Then you can change the icon on the front panel to a knob that will control either the amplitude, phase etc, depending on what the control is wired to. You can also change the limits of the knob on the front panel by opening its properties.
As for the second part, you may need to use a nested loop (loop within a loop) with a millisecond timer that will release a value after the required time has passed
Hope this is helpful
12-04-2008 09:42 AM
Ah, the end of the semester, and school projects are due. You won't find anyone on the list that will write you rprogram for you. You would be better off posting the code you have so we can guide you to the solution better.
1. LabVIEW only reads a control value when you tell it to, so you'll either need a while loop and read the control over and over or use a while loop with an event structure which will read the control everytime you change it.
2. Use a while or for loop (while loop would be better, especially if your timing constant is large) and index the values use a delay or wait(ms) to add a delay before the next point.