Quantcast
Channel: Digital I/O topics
Viewing all articles
Browse latest Browse all 2182

Alternating digital waveform on 2 lines

$
0
0

I send two on/off waveforms as an output to port0/line0 and port0/line1 using a PCIe-6363/BNC-2110 to modulate two lasers.
Please see the attached .vi.
Before you run the LabVIEW program one can choose the alternating frequency.
That works pretty fine, you can easily connect an Oscilloscope to the outputs and see the alternating digital waves.
My problem here is, that as soon as I hit the stop button the program stops (obviously) but keeps one of the last modulation outputs on.
I want to alter the program that when I hit the stop-button both outputs switch to 0 (off - basically switching the laser modulation off).

Whatever I do here, e.g. adding some if-condition, adding an additional DAQmx write behind the loop, etc.... gives me 1) an error (like: 200557, 200587) and 2) never sets the modulation to 0 (off).
Maybe someone here has an idea how to solve that?


Viewing all articles
Browse latest Browse all 2182

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>