10-24-2005 03:40 PM
10-25-2005 12:50 PM
Hello Stephen,
How are you connecting your trigger signal? Make sure that you have the positive reference wired to PFI0 and the ground reference wired to DGND.
How are you determining on which edge the 6015 is triggering? How fast is your square wave?
Please let me know these details and I will be happy to help you trouble shoot.
Regards,
Sean C.
10-25-2005 01:15 PM
10-26-2005 02:39 PM
Hi Steven,
I just ran the shipping example Acq&Graph Voltage-Int Clk-Dig Start.vi with a 4 Hz square wave wired to AI0 and PFI0. I was able to trigger off the correct edge every time. Try running this shipping example. You can find it from LabVIEW by selecting Help >> Find Examples... Then browsing to Hardware Input and Output >> DAQmx >> Analog Measurements >> Voltage. Do you get the same results?
You mention that you connected your signal to the BNC connector of PFI0. Are you using a BNC connector block? Do you have the Mass Termination DAQPad-6015? If so, try using a different cable and connector block.
Finally, try using a different function generator to generate your square wave.
If you are still seeing the same problem after all of this, I recommend contacting National Instruments to send your device in for repairs.
Let me know your results.
Regards,
Sean C.
10-26-2005 06:29 PM
10-27-2005 10:04 AM
Hello Steven,
I am glad to hear that you can get this working. It seems strange to me that it will work only for certain combinations of Sample Rate and Number of Samples... The only other suggestion I can think of would be to try passing your trigger signal through a low pass filter. It may be that your signal is noisy, and it is triggering off of the noise rather than the true falling edge.
I hope this helps. Please let me know if you have any further questions.
Regards,
Sean C.
01-20-2006 06:57 AM
I jumpered AI0 to PFI0 to observe the trigger input signal. I used a vaiable power supply to generate the input signal and ran the example program Acq&GraphVoltage-Int Clk-Deg Ref. This allows pre-trigger with PFI0 triggering. The display positions a cursor at the trigger point. Analog triggering is not supported with daqpads.
I found that there are frequent buffer overruns that are not apparent to the user. That is, some data taken at the end of the acquisition period apear at the beginning of the data buffer. You will observe data to the right of your plot appearing on the left with a discontinuity at the point where the overrun or overwrite ends. The next effect is that the data on the left of the plot, where you thing your trigger data resides has been over written with data at the end of the acquisition period and therefore become confused with regard to what voltage level or slope triggered your daq. In reality the PFI input with digital triggering induces an edge trigger at approximately 1.3 volts. I used 10KHz sampling with 10K points. I suspect the problem may not appear for smaller amounts of data, say 10KHZ samping for 1000 points.
This seems to be a problem with buffer memory limitations in the USB daq devices and of course the use of serial USB to xfer the data. My solution is to return the daqpad and procure PCMCIA cards. The application works perfectly with an M-series PCI card AND IT SUPPORTS ANALOG TRIGGERING!
07-17-2008 08:09 AM
Hi,
I am using DAQPad 6015 and I have a little problem with the buffer size. Actually, I am trying to triggerize an application that is used in my job. So I want to acquire a signal and save a part of it. My problem is that I am not used to use DAQmx and that I always have a problem of buffer when I try acquiring my data. I want to know if my problem is due to a wrong use of Labview or if I can't do all these with this device. I also want to triggerize my application without any signal of reference, only when it changes. Any idea? I look forward to hear from you and thanks you in advance for your answers.
07-18-2008 02:03 PM - edited 07-18-2008 02:05 PM
Are you receiving a specific error which indicates you are overflowing your buffer? It would be helpful if you could post the error code. Are you doing any post-acquisition processing?
You also had questions about triggering. The DAQPad 6015 only supports Digital Edge triggering. If you are acquiring an analog signal, and want to trigger off of some change, you will need to implement this in software.
If you are receiving buffer overflow errors due to post-acquisition processing, I would suggest implementing the Producer/Consumer pattern. In order to trigger off of some change in your signal, I would suggest implementing the State Machine design pattern. You could combine the two to build the application that suits your needs.
These are not basic concepts, but don’t worry! We provide plenty of Developer Zone tutorials to help you build your application. I would also recommend searching through the NI Example Finder. Open LabVIEW and go to Help»Find Examples. You can Browse by task, I would suggest taking a look at the following folders.
For examples using DAQmx Programming:
Hardware Input and Output»DAQmx»Analog Measurements
For examples using State Machines:
Industry Applications»Test Sequencer
I would also strongly suggest taking our LabVIEW Basics course. You will learn how to apply the state machine design pattern, as well as more advanced topics such as event-driven programming.
www.ni.com/training