<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Protocol SMB in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Protocol-SMB/m-p/3648259#M1024490</link>
    <description>&lt;P&gt;Bonjour Rolf,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Merci pour ta réponse. Je comprend mieux maintenant....&lt;/P&gt;
&lt;P&gt;Donc maintenant je peux dire que le Protocol SMB va utiliser pour le partage de fichier entre le serveur et mon application.&lt;/P&gt;
&lt;P&gt;Par contre je trouve pas d'exemple bien expliquer en labview!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Jun 2017 08:06:05 GMT</pubDate>
    <dc:creator>MezianiOussama</dc:creator>
    <dc:date>2017-06-21T08:06:05Z</dc:date>
    <item>
      <title>Protocol SMB</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Protocol-SMB/m-p/3647771#M1024349</link>
      <description>&lt;P&gt;Bonjour à tous,&lt;/P&gt;
&lt;P&gt;Pour communique avec un serveur , je suis obliger de passer par le Protocol SMB.....&lt;/P&gt;
&lt;P&gt;Quelqu'un à une idée de comment faire ça sous LabVIEW???&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Merci&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2017 14:11:55 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Protocol-SMB/m-p/3647771#M1024349</guid>
      <dc:creator>MezianiOussama</dc:creator>
      <dc:date>2017-06-20T14:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Protocol SMB</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Protocol-SMB/m-p/3647808#M1024359</link>
      <description>&lt;P&gt;&lt;EM&gt;Translation:&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="tw-swapa"&gt;&lt;SPAN&gt;Hello everyone, &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="tw-swapa"&gt;&lt;SPAN&gt;To communicate with a server, I am obliged to go through the SMB protocol ..... &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="tw-swapa"&gt;&lt;SPAN&gt;Anyone have any idea how to do this in LabVIEW ???&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="_Ejb"&gt;
&lt;DIV id="tw-target"&gt;
&lt;DIV class="tw-ta-container tw-nfl" id="tw-target-text-container"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="tw-ta-container tw-nfl"&gt;Thanks&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 20 Jun 2017 14:47:43 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Protocol-SMB/m-p/3647808#M1024359</guid>
      <dc:creator>James_W</dc:creator>
      <dc:date>2017-06-20T14:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Protocol SMB</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Protocol-SMB/m-p/3647876#M1024381</link>
      <description>&lt;P&gt;Applications normally don't talk SMB directly. They make use of some API. SMB is nowadays mostly used for file sharing and other similar appliciations and seldom for inter-application communication, at least directly. Things like Distributed COM might be routed through an SMB connection but that is not common nowadays.&lt;/P&gt;
&lt;P&gt;Generally if the server implements SMB for file sharing you will need to setup Windows to connect to it properly and simply access the shared file locations with the file IO APIs in LabVIEW. If for whatever strange reasons you really need to directly talk through SMB you are in for a rough ride.&lt;/P&gt;
&lt;P&gt;That would mean accessing Windows APIs directly and some of them are pretty nasty in terms of parameters they use, which would require some complicated vodoo in the VI diagram to call those APIs directly with the Call Library Node or the creation of an intermediate DLL in C(++) that you then call with the Call Library Node. The intermediate DLL would translate between the Windows APIs and a more LabVIEW friendly function API. Both solutions will require you to be steadyfast with C programming in order to create a solution that will not just keep crashing more or less randomly.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2017 16:24:55 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Protocol-SMB/m-p/3647876#M1024381</guid>
      <dc:creator>rolfk</dc:creator>
      <dc:date>2017-06-20T16:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: Protocol SMB</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Protocol-SMB/m-p/3648259#M1024490</link>
      <description>&lt;P&gt;Bonjour Rolf,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Merci pour ta réponse. Je comprend mieux maintenant....&lt;/P&gt;
&lt;P&gt;Donc maintenant je peux dire que le Protocol SMB va utiliser pour le partage de fichier entre le serveur et mon application.&lt;/P&gt;
&lt;P&gt;Par contre je trouve pas d'exemple bien expliquer en labview!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2017 08:06:05 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Protocol-SMB/m-p/3648259#M1024490</guid>
      <dc:creator>MezianiOussama</dc:creator>
      <dc:date>2017-06-21T08:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Protocol SMB</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Protocol-SMB/m-p/3648265#M1024493</link>
      <description>&lt;P&gt;Why on Earth have you picked something as complicated as protocol SMB for file sharing?&lt;/P&gt;
&lt;P&gt;Surely there's another way?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2017 08:17:36 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Protocol-SMB/m-p/3648265#M1024493</guid>
      <dc:creator>James_W</dc:creator>
      <dc:date>2017-06-21T08:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: Protocol SMB</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Protocol-SMB/m-p/3648271#M1024495</link>
      <description>&lt;P&gt;Well SMB is still very often at the base of many more simple Windows file sharing solutions. Never mind that it is usually SMB over TCP/IP, since TCP/IP is the ubiquitous low level protocol nowadays. Big changes that if you have a file share on your computer from a Windows server, that you are actually using CIFS (an SMB dialect) for this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And that is already the answer for the OP. Use of the SMB file sharing protocol is completely independent of LabVIEW. As long as the Windows domain configuration is setup to allow access to the remote share location from your current account you can simply address that file share through an UNC name "\\server_name\share_name\path". The LabVIEW path control under Windows supports UNC paths and therefore you simply use Open File to open that path. Or alternatively you map the remote location in Windows to a local device (e.g. "P:\name") and then access it like any other file on your computer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The only possible drawback of this is: if the remote location is not available you can end up with pretty long timeout delays when trying to open a directory or file on it, since the underlying network functions work with a preset timeout interval that you have absolutely no chance to change from the file access API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And if you talk about Linux as client system you would have to make sure that SAMBA is installed (most desktop distributions have that enabled by default), the open source implementation of the Windows SMB client and server and then some more, and configure it such that the remote location is mapped into your file-system by mounting it somewhere into your file-system tree.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2017 08:39:01 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Protocol-SMB/m-p/3648271#M1024495</guid>
      <dc:creator>rolfk</dc:creator>
      <dc:date>2017-06-21T08:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Protocol SMB</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Protocol-SMB/m-p/3648375#M1024538</link>
      <description>&lt;P&gt;Je suis forcé de faire avec ....... j'ai pas d'autre choix ( c'est une condition imposée)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2017 11:50:48 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Protocol-SMB/m-p/3648375#M1024538</guid>
      <dc:creator>MezianiOussama</dc:creator>
      <dc:date>2017-06-21T11:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: Protocol SMB</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Protocol-SMB/m-p/3648378#M1024539</link>
      <description>&lt;P&gt;Forced to do what?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Describe your problem in more details. What server/hardware? Why SMB? How does your requirements specification look like?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2017 11:55:34 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Protocol-SMB/m-p/3648378#M1024539</guid>
      <dc:creator>rolfk</dc:creator>
      <dc:date>2017-06-21T11:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Protocol SMB</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Protocol-SMB/m-p/3648401#M1024547</link>
      <description>&lt;P&gt;Voila !&lt;/P&gt;
&lt;P&gt;Le serveur SMB (poste linux) reçoit des fichiers par des instruments chaque 2 à 3 minutes.&lt;/P&gt;
&lt;P&gt;J'ai pas le droit de manipuler le serveur. (je ne sait même pas c'est quoi comme serveur).&lt;/P&gt;
&lt;P&gt;Mon IHM doit communiquer avec ce serveur pour voir la disponibilité des fichiers et les lire.&lt;/P&gt;
&lt;P&gt;Je ne peux changé ni le Protocol ni le serveur.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2017 12:34:23 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Protocol-SMB/m-p/3648401#M1024547</guid>
      <dc:creator>MezianiOussama</dc:creator>
      <dc:date>2017-06-21T12:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Protocol SMB</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Protocol-SMB/m-p/3648411#M1024552</link>
      <description>&lt;P&gt;Sounds like someone is being awkward just for the sake of it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Suggest a small program running on the server (could be LabVIEW or not) which checks for new files in a directory on an incoming request and passes the data out to your HMI.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;They can specify the TCP/IP&amp;nbsp;port or a more suitable coms protocol.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If someone is being precious about their server they could even write the code themselves. It looks like making more work than needed and possibly introducing security risks in different areas that will be harder to find if security is the concern.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2017 12:46:22 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Protocol-SMB/m-p/3648411#M1024552</guid>
      <dc:creator>James_W</dc:creator>
      <dc:date>2017-06-21T12:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Protocol SMB</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Protocol-SMB/m-p/3648448#M1024565</link>
      <description>&lt;P&gt;You don't need to change the server except that your Windows account must have remote access rights to the directory you want to monitor. If that is not possible the whole SMB protocol is anyhow a red herring. SMB is mainly a file sharing protocol that supports authentication and in order to access the file locations, the authentication has to be configured properly. If you can't get that provided you have no way to access the server through SMB anyways.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once you have that, you simply configure in your Windows system a file share as is common when accessing remote locations like shared document directories on the company server. Your IT departement should be able to assist you. Then you can write your LabVIEW program on your Windows computer to read the mapped directory.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An alternative is (as James already pointed out), to write a program that runs on your Linux system (either in C or anything you are familiar with or using LabVIEW for Linux) and have it provide you the desired information over your own TCP/IP based protocol. But that is quite possibly even less of an option as it requires you to install an executable on that Linux computer AND possibly might require a firewall configuration exception on that server for the TCP/IP port you want to use for that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If neither of these two options is a possibility you have basically given an impossible task and need to talk with your project manager about alternative routes!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2017 13:26:24 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Protocol-SMB/m-p/3648448#M1024565</guid>
      <dc:creator>rolfk</dc:creator>
      <dc:date>2017-06-21T13:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: Protocol SMB</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Protocol-SMB/m-p/3649818#M1025024</link>
      <description>&lt;P&gt;Merci pour ton aide.&lt;/P&gt;
&lt;P&gt;Dès que je fait les testes, je te communique les résultats.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 08:42:49 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Protocol-SMB/m-p/3649818#M1025024</guid>
      <dc:creator>MezianiOussama</dc:creator>
      <dc:date>2017-06-23T08:42:49Z</dc:date>
    </item>
  </channel>
</rss>

