<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SDM3045X Series Archives - Siglent</title>
	<atom:link href="https://siglentna.com/application-notes/digital-multimeters/sdm3045x-series/feed/" rel="self" type="application/rss+xml" />
	<link>https://siglentna.com/application-notes/digital-multimeters/sdm3045x-series/</link>
	<description>Siglent Technologies America, Inc</description>
	<lastBuildDate>Thu, 09 Jun 2022 15:28:20 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://siglentna.com/wp-content/uploads/2025/04/cropped-512X512.1-32x32.png</url>
	<title>SDM3045X Series Archives - Siglent</title>
	<link>https://siglentna.com/application-notes/digital-multimeters/sdm3045x-series/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Programming Example: Python Power Supply Efficiency Example</title>
		<link>https://siglentna.com/application-note/programming-example-python-power-supply-efficiency-example/</link>
		
		<dc:creator><![CDATA[daisy]]></dc:creator>
		<pubDate>Mon, 21 Jun 2021 19:15:16 +0000</pubDate>
				<guid isPermaLink="false">https://siglentna.com/?post_type=application-notes&#038;p=20008</guid>

					<description><![CDATA[<p>Power supply efficiency is an important aspect of any power supply design. Using a few standard pieces of test gear, one can quickly build a modular system with enough resolution to measure the most demanding applications. This note describes a Python example that we created as part of an application note which describes the basics &#8230; <a href="https://siglentna.com/application-note/programming-example-python-power-supply-efficiency-example/">Continued</a></p>
<p>The post <a href="https://siglentna.com/application-note/programming-example-python-power-supply-efficiency-example/">Programming Example: Python Power Supply Efficiency Example</a> appeared first on <a href="https://siglentna.com">Siglent</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Power supply efficiency is an important aspect of any power supply design. Using a few standard pieces of test gear, one can quickly build a modular system with enough resolution to measure the most demanding applications.</p>
<p>This note describes a Python example that we created as part of an application note which describes the basics of power supply efficiency testing, which is available here: <a href="https://siglentna.com/application-note/easy-dc-power-supply-efficiency-measurements/" target="_blank" rel="noopener noreferrer">Power Supply Efficiency App Note</a></p>
<p>Typical power efficiency curves require 10 or more load current steps to get an accurate representation of efficiency. Manually performing this test can be a bit tedious and prone to error.</p>
<p>For the resolution question, consider that most commercial power supplies and DC loads have 3.5 digit measurement resolution and accuracy values that may not be high enough to characterize the DUT confidently.</p>
<p>To address these two considerations, we added four multimeters: one to measure Vin, Iin, Vout, and Iout and created a computer program to automate the instrument configurations, step load current values, and data collection.</p>
<p>Here is a wiring diagram of the setup:</p>
<p><img fetchpriority="high" decoding="async" class="aligncenter wp-image-19341" src="https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_DMM_Wiring.jpg" alt="siglent multiple dmm power supply efficiency block diagram" width="1013" height="523" srcset="https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_DMM_Wiring.jpg 2249w, https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_DMM_Wiring-300x155.jpg 300w, https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_DMM_Wiring-1024x529.jpg 1024w, https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_DMM_Wiring-768x396.jpg 768w, https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_DMM_Wiring-1536x793.jpg 1536w, https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_DMM_Wiring-2048x1057.jpg 2048w, https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_DMM_Wiring-600x310.jpg 600w" sizes="(max-width: 1013px) 100vw, 1013px" /></p>
<h2>Software</h2>
<p>Automating this type of test is a great way to minimize errors as well as speed up the test process.</p>
<p>We put together an example program using Python that performs the following:</p>
<ul>
<li style="list-style-type: none;">
<ul>
<li>Prompts the user for start, stop, and number of current load steps</li>
<li>Power Supply settings to deliver proper power to the DUT</li>
<li>Filename to save the CSV data file</li>
</ul>
</li>
</ul>
<p><strong>Requirements:</strong></p>
<ul>
<li style="list-style-type: none;">
<ul>
<li>Qty 1 SIGLENT SPD series power supply</li>
<li>Qty 1 SIGLENT SDL1000X series DC electronic load</li>
<li>Qty 4 SIGLENT SDM3000 series digital multimeter</li>
<li>Qty 1 6 port or more USB hub, USB cables</li>
<li>Cabling* to connect all instruments and DUT</li>
<li>Python 3.0 or greater</li>
<li>tkinter</li>
<li>PyVISA</li>
</ul>
</li>
</ul>
<p><strong>*</strong>Use the proper gauge wiring and connectors that are rated above the maximum current draw expected to minimize the risk of fire or overheating.</p>
<p><strong>To run the program:</strong></p>
<ul>
<li style="list-style-type: none;">
<ul>
<li>Download Python 3.6, PyVISA, and tkinter (a module that eases Graphical User Interface creation)</li>
<li>Download the program <a href="https://siglentna.com/wp-content/uploads/2020/11/SIGLENT-PS-Efficiency.zip" target="_blank" rel="noopener noreferrer">SIGLENT PS Efficiency.ZIP</a></li>
<li>Connect instruments and DUT. It may be helpful to put a small label on each DMM to make it easier to visually identify their roles.</li>
<li>Open the program using a Python editor like IDLE</li>
<li>Edit the USB addresses for each instrument.</li>
</ul>
</li>
</ul>
<p style="padding-left: 40px;">Here is a screenshot of the code showing the addresses:</p>
<p><img decoding="async" class="aligncenter wp-image-19347 size-full" src="https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_Addresses.jpg" alt="siglent multiple dmm power supply efficiency programming example code sample" width="833" height="575" srcset="https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_Addresses.jpg 833w, https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_Addresses-300x207.jpg 300w, https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_Addresses-768x530.jpg 768w, https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_Addresses-600x414.jpg 600w" sizes="(max-width: 833px) 100vw, 833px" /></p>
<p style="padding-left: 40px;">Where:</p>
<ul>
<li style="list-style-type: none;">
<ul>
<li style="list-style-type: none;">
<ul>
<li style="list-style-type: none;">
<ul>
<li>SPDadd is the power supply address</li>
<li>SDLadd is the electronic load address</li>
<li>SDMVinadd is the address of the DMM measuring the input voltage</li>
<li>SDMIinadd is the address of the DMM measuring the input current</li>
<li>SDMVoutadd is the address of the DMM measuring the output voltage</li>
<li>SDMIoutadd is the address of the DMM measuring the output current</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<p style="padding-left: 40px;">One easy way to establish the USB addresses is to use the National Instruments MAX application. With Max, you can connect the instruments via USB and check all of the addresses:</p>
<p><img decoding="async" class="aligncenter wp-image-19348 size-full" src="https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_VISA.jpg" alt="siglent multiple dmm power supply efficiency NI-MAX USB address discovery" width="454" height="290" srcset="https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_VISA.jpg 454w, https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_VISA-300x192.jpg 300w" sizes="(max-width: 454px) 100vw, 454px" /></p>
<p>&nbsp;</p>
<p><strong>NOTE:</strong> The USB resource ID contains the instrument serial number, which can be used to help identify which instrument you are communicating with. As noted above, it may be helpful to put a small label on each instrument including the serial number to make it easier to visually identify each instrument and ensure they are wired correctly for their role in the test.</p>
<ul>
<li style="list-style-type: none;">
<ul>
<li>After wiring everything up, you can run the module.</li>
<li>The first thing you should see is the User Interface (UI) as shown below:</li>
</ul>
</li>
</ul>
<p>&nbsp;</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-19545 size-full" src="https://siglentna.com/wp-content/uploads/2020/12/PSEfficiency_Parameters.jpg" alt="siglent multiple dmm power supply efficiency programming example GUI" width="323" height="344" srcset="https://siglentna.com/wp-content/uploads/2020/12/PSEfficiency_Parameters.jpg 323w, https://siglentna.com/wp-content/uploads/2020/12/PSEfficiency_Parameters-282x300.jpg 282w" sizes="auto, (max-width: 323px) 100vw, 323px" /></p>
<ul>
<li style="list-style-type: none;">
<ul>
<li>Enter the proper values for each entry and press Start</li>
<li>As the process begins, you should see the output indicator on the power supply turn on, the DC Load input light should turn on, and the displayed values for current and voltage should meet your programmed values</li>
<li>The program prints each step value measurement on the display as shown here:</li>
</ul>
</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-19350 size-full" src="https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_Python_Data_1.jpg" alt="siglent multiple dmm power supply efficiency programming example results 1" width="747" height="945" srcset="https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_Python_Data_1.jpg 747w, https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_Python_Data_1-237x300.jpg 237w, https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_Python_Data_1-600x759.jpg 600w" sizes="auto, (max-width: 747px) 100vw, 747px" /></p>
<p style="padding-left: 40px;">This program uses the auto-ranging measurement function of each instrument, which can add time to each measurement. For proper DC measurements, there needs to be some time delay at each step value to ensure a stable reading. We have programmed sufficient delays for most DUTs, but you may need to tweak delays to meet your specific test needs.</p>
<ul>
<li style="list-style-type: none;">
<ul>
<li>Upon completion, the program will indicate that it is complete and write a CSV file to the folder where the Python program is located.</li>
</ul>
</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-19351 size-full" src="https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_Python_Data_2.jpg" alt="siglent multiple dmm power supply efficiency programming results 2" width="683" height="945" srcset="https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_Python_Data_2.jpg 683w, https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_Python_Data_2-217x300.jpg 217w, https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_Python_Data_2-600x830.jpg 600w" sizes="auto, (max-width: 683px) 100vw, 683px" /></p>
<p>&nbsp;</p>
<ul>
<li>Find the CSV file, copy columns A &#8211; I:</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-19352 size-full" src="https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_CSVData.jpg" alt="siglent multiple dmm power supply efficiency programming CSV results" width="604" height="500" srcset="https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_CSVData.jpg 604w, https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_CSVData-300x248.jpg 300w, https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_CSVData-600x497.jpg 600w" sizes="auto, (max-width: 604px) 100vw, 604px" /></p>
<ul>
<li>Open a copy of the file Efficiency Template.xls included in the program folder, and paste the results to plot the curve:</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-19353 size-full" src="https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_Curve.jpg" alt="siglent multiple dmm power supply efficiency programming CSV results with plot" width="1814" height="922" srcset="https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_Curve.jpg 1814w, https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_Curve-300x152.jpg 300w, https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_Curve-1024x520.jpg 1024w, https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_Curve-768x390.jpg 768w, https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_Curve-1536x781.jpg 1536w, https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_Curve-600x305.jpg 600w" sizes="auto, (max-width: 1814px) 100vw, 1814px" /></p>
<p>&nbsp;</p>
<p>The post <a href="https://siglentna.com/application-note/programming-example-python-power-supply-efficiency-example/">Programming Example: Python Power Supply Efficiency Example</a> appeared first on <a href="https://siglentna.com">Siglent</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Easy DC power supply efficiency measurements</title>
		<link>https://siglentna.com/application-note/easy-dc-power-supply-efficiency-measurements/</link>
		
		<dc:creator><![CDATA[daisy]]></dc:creator>
		<pubDate>Thu, 28 Jan 2021 20:44:57 +0000</pubDate>
				<guid isPermaLink="false">https://siglentna.com/?post_type=application-notes&#038;p=19279</guid>

					<description><![CDATA[<p>Introduction Many electronic designs require a power supply that delivers a known voltage over a specific range of current loads and conditions. In many instances, the efficiency of the supply is an essential characteristic of the design. More efficient designs covert the input power into a higher percentage of output power than less efficient designs. &#8230; <a href="https://siglentna.com/application-note/easy-dc-power-supply-efficiency-measurements/">Continued</a></p>
<p>The post <a href="https://siglentna.com/application-note/easy-dc-power-supply-efficiency-measurements/">Easy DC power supply efficiency measurements</a> appeared first on <a href="https://siglentna.com">Siglent</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>Introduction</h2>
<p>Many electronic designs require a power supply that delivers a known voltage over a specific range of current loads and conditions. In many instances, the efficiency of the supply is an essential characteristic of the design. More efficient designs covert the input power into a higher percentage of output power than less efficient designs. Since the majority of power supply losses are generated as heat within the supply, more efficient designs tend to run cooler, offer higher stability, and longer operating lifetime. More efficiency often just makes more sense. This is especially important for applications that require battery power like remote IOT sensing or communications modules that need to be operational for an extended length of time.</p>
<p>In order to make more efficient designs, we need to know how to measure power supply efficiency. In this note, we will introduce the basic theory for DC power supply efficiency calculations, present a physical setup for accurately measuring the important parameters, and provide an example program that coordinates measurements and automatically calculates power supply efficiency quickly.</p>
<h2>Background Theory</h2>
<p>The efficiency of a power supply is simply the ratio of the power out vs the power in.</p>
<p>From power electronics theory:</p>
<p style="text-align: center;">η = Pout / Pin</p>
<p>Where η = Power Efficency, Pout = Output power (Watts), and Pin = Input power (Watts)</p>
<p>&nbsp;</p>
<p>For DC power,</p>
<p style="text-align: center;">P = V * I</p>
<p style="text-align: left;">Where P = Power (Watts = Joules/s), V = Volts (Joules/Coulomb), and I = Current (Amps = Coulombs/s)</p>
<p>&nbsp;</p>
<p>So, if we measure the input voltage and current draw, we can calculate the input power.</p>
<p style="text-align: center;">Pin = Vin * Iin</p>
<p>&nbsp;</p>
<p>If we measure the output voltage and current draw, we can calculate the output power.</p>
<p style="text-align: center;">Pout = Vout * Iout</p>
<p>Now, some simple division provides Power Efficiency as a ratio which can be easily shown as a percentage at that specific load value. A curve of the efficiency vs. load values can be calculated by stepping the load value and calculating the efficiency at each load value and plotting it as shown below:</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-19337 size-full" src="https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_DatasheetCurves_2.jpg" alt="power supply efficiency curve example" width="989" height="663" srcset="https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_DatasheetCurves_2.jpg 989w, https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_DatasheetCurves_2-300x201.jpg 300w, https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_DatasheetCurves_2-768x515.jpg 768w, https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_DatasheetCurves_2-600x402.jpg 600w" sizes="auto, (max-width: 989px) 100vw, 989px" /></p>
<p style="text-align: center;">Figure 1: Sample Power Supply Efficiency Curve, from Linear Technologies Datasheet for an LTM4646.</p>
<h2>Setup</h2>
<p>The most basic setup for this test uses:</p>
<p style="padding-left: 40px;">Qty 1 Power Supply</p>
<p style="padding-left: 40px;">Qty 1 DC electronic load</p>
<p>Typically wired as shown:</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-19339" src="https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_Basic_Wiring.jpg" alt="basic power supply efficiency block diagram" width="880" height="266" srcset="https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_Basic_Wiring.jpg 1471w, https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_Basic_Wiring-300x91.jpg 300w, https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_Basic_Wiring-1024x310.jpg 1024w, https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_Basic_Wiring-768x232.jpg 768w, https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_Basic_Wiring-600x182.jpg 600w" sizes="auto, (max-width: 880px) 100vw, 880px" /></p>
<p>The process:</p>
<ul>
<li>Supply power to the DUT</li>
<li>Set the load for a given current draw</li>
<li>Measure the Vin, Iin, Vout, and Iout at the load current set point</li>
</ul>
<p>This is about as simple as it gets with an electronics test.. but there are two important considerations with this setup:</p>
<ol>
<li style="list-style-type: none;">
<ol>
<li>How many load steps are required to accurately build an efficiency curve for your DUT?</li>
<li>What level of resolution and accuracy do you need for the calculation?</li>
</ol>
</li>
</ol>
<p>Typical power efficiency curves require 10 or more load current steps to get an accurate representation of efficiency. Manually performing this test can be a bit tedious and prone to error. To save time, you may want to consider automating the setup with a computer. Here is an example we built using Python that may be helpful: <strong>LINK TO EXAMPLE</strong></p>
<p>For the resolution question, consider that most commercial power supplies and DC loads have 3.5 digit measurement resolution and accuracy values that may not be high enough to characterize the DUT confidently.</p>
<p>To address these two considerations, we added four multimeters: One to measure Vin, Iin, Vout, and Iout and created a computer program to automate the instrument configurations, step load current values, and data collection.</p>
<p>Here is a wiring diagram of the setup:</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-19341" src="https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_DMM_Wiring.jpg" alt="siglent multiple dmm power supply efficiency block diagram" width="1013" height="523" srcset="https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_DMM_Wiring.jpg 2249w, https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_DMM_Wiring-300x155.jpg 300w, https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_DMM_Wiring-1024x529.jpg 1024w, https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_DMM_Wiring-768x396.jpg 768w, https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_DMM_Wiring-1536x793.jpg 1536w, https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_DMM_Wiring-2048x1057.jpg 2048w, https://siglentna.com/wp-content/uploads/2020/11/PSEfficiency_DMM_Wiring-600x310.jpg 600w" sizes="auto, (max-width: 1013px) 100vw, 1013px" /></p>
<p>Here is a picture of the experimental setup which uses a SIGLENT SPD1168X, SDM3055s for Iin and Iout, SDM3045Xs for Vin and Vout, and an SDL1020X-E DC load:</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-19342" src="https://siglentna.com/wp-content/uploads/2020/11/Setup.jpg" alt="siglent multiple dmm power supply effiiciency setup photo" width="888" height="632" srcset="https://siglentna.com/wp-content/uploads/2020/11/Setup.jpg 1181w, https://siglentna.com/wp-content/uploads/2020/11/Setup-300x214.jpg 300w, https://siglentna.com/wp-content/uploads/2020/11/Setup-1024x729.jpg 1024w, https://siglentna.com/wp-content/uploads/2020/11/Setup-768x547.jpg 768w, https://siglentna.com/wp-content/uploads/2020/11/Setup-600x427.jpg 600w" sizes="auto, (max-width: 888px) 100vw, 888px" /></p>
<p>&nbsp;</p>
<p>Here the DUT is the Linear Technologies LTM4646 power module we used in this video on <a href="https://siglentna.com/video/power-supply-design-load-step-response-with-a-siglent-dc-electronic-load/" target="_blank" rel="noopener noreferrer">Load Step Testing</a></p>
<p>NOTE: K<span style="font-size: inherit;">eep the leads to the load as short as possible to minimize I*R voltage drop and select DMMs with a low voltage burden on the current measurement ranges you expect to use. Long leads and a high voltage burden can cause the DUT to reach its output voltage limit before reaching the maximum expected current draw. </span></p>
<p><strong>Summary</strong></p>
<p>Power supply efficiency is an important aspect of any power supply design. Using a few standard pieces of test gear, one can quickly build a modular system with enough resolution to measure the most demanding applications.</p>
<p>The post <a href="https://siglentna.com/application-note/easy-dc-power-supply-efficiency-measurements/">Easy DC power supply efficiency measurements</a> appeared first on <a href="https://siglentna.com">Siglent</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Programming Example: Identification String (*IDN?) return with LabVIEW 2018</title>
		<link>https://siglentna.com/application-note/programming-example-identification-string-idn-return-with-labview-2018/</link>
		
		<dc:creator><![CDATA[visia_admin]]></dc:creator>
		<pubDate>Mon, 16 Dec 2019 20:32:45 +0000</pubDate>
				<guid isPermaLink="false">https://siglentna.com/?post_type=application-notes&#038;p=14784</guid>

					<description><![CDATA[<p>This LabVIEW VI (version 2018) provides a simple platform to begin creating LabVIEW programs. You can download the VI here: VISA_IDN.ZIP In this example, the user can: Select the connected instruments from the VISA Resource List drop down menu: NOTE: USB devices will automatically appear. For LAN connections, you will need to add the device. &#8230; <a href="https://siglentna.com/application-note/programming-example-identification-string-idn-return-with-labview-2018/">Continued</a></p>
<p>The post <a href="https://siglentna.com/application-note/programming-example-identification-string-idn-return-with-labview-2018/">Programming Example: Identification String (*IDN?) return with LabVIEW 2018</a> appeared first on <a href="https://siglentna.com">Siglent</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>This LabVIEW VI (version 2018) provides a simple platform to begin creating LabVIEW programs.</p>
<p>You can download the VI here: <a href="https://siglentna.com/wp-content/uploads/2020/12/VISA_IDN.zip" target="_blank" rel="noopener noreferrer">VISA_IDN.ZIP</a></p>
<p>In this example, the user can:</p>
<ul>
<li>Select the connected instruments from the VISA Resource List drop down menu:</li>
</ul>
<p style="padding-left: 30px;">NOTE: USB devices will automatically appear. For LAN connections, you will need to add the device. This is commonly done using NI Measurement and Automation Explorer (NI-MAX)</p>
<ul>
<li>Request the identification string once-per-press of the RUN button.</li>
</ul>
<p style="padding-left: 30px;">This sends the &#8220;*IDN?&#8221; identification query string to the instrument. The instrument then responds to the query with its identification string information. The identification string data will appear in the text box.</p>
<p style="padding-left: 30px;">This code also uses the event structure connected to the value change of the RUN button to run once-and-only-once per keypress. This is a useful method of controlling code execution.</p>
<ul>
<li>Stop and exit upon pressing the STOP button</li>
</ul>
<p>To run:</p>
<ol>
<li>Connect instruments using a USB or LAN connection (see users manual for specific instrument details)</li>
<li>Power on instrument</li>
<li>Open LabVIEW and select the IDN.VI. This will open the VI front panel:</li>
</ol>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-9149" src="https://siglentna.com/wp-content/uploads/2019/06/VISA_IDN.jpg" alt="" width="749" height="493" /></p>
<p>4. Select the instrument of interest from the VISA Resource drop down menu:</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-9150" src="https://siglentna.com/wp-content/uploads/2019/06/VISA_IDN_RefreshInstList.jpg" alt="" width="588" height="458" /></p>
<p>5. Press RUN on the LabVIEW VI menu strip to run the program:</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-9147" src="https://siglentna.com/wp-content/uploads/2019/06/VISA_IDN_Run_Main.jpg" alt="" width="749" height="493" /></p>
<p>6. Now, the &#8220;graph paper&#8221; background goes clear, indicating that the code is running. Now, you can press RUN in the VI Front Panel to execute the code:</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-9148" src="https://siglentna.com/wp-content/uploads/2019/06/VISA_IDN_Run_VI.jpg" alt="" width="616" height="487" /></p>
<p style="padding-left: 30px;">The identification string should appear in the textbox:</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-9146" src="https://siglentna.com/wp-content/uploads/2019/06/VISA_IDN_ReturnString.jpg" alt="" width="613" height="472" /></p>
<p style="padding-left: 30px;">7. Press STOP on the VI Front Panel to exit the code</p>
<p>The post <a href="https://siglentna.com/application-note/programming-example-identification-string-idn-return-with-labview-2018/">Programming Example: Identification String (*IDN?) return with LabVIEW 2018</a> appeared first on <a href="https://siglentna.com">Siglent</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Testing Intrinsic Safety Barrier fusing and circuitry using an electronic load</title>
		<link>https://siglentna.com/application-note/testing-intrinsic-safety-barrier-fusing-and-circuitry-using-an-electronic-load/</link>
		
		<dc:creator><![CDATA[daisy]]></dc:creator>
		<pubDate>Mon, 16 Dec 2019 18:43:07 +0000</pubDate>
				<guid isPermaLink="false">https://siglentna.com/?post_type=application-notes&#038;p=16084</guid>

					<description><![CDATA[<p>From Wikipedia: Intrinsic safety (IS) is a protection technique for safe operation of electrical equipment in hazardous areas by limiting the energy, electrical and thermal, available for ignition. The idea is to minimize the risk of fire or explosion by physically eliminating any potential source of ignition. Many IS circuits utilize special fusing and elements that are designed to &#8230; <a href="https://siglentna.com/application-note/testing-intrinsic-safety-barrier-fusing-and-circuitry-using-an-electronic-load/">Continued</a></p>
<p>The post <a href="https://siglentna.com/application-note/testing-intrinsic-safety-barrier-fusing-and-circuitry-using-an-electronic-load/">Testing Intrinsic Safety Barrier fusing and circuitry using an electronic load</a> appeared first on <a href="https://siglentna.com">Siglent</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>From Wikipedia:<b> Intrinsic safety</b> (IS) is a protection technique for <b>safe</b> operation of electrical equipment in hazardous areas by limiting the energy, electrical and thermal, available for ignition.</p>
<p>The idea is to minimize the risk of fire or explosion by physically eliminating any potential source of ignition.</p>
<p>Many IS circuits utilize special fusing and elements that are designed to dissipate the available power below certain temperature thresholds. During a fault condition, no component within the design can exceed this temperature rating.</p>
<p>Testing the performance of this type of design is quite simple: Load the circuit to pull the maximum rated power and measure the temperature of all of the circuit elements (heat sinks, packaging, resistors, etc..).</p>
<p>In practice, you could use a power resistor network with proper heat sinking for the load but a more convenient solution is to use an electronic load like the SIGLENT SDL1000X series.</p>
<p>The SDL1000X is available in 200 and 300 W versions and features a Constant Power (CP) operation mode as well as Constant Resistance (CR), Constant Voltage (CV), as well as user-defined limits to ensure safe operation within the application test requirements.</p>
<ul>
<li>Connect the Device-Under-Test (DUT)</li>
<li>Select Constant Power (CP) Mode</li>
<li>Set the current (I_range) and voltage (V_range) ranges for the test</li>
<li>Set the Power you wish the load to sink</li>
<li>Activate the load input</li>
</ul>
<p>After the specified time limit for your test (see your device/environment specifics for details), you can measure the components/design temperature using a thermal camera or direct temperature measurements using thermocouples and DMM like SIGLENTs SDM3000X series. In fact, the SDM3055-SC and SDM3065X-SC products feature the ability to monitor temperature on up-to-twelve thermocouples to provide multi-point temperature readings from different points on your design.</p>
<p>Be sure to check heatsinks and components that are expected to dissipate the most power, but also other peripheral components and traces that may carry unexpected loads during a fault.</p>
<p>NOTE: In this picture, we show an open power supply with no shielding or case. For more accurate measurement, we recommend leaving as much of the original design (shielding/case/metalwork) in place to get the most representative measurement possible.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-16101" src="https://siglentna.com/wp-content/uploads/2019/12/SDL_Load_Temp.jpg" alt="" width="1179" height="915" srcset="https://siglentna.com/wp-content/uploads/2019/12/SDL_Load_Temp.jpg 1179w, https://siglentna.com/wp-content/uploads/2019/12/SDL_Load_Temp-300x233.jpg 300w, https://siglentna.com/wp-content/uploads/2019/12/SDL_Load_Temp-768x596.jpg 768w, https://siglentna.com/wp-content/uploads/2019/12/SDL_Load_Temp-1024x795.jpg 1024w, https://siglentna.com/wp-content/uploads/2019/12/SDL_Load_Temp-600x466.jpg 600w" sizes="auto, (max-width: 1179px) 100vw, 1179px" /></p>
<p style="text-align: center;">Figure 1: Example of temperature measurement of a power supply under load.</p>
<p>&nbsp;</p>
<p>The post <a href="https://siglentna.com/application-note/testing-intrinsic-safety-barrier-fusing-and-circuitry-using-an-electronic-load/">Testing Intrinsic Safety Barrier fusing and circuitry using an electronic load</a> appeared first on <a href="https://siglentna.com">Siglent</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Secure products without K-lock slots</title>
		<link>https://siglentna.com/application-note/secure-products-without-k-lock-slots/</link>
		
		<dc:creator><![CDATA[daisy]]></dc:creator>
		<pubDate>Mon, 20 May 2019 18:57:16 +0000</pubDate>
				<guid isPermaLink="false">http://siglentna.com/?post_type=application-notes&#038;p=8877</guid>

					<description><![CDATA[<p>Many products have Kensington, or K-lock slots to help provide a location to secure a cable lock or other device to help prevent theft. Some products do not have locations for cable lock connections. In this case, we recommend using a special glue or physical attachment system to secure the cable to the case of &#8230; <a href="https://siglentna.com/application-note/secure-products-without-k-lock-slots/">Continued</a></p>
<p>The post <a href="https://siglentna.com/application-note/secure-products-without-k-lock-slots/">Secure products without K-lock slots</a> appeared first on <a href="https://siglentna.com">Siglent</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Many products have Kensington, or K-lock slots to help provide a location to secure a cable lock or other device to help prevent theft.</p>
<p>Some products do not have locations for cable lock connections.</p>
<p>In this case, we recommend using a special glue or physical attachment system to secure the cable to the case of the instrument.</p>
<p>Here is an example:</p>
<p>https://www.kensington.com/p/products/security/lock-anchor-points-accessories/security-slot-adapter-kit-for-ultrabook/</p>
<p>The post <a href="https://siglentna.com/application-note/secure-products-without-k-lock-slots/">Secure products without K-lock slots</a> appeared first on <a href="https://siglentna.com">Siglent</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Programming Example: Using VXI11 (LXI) and Python for LAN control without sockets</title>
		<link>https://siglentna.com/application-note/programming-example-vxi11-python-lan/</link>
		
		<dc:creator><![CDATA[daisy]]></dc:creator>
		<pubDate>Wed, 03 Oct 2018 20:16:44 +0000</pubDate>
				<guid isPermaLink="false">http://siglentna.com/?post_type=application-notes&#038;p=7265</guid>

					<description><![CDATA[<p>In an effort to meet the demands of remote monitoring and control, modern test instrumentation is leveraging more communications busses and than ever before. Each type of bus can also have numerous layers that can be utilized for specific advantages. The VXI bus and subsequent software drivers form a convenient software API that can make remote control &#8230; <a href="https://siglentna.com/application-note/programming-example-vxi11-python-lan/">Continued</a></p>
<p>The post <a href="https://siglentna.com/application-note/programming-example-vxi11-python-lan/">Programming Example: Using VXI11 (LXI) and Python for LAN control without sockets</a> appeared first on <a href="https://siglentna.com">Siglent</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In an effort to meet the demands of remote monitoring and control, modern test instrumentation is leveraging more communications busses and than ever before. Each type of bus can also have numerous layers that can be utilized for specific advantages.</p>
<p>The VXI bus and subsequent software drivers form a convenient software API that can make remote control of instrumentation over LAN quite simple. In fact, it forms the basis of the TCPIP communications used in LXI format that is being implemented across the industry.</p>
<p>For more info on VXI, you can check out the <a href="http://www.vxibus.org/overview.html">VXI Consortium</a></p>
<p>VXI has a small installation size and is quite flexible.. especially when compared to VISA based applications. VISA is convenient and does allow for easy bus changes (from GPIB to USB with just a few lines of code), but it is also a large installation that isn&#8217;t always easy to use on machines that are not running Windows.</p>
<p>VXI has many flavors.. and can be used with many OS&#8217; and can be used on many instruments that do not have &#8220;open sockets&#8221; on their LAN connection.</p>
<p>Here is a list of SIGLENT products that have LAN but <em><strong>do not</strong></em> have open sockets:</p>
<p>SDS2000</p>
<p>SDS2000X</p>
<p>SDS1000X/X+</p>
<p>SPD3000X/XE</p>
<p>In this note, we are going to show how to use VXI-11 with Python to control an instrument. This can be used with traditional OS&#8217; like Windows but offer even more when coupled with Linux variants like those running on Rasberry Pis and other single board computers (SBCs).</p>
<p>&nbsp;</p>
<h3>Configuration</h3>
<p>First, you will need to download a few programs..</p>
<ul>
<li>Python: https://www.python.org/downloads/release/python-2714/</li>
</ul>
<p>NOTE: This technique works with version 2.x and 3.x.. in this example, we will use Python 2.7.14 for Windows 64 bit OS&#8217;</p>
<ul>
<li>Python VXI-11: https://github.com/alexforencich/python-vxi11</li>
</ul>
<p>Once downloaded, you can add VXI-11 to your Python instance..</p>
<ol>
<li>Open the command line program in Windows. You can find it by searching for &#8220;CMD&#8221; or by going to the Start Menu &gt;  Windows System &gt; Command Prompt as shown here:</li>
</ol>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-7271" src="http://siglentna.com/wp-content/uploads/2018/10/WindowsCMDLine.jpg" alt="" width="325" height="624" srcset="https://siglentna.com/wp-content/uploads/2018/10/WindowsCMDLine.jpg 325w, https://siglentna.com/wp-content/uploads/2018/10/WindowsCMDLine-156x300.jpg 156w" sizes="auto, (max-width: 325px) 100vw, 325px" /></p>
<p>2. In another window, find the location of the Python VXI-11 folder that was downloaded previously and find the path for setup.py. In this case, the path on my PC is shown as:</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-7268" src="http://siglentna.com/wp-content/uploads/2018/10/VXI11_Location_1.jpg" alt="" width="1178" height="540" srcset="https://siglentna.com/wp-content/uploads/2018/10/VXI11_Location_1.jpg 1178w, https://siglentna.com/wp-content/uploads/2018/10/VXI11_Location_1-600x275.jpg 600w, https://siglentna.com/wp-content/uploads/2018/10/VXI11_Location_1-300x138.jpg 300w, https://siglentna.com/wp-content/uploads/2018/10/VXI11_Location_1-768x352.jpg 768w, https://siglentna.com/wp-content/uploads/2018/10/VXI11_Location_1-1024x469.jpg 1024w" sizes="auto, (max-width: 1178px) 100vw, 1178px" /></p>
<p>Now, you can click on the &#8220;address&#8221; to open the exact path:</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-7269" src="http://siglentna.com/wp-content/uploads/2018/10/VXI11_Location_2.jpg" alt="" width="1235" height="586" srcset="https://siglentna.com/wp-content/uploads/2018/10/VXI11_Location_2.jpg 1235w, https://siglentna.com/wp-content/uploads/2018/10/VXI11_Location_2-600x285.jpg 600w, https://siglentna.com/wp-content/uploads/2018/10/VXI11_Location_2-300x142.jpg 300w, https://siglentna.com/wp-content/uploads/2018/10/VXI11_Location_2-768x364.jpg 768w, https://siglentna.com/wp-content/uploads/2018/10/VXI11_Location_2-1024x486.jpg 1024w" sizes="auto, (max-width: 1235px) 100vw, 1235px" /></p>
<p>Here, I suggest opening Notepad and &#8220;copy-paste&#8221; the path. It will make the transfer easier:</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-7270" src="http://siglentna.com/wp-content/uploads/2018/10/VXI11_Notepad_path.jpg" alt="" width="626" height="141" srcset="https://siglentna.com/wp-content/uploads/2018/10/VXI11_Notepad_path.jpg 626w, https://siglentna.com/wp-content/uploads/2018/10/VXI11_Notepad_path-600x135.jpg 600w, https://siglentna.com/wp-content/uploads/2018/10/VXI11_Notepad_path-300x68.jpg 300w" sizes="auto, (max-width: 626px) 100vw, 626px" /></p>
<p>3. Change the directory in the Command line program to match the path from step 2:</p>
<p>Type &#8220;cd &lt;PATH&gt;&#8221; as shown:</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-7273" src="http://siglentna.com/wp-content/uploads/2018/10/VXI11_cmd_load_1.jpg" alt="" width="1001" height="312" srcset="https://siglentna.com/wp-content/uploads/2018/10/VXI11_cmd_load_1.jpg 1001w, https://siglentna.com/wp-content/uploads/2018/10/VXI11_cmd_load_1-600x187.jpg 600w, https://siglentna.com/wp-content/uploads/2018/10/VXI11_cmd_load_1-300x94.jpg 300w, https://siglentna.com/wp-content/uploads/2018/10/VXI11_cmd_load_1-768x239.jpg 768w" sizes="auto, (max-width: 1001px) 100vw, 1001px" /></p>
<p>&nbsp;</p>
<p>4. Now, the directory has changed to match the path. You can run the setup.py file by typing &#8220;python setup.py install&#8221; as shown:</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-7267" src="http://siglentna.com/wp-content/uploads/2018/10/VXI11_cmd_load_2.jpg" alt="" width="982" height="172" srcset="https://siglentna.com/wp-content/uploads/2018/10/VXI11_cmd_load_2.jpg 982w, https://siglentna.com/wp-content/uploads/2018/10/VXI11_cmd_load_2-600x105.jpg 600w, https://siglentna.com/wp-content/uploads/2018/10/VXI11_cmd_load_2-300x53.jpg 300w, https://siglentna.com/wp-content/uploads/2018/10/VXI11_cmd_load_2-768x135.jpg 768w" sizes="auto, (max-width: 982px) 100vw, 982px" /></p>
<p>&nbsp;</p>
<p>5. Close the Command Prompt</p>
<h3></h3>
<h3>Test the installation</h3>
<p>Now that everything has been installed, let&#8217;s test the communications link.</p>
<ol>
<li>Connect the instrument to the LAN of the controlling computer and power it on</li>
</ol>
<p>2. Check the IP address for the product (see the User&#8217;s Guide of the specific product for more info), In this case, I am using an SDS2000X oscilloscope. Here is the IP address information:</p>
<p style="font-size: 16px;"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-7277" src="http://siglentna.com/wp-content/uploads/2018/10/SDS2X_IP.jpg" alt="" width="748" height="522" srcset="https://siglentna.com/wp-content/uploads/2018/10/SDS2X_IP.jpg 748w, https://siglentna.com/wp-content/uploads/2018/10/SDS2X_IP-600x419.jpg 600w, https://siglentna.com/wp-content/uploads/2018/10/SDS2X_IP-300x209.jpg 300w" sizes="auto, (max-width: 748px) 100vw, 748px" /></p>
<p>&nbsp;</p>
<p>3. Now, start the Python shell. There are a few ways to start this application. In this case, you can find the Python folder in the Windows start folder.</p>
<p>Open IDLE (A Python GUI):</p>
<p>&nbsp;</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-7274" src="http://siglentna.com/wp-content/uploads/2018/10/Python_Shell_1.jpg" alt="" width="324" height="473" srcset="https://siglentna.com/wp-content/uploads/2018/10/Python_Shell_1.jpg 324w, https://siglentna.com/wp-content/uploads/2018/10/Python_Shell_1-205x300.jpg 205w" sizes="auto, (max-width: 324px) 100vw, 324px" /></p>
<p>Now, click Run &gt; Python Shell to open the shell:</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-7276" src="http://siglentna.com/wp-content/uploads/2018/10/Python_Shell_2.jpg" alt="" width="446" height="216" srcset="https://siglentna.com/wp-content/uploads/2018/10/Python_Shell_2.jpg 446w, https://siglentna.com/wp-content/uploads/2018/10/Python_Shell_2-350x170.jpg 350w, https://siglentna.com/wp-content/uploads/2018/10/Python_Shell_2-300x145.jpg 300w" sizes="auto, (max-width: 446px) 100vw, 446px" /></p>
<p>&nbsp;</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-7275" src="http://siglentna.com/wp-content/uploads/2018/10/Python_Shell_3.jpg" alt="" width="834" height="176" srcset="https://siglentna.com/wp-content/uploads/2018/10/Python_Shell_3.jpg 834w, https://siglentna.com/wp-content/uploads/2018/10/Python_Shell_3-600x127.jpg 600w, https://siglentna.com/wp-content/uploads/2018/10/Python_Shell_3-300x63.jpg 300w, https://siglentna.com/wp-content/uploads/2018/10/Python_Shell_3-768x162.jpg 768w" sizes="auto, (max-width: 834px) 100vw, 834px" /></p>
<p>&nbsp;</p>
<p>4. Now, import the VXI11 library by typing &#8220;import vxi11&#8221;</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-7278" src="http://siglentna.com/wp-content/uploads/2018/10/vxi_import.jpg" alt="" width="831" height="172" srcset="https://siglentna.com/wp-content/uploads/2018/10/vxi_import.jpg 831w, https://siglentna.com/wp-content/uploads/2018/10/vxi_import-600x124.jpg 600w, https://siglentna.com/wp-content/uploads/2018/10/vxi_import-300x62.jpg 300w, https://siglentna.com/wp-content/uploads/2018/10/vxi_import-768x159.jpg 768w" sizes="auto, (max-width: 831px) 100vw, 831px" /></p>
<p>&nbsp;</p>
<p>5. Now, we can assign the variable &#8220;instr&#8221; to the instrument as shown:</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-7279" src="http://siglentna.com/wp-content/uploads/2018/10/vxi_addinstrument.jpg" alt="" width="833" height="168" srcset="https://siglentna.com/wp-content/uploads/2018/10/vxi_addinstrument.jpg 833w, https://siglentna.com/wp-content/uploads/2018/10/vxi_addinstrument-600x121.jpg 600w, https://siglentna.com/wp-content/uploads/2018/10/vxi_addinstrument-300x61.jpg 300w, https://siglentna.com/wp-content/uploads/2018/10/vxi_addinstrument-768x155.jpg 768w" sizes="auto, (max-width: 833px) 100vw, 833px" /></p>
<p>6. Now, we can use the VXI Ask command to send the identification string (*IDN?), request the response, and print it to the screen:</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-7280" src="http://siglentna.com/wp-content/uploads/2018/10/vxi_idn_query.jpg" alt="" width="834" height="220" srcset="https://siglentna.com/wp-content/uploads/2018/10/vxi_idn_query.jpg 834w, https://siglentna.com/wp-content/uploads/2018/10/vxi_idn_query-600x158.jpg 600w, https://siglentna.com/wp-content/uploads/2018/10/vxi_idn_query-300x79.jpg 300w, https://siglentna.com/wp-content/uploads/2018/10/vxi_idn_query-768x203.jpg 768w" sizes="auto, (max-width: 834px) 100vw, 834px" /></p>
<p>The VXI11 library features a number of functions to handle writing and reading strings and other formats. You can use this technique to establish communications and control the instrument efficiently.</p>
<p>&nbsp;</p>
<p>Click here to download a Python file of this example: <a href="http://siglentna.com/wp-content/uploads/2018/10/PythonVXI11_IDN.zip">PythonVXI11_IDN</a></p>
<p>The post <a href="https://siglentna.com/application-note/programming-example-vxi11-python-lan/">Programming Example: Using VXI11 (LXI) and Python for LAN control without sockets</a> appeared first on <a href="https://siglentna.com">Siglent</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Programming Example: List connected VISA compatible resources using PyVISA</title>
		<link>https://siglentna.com/application-note/programming-example-list-connected-visa-compatible-resources-using-pyvisa/</link>
		
		<dc:creator><![CDATA[daisy]]></dc:creator>
		<pubDate>Thu, 30 Aug 2018 13:50:29 +0000</pubDate>
				<guid isPermaLink="false">http://siglentna.com/?post_type=application-notes&#038;p=7054</guid>

					<description><![CDATA[<p>PyVISA is a software library that enables Python applications to communicate with resources (typically instruments) connected to a controlling computer using different buses, including: GPIB, RS-232, LAN, and USB. This example scans and lists the available resources. It requires PyVISA to be installed (see the PyVISA documentation for more information) *** ***** Here is the &#8230; <a href="https://siglentna.com/application-note/programming-example-list-connected-visa-compatible-resources-using-pyvisa/">Continued</a></p>
<p>The post <a href="https://siglentna.com/application-note/programming-example-list-connected-visa-compatible-resources-using-pyvisa/">Programming Example: List connected VISA compatible resources using PyVISA</a> appeared first on <a href="https://siglentna.com">Siglent</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>PyVISA is a software library that enables Python applications to communicate with resources (typically instruments) connected to a controlling computer using different buses, including: GPIB, RS-232, LAN, and USB.</p>
<p>This example scans and lists the available resources.</p>
<p>It requires PyVISA to be installed (see the PyVISA documentation for more information)</p>
<p>***</p>
<pre class="brush: python; collapse: false; title: ; wrap-lines: false; notranslate">

#Example that scans a computer for connected instruments that
#are compatible with the VISA communication protocol.
#
#The instrument VISA resource ID for each compatible instrument
#is then listed.
#
#
#Dependencies:
#Python 3.4 32 bit
#PyVisa 1.7
#
#Rev 1: 08302018 JC

import visa

def main():
    rm = visa.ResourceManager()
    print (rm.list_resources())

if __name__=='__main__':
    main()
</pre>
<p>*****</p>
<p>Here is the code:</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-7056 size-full" src="http://siglentna.com/wp-content/uploads/2018/08/PyVISAResourceList1.jpg" alt="" width="668" height="463" srcset="https://siglentna.com/wp-content/uploads/2018/08/PyVISAResourceList1.jpg 668w, https://siglentna.com/wp-content/uploads/2018/08/PyVISAResourceList1-600x416.jpg 600w, https://siglentna.com/wp-content/uploads/2018/08/PyVISAResourceList1-300x208.jpg 300w" sizes="auto, (max-width: 668px) 100vw, 668px" /></p>
<p>And here is the result of a scan:</p>
<p>&nbsp;</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-7057" src="http://siglentna.com/wp-content/uploads/2018/08/PyVISAResourceList2.jpg" alt="" width="831" height="258" srcset="https://siglentna.com/wp-content/uploads/2018/08/PyVISAResourceList2.jpg 831w, https://siglentna.com/wp-content/uploads/2018/08/PyVISAResourceList2-600x186.jpg 600w, https://siglentna.com/wp-content/uploads/2018/08/PyVISAResourceList2-300x93.jpg 300w, https://siglentna.com/wp-content/uploads/2018/08/PyVISAResourceList2-768x238.jpg 768w" sizes="auto, (max-width: 831px) 100vw, 831px" /></p>
<p>&nbsp;</p>
<p>Each connected instrument returns a specific formatted string of characters called the VISA Resource ID.</p>
<p>The resource ID format is as follows:</p>
<p>&#8216;Communication/Board Type (USB, GPIB, etc.)::Resource Information (Vendor ID, Product ID, Serial Number, IP address, etc..)::Resource Type&#8217;</p>
<p>In the response, each resource is separated by a comma. So, we have three resources listed in this example:</p>
<p>&#8216;USB0::0x0483::0x7540::SPD3XGB4150080::INSTR&#8217; &#8211; This is a power supply (SPD3X) connected via USB (USB0)</p>
<p>&#8216;USB0::0xF4EC::0x1301::SVA1XEAX2R0073::INSTR&#8217; &#8211; This is a vector network analyzer (SVA1X) connected via USB (USB0)</p>
<p>&#8216;TCPIP0::192.168.55.122::inst0::INSTR&#8217; &#8211; This is an instrument connected via LAN using a TCPIP connection at IP address 192.168.55.122</p>
<p>The post <a href="https://siglentna.com/application-note/programming-example-list-connected-visa-compatible-resources-using-pyvisa/">Programming Example: List connected VISA compatible resources using PyVISA</a> appeared first on <a href="https://siglentna.com">Siglent</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Quick remote computer control using LXI Tools</title>
		<link>https://siglentna.com/application-note/lxi-tools/</link>
		
		<dc:creator><![CDATA[daisy]]></dc:creator>
		<pubDate>Tue, 13 Mar 2018 13:29:20 +0000</pubDate>
				<guid isPermaLink="false">http://siglentna.com/?post_type=application-notes&#038;p=5822</guid>

					<description><![CDATA[<p>Introduction: There are many options for people considering remote communication and control of test and measurement instrumentation. In most cases, a computer is used to communicate to test instrumentation using USB or LAN connections. The computer can configure the instruments, collect and organize data, and present it in a useful and flexible way. Remote control &#8230; <a href="https://siglentna.com/application-note/lxi-tools/">Continued</a></p>
<p>The post <a href="https://siglentna.com/application-note/lxi-tools/">Quick remote computer control using LXI Tools</a> appeared first on <a href="https://siglentna.com">Siglent</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong><u>Introduction:</u></strong></p>
<p>There are many options for people considering remote communication and control of test and measurement instrumentation. In most cases, a computer is used to communicate to test instrumentation using USB or LAN connections. The computer can configure the instruments, collect and organize data, and present it in a useful and flexible way.</p>
<p>Remote control provides:</p>
<ul>
<li>Increased repeatability: The instrumentation is set up the same way, every time.</li>
<li>Efficient data collection: Data can be automatically filtered and stored.</li>
<li>Easily configure the test system parameters: Each command is executed in the same order and in the same timeframe.</li>
<li>Quickly visualize system performance: Graphical or tabular data formatting is easy.</li>
</ul>
<p>There are numerous platforms (Windows, Linux, etc..) and software programs (LabVIEW, .NET, Python) available to build automated test systems. The right choice for your application is highly dependent on your needs and the available skills you have.</p>
<p>In this note, we are going to discuss how to use LXI Tools to communicate with SIGLENT instrumentation. LXI Tools is an open source software application that uses the local area network (LAN) connection to quickly control remote instrumentation. It is easy to install, has a small operating footprint, and is really powerful while being quite easy to use. Let&#8217;s start by looking at the basics.</p>
<p>You can also see the video version of this note here: <a href="http://siglentna.com/video/lxi-tools/" target="_blank" rel="noopener noreferrer">http://siglentna.com/video/lxi-tools/</a></p>
<p><strong><u>Why Open Source?</u></strong></p>
<p>Open source coding is a community-based development style in which a group of contributors work together to build and maintain programs using shared code and components. In this way, a platform can be built and tested quickly and may cost significantly less than commercial programming environments. LXI Tools is free open source software and the project welcomes new contributors that would like to help improve the tools.</p>
<p>Here is a link to the LXI Tools website: <a href="https://lxi-tools.github.io/" target="_blank" rel="noopener noreferrer">https://lxi-tools.github.io</a></p>
<p>&nbsp;</p>
<p><strong><u>Why LXI Tools?</u></strong></p>
<p>LXI-Tools is a collection of open source software tools that provide direct control of LXI compatible instruments such as modern oscilloscopes, power supplies, spectrum analyzers, and more.Simply install LXI Tools, connect your instrument, and start communicating.</p>
<p>It really is that easy.</p>
<p>&nbsp;</p>
<p><strong><u>LXI-Tools Provides:</u></strong></p>
<ul>
<li>Quickly discover the available instruments on the LAN</li>
<li>Retrieve copies of the displayed images (quickly see signals, data, and instrumentation setups) and convert image file types</li>
<li>Benchmark LAN performance</li>
<li>Send individual commands to an instrument to perform simple test actions. For example, you could return the measured data from a DMM.</li>
</ul>
<p>To learn more about LXI-Tools, please see <a href="https://github.com/lxi-tools/lxi-tools" target="_blank" rel="noopener noreferrer">https://github.com/lxi-tools/lxi-tools</a></p>
<p>&nbsp;</p>
<p><strong><u>Instructions:</u></strong></p>
<ol>
<li>Install the appropriate version of LXI-Tools for your operating system</li>
</ol>
<p>&nbsp;</p>
<p>2. Open a terminal. In this example, I am using Ubuntu (17.10) running on a virtual machine hosted by a Win 10/64 bit OS.</p>
<p>To learn more about the virtual machine used in this example:<a href="https://www.virtualbox.org/" target="_blank" rel="noopener noreferrer">https://www.virtualbox.org/</a></p>
<p>The OS is Ubuntu: <a href="https://www.ubuntu.com/" target="_blank" rel="noopener noreferrer">https://www.ubuntu.com/</a></p>
<p>&nbsp;</p>
<p>3. Once loaded, startup Linux:</p>
<p>With Ubuntu, you can use Snap to install:</p>
<p style="padding-left: 30px;">$ snap install lxi-tools</p>
<p>&nbsp;</p>
<p><strong><u>LXI Discover:</u></strong></p>
<p>Quickly searches the LAN for instruments and lists their identification string and IP address.</p>
<p>Plug in and power on your instrumentation and make sure that they are connected to a working LAN connection. You can manually check the instrument IP address and save this info to compare to later steps.</p>
<p>Open up a terminal window.  At the “$” prompt, simply type lxi discover… LXI tools will search the LAN for connected instruments.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-5825" src="http://siglentna.com/wp-content/uploads/2018/03/UbuntuTerminal.png" alt="" width="932" height="474" srcset="https://siglentna.com/wp-content/uploads/2018/03/UbuntuTerminal.png 960w, https://siglentna.com/wp-content/uploads/2018/03/UbuntuTerminal-600x305.png 600w, https://siglentna.com/wp-content/uploads/2018/03/UbuntuTerminal-300x153.png 300w, https://siglentna.com/wp-content/uploads/2018/03/UbuntuTerminal-768x390.png 768w" sizes="auto, (max-width: 932px) 100vw, 932px" /></p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-5828 size-full" src="http://siglentna.com/wp-content/uploads/2018/03/LXIDiscover_1-e1520886540472.png" alt="" width="936" height="524" srcset="https://siglentna.com/wp-content/uploads/2018/03/LXIDiscover_1-e1520886540472.png 936w, https://siglentna.com/wp-content/uploads/2018/03/LXIDiscover_1-e1520886540472-600x336.png 600w, https://siglentna.com/wp-content/uploads/2018/03/LXIDiscover_1-e1520886540472-300x168.png 300w, https://siglentna.com/wp-content/uploads/2018/03/LXIDiscover_1-e1520886540472-768x430.png 768w" sizes="auto, (max-width: 936px) 100vw, 936px" /></p>
<p>&nbsp;</p>
<p>Here, we have three devices connected: an SDM3065X, SSA3032X, and an SDS1102X-E (which has been superseded by the SDS1202X-E series here in North America). It also includes the instrument serial number, firmware revision, and IP address.</p>
<p>NOTE: This has been tested with a large number of instruments, but may not be supported by some. There is a list of compatible instruments at the end of this note or you can check LXI-Tools support for the latest list of supported products.</p>
<p>&nbsp;</p>
<p><strong><u>Screenshot:</u></strong></p>
<p>This function retrieves a copy of the instrument display and saves it to the local drive. This is ideal for adding information to reports and sharing events with colleagues.</p>
<p>Type “lxi screenshot &#8211; &#8211; address &lt;device address&gt;”</p>
<p><strong>NOTE:</strong> There should be two &#8220;-&#8221; with no spaces before &#8220;address&#8221; for every command.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5832" src="http://siglentna.com/wp-content/uploads/2018/03/LXIScreenshot_1.png" alt="" width="946" height="572" /></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong><u>Image Edits using ImageMagicks</u></strong></p>
<p>Use ImageMagick<sup><a href="http://tarr.uspto.gov/servlet/tarr?regser=serial&amp;entry=78333969">®</a></sup> to create, edit, compose, or convert bitmap images. It can read and write images in a variety of <a href="https://www.imagemagick.org/script/formats.php">formats</a> (over 200) including PNG, JPEG, JPEG-2000, GIF, TIFF, <a href="https://www.imagemagick.org/script/motion-picture.php">DPX</a>, <a href="https://www.imagemagick.org/script/high-dynamic-range.php">EXR</a>, WebP, Postscript, PDF, and SVG. Use ImageMagick to resize, flip, mirror, rotate, distort, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves.</p>
<p>For more information, visit&#8230; https://www.imagemagick.org/script/index.php</p>
<p>$ lxi screenshot &#8211;address &lt;ip&gt; &#8211; | convert &#8211; screenshot.jpg<br />
$ lxi screenshot &#8211;address &lt;ip&gt; &#8211; | convert &#8211; screenshot.tiff<br />
$ lxi screenshot &#8211;address &lt;ip&gt; &#8211; | convert &#8211; screenshot.bmp</p>
<p>&nbsp;</p>
<p><strong><u>Benchmark:</u></strong></p>
<p>The benchmark command sends 100 requests via LAN and measures the average response time of the instrument. It can be used as a gauge for the health of the connection. Higher response rates = faster links.</p>
<p style="padding-left: 30px;">$ lxi benchmark &#8211;address &lt;ip&gt;</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5851" src="http://siglentna.com/wp-content/uploads/2018/03/LXIBenchmark_1.png" alt="" width="949" height="398" srcset="https://siglentna.com/wp-content/uploads/2018/03/LXIBenchmark_1.png 949w, https://siglentna.com/wp-content/uploads/2018/03/LXIBenchmark_1-600x252.png 600w, https://siglentna.com/wp-content/uploads/2018/03/LXIBenchmark_1-300x126.png 300w, https://siglentna.com/wp-content/uploads/2018/03/LXIBenchmark_1-768x322.png 768w" sizes="auto, (max-width: 949px) 100vw, 949px" /></p>
<p>&nbsp;</p>
<p><strong><u>Manual vs. Auto-load:</u></strong></p>
<p>The commands can also be manually or auto-loaded:</p>
<p>Auto-load/detect:</p>
<p style="padding-left: 30px;">$ lxi screenshot &#8211;address 10.0.0.42</p>
<p>Vs. manually specifying which screenshot plugin to use:</p>
<p style="padding-left: 30px;">$ lxi screenshot &#8211;address 10.0.0.42 &#8211;plugin siglent-ssa3000x</p>
<p>The only advantage of manually specifying which plugin to use it that it is a bit faster because it does not go through the instrument auto detection steps (retrieve ID, parse regex rules to match correct plugin etc.).</p>
<p>&nbsp;</p>
<p><strong><u>Sending instrument specific commands:</u></strong></p>
<p>You can also use the SCPI command to send any command to the instrument.</p>
<p>Note that if you have an SCPI command with spaces you must remember to send the specific command in quotes like so:</p>
<p style="padding-left: 30px;">$ lxi scpi &#8211;address 192.168.55.113 &#8220;MEAS:VOLT? CH1&#8221;</p>
<p>This way the tool knows how to parse the full SCPI string.</p>
<p>In this example, we send the &#8220;READ?&#8221; command to an SDM and return a reading:</p>
<p>&nbsp;</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5835" src="http://siglentna.com/wp-content/uploads/2018/03/LXISCPI_1.png" alt="" width="931" height="398" srcset="https://siglentna.com/wp-content/uploads/2018/03/LXISCPI_1.png 931w, https://siglentna.com/wp-content/uploads/2018/03/LXISCPI_1-600x256.png 600w, https://siglentna.com/wp-content/uploads/2018/03/LXISCPI_1-300x128.png 300w, https://siglentna.com/wp-content/uploads/2018/03/LXISCPI_1-768x328.png 768w" sizes="auto, (max-width: 931px) 100vw, 931px" /></p>
<p>&nbsp;</p>
<p><strong><u>GUI</u></strong></p>
<p>Another really great feature is the GUI for LXI Tools. This allows you easy access to discovery of instruments on the network as well as some powerful tools for data capture and instrument control.</p>
<p style="padding-left: 30px;">$ lxi-tools.lxi-gui</p>
<p>This adds a very simple yet powerful graphical interface for the LXI tools program:</p>
<p>&nbsp;</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5836" src="http://siglentna.com/wp-content/uploads/2018/03/LXIGUI_1.png" alt="" width="950" height="414" srcset="https://siglentna.com/wp-content/uploads/2018/03/LXIGUI_1.png 950w, https://siglentna.com/wp-content/uploads/2018/03/LXIGUI_1-600x261.png 600w, https://siglentna.com/wp-content/uploads/2018/03/LXIGUI_1-300x131.png 300w, https://siglentna.com/wp-content/uploads/2018/03/LXIGUI_1-768x335.png 768w" sizes="auto, (max-width: 950px) 100vw, 950px" /></p>
<p>NOTE: Ignore the &#8220;Qt&#8221; error shown.</p>
<p>This opens a clean control window:</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5837" src="http://siglentna.com/wp-content/uploads/2018/03/LXIGUI.png" alt="" width="952" height="966" srcset="https://siglentna.com/wp-content/uploads/2018/03/LXIGUI.png 952w, https://siglentna.com/wp-content/uploads/2018/03/LXIGUI-100x100.png 100w, https://siglentna.com/wp-content/uploads/2018/03/LXIGUI-600x609.png 600w, https://siglentna.com/wp-content/uploads/2018/03/LXIGUI-296x300.png 296w, https://siglentna.com/wp-content/uploads/2018/03/LXIGUI-768x779.png 768w" sizes="auto, (max-width: 952px) 100vw, 952px" /></p>
<p>&nbsp;</p>
<ul>
<li><strong>Search:</strong> Discover the instruments connected to the LAN. Here, we have three instruments connected:</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5838" src="http://siglentna.com/wp-content/uploads/2018/03/LXIGuiDiscover_1.png" alt="" width="950" height="333" srcset="https://siglentna.com/wp-content/uploads/2018/03/LXIGuiDiscover_1.png 950w, https://siglentna.com/wp-content/uploads/2018/03/LXIGuiDiscover_1-600x210.png 600w, https://siglentna.com/wp-content/uploads/2018/03/LXIGuiDiscover_1-300x105.png 300w, https://siglentna.com/wp-content/uploads/2018/03/LXIGuiDiscover_1-768x269.png 768w" sizes="auto, (max-width: 950px) 100vw, 950px" /></p>
<p>&nbsp;</p>
<ul>
<li><strong>SCPI command line: </strong>Send instrument specific commands. Click on the instrument you wish to communicate with and then enter the command. For queries (commands that require an instrument response, or read function), the returned string will be shown in the text box:</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5839" src="http://siglentna.com/wp-content/uploads/2018/03/LXIGui_SCPI_Read.png" alt="" width="952" height="966" srcset="https://siglentna.com/wp-content/uploads/2018/03/LXIGui_SCPI_Read.png 952w, https://siglentna.com/wp-content/uploads/2018/03/LXIGui_SCPI_Read-100x100.png 100w, https://siglentna.com/wp-content/uploads/2018/03/LXIGui_SCPI_Read-600x609.png 600w, https://siglentna.com/wp-content/uploads/2018/03/LXIGui_SCPI_Read-296x300.png 296w, https://siglentna.com/wp-content/uploads/2018/03/LXIGui_SCPI_Read-768x779.png 768w" sizes="auto, (max-width: 952px) 100vw, 952px" /></p>
<p>NOTE: The specific commands that can be used are available in the instrument programming guide. Check out the specific instrument documentation for more details.</p>
<p>This tool can be helpful when trying out specific sequences of commands. You can send them one-at-a-time and then observe the instrument functionality.</p>
<p>&nbsp;</p>
<ul>
<li><strong>Screenshot:</strong>  Capture and save an image from the instrument. This also features a &#8220;live&#8221; button that will continuously poll the instrument.</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5841" src="http://siglentna.com/wp-content/uploads/2018/03/LXIGui_Screeshot.png" alt="" width="952" height="966" srcset="https://siglentna.com/wp-content/uploads/2018/03/LXIGui_Screeshot.png 952w, https://siglentna.com/wp-content/uploads/2018/03/LXIGui_Screeshot-100x100.png 100w, https://siglentna.com/wp-content/uploads/2018/03/LXIGui_Screeshot-600x609.png 600w, https://siglentna.com/wp-content/uploads/2018/03/LXIGui_Screeshot-296x300.png 296w, https://siglentna.com/wp-content/uploads/2018/03/LXIGui_Screeshot-768x779.png 768w" sizes="auto, (max-width: 952px) 100vw, 952px" /></p>
<p>&nbsp;</p>
<p>After saving, you can recall the image:</p>
<p><a href="http://siglentna.com/wp-content/uploads/2018/03/SSAScreenshot.bmp"><img loading="lazy" decoding="async" class="aligncenter wp-image-5844" src="http://siglentna.com/wp-content/uploads/2018/03/SSAScreenshot.bmp" alt="" width="898" height="526" srcset="https://siglentna.com/wp-content/uploads/2018/03/SSAScreenshot.bmp 1024w, https://siglentna.com/wp-content/uploads/2018/03/SSAScreenshot-300x176.jpg 300w, https://siglentna.com/wp-content/uploads/2018/03/SSAScreenshot-768x450.jpg 768w" sizes="auto, (max-width: 898px) 100vw, 898px" /></a></p>
<p>&nbsp;</p>
<ul>
<li><strong>Benchmark:</strong>  Checks the performance of the LAN  connection by sending a series of commands and measuring the response time. Larger &#8220;requests/second&#8221; = greater possible bus performance.</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5842" src="http://siglentna.com/wp-content/uploads/2018/03/LXIGui_Benchmark.png" alt="" width="952" height="966" srcset="https://siglentna.com/wp-content/uploads/2018/03/LXIGui_Benchmark.png 952w, https://siglentna.com/wp-content/uploads/2018/03/LXIGui_Benchmark-100x100.png 100w, https://siglentna.com/wp-content/uploads/2018/03/LXIGui_Benchmark-600x609.png 600w, https://siglentna.com/wp-content/uploads/2018/03/LXIGui_Benchmark-296x300.png 296w, https://siglentna.com/wp-content/uploads/2018/03/LXIGui_Benchmark-768x779.png 768w" sizes="auto, (max-width: 952px) 100vw, 952px" /></p>
<p>&nbsp;</p>
<ul>
<li><strong>Data Recorder:</strong>  Sends the user-defined command a number of times/second and attempts to graph the data. Be aware that data can be returned in different formats and at different rates depending on device configuration. Going faster can make the system unstable and could cause a crash or hang-up.</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5845" src="http://siglentna.com/wp-content/uploads/2018/03/LXIGui_Record.png" alt="" width="952" height="966" srcset="https://siglentna.com/wp-content/uploads/2018/03/LXIGui_Record.png 952w, https://siglentna.com/wp-content/uploads/2018/03/LXIGui_Record-100x100.png 100w, https://siglentna.com/wp-content/uploads/2018/03/LXIGui_Record-600x609.png 600w, https://siglentna.com/wp-content/uploads/2018/03/LXIGui_Record-296x300.png 296w, https://siglentna.com/wp-content/uploads/2018/03/LXIGui_Record-768x779.png 768w" sizes="auto, (max-width: 952px) 100vw, 952px" /></p>
<p>&nbsp;</p>
<p>And the data: <img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5846" src="http://siglentna.com/wp-content/uploads/2018/03/LXIGui_data.png" alt="" width="733" height="394" srcset="https://siglentna.com/wp-content/uploads/2018/03/LXIGui_data.png 733w, https://siglentna.com/wp-content/uploads/2018/03/LXIGui_data-600x323.png 600w, https://siglentna.com/wp-content/uploads/2018/03/LXIGui_data-300x161.png 300w" sizes="auto, (max-width: 733px) 100vw, 733px" /></p>
<p>&nbsp;</p>
<ul>
<li><strong>Settings:</strong> Configure the timeouts and other controls.</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5847" src="http://siglentna.com/wp-content/uploads/2018/03/LXIGui_Settings.png" alt="" width="952" height="966" srcset="https://siglentna.com/wp-content/uploads/2018/03/LXIGui_Settings.png 952w, https://siglentna.com/wp-content/uploads/2018/03/LXIGui_Settings-100x100.png 100w, https://siglentna.com/wp-content/uploads/2018/03/LXIGui_Settings-600x609.png 600w, https://siglentna.com/wp-content/uploads/2018/03/LXIGui_Settings-296x300.png 296w, https://siglentna.com/wp-content/uploads/2018/03/LXIGui_Settings-768x779.png 768w" sizes="auto, (max-width: 952px) 100vw, 952px" /></p>
<p>&nbsp;</p>
<ul>
<li><strong>About:</strong>  Version info.</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5848" src="http://siglentna.com/wp-content/uploads/2018/03/LXIGui_About.png" alt="" width="952" height="966" srcset="https://siglentna.com/wp-content/uploads/2018/03/LXIGui_About.png 952w, https://siglentna.com/wp-content/uploads/2018/03/LXIGui_About-100x100.png 100w, https://siglentna.com/wp-content/uploads/2018/03/LXIGui_About-600x609.png 600w, https://siglentna.com/wp-content/uploads/2018/03/LXIGui_About-296x300.png 296w, https://siglentna.com/wp-content/uploads/2018/03/LXIGui_About-768x779.png 768w" sizes="auto, (max-width: 952px) 100vw, 952px" /></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<hr />
<p><strong>*Here is a list of the latest compatible instruments tested with Lxi-Tools (03/13/2018)</strong></p>
<p><strong><u>SSA3000X Series:</u></strong></p>
<p>SSA3000X (Latest 1.2.8.5a)</p>
<p>&nbsp;</p>
<p><strong><u>SDS1000X-E Series:</u></strong></p>
<p>SDS1202X-E (Older 5.1.3.8R2)</p>
<p>SDS1202X-E (Latest 5.1.3.13)</p>
<p>SDS1204X-E (Latest/first production release 7.6.1.12)</p>
<p>&nbsp;</p>
<p><strong><u>SDS1000X/X+ Series:</u></strong></p>
<p>SDS1202X+ (Latest 1.1.2.15E3)*</p>
<p>*LIMITED COMMAND SET AVAILABILITY</p>
<p>&nbsp;</p>
<p><strong><u>SDS2000X Series:</u></strong></p>
<p>SDS2304X (Older 1.2.2.2)*</p>
<p>SDS2304X (Latest 1.2.2.2R10)*</p>
<p>*LIMITED COMMAND SET AVAILABILITY</p>
<p>&nbsp;</p>
<p><strong><u>SDS2000 Series (replaced by the SDS2000X):</u></strong></p>
<p>SDS2204 (Latest 1.2.2.2)*</p>
<p>*LIMITED COMMAND SET AVAILABILITY</p>
<p>&nbsp;</p>
<p><strong><u>SDM3000 Series:</u></strong></p>
<p>SDM3045X (Older rev 5.01.01.01)</p>
<p>SDM3045X (Latest rev 5.01.01.03)</p>
<p>SDM3055 (Latest rev 1.01.01.01.19)</p>
<p>SDM3065X (Older rev 3.01.01.02)</p>
<p>SDM3065X (Latest rev 3.01.01.03)</p>
<p>&nbsp;</p>
<p><strong><u>SDG1/2/6X Series:</u></strong></p>
<p>SDG1032X (Latest 1.01.01.22R5)</p>
<p>SDG20122X (2.01.01.23R7)</p>
<p>SDG6052X (Latest 6.01.01.28R1): 405.3</p>
<p>The post <a href="https://siglentna.com/application-note/lxi-tools/">Quick remote computer control using LXI Tools</a> appeared first on <a href="https://siglentna.com">Siglent</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Programming Example: Open Socket LAN connection using Python</title>
		<link>https://siglentna.com/application-note/open-socket-lan-python/</link>
		
		<dc:creator><![CDATA[visia_admin]]></dc:creator>
		<pubDate>Fri, 20 Oct 2017 21:03:41 +0000</pubDate>
				<guid isPermaLink="false">http://siglentna.com/?post_type=application-notes&#038;p=2481</guid>

					<description><![CDATA[<p>Automating a test can dramatically increase the productivity, throughput, and accuracy of a process. Automating a setup involves connecting a computer to the test instrumentation using a standard communications bus like USB or LAN and then utilizing code entered via a software layer (like LabVIEW, .NET, Python, etc..) to sequence the specific instrument commands and &#8230; <a href="https://siglentna.com/application-note/open-socket-lan-python/">Continued</a></p>
<p>The post <a href="https://siglentna.com/application-note/open-socket-lan-python/">Programming Example: Open Socket LAN connection using Python</a> appeared first on <a href="https://siglentna.com">Siglent</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Automating a test can dramatically increase the productivity, throughput, and accuracy of a process. Automating a setup involves connecting a computer to the test instrumentation using a standard communications bus like USB or LAN and then utilizing code entered via a software layer (like LabVIEW, .NET, Python, etc..) to sequence the specific instrument commands and process data.</p>
<p>In this note, we are going to show how to use Python to create a communications link between an instrument and a remote computer using a LAN connection. Once the connection is verified, you can begin to work on the control software.</p>
<p><strong>NOTE:</strong> This example requires open sockets on the instrumentation. At this time, not all SIGLENT products feature open sockets. Check the product page FAQs or with your local SIGLENT support office for more information.</p>
<p>Python is an interpreted programming language that lets you work quickly and is very portable. Python has a low-level networking module that provides access to the socket interface. Python scripts can be written for sockets to do a variety of test and measurements tasks.</p>
<p>Here is a Python 2.7 script that opens a socket, sends a query and closes the socket. It performs this operation in a loop 10 times:</p>
<p><a href="http://siglentna.com/wp-content/uploads/2017/10/PythonSocket_052018.zip">PythonSocket_052018</a></p>
<p>You can follow the instructions below to build your own example:</p>
<hr />
<p>1. Power on and connect the instrument to the network via LAN</p>
<p>2. Verify that the Gateway, Subnet Mask, and IP address of the instrument are valid for the network you wish to use. This information is typically located in the System Information or IO menu. See the specific instrument user’s guide for more information on LAN settings.</p>
<p>3. Download python and your favorite python editor (I use IDLE):</p>
<p><a href="https://www.python.org/" target="_blank" rel="noopener noreferrer">https://www.python.org/</a></p>
<p><a href="https://docs.python.org/2/library/idle.html" target="_blank" rel="noopener noreferrer">https://docs.python.org/2/library/idle.html</a></p>
<p>Start your python editor:</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2482" src="http://siglentna.com/wp-content/uploads/2017/10/PythonComTest_042017-1.png" alt="" width="84" height="97" /></p>
<p>5. Open a new file by pressing File &gt; New File.. and name the file</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2483" src="http://siglentna.com/wp-content/uploads/2017/10/PythonComTest_042017-2.png" alt="" width="838" height="382" srcset="https://siglentna.com/wp-content/uploads/2017/10/PythonComTest_042017-2.png 838w, https://siglentna.com/wp-content/uploads/2017/10/PythonComTest_042017-2-600x274.png 600w, https://siglentna.com/wp-content/uploads/2017/10/PythonComTest_042017-2-300x137.png 300w, https://siglentna.com/wp-content/uploads/2017/10/PythonComTest_042017-2-768x350.png 768w" sizes="auto, (max-width: 838px) 100vw, 838px" /></p>
<p>6. Copy and paste the code at the end of this note into the file editing window:</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2484" src="http://siglentna.com/wp-content/uploads/2017/10/PythonComTest_042017-3.png" alt="" width="671" height="328" srcset="https://siglentna.com/wp-content/uploads/2017/10/PythonComTest_042017-3.png 671w, https://siglentna.com/wp-content/uploads/2017/10/PythonComTest_042017-3-600x293.png 600w, https://siglentna.com/wp-content/uploads/2017/10/PythonComTest_042017-3-300x147.png 300w" sizes="auto, (max-width: 671px) 100vw, 671px" /></p>
<p>7. Change the IP address and port number so that they match the IP address and port for the instrument you wish to connect to:</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2485" src="http://siglentna.com/wp-content/uploads/2017/10/PythonComTest_042017-4.png" alt="" width="671" height="328" srcset="https://siglentna.com/wp-content/uploads/2017/10/PythonComTest_042017-4.png 671w, https://siglentna.com/wp-content/uploads/2017/10/PythonComTest_042017-4-600x293.png 600w, https://siglentna.com/wp-content/uploads/2017/10/PythonComTest_042017-4-300x147.png 300w" sizes="auto, (max-width: 671px) 100vw, 671px" /></p>
<p>Save the file:</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2486" src="http://siglentna.com/wp-content/uploads/2017/10/PythonComTest_042017-5.png" alt="" width="845" height="318" srcset="https://siglentna.com/wp-content/uploads/2017/10/PythonComTest_042017-5.png 845w, https://siglentna.com/wp-content/uploads/2017/10/PythonComTest_042017-5-600x226.png 600w, https://siglentna.com/wp-content/uploads/2017/10/PythonComTest_042017-5-300x113.png 300w, https://siglentna.com/wp-content/uploads/2017/10/PythonComTest_042017-5-768x289.png 768w" sizes="auto, (max-width: 845px) 100vw, 845px" /></p>
<p>8. To Run, select Run and Run Module:</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2487" src="http://siglentna.com/wp-content/uploads/2017/10/PythonComTest_042017-6.png" alt="" width="682" height="190" srcset="https://siglentna.com/wp-content/uploads/2017/10/PythonComTest_042017-6.png 682w, https://siglentna.com/wp-content/uploads/2017/10/PythonComTest_042017-6-600x167.png 600w, https://siglentna.com/wp-content/uploads/2017/10/PythonComTest_042017-6-300x84.png 300w" sizes="auto, (max-width: 682px) 100vw, 682px" /></p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2488" src="http://siglentna.com/wp-content/uploads/2017/10/PythonComTest_042017-7.png" alt="" width="673" height="487" srcset="https://siglentna.com/wp-content/uploads/2017/10/PythonComTest_042017-7.png 673w, https://siglentna.com/wp-content/uploads/2017/10/PythonComTest_042017-7-600x434.png 600w, https://siglentna.com/wp-content/uploads/2017/10/PythonComTest_042017-7-300x217.png 300w" sizes="auto, (max-width: 673px) 100vw, 673px" /></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>The post <a href="https://siglentna.com/application-note/open-socket-lan-python/">Programming Example: Open Socket LAN connection using Python</a> appeared first on <a href="https://siglentna.com">Siglent</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Verification of a LAN connection using Telnet</title>
		<link>https://siglentna.com/application-note/verification-lan-connection-using-telnet/</link>
		
		<dc:creator><![CDATA[visia_admin]]></dc:creator>
		<pubDate>Fri, 20 Oct 2017 20:20:35 +0000</pubDate>
				<guid isPermaLink="false">http://siglentna.com/?post_type=application-notes&#038;p=2471</guid>

					<description><![CDATA[<p>Automating a test can dramatically increase the productivity, throughput, and accuracy of a process. Automating a setup involves connecting a computer to the test instrumentation using a standard communications bus like USB or LAN and then utilizing code entered via a software layer (like LabVIEW, .NET, Python, etc..) to sequence the specific instrument commands and &#8230; <a href="https://siglentna.com/application-note/verification-lan-connection-using-telnet/">Continued</a></p>
<p>The post <a href="https://siglentna.com/application-note/verification-lan-connection-using-telnet/">Verification of a LAN connection using Telnet</a> appeared first on <a href="https://siglentna.com">Siglent</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Automating a test can dramatically increase the productivity, throughput, and accuracy of a process. Automating a setup involves connecting a computer to the test instrumentation using a standard communications bus like USB or LAN and then utilizing code entered via a software layer (like LabVIEW, .NET, Python, etc..) to sequence the specific instrument commands and process data.</p>
<p>This process normally goes quite smoothly, but if there are problems, there are some basic troubleshooting steps that can help get your test up-and-running quickly.</p>
<p>In this note, we are going to show how to use Telnet to test the communications connection between an instrument and a remote computer using a LAN connection to ensure that it is working properly. Once the connection is verified, you can begin to work on the control software.</p>
<p>Telnet provides a means of communicating over a LAN connection. The Telnet client, run on a LAN connected computer, will create a login session on the instrument.</p>
<p><strong>NOTE:</strong> The Telnet connection requires open sockets on the instrumentation. At this time, not all SIGLENT products feature open sockets. Check the product page FAQs or with your local SIGLENT support office for more information.</p>
<p>A connection, established between the computer and instrument, generates a user interface display screen with SCPI&gt; prompts on the command line.</p>
<p>Using the Telnet protocol to send commands to the instrument is similar to communicating with USB. You establish a connection with the instrument and then send or receive information using SCPI commands. Communication is interactive: one command at a time.</p>
<p>The Windows operating systems use a command prompt style interface for the Telnet client.</p>
<h2>STEPS</h2>
<p>1. Power on and connect the instrument to the network via LAN</p>
<p>2. Verify that the Gateway, Subnet Mask, and IP address of the instrument are valid for the network you wish to use. This information is typically located in the System Information or IO menu. See the specific instrument user’s guide for more information on LAN settings.</p>
<p>3. On the computer, click Start &gt; All Programs &gt; Accessories &gt; Command Prompt.</p>
<p>4. At the command prompt, type in telnet.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2472" src="http://siglentna.com/wp-content/uploads/2017/10/TelnetComTest_042017-1.png" alt="" width="614" height="220" srcset="https://siglentna.com/wp-content/uploads/2017/10/TelnetComTest_042017-1.png 614w, https://siglentna.com/wp-content/uploads/2017/10/TelnetComTest_042017-1-600x215.png 600w, https://siglentna.com/wp-content/uploads/2017/10/TelnetComTest_042017-1-300x107.png 300w" sizes="auto, (max-width: 614px) 100vw, 614px" /></p>
<p>5. Press the Enter key. The Telnet display screen will be displayed.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2474" src="http://siglentna.com/wp-content/uploads/2017/10/TelnetComTest_042017-3.png" alt="" width="792" height="389" srcset="https://siglentna.com/wp-content/uploads/2017/10/TelnetComTest_042017-3.png 792w, https://siglentna.com/wp-content/uploads/2017/10/TelnetComTest_042017-3-600x295.png 600w, https://siglentna.com/wp-content/uploads/2017/10/TelnetComTest_042017-3-300x147.png 300w, https://siglentna.com/wp-content/uploads/2017/10/TelnetComTest_042017-3-768x377.png 768w" sizes="auto, (max-width: 792px) 100vw, 792px" /></p>
<p>6. At the Telnet command line, type: open XXX.XXX.XXX.XXX 5024 where XXX.XXX.XXX.XXX is the instrument’s IP address and 5024 is the port. You should see a response similar to the following:</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2476" src="http://siglentna.com/wp-content/uploads/2017/10/TelnetComTest_042017-5.png" alt="" width="343" height="136" srcset="https://siglentna.com/wp-content/uploads/2017/10/TelnetComTest_042017-5.png 343w, https://siglentna.com/wp-content/uploads/2017/10/TelnetComTest_042017-5-300x119.png 300w" sizes="auto, (max-width: 343px) 100vw, 343px" /></p>
<p>7. Now, you can enter any valid command for the specific instrument that you are controlling. See the specific programming guide for the instrument for more information.</p>
<p>This is especially helpful when you are planning a specific test sequence, the effect of delays/timing, or troubleshooting a command. You can send each command one-at-a-time and check the performance of the instrument.</p>
<p>*IDN? is a common identification string query (question or information request) that returns the information from the connected instrument</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2478" src="http://siglentna.com/wp-content/uploads/2017/10/TelnetComTest_042017-7.png" alt="" width="486" height="177" srcset="https://siglentna.com/wp-content/uploads/2017/10/TelnetComTest_042017-7.png 486w, https://siglentna.com/wp-content/uploads/2017/10/TelnetComTest_042017-7-300x109.png 300w" sizes="auto, (max-width: 486px) 100vw, 486px" /></p>
<p>The post <a href="https://siglentna.com/application-note/verification-lan-connection-using-telnet/">Verification of a LAN connection using Telnet</a> appeared first on <a href="https://siglentna.com">Siglent</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
