05-05-2010 11:03 PM
Sorry, I thought I had but I only posted the arbitrary signal express attempt.
Here is one I just now got to work, I had to put a Stop before the Write to make sure any other tasks were cleared.
I get about one ramp per second now. I feel there has got to be a better way than running the continuous samples but I have tried different combinations of finite sample and sample sizes but I guess I just don't understand the calculations there.
05-05-2010 11:20 PM
05-06-2010 07:43 AM
Ok here are a couple of the things that I see. First the sawtooth generator is set up incorrectly. You need to have more samples to generate your signal. You are using the wrong signal type 5 is ramp. You need to remember that most everything is zero based index in LabVIEW. the duration should be something closer to 0.990. The larger the number the more teeth you will have.
I also changed your code a little. You may have to change a few tings but this should get you closer. Another problem that you may have here is that you can not generate a -1 volt signal. I saw that error yesterday. You may need to correct for this.
05-06-2010 08:27 AM
05-06-2010 12:11 PM
Thanks for the great tip RavensFan, I didn't know that short-cut.
When I run the [5].vi I get a continuous sawtooth at 10 Hz. Which is curious because the 'Frequency' constant says 1000. That said, I'm not sure you understood I WAS trying to get a single ramp, in such a way that I could piece them together one at a time and get less than the twenty "sawtooths" I was getting with my other method. I have given up on the single ramp method, as I was able to get it to output single ramps to my positioner, and even with a few ramps it did not move it adequately. So, I am back to the bursts of continuous sawtooth and I have been able to get about 10 at a time which seems to be the , but would like to understand why yours gives 10hz not 1KHz.
05-06-2010 12:17 PM
05-06-2010 12:58 PM
05-06-2010 01:08 PM
05-06-2010 01:26 PM
I made this one only generate one ramp. You can adjust frequency, sample and loop time to get your timing where you want it.
I hope some of this helps.
05-06-2010 04:04 PM
It is helping me understand some things I've never messed with. Event structures for one. I'm having to examine that well to see what you do with the shift registers.As I see it you are using them to build the ramp array. I don't quite see yet why you have to have a direction control outside and in the event structure.
Unfortunately, I'm having some problems with my PCI-6251 cards. They are being fussy. Sometimes they work sometimes they don't. I can get an output from MAX panels, but am having trouble getting any new AO vi I create to output. SOme weird anomaly or gremlin is all I can figure.
Thanks for all the suggestions, you've given me much to "chew" on. I'm sure something in there will be of value. ...I'm going to go restart my PC and see if these DAQ boards start behaving again.
CHristopher