Search the Community
Showing results for tags 'synchronization'.
-
Synchronous analog outputs coded in Python show DELAY
Alessandroposted a question inTest and Measurement
Good morning, I'm new in this forum. I'm writing because I'm working on a project related to the generation of two encoded signals. As you can see from the uploaded code, the encoded signal (encoded[]) is made of a fixed base (encoding[]) that is multiplied by each element in the array data[]. Therefore the encoded signal is a bit stream of 0 and 1 that I created using funcCustom. The main constraint of this projects is that the two signals must be SYNCHRONOUS. The PROBLEM is that in reality they're not as you can see from the oscilloscope image. Sometimes it happens that there is a small delay of 4µs and sometimes there isn't at all. Why does it happen? This is crucial for my application. In the code I used this kind of synchronization: dwf.FDwfAnalogOutMasterSet(hdwf, c_int(1), c_int(0)) dwf.FDwfAnalogOutConfigure(hdwf, c_int(-1), c_bool(True)) Thank you, Alessandro CDMA_customFunc.py- 3 replies
-
- delay
- analog output
- (and 1 more)
Tagged with:
-
Hi, I am trying to synchronize two sine waves referring to the sample file "analogout_sync.cpp" using the master and slave technique, but I feel like there is too much of a delay before the second wave is generated still. When I use an external oscilloscope, it shows that the sine waves are not in sync and the phases change for the waves every time the program is rerun, so I can't hardcode a phase to fix it. Is there any way to make sure I can sync the two waves using C++ code? Thanks
- 2 replies
-
- analog discovery 2
- c++
- (and 1 more)
Tagged with:
-
Hi all, I use Analog Discovery 2 to generate a ramp up waveform and observe synchronously the response in the scope. The wavegen output W1 is wired to the scope input Ch.1. I want the scope to be triggered by the generated waveform, so that subsequent acquisitions yield signal that starts exactly in the same moment. I attach the VI that I have made to achieve this (testscope3.vi). I use Configure Digital Edge Trigger.vi to set up triggering. What I expect is that on each loop repetition the acquired signal would start in the same moment, but this is not the case. Each acquisition starts at an arbitrary moment and the signal moves visibly along the time axis. I am perfectly able to achieve the above using the WaveForms 2015 application (I attach the corresponding WaveForms 2015 workspace file), so I know that the hardware is capable of doing this. However, the experiment I need this for is controlled from LabVIEW and I would like to get the same result using the LabVIEW Driver for Analog Discovery 2. Thank you for any suggestions on how to achieve this from LabVIEW. testscope3.vi sweep.dwf3work
- 7 replies
-
- labview
- analog discovery 2
- (and 1 more)
Tagged with:
