<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://photonwiki.ifi.unicamp.br/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Schilder</id>
	<title>Photonicamp Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://photonwiki.ifi.unicamp.br/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Schilder"/>
	<link rel="alternate" type="text/html" href="https://photonwiki.ifi.unicamp.br/wiki/index.php/Special:Contributions/Schilder"/>
	<updated>2026-05-30T14:43:40Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://photonwiki.ifi.unicamp.br/wiki/index.php?title=DAQ&amp;diff=177</id>
		<title>DAQ</title>
		<link rel="alternate" type="text/html" href="https://photonwiki.ifi.unicamp.br/wiki/index.php?title=DAQ&amp;diff=177"/>
		<updated>2024-12-04T20:27:46Z</updated>

		<summary type="html">&lt;p&gt;Schilder: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Instruments]]&lt;br /&gt;
For more information regarding a DAQ, please visit this [https://www.ni.com/en/shop/data-acquisition.html?srsltid=AfmBOop-ShC6qXu4ureq48jENtLwW7mANszhvf_x35Bpx6UD8beugJyp link].&lt;br /&gt;
&lt;br /&gt;
In our lab, we are using a DAQ NI USB-6259:&lt;br /&gt;
&lt;br /&gt;
[[File:Daq.jpg|300px|Picture of our DAQ, model NI USB-6259]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Specifications&#039;&#039;&#039;&lt;br /&gt;
Detailed specifications can be found on the website of [https://www.ni.com/docs/en-US/bundle/pci-pcie-pxi-pxie-usb-6259-specs/page/specs.html?srsltid=AfmBOoq6huevEadUGbvg0VDbnbNFntNGujrl4xMiuFrHO2soOgXV2_Wf National Instruments]&lt;br /&gt;
Specific specs:&lt;br /&gt;
Multichannel maximum: 1.00 MS/s. This rate is shared among all input channels.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Ghosting&#039;&#039;&#039;&lt;br /&gt;
When reading multiple signals simultaneously, it is possible that the signal of channel X will be partially visible in the signal recorded by channel Y due to what is called ghosting. Please find more information about ghosting [https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YHy6CAG&amp;amp;l=pt-BR here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;An example of a python script to read out channels&#039;&#039;&#039; Note that in the example below, we use shorts in between the three main signals to read in order to reduce ghosting. The shorts need to be read out to be effective. &amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot; line=&amp;quot;1&amp;quot; start=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
import nidaqmx&lt;br /&gt;
&lt;br /&gt;
DAQtaskAI = nidaqmx.Task(); #create a task object&lt;br /&gt;
DAQtaskAI.ai_channels.add_ai_voltage_chan(&amp;quot;Dev1/ai0&amp;quot;,min_val=0,max_val=10) # add an input channel to the task. min_val and max_val are the minimum and maximum voltage that will be applied. #Transmission&lt;br /&gt;
DAQtaskAI.ai_channels.add_ai_voltage_chan(&amp;quot;Dev1/ai1&amp;quot;,min_val=0,max_val=10) # Short&lt;br /&gt;
DAQtaskAI.ai_channels.add_ai_voltage_chan(&amp;quot;Dev1/ai2&amp;quot;,min_val=0,max_val=10) # MZI signal&lt;br /&gt;
DAQtaskAI.ai_channels.add_ai_voltage_chan(&amp;quot;Dev1/ai3&amp;quot;,min_val=0,max_val=10) # Short&lt;br /&gt;
DAQtaskAI.ai_channels.add_ai_voltage_chan(&amp;quot;Dev1/ai4&amp;quot;,min_val=0,max_val=10) # HCN signal&lt;br /&gt;
&lt;br /&gt;
DAQtaskAI.timing.cfg_samp_clk_timing(rate=100000,samps_per_chan=500000) #set sampling parameters. In this example the sampling rate per channel is 100 kHz and data will be collected during 5 seconds.&lt;br /&gt;
&lt;br /&gt;
#measure&lt;br /&gt;
data = DAQtaskAI.read(number_of_samples_per_channel = 500000, timeout = 5);&lt;br /&gt;
&lt;br /&gt;
transmission = data[0]&lt;br /&gt;
mzi    = data[2]&lt;br /&gt;
hcn    = data[4]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&#039;&#039;&#039;An example of a python script to set an output voltage&#039;&#039;&#039;&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;  line=&amp;quot;1&amp;quot; start=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
import nidaqmx&lt;br /&gt;
&lt;br /&gt;
DAQtaskAO = nidaqmx.Task(); #create a task object&lt;br /&gt;
DAQtaskAO.ao_channels.add_ao_voltage_chan(&amp;quot;Dev1/ao0&amp;quot;);&lt;br /&gt;
DAQtaskAO.write(data=5.2, auto_start = True); #5.2 Volt will be set at channel ao0.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Schilder</name></author>
	</entry>
	<entry>
		<id>https://photonwiki.ifi.unicamp.br/wiki/index.php?title=DAQ&amp;diff=176</id>
		<title>DAQ</title>
		<link rel="alternate" type="text/html" href="https://photonwiki.ifi.unicamp.br/wiki/index.php?title=DAQ&amp;diff=176"/>
		<updated>2024-12-04T20:26:26Z</updated>

		<summary type="html">&lt;p&gt;Schilder: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Instruments]]&lt;br /&gt;
For more information regarding a DAQ, please visit this [https://www.ni.com/en/shop/data-acquisition.html?srsltid=AfmBOop-ShC6qXu4ureq48jENtLwW7mANszhvf_x35Bpx6UD8beugJyp link].&lt;br /&gt;
&lt;br /&gt;
In our lab, we are using a DAQ NI USB-6259:&lt;br /&gt;
&lt;br /&gt;
[[File:Daq.jpg|300px|Picture of our DAQ, model NI USB-6259]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Specifications&#039;&#039;&#039;&lt;br /&gt;
Detailed specifications can be found on the website of [https://www.ni.com/docs/en-US/bundle/pci-pcie-pxi-pxie-usb-6259-specs/page/specs.html?srsltid=AfmBOoq6huevEadUGbvg0VDbnbNFntNGujrl4xMiuFrHO2soOgXV2_Wf National Instruments]&lt;br /&gt;
Specific specs:&lt;br /&gt;
Multichannel maximum: 1.00 MS/s. This rate is shared among all input channels.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Ghosting&#039;&#039;&#039;&lt;br /&gt;
When reading multiple signals simultaneously, it is possible that the signal of channel X will be partially visible in the signal recorded by channel Y due to what is called ghosting. Please find more information about ghosting [https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YHy6CAG&amp;amp;l=pt-BR here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;An example of a python script to read out channels&#039;&#039;&#039; Note that in the example below, we use shorts in between the three main signals to read in order to reduce ghosting. The shorts need to be read out to be effective. &amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot; line=&amp;quot;1&amp;quot; start=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
import nidaqmx&lt;br /&gt;
&lt;br /&gt;
DAQtaskAI = nidaqmx.Task(); #create a task object&lt;br /&gt;
DAQtaskAI.ai_channels.add_ai_voltage_chan(&amp;quot;Dev1/ai0&amp;quot;,min_val=0,max_val=10) # add an input channel to the task. min_val and max_val are the minimum and maximum voltage that will be applied. #Transmission&lt;br /&gt;
DAQtaskAI.ai_channels.add_ai_voltage_chan(&amp;quot;Dev1/ai1&amp;quot;,min_val=0,max_val=10) # Short&lt;br /&gt;
DAQtaskAI.ai_channels.add_ai_voltage_chan(&amp;quot;Dev1/ai2&amp;quot;,min_val=0,max_val=10) # MZI signal&lt;br /&gt;
DAQtaskAI.ai_channels.add_ai_voltage_chan(&amp;quot;Dev1/ai3&amp;quot;,min_val=0,max_val=10) # Short&lt;br /&gt;
DAQtaskAI.ai_channels.add_ai_voltage_chan(&amp;quot;Dev1/ai4&amp;quot;,min_val=0,max_val=10) # HCN signal&lt;br /&gt;
&lt;br /&gt;
DAQtaskAI.timing.cfg_samp_clk_timing(rate=100000,samps_per_chan=500000) #set sampling parameters. In this example the sampling rate per channel is 100 kHz and data will be collected during 5 seconds.&lt;br /&gt;
&lt;br /&gt;
#measure&lt;br /&gt;
data = DAQtaskAI.read(number_of_samples_per_channel = 500000, timeout = 5);&lt;br /&gt;
&lt;br /&gt;
transmission = data[0]&lt;br /&gt;
mzi    = data[2]&lt;br /&gt;
hcn    = data[4]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&#039;&#039;&#039;An example of a python script to set an output voltage&#039;&#039;&#039;&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
import nidaqmx&lt;br /&gt;
&lt;br /&gt;
DAQtaskAO = nidaqmx.Task(); #create a task object&lt;br /&gt;
DAQtaskAO.ao_channels.add_ao_voltage_chan(&amp;quot;Dev1/ao0&amp;quot;);&lt;br /&gt;
DAQtaskAO.write(data=5.2, auto_start = True); #5.2 Volt will be set at channel ao0.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Schilder</name></author>
	</entry>
	<entry>
		<id>https://photonwiki.ifi.unicamp.br/wiki/index.php?title=DAQ&amp;diff=175</id>
		<title>DAQ</title>
		<link rel="alternate" type="text/html" href="https://photonwiki.ifi.unicamp.br/wiki/index.php?title=DAQ&amp;diff=175"/>
		<updated>2024-12-04T20:25:57Z</updated>

		<summary type="html">&lt;p&gt;Schilder: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Instruments]]&lt;br /&gt;
For more information regarding a DAQ, please visit this [https://www.ni.com/en/shop/data-acquisition.html?srsltid=AfmBOop-ShC6qXu4ureq48jENtLwW7mANszhvf_x35Bpx6UD8beugJyp link].&lt;br /&gt;
&lt;br /&gt;
In our lab, we are using a DAQ NI USB-6259:&lt;br /&gt;
&lt;br /&gt;
[[File:Daq.jpg|300px|Picture of our DAQ, model NI USB-6259]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Specifications&#039;&#039;&#039;&lt;br /&gt;
Detailed specifications can be found on the website of [https://www.ni.com/docs/en-US/bundle/pci-pcie-pxi-pxie-usb-6259-specs/page/specs.html?srsltid=AfmBOoq6huevEadUGbvg0VDbnbNFntNGujrl4xMiuFrHO2soOgXV2_Wf National Instruments]&lt;br /&gt;
Specific specs:&lt;br /&gt;
Multichannel maximum: 1.00 MS/s. This rate is shared among all input channels.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Ghosting&#039;&#039;&#039;&lt;br /&gt;
When reading multiple signals simultaneously, it is possible that the signal of channel X will be partially visible in the signal recorded by channel Y due to what is called ghosting. Please find more information about ghosting [https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YHy6CAG&amp;amp;l=pt-BR here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;An example of a python script to read out channels&#039;&#039;&#039; Note that in the example below, we use shorts in between the three main signals to read in order to reduce ghosting. &amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot; line=&amp;quot;1&amp;quot; start=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
import nidaqmx&lt;br /&gt;
&lt;br /&gt;
DAQtaskAI = nidaqmx.Task(); #create a task object&lt;br /&gt;
DAQtaskAI.ai_channels.add_ai_voltage_chan(&amp;quot;Dev1/ai0&amp;quot;,min_val=0,max_val=10) # add an input channel to the task. min_val and max_val are the minimum and maximum voltage that will be applied. #Transmission&lt;br /&gt;
DAQtaskAI.ai_channels.add_ai_voltage_chan(&amp;quot;Dev1/ai1&amp;quot;,min_val=0,max_val=10) # Short&lt;br /&gt;
DAQtaskAI.ai_channels.add_ai_voltage_chan(&amp;quot;Dev1/ai2&amp;quot;,min_val=0,max_val=10) # MZI signal&lt;br /&gt;
DAQtaskAI.ai_channels.add_ai_voltage_chan(&amp;quot;Dev1/ai3&amp;quot;,min_val=0,max_val=10) # Short&lt;br /&gt;
DAQtaskAI.ai_channels.add_ai_voltage_chan(&amp;quot;Dev1/ai4&amp;quot;,min_val=0,max_val=10) # HCN signal&lt;br /&gt;
&lt;br /&gt;
DAQtaskAI.timing.cfg_samp_clk_timing(rate=100000,samps_per_chan=500000) #set sampling parameters. In this example the sampling rate per channel is 100 kHz and data will be collected during 5 seconds.&lt;br /&gt;
&lt;br /&gt;
#measure&lt;br /&gt;
data = DAQtaskAI.read(number_of_samples_per_channel = 500000, timeout = 5);&lt;br /&gt;
&lt;br /&gt;
transmission = data[0]&lt;br /&gt;
mzi    = data[2]&lt;br /&gt;
hcn    = data[4]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&#039;&#039;&#039;An example of a python script to set an output voltage&#039;&#039;&#039;&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
import nidaqmx&lt;br /&gt;
&lt;br /&gt;
DAQtaskAO = nidaqmx.Task(); #create a task object&lt;br /&gt;
DAQtaskAO.ao_channels.add_ao_voltage_chan(&amp;quot;Dev1/ao0&amp;quot;);&lt;br /&gt;
DAQtaskAO.write(data=5.2, auto_start = True); #5.2 Volt will be set at channel ao0.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Schilder</name></author>
	</entry>
	<entry>
		<id>https://photonwiki.ifi.unicamp.br/wiki/index.php?title=DAQ&amp;diff=174</id>
		<title>DAQ</title>
		<link rel="alternate" type="text/html" href="https://photonwiki.ifi.unicamp.br/wiki/index.php?title=DAQ&amp;diff=174"/>
		<updated>2024-12-04T20:19:12Z</updated>

		<summary type="html">&lt;p&gt;Schilder: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Instruments]]&lt;br /&gt;
For more information regarding a DAQ, please visit this [https://www.ni.com/en/shop/data-acquisition.html?srsltid=AfmBOop-ShC6qXu4ureq48jENtLwW7mANszhvf_x35Bpx6UD8beugJyp link].&lt;br /&gt;
&lt;br /&gt;
In our lab, we are using a DAQ NI USB-6259:&lt;br /&gt;
&lt;br /&gt;
[[File:Daq.jpg|300px|Picture of our DAQ, model NI USB-6259]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Specifications&#039;&#039;&#039;&lt;br /&gt;
Detailed specifications can be found on the website of [https://www.ni.com/docs/en-US/bundle/pci-pcie-pxi-pxie-usb-6259-specs/page/specs.html?srsltid=AfmBOoq6huevEadUGbvg0VDbnbNFntNGujrl4xMiuFrHO2soOgXV2_Wf National Instruments]&lt;br /&gt;
Specific specs:&lt;br /&gt;
Multichannel maximum: 1.00 MS/s. This rate is shared among all input channels.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Ghosting&#039;&#039;&#039;&lt;br /&gt;
When reading multiple signals simultaneously, it is possible that the signal of channel X will be partially visible in the signal recorded by channel Y due to what is called ghosting. Please find more information about ghosting [https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YHy6CAG&amp;amp;l=pt-BR here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;An example of a python script to read out channels&#039;&#039;&#039; &amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot; line=&amp;quot;1&amp;quot; start=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
import nidaqmx&lt;br /&gt;
&lt;br /&gt;
DAQtaskAI = nidaqmx.Task(); #create a task object&lt;br /&gt;
DAQtaskAI.ai_channels.add_ai_voltage_chan(&amp;quot;Dev1/ai0&amp;quot;,min_val=0,max_val=10) # add an input channel to the task. min_val and max_val are the minimum and maximum voltage that will be applied. #Transmission&lt;br /&gt;
DAQtaskAI.ai_channels.add_ai_voltage_chan(&amp;quot;Dev1/ai1&amp;quot;,min_val=0,max_val=10) # Short&lt;br /&gt;
DAQtaskAI.ai_channels.add_ai_voltage_chan(&amp;quot;Dev1/ai2&amp;quot;,min_val=0,max_val=10) # MZI signal&lt;br /&gt;
DAQtaskAI.ai_channels.add_ai_voltage_chan(&amp;quot;Dev1/ai3&amp;quot;,min_val=0,max_val=10) # Short&lt;br /&gt;
DAQtaskAI.ai_channels.add_ai_voltage_chan(&amp;quot;Dev1/ai4&amp;quot;,min_val=0,max_val=10) # HCN signal&lt;br /&gt;
&lt;br /&gt;
DAQtaskAI.timing.cfg_samp_clk_timing(rate=100000,samps_per_chan=500000) #set sampling parameters. In this example the sampling rate per channel is 100 kHz and data will be collected during 5 seconds.&lt;br /&gt;
&lt;br /&gt;
#measure&lt;br /&gt;
data = DAQtaskAI.read(number_of_samples_per_channel = 500000, timeout = 5);&lt;br /&gt;
&lt;br /&gt;
transmission = data[0]&lt;br /&gt;
mzi    = data[2]&lt;br /&gt;
hcn    = data[4]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&#039;&#039;&#039;An example of a python script to set an output voltage&#039;&#039;&#039;&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
import nidaqmx&lt;br /&gt;
&lt;br /&gt;
DAQtaskAO = nidaqmx.Task(); #create a task object&lt;br /&gt;
DAQtaskAO.ao_channels.add_ao_voltage_chan(&amp;quot;Dev1/ao0&amp;quot;);&lt;br /&gt;
DAQtaskAO.write(data=5.2, auto_start = True); #5.2 Volt will be set at channel ao0.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Schilder</name></author>
	</entry>
	<entry>
		<id>https://photonwiki.ifi.unicamp.br/wiki/index.php?title=DAQ&amp;diff=173</id>
		<title>DAQ</title>
		<link rel="alternate" type="text/html" href="https://photonwiki.ifi.unicamp.br/wiki/index.php?title=DAQ&amp;diff=173"/>
		<updated>2024-12-04T20:18:13Z</updated>

		<summary type="html">&lt;p&gt;Schilder: A first version of a DAQ wikipedia page, with the aim that colleagues can easily use a DAQ to either read or write voltages.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;For more information regarding a DAQ, please visit this [https://www.ni.com/en/shop/data-acquisition.html?srsltid=AfmBOop-ShC6qXu4ureq48jENtLwW7mANszhvf_x35Bpx6UD8beugJyp link].&lt;br /&gt;
&lt;br /&gt;
In our lab, we are using a DAQ NI USB-6259:&lt;br /&gt;
&lt;br /&gt;
[[File:Daq.jpg|300px|Picture of our DAQ, model NI USB-6259]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Specifications&#039;&#039;&#039;&lt;br /&gt;
Detailed specifications can be found on the website of [https://www.ni.com/docs/en-US/bundle/pci-pcie-pxi-pxie-usb-6259-specs/page/specs.html?srsltid=AfmBOoq6huevEadUGbvg0VDbnbNFntNGujrl4xMiuFrHO2soOgXV2_Wf National Instruments]&lt;br /&gt;
Specific specs:&lt;br /&gt;
Multichannel maximum: 1.00 MS/s. This rate is shared among all input channels.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Ghosting&#039;&#039;&#039;&lt;br /&gt;
When reading multiple signals simultaneously, it is possible that the signal of channel X will be partially visible in the signal recorded by channel Y due to what is called ghosting. Please find more information about ghosting [https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YHy6CAG&amp;amp;l=pt-BR here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;An example of a python script to read out channels&#039;&#039;&#039; &amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot; line=&amp;quot;1&amp;quot; start=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
import nidaqmx&lt;br /&gt;
&lt;br /&gt;
DAQtaskAI = nidaqmx.Task(); #create a task object&lt;br /&gt;
DAQtaskAI.ai_channels.add_ai_voltage_chan(&amp;quot;Dev1/ai0&amp;quot;,min_val=0,max_val=10) # add an input channel to the task. min_val and max_val are the minimum and maximum voltage that will be applied. #Transmission&lt;br /&gt;
DAQtaskAI.ai_channels.add_ai_voltage_chan(&amp;quot;Dev1/ai1&amp;quot;,min_val=0,max_val=10) # Short&lt;br /&gt;
DAQtaskAI.ai_channels.add_ai_voltage_chan(&amp;quot;Dev1/ai2&amp;quot;,min_val=0,max_val=10) # MZI signal&lt;br /&gt;
DAQtaskAI.ai_channels.add_ai_voltage_chan(&amp;quot;Dev1/ai3&amp;quot;,min_val=0,max_val=10) # Short&lt;br /&gt;
DAQtaskAI.ai_channels.add_ai_voltage_chan(&amp;quot;Dev1/ai4&amp;quot;,min_val=0,max_val=10) # HCN signal&lt;br /&gt;
&lt;br /&gt;
DAQtaskAI.timing.cfg_samp_clk_timing(rate=100000,samps_per_chan=500000) #set sampling parameters. In this example the sampling rate per channel is 100 kHz and data will be collected during 5 seconds.&lt;br /&gt;
&lt;br /&gt;
#measure&lt;br /&gt;
data = DAQtaskAI.read(number_of_samples_per_channel = 500000, timeout = 5);&lt;br /&gt;
&lt;br /&gt;
transmission = data[0]&lt;br /&gt;
mzi    = data[2]&lt;br /&gt;
hcn    = data[4]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&#039;&#039;&#039;An example of a python script to set an output voltage&#039;&#039;&#039;&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
import nidaqmx&lt;br /&gt;
&lt;br /&gt;
DAQtaskAO = nidaqmx.Task(); #create a task object&lt;br /&gt;
DAQtaskAO.ao_channels.add_ao_voltage_chan(&amp;quot;Dev1/ao0&amp;quot;);&lt;br /&gt;
DAQtaskAO.write(data=5.2, auto_start = True); #5.2 Volt will be set at channel ao0.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Schilder</name></author>
	</entry>
	<entry>
		<id>https://photonwiki.ifi.unicamp.br/wiki/index.php?title=File:Daq.jpg&amp;diff=172</id>
		<title>File:Daq.jpg</title>
		<link rel="alternate" type="text/html" href="https://photonwiki.ifi.unicamp.br/wiki/index.php?title=File:Daq.jpg&amp;diff=172"/>
		<updated>2024-12-04T19:31:41Z</updated>

		<summary type="html">&lt;p&gt;Schilder: Picture of a DAQ, model NI USB-6259&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
Picture of a DAQ, model NI USB-6259&lt;/div&gt;</summary>
		<author><name>Schilder</name></author>
	</entry>
	<entry>
		<id>https://photonwiki.ifi.unicamp.br/wiki/index.php?title=Category:EMU&amp;diff=171</id>
		<title>Category:EMU</title>
		<link rel="alternate" type="text/html" href="https://photonwiki.ifi.unicamp.br/wiki/index.php?title=Category:EMU&amp;diff=171"/>
		<updated>2024-12-04T19:03:50Z</updated>

		<summary type="html">&lt;p&gt;Schilder: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Root]]&lt;/div&gt;</summary>
		<author><name>Schilder</name></author>
	</entry>
	<entry>
		<id>https://photonwiki.ifi.unicamp.br/wiki/index.php?title=Category:EMU&amp;diff=170</id>
		<title>Category:EMU</title>
		<link rel="alternate" type="text/html" href="https://photonwiki.ifi.unicamp.br/wiki/index.php?title=Category:EMU&amp;diff=170"/>
		<updated>2024-12-04T19:03:41Z</updated>

		<summary type="html">&lt;p&gt;Schilder: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Root]]&lt;br /&gt;
DAQ&lt;/div&gt;</summary>
		<author><name>Schilder</name></author>
	</entry>
</feed>