05-03-2010 04:16 PM
I cannot seem to figure out the time parameters of the Simulate Arbitrary Signal.
I want to make a single ramp from -1 to 1 over .990ms then back to -1 in under 10us. So when I put it in a for loop I can get N sawtooth cycles.
I've been pulling my hair out trying different options of the define signal dialog and can't make it happen.
Can someone help me understand the dx relation to the datapoints and how they are affected by the write/sample numbers in the DAQ part? Please.
Christopher
Solved! Go to Solution.
05-04-2010 08:03 AM
05-04-2010 11:36 AM
The accuracy is not incredibly critical. I am using an attocube nanopositioner which likes to have a 1 Khz sawtooth. I have been able to generate the sawtooth using the sawtoothgenerator, but can only limit it's output to about 20 to 30 ramps. I need finer control than that for the coarse approach of the positioner. I figured if I could generate a single ramp, then I could loop it and get as many (as few) as I needed.
I have been experimenting with the point by point generator which gives a duration. I think that may work better, but I still can't seem to get the DAQ configured for the individual ramp.
My hardware is a PCI-6251 DAQ board. Thanks for any help.
05-04-2010 12:50 PM
05-04-2010 04:31 PM
It was that simple! Just put the Write inside the loop instead of the 'Is it done' OK! I was spending all my time lessing with samples and write poly selector.etc....
I added a 180 phase to the generator, a counter logic for the increment-stop and it's is exactly what I was looking for!
Looks like I may have to add the 'return signal to ground' property and the sensor level stuff....
Thank you so much!
05-05-2010 06:53 AM
05-05-2010 01:01 PM
Well, maybe I spoke too soon. I see the sawtooth on the graph as I need it to be. But the signal is not going out to the DAQ.
I have set the physical channel and levels. I even tried a Start Task inside the loop. I get nothing on the output. My board is working, if I run the vi I showed at the beginning of this thread I get output. But in that case the Write and Start are outside the loop.
Any ideas?
05-05-2010 03:59 PM
05-05-2010 06:14 PM
Nope, still can't get it to work...I may open another topic, since I prematurally solutioned this one.
As I understand it, the Write block merely writes to the buffer, you then need the Start Task to actually put it out the ao1 ouput. But I have even tried putting the Start Task inside, outside, in front of, and after the loop and can get no output still.I also tried putting a second loop with the Is Task Done block as in the continuous vi that I can get to output.
05-05-2010 10:53 PM
Are you getting an error message?
Why don't you post your VI so we can see what you are doing?