<?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>LabVIEW 2019 &#8211; Electronique et Informatique</title>
	<atom:link href="https://amaury-laurent.fr/tag/labview-2019/feed/" rel="self" type="application/rss+xml" />
	<link>https://amaury-laurent.fr</link>
	<description>Site web d&#039;Amaury LAURENT</description>
	<lastBuildDate>Mon, 16 Mar 2020 09:40:41 +0000</lastBuildDate>
	<language>fr-FR</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.3.2</generator>

<image>
	<url>https://amaury-laurent.fr/wp-content/uploads/2015/09/favicon.png</url>
	<title>LabVIEW 2019 &#8211; Electronique et Informatique</title>
	<link>https://amaury-laurent.fr</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Le Raspberry Pi se propulse vers LabVIEW 2019 (et 2020) !</title>
		<link>https://amaury-laurent.fr/le-raspberry-pi-se-propulse-vers-labview-2019-et-2020/</link>
					<comments>https://amaury-laurent.fr/le-raspberry-pi-se-propulse-vers-labview-2019-et-2020/#respond</comments>
		
		<dc:creator><![CDATA[Amaury LAURENT]]></dc:creator>
		<pubDate>Fri, 13 Mar 2020 21:02:09 +0000</pubDate>
				<category><![CDATA[Informatique]]></category>
		<category><![CDATA[LabVIEW]]></category>
		<category><![CDATA[LabVIEW 2019]]></category>
		<category><![CDATA[LINX]]></category>
		<category><![CDATA[Raspberry Pi]]></category>
		<guid isPermaLink="false">http://amaury-laurent.fr/?p=1140</guid>

					<description><![CDATA[<p>Cette année, National Instruments a annoncé la sortie d&#8217;une version communautaire du célèbre environnement de développement LabVIEW. A cette occasion, le toolkit LINX devrait être porté en LabVIEW 2020 et maintenu officiellement pas NI. En effet, la version pouvant être installée en autonomie sur un Raspberry Pi était cantonnée à LabVIEW 2014. En cherchant sur [&#8230;]</p>
<p>Cet article <a rel="nofollow" href="https://amaury-laurent.fr/le-raspberry-pi-se-propulse-vers-labview-2019-et-2020/">Le Raspberry Pi se propulse vers LabVIEW 2019 (et 2020) !</a> est apparu en premier sur <a rel="nofollow" href="https://amaury-laurent.fr">Electronique et Informatique</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Cette année, National Instruments a <a href="https://forums.ni.com/t5/NI-Blog/LabVIEW-Community-Edition/ba-p/3970512?profile.language=fr" target="_blank" rel="noopener noreferrer">annoncé la sortie d&rsquo;une version communautaire</a> du célèbre environnement de développement LabVIEW. A cette occasion, le <a href="https://amaury-laurent.fr/linx-3-0-programmer-raspberry-pi-labview/" target="_blank" rel="noopener noreferrer">toolkit LINX </a>devrait être porté en LabVIEW 2020 et maintenu officiellement pas NI. En effet, la version pouvant être installée en autonomie sur un Raspberry Pi était cantonnée à LabVIEW 2014. En cherchant sur le dépôt d&rsquo;installation de digilent, on observe trois versions du paquet d&rsquo;installation:</p>
<ul>
<li><strong>lvrt-schroot</strong> : pour LabVIEW 2014, la version initiale</li>
<li><strong>lvrt20-schroot</strong> : pour la future LabVIEW 2020 ?</li>
<li><strong>lvrt19-schroot</strong> : pour LabVIEW 2019 ?</li>
</ul>
<p>Si l&rsquo;on essayait ensemble d&rsquo;installer lvrt19-schroot sur un Raspberry Pi 4 tout neuf ?</p>
<h1>Introduction</h1>
<p>Avant de commencer, il nous faut un Raspberry Pi (&gt;2) fonctionnel avec la dernière version de Raspbian (Buster à l&rsquo;heure où ce test a été mené). Pour ma part, je profite de la sortie du Raspberry Pi 4 pour le prendre en main et profité de la connexion WiFi (enfin!).</p>
<h1>Installation de LINX 3 pour LabVIEW 2019</h1>
<p>Nous sommes prêts? Allons-y !</p>
<p>Tout se passe en ligne de commande. Ouvrez un terminal SSH et connectez-vous sur le Raspberry Pi.</p>
<p>Commençons par mettre à jour notre installation:</p>
<ul>
<li><strong>sudo apt-get update</strong></li>
<li><strong>sudo apt-get dist-upgrade -y</strong></li>
</ul>
<p>Ensuite activons les modules i2c et spi:</p>
<ul>
<li><strong>sudo raspi-config nonint do_i2c 0</strong></li>
<li><strong>sudo raspi-config nonint do_spi 0</strong></li>
</ul>
<p>Ajoutons le dépôt d&rsquo;installation de LINX:</p>
<ul>
<li><strong>sudo sh -c &lsquo;echo « deb [trusted=yes] http://feeds.labviewmakerhub.com/debian/ binary/ » &gt;&gt; /etc/apt/sources.list&rsquo;</strong></li>
<li><strong>sudo apt-get update</strong></li>
</ul>
<p>A ce stade, la magie n&rsquo;a pas encore opéré. Installons donc le paquet lvrt19 (tuto <a href="https://forums.ni.com/t5/LabVIEW/LINX-3-0-on-the-Raspberry-Pi-2-3-and-4-running-Raspbian-Buster/td-p/3967891?profile.language=fr" target="_blank" rel="noopener noreferrer">extrait du forum NI</a>, modifié pour LabVIEW 2019) :</p>
<ul>
<li><strong>sudo apt-get install -y lvrt19-schroot</strong></li>
<li><strong>sudo mv /etc/systemd/system/multi-user.target.wants/nisysserver.service /lib/systemd/system</strong></li>
<li><strong>sudo mv /etc/systemd/system/multi-user.target.wants/labview.service /lib/systemd/system</strong></li>
<li><strong>sudo schroot -c labview -d /usr/lib &#8212; ln -s liblinxdevice_rpi2.so liblinxdevice.so</strong></li>
<li><strong>sudo systemctl enable nisysserver.service</strong></li>
<li><strong>sudo systemctl enable labview.service</strong></li>
<li><strong>sudo systemctl start nisysserver.service</strong></li>
<li><strong>sudo systemctl start labview.service</strong></li>
</ul>
<h1>Vérification de l&rsquo;installation avec LabVIEW 2019</h1>
<p>Avant d&rsquo;aller plus loin, nous allons vérifier la bonne installation du runtime 2019 sur le Raspberry Pi.</p>
<p>Créons un nouveau projet LabVIEW vide et ajoutons une cible <em>temps réelle</em> compatible (cRIO 9039 au hasard) en spécifiant l&rsquo;adresse IP du Raspberry Pi.</p>
<p><a href="https://ml9zfxsqktal.i.optimole.com/w:auto/h:auto/q:mauto/f:best/https://amaury-laurent.fr/wp-content/uploads/2020/03/2020-03-13_2109.png"><img decoding="async" fetchpriority="high" class="aligncenter wp-image-1141 size-medium" src="https://ml9zfxsqktal.i.optimole.com/w:249/h:300/q:mauto/f:best/https://amaury-laurent.fr/wp-content/uploads/2020/03/2020-03-13_2109.png" alt="" width="249" height="300" /></a>Ensuite, nous connectons le projet à la cible: clic droit sur la cible -&gt; Connect.</p>
<p><a href="https://ml9zfxsqktal.i.optimole.com/w:auto/h:auto/q:mauto/f:best/https://amaury-laurent.fr/wp-content/uploads/2020/03/2020-03-13_2110.png"><img decoding="async" class="aligncenter size-medium wp-image-1142" src="https://ml9zfxsqktal.i.optimole.com/w:268/h:300/q:mauto/f:best/https://amaury-laurent.fr/wp-content/uploads/2020/03/2020-03-13_2110.png" alt="" width="268" height="300" /></a>LabVIEW déploie le projet et vérifie la connexion à la cible.</p>
<p><a href="https://ml9zfxsqktal.i.optimole.com/w:auto/h:auto/q:mauto/f:best/https://amaury-laurent.fr/wp-content/uploads/2020/03/2020-03-13_2111.png"><img decoding="async" class="aligncenter size-medium wp-image-1143" src="https://ml9zfxsqktal.i.optimole.com/w:300/h:216/q:mauto/f:best/https://amaury-laurent.fr/wp-content/uploads/2020/03/2020-03-13_2111.png" alt="" width="300" height="216" /></a>Comme nous avons défini la cible comme étant un compact RIO, LabVIEW cherche automatiquement à détecter les modules d&rsquo;acquisitions présents dans el châssis. Nous avons un Raspberry Pi, donc LabVIEW échoue à détecter les modules, mais pas de panique, tout est normal.<a href="https://ml9zfxsqktal.i.optimole.com/w:auto/h:auto/q:mauto/f:best/https://amaury-laurent.fr/wp-content/uploads/2020/03/2020-03-13_2113.png"><img decoding="async" class="aligncenter size-medium wp-image-1144" src="https://ml9zfxsqktal.i.optimole.com/w:300/h:247/q:mauto/f:best/https://amaury-laurent.fr/wp-content/uploads/2020/03/2020-03-13_2113.png" alt="" width="300" height="247" /></a>On continue la procédure en écrivant un petit code de test qui renvoie la version de LabVIEW et la version du système :</p>
<p><a href="https://ml9zfxsqktal.i.optimole.com/w:auto/h:auto/q:mauto/f:best/https://amaury-laurent.fr/wp-content/uploads/2020/03/test.png"><img decoding="async" class="aligncenter size-full wp-image-1146" src="https://ml9zfxsqktal.i.optimole.com/w:auto/h:auto/q:mauto/f:best/https://amaury-laurent.fr/wp-content/uploads/2020/03/test.png" alt="" width="286" height="151" /></a>Confirmation du fonctionnement (ctrl + R), après déploiement et exécution, nous voyons la version 2019 et la version de l&rsquo;OS (ici Linux raspberry 1.19.97) :</p>
<p><a href="https://ml9zfxsqktal.i.optimole.com/w:auto/h:auto/q:mauto/f:best/https://amaury-laurent.fr/wp-content/uploads/2020/03/2020-03-13_2115.png"><img decoding="async" class="aligncenter size-medium wp-image-1145" src="https://ml9zfxsqktal.i.optimole.com/w:300/h:89/q:mauto/f:best/https://amaury-laurent.fr/wp-content/uploads/2020/03/2020-03-13_2115.png" alt="" width="300" height="89" /></a>Vous trouverez le projet de test ici : <a href="https://amaury-laurent.fr/wp-content/uploads/2020/03/test.zip">test.zip</a></p>
<h1>Ajout de la cible Raspberry Pi dans LabVIEW 2019</h1>
<p>Pour ajouter le Raspberry Pi comme cible de déploiement dans LabVIEW, il faut ajouter des <a href="https://forums.ni.com/t5/Developer-Center-Resources/Customize-the-LabVIEW-Project-Explorer-Using-the-Project/ta-p/3532774?profile.language=fr" target="_blank" rel="noopener noreferrer">Providers</a>. Ils sont fournis dans <a href="http://download.ni.com/evaluation/labview/lvtn/vipm/packages/lvh_linx/" target="_blank" rel="noopener noreferrer">le paquet d&rsquo;installation VIPM de LINX</a>. Il est possible de récupérer l&rsquo;archive zip intéressante en décompressant le fichier .vip ou en la téléchargeant ici : <a href="https://amaury-laurent.fr/wp-content/uploads/2020/03/InstallProviders.zip">InstallProviders.zip</a></p>
<p>Quittez LabVIEW, décompressez cette archive et lancez la commande suivante :</p>
<ul>
<li><strong>UpdateLinxProvider.bat « C:\Program Files (x86)\National Instruments\LabVIEW 2019 »</strong></li>
</ul>
<p>Une fois installé, le Raspberry Pi apparait dans la liste des cibles disponibles :</p>
<h1><a href="https://ml9zfxsqktal.i.optimole.com/w:auto/h:auto/q:mauto/f:best/https://amaury-laurent.fr/wp-content/uploads/2020/03/2020-03-13_2129.png"><img decoding="async" class="aligncenter size-medium wp-image-1150" src="https://ml9zfxsqktal.i.optimole.com/w:266/h:300/q:mauto/f:best/https://amaury-laurent.fr/wp-content/uploads/2020/03/2020-03-13_2129.png" alt="" width="266" height="300" /></a>Conclusion</h1>
<p>En attendant la sortie officielle de LabVIEW 2020 avec le support LINX inclus, il est possible de profiter d&rsquo;un runtime 2019 sur un Raspberry Pi. Pour preuve, voici un pilotage moteur en CanOpen utilisant CanOpenSocket:</p>
<p><a href="https://ml9zfxsqktal.i.optimole.com/w:auto/h:auto/q:mauto/f:best/https://amaury-laurent.fr/wp-content/uploads/2020/03/2020-03-13_2134.png"><img decoding="async" class="aligncenter size-medium wp-image-1152" src="https://ml9zfxsqktal.i.optimole.com/w:300/h:206/q:mauto/f:best/https://amaury-laurent.fr/wp-content/uploads/2020/03/2020-03-13_2134.png" alt="" width="300" height="206" /></a></p>
<p>Cet article <a rel="nofollow" href="https://amaury-laurent.fr/le-raspberry-pi-se-propulse-vers-labview-2019-et-2020/">Le Raspberry Pi se propulse vers LabVIEW 2019 (et 2020) !</a> est apparu en premier sur <a rel="nofollow" href="https://amaury-laurent.fr">Electronique et Informatique</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://amaury-laurent.fr/le-raspberry-pi-se-propulse-vers-labview-2019-et-2020/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
