10-19-2009 12:12 PM
I need to create a sine wave, point by point, which will be passed to PID and finally to an analog output channel on a PCI 6014
Ive tried a few different ways to do this but each has some problems associted with it.
with the "basic function generator.vi"
and also the "sine waveform.vi"
there seems to be problems with it missing points.
someone helpfully pointed it, its most likely windows interrupts causing the problem
here is a schematic of the front and back panels
the back panel
the front panel shows a few points that are missing
another way of doing this that seems to work better is called the "simulate signal" express vi.
this is great in that it actually makes a 1htz sine way occur at 1htz.
it also does not miss any points.
The problem wtih this is that as soon as i put in my application, it grinds to a halt.
Program speed changes from rougly 10khtz to less than 1htz when the basic function generator is replaced with this express vi.
A third idea or concept that was proposed is to put in a timer to slow the timing down.
This again, works great, no more points are missed in the plot.
yet, it again kills execution speed of the program as everything has to wait 1ms (or the recripocal of interval time of sample points).
Anyone with an idea on how i can get a sinewave into PID, and then, into the analog waveform without compromising a huge amount of program efficiency. Im sure this is simple.
Solved! Go to Solution.
10-19-2009 12:36 PM
nevermind
goingto do the 2nd option from top .
just going to increase the number of samples for now to let the rest of the program flow faster