03-30-2009 11:15 AM
I have wired a VI to trigger 2 PXI-4071 DMM waveform acquisitions. They are both reading voltages and should both be triggered at the same time through a trigger on the PXI backplane. At least 95% of the time when I run the VI, I get waveforms that are almost completely in phase with slight variation. Occasionally, I get 2 waveforms that are 180 degress out of phase. I have connected an oscilloscope, and the waveforms are consistently 180 degrees out of phase. I have attached my VI, and I would appreciate any suggestions as to why its output doesn't match my oscilloscope, and more importantly, why it would change from acquisition to acquisiton. I know you are unable to account for my DUT, but according to the oscilloscope I have 2 steady waveforms 180 degrees out of phase. Thanks for any advice offered.
03-31-2009 02:18 PM
03-31-2009 03:58 PM
04-01-2009 11:31 AM
Hi ejensen,
I'm not seeing what's wrong with your code right off the bat, but I'll see what else I can find. Also, would you mind just posting pictures of your waveforms? That be easier to work with than the .bin files. Thanks!
04-01-2009 01:12 PM
04-01-2009 05:34 PM
Hi ejensen,
I'm not entirely sure why you're seeing those results. While I continue to look into this, could you please check out THIS example program to see if you get the same results running it? Thanks!
04-02-2009 08:21 AM
I have tried that example previously and was never able to get anything resembling a waveform with multipoint acquisition. I tried one trigger for multiple samples, and I tried one sample per trigger with a continuous trigger. I was never able to sample fast enough to get a waveform. My DUT is currently in use on another project, but when I can, I'll post the output I get from that example. I will also try connecting both DMMs to the same point on the DUT and see if I get similar results from my VI. I assume I will, and that will rule out the possibility that my DUT is just doing something strange. Thanks for your responses so far, and I'll follow up as soon as I'm able.
04-02-2009 11:11 AM
Hi Ejensen,
So, looking through your code again, it's quite possible that you're seeing a race condition where there is no gaurantee that your devices are going to start at the same time (you should run a highlight-execution on this and see if you can verify this). Though the example I recommended might not be suitable for your application, I'd like you to try to set up your code the way that example is configured (praticularly in regards to the error wires). A few other questions I have are: What is your DUT? And how are you trying to do your measurements? If you continue to see this problem after modifying your code, I would like to try to reproduce your issue: how are your devices configured in your chassis? what kinds of cables are you using and what are their lengths? Thanks in advance!
04-02-2009 11:50 AM
My understanding is that it shouldn't matter when the config and init are run as long as both are initialized and waiting for the trigger. If they're both waiting and the trigger comes, shouldn't they start at the same time?
I have tried adding a delay after the initialization and before the trigger in case the issue was related to an initialization not being ready, but that caused my waveforms to be shifted even further. I also don't understand what would cause this, since the trigger should still be the signal to start acquisition. The fact that the trigger comes a bit later should not affect the phase relationship of my waveforms. Running highlight-execution shows the data flowing as I would expect. Both DMMs go through config and init, errors are merged, then a pulse is generated. This seems to function as I would expect.
My DUT is a DC power supply. I am monitoring the AC input voltage and current. I am not taking a current measurement, but instead measuring the voltage across a 1 ohm resistor.
I have connected both DMMs to the same input voltage and so far I haven't been able to get the readings to line up. They are consistently about 90 degrees out of phase. The peaks fall approximately 3.8ms apart, which tells me they are not triggering at the same time.
My pulse is generated from a PXI-6229 in slot 2. My PXI-4071 DMMs are in slots 3 and 4.
I understand what you mean about the error wire on the example you posted, and I will try to set mine up in a similar way to see if it affects anything. I will post back with any change in results.
04-02-2009 11:54 AM