06-21-2006 08:03 PM
06-27-2006 09:33 AM
Hey Robert,
I don't think I've seen this one before. Occasionally, I have seen instances when an output voltage will spike before generation if an old waveform is still in memory on the device. You mentioned that you are seeing a spike at the end of this waveform. Does this happen consistently? Does it happen have programatically resetting the device?
Regards,
David Hall | Applications Engineering | National Instruments
06-28-2006 07:58 AM
David,
Unfortunately, it is very consistent...let me see if I can describe it in detail.
When running the generation example, the spike or pop happens when the task just before the task starts and just after the task stops. However, if we then run the acquisition example (while the generation is running), the spikes immediately stop. Then if we stop the acquisition example (and leave the generation running), the spikes do NOT come back. So, the only thing that causes the spikes are the starting and stopping of a task. We are not doing any resetting of the device programmatically. However, if we power off the controller and power it back on, the spikes come back, and the only way to stop them is to go through the same sequence described previously. Unfortunately, we didn't have another card to try out to see if it was consistent across cards.
Is there anything in the start and stop task controls which could cause this?
Thanks,
Rob
06-29-2006 05:34 PM
06-30-2006 06:43 AM
Gavin,
The application is a deployed program that we based off of the example that is provided with the sound and vibration toolkit (SVXMPL_Swept Sine FRF (DAQmx).vi). If you don't run our application, there are no pops. But, as soon as you run our app, then try to run the analog output example (Retriggering_Analog_Output_Waveform_Generation), pops appear. As soon as you run the analog input example (ContAcqGraph Voltage), then the pops disappear. It is very repeatable. I am checking on the version of DAQmx.
Thanks,
Rob
06-30-2006 12:02 PM
Hey Rob,
I found out some information that might be helpful to you. There was a problem identified with that particular SVT example awhile ago where spikes would happen due to a Device Reset during the generation. This device reset was performed by default in the example if there was an error with the AO generation. Since your code was based off of this example, I believe that there's a Device Reset happening due to some error. If you could, please go through your application and ensure proper error chaining so that any errors generated are seen by the user. You can also go through and probe the error clusters coming out of the VIs in order to get a quick picture of what might be happening.
The specific VI in question is "SVT Close Swept Sine (DAQmx).vi". You can set a breakpoint before the "DAQmx Reset Device.vi" on the block diagram and verify that this is happening(see attachment screenshot). Let me know what you find out.
Good luck
Gavin Goodrich
National Instruments