04-28-2006 04:03 PM
05-01-2006 06:41 PM
06-19-2006 09:59 AM - edited 06-19-2006 09:59 AM
Message Edited by Azazel on 06-19-2006 10:10 AM
06-19-2006 02:06 PM
Further testing problems. So I read in the PCI 6259 manual and it seems it is possible to use counters as a method to produce pulses for retriggerable analog outputs. Using the vi supplied in the above post I have been unable to produce a triggered AO and I think the problem is due to my wiring of my connector block. I believe the proper way to accomplish this (although I have tried many combinations without any luck) is to take my trigger signal and wire it to the PFI9/CTR 0 gate, I then take the CTR out signal and wire it to the PFI 0/AI start trig. When I run the vi, my wfm is continuously outputed and I can even disconnect the trigger signal and the waveform is still outputed, therefore triggering is not occuring. I have attached the vi I am working off of and if any one can provide help it would be greatly appreciated.
Thanks,
Azazel
06-20-2006 03:33 PM
Hello Azazel,
The above example code should work. I have used it several times.
When I used this example I connected the trigger signal to PFI 0 (Pin 11 on
connector 0 of a PCI-6259).
That is the only connection required to generate the analog output. You
do not need to wire the counter output to anything. This is configured in
the software. In the software, first specify your analog output channel
(i.e. Dev1/ao0), and the Max/Min Voltage. Next specify counter 0, if
free, in the Counter Channel combo box and Ctr0InternalOutput for Clock
Source. In my setup this was Dev1/ctr0 for Counter Channel and
Dev1/Ctr0InternalOutput for Clock Source. By setting the clock source to
ctr0InternalOutput the driver will route the clock source internally.
Finally in the Trigger Parameters set the Trigger Source to Dev2/PFI0. As
mentioned above connect your trigger to pin 11 and you should be set.
I hope this clarifies things.
Regards,
Jesse O.
Applications Engineering
National Instruments
06-21-2006 10:55 AM - edited 06-21-2006 10:55 AM
Hello Jesse,
I connected my trigger wire to PFI 0 on my pci 6259 connector block. And configured the software as in your example. Unfortunately I have yet to output a triggered waveform. In your post you said to connect the trigger source to Dev2/PFI0, I assume you ment Dev1/PFI0? Upon reading the code the trigger source and fall/rise options, control a digital edge trigger. In the help file it states that this Subvi requires a digitial trigger so how can my analogue trigger actually trigger my output? I have also confimed that the card is working as I have no problem outputting a continuous waveform and in the vi that was posted if I change the clock source from Dev1/Ctrl0InternalOutput to onboard clock I can again create a continuous waveform. Another possible error may deal with my trigger signal being ~1.7kHz and how I set the output frequency. What sort of output frequencies do you use or is there any upper bounds that can be used for the AO trigger waveform? If it is not too much trouble perhaps you could post your actual code you use to perform this operation as I may be overlooking something simple that needed to be changed in the software from the example vi. Thanks for your help and hopefully this (should be simple) task can be accomplished soon.
Azazel
Message Edited by Azazel on 06-21-2006 10:57 AM
06-21-2006 01:08 PM
I have some more info. I attempted to use the PCI-6259 to acquire data (to see if I had the most basic functionality). I again had no problem acquiring data without a trigger but could not get the card to trigger data acquisition off of the normal PFI0 trigger terminal. I have noticed in some of the shipping vi's that the trigger has to be called APFI0 or APFI1 for M series devices. Will this screw up the trigger as in the PCI-6259 the trigger terminal is labelled PFI0?
Azazel
06-21-2006 01:22 PM
Hello Azazel,
In your last post, the example you attached is for
retriggerable analog output. The trigger in this example must be a
digital trigger. If you want to generate a retriggerable analog output it
is a little more complicated. No analog system is retriggerable by
itself. This is why the example you posted uses the counter system to
generate a retriggerable pulse train. The analog output then uses this
clock.
Now if you want to have a retriggerable analog output task
then you must connect your signal to the APFI0 line of your M Series
board. You could then use the analog comparison event signal to retrigger
your counter task. I have posted a similar example in another discussion
forum (found here). This example performs retriggerable analog
input, however the same concepts applies to output. Instead of using a
dummy analog output task you would use a dummy analog input task and perform
you analog output.
Regards,
Jesse O.
Applications Engineering
National Instruments
07-11-2007 02:31 PM
07-12-2007 02:23 PM