<?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 Rif.: Executable file didn't work with multiple devices communicate using serial port in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Executable-file-didn-t-work-with-multiple-devices-communicate/m-p/4252586#M1237487</link>
    <description>&lt;P&gt;Hi hw,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/704146"&gt;@hw23&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I kind of solved the problem by accident. The executable starts running automatically when you click it. And channeltest.exe looks like stucked somewhere. But when I click stop and terminate the program, and run it with channels has be selected by last run, it works as expected.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;…&lt;/P&gt;
&lt;P&gt;Anyone has idea how to click exe file without running it after click?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I also recommend to stop and start by learning proper "THINK DATAFLOW!"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Your description sounds like your exe does NOT properly close its frontpanel when you stop it - do you know any other executable that behaves this way?&lt;/LI&gt;
&lt;LI&gt;Your description sounds like your executable has the toolbar (including the Abort and Run button) visible: do you know any other executable with an UI working this way?&lt;/LI&gt;
&lt;LI&gt;Your description sounds like you don't OBEY DATAFLOW when reading the FP controls and so you need to fill the controls with proper values, stop the program and start it again to read their values correctly…&lt;/LI&gt;
&lt;LI&gt;Your description sounds like there is no proper error handling ("stucked somewhere")…&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;So please: learn to THINK DATAFLOW and implement proper UI handling (next to error handling)!&lt;/P&gt;</description>
    <pubDate>Wed, 31 Aug 2022 08:21:39 GMT</pubDate>
    <dc:creator>GerdW</dc:creator>
    <dc:date>2022-08-31T08:21:39Z</dc:date>
    <item>
      <title>Executable file didn't work with multiple devices communicate using serial port</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Executable-file-didn-t-work-with-multiple-devices-communicate/m-p/4249011#M1236059</link>
      <description>&lt;P&gt;I wrote a program to communicate with several devices using RS485 protocol. The VI works, I can read-write to each devices as I wanted. However, when I build it up to executable, apparently, none of RS485 devices have communications. I wrote another VI to control one of devices, and both VI and executables are OK. It looks like the executables are unable to control multiple RS485 devices, but why?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried to install VISA run time engine, didn't solve the problem. Attached is VI that tests all devices and VI that tests only one devices.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Urgent, please help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 13 Aug 2022 03:17:28 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Executable-file-didn-t-work-with-multiple-devices-communicate/m-p/4249011#M1236059</guid>
      <dc:creator>hw23</dc:creator>
      <dc:date>2022-08-13T03:17:28Z</dc:date>
    </item>
    <item>
      <title>d 回复： Executable file didn't work with multiple devices communicate using serial port</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Executable-file-didn-t-work-with-multiple-devices-communicate/m-p/4249012#M1236060</link>
      <description>&lt;P&gt;Both VI and executable are tested on same computer.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Aug 2022 03:24:12 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Executable-file-didn-t-work-with-multiple-devices-communicate/m-p/4249012#M1236060</guid>
      <dc:creator>hw23</dc:creator>
      <dc:date>2022-08-13T03:24:12Z</dc:date>
    </item>
    <item>
      <title>Rif.: Executable file didn't work with multiple devices communicate using serial port</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Executable-file-didn-t-work-with-multiple-devices-communicate/m-p/4249022#M1236064</link>
      <description>&lt;P&gt;In your EXE, is the VISA Resource drop down list populated? I mean, can you see the list of available COMs?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Moreover, your first loop (the loop you use to wait the user to click Start) doesn't have a time control. You should use a Wait function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Finally, put some debug indicator in order to understand if your code stucks in some points.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Aug 2022 10:21:49 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Executable-file-didn-t-work-with-multiple-devices-communicate/m-p/4249022#M1236064</guid>
      <dc:creator>andcadev</dc:creator>
      <dc:date>2022-08-13T10:21:49Z</dc:date>
    </item>
    <item>
      <title>Rif.: Executable file didn't work with multiple devices communicate using serial port</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Executable-file-didn-t-work-with-multiple-devices-communicate/m-p/4249033#M1236069</link>
      <description>&lt;P&gt;Do you mean both applications fight for the same serial port for different devices on that serial port?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Aug 2022 13:13:34 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Executable-file-didn-t-work-with-multiple-devices-communicate/m-p/4249033#M1236069</guid>
      <dc:creator>santo_13</dc:creator>
      <dc:date>2022-08-13T13:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Executable file didn't work with multiple devices communicate using serial port</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Executable-file-didn-t-work-with-multiple-devices-communicate/m-p/4249063#M1236083</link>
      <description>&lt;P&gt;Besides missing a bunch of sub-vi's so we really can't troubleshoot it. That code architecture is so bad, the fact that it works at all in all surprises me. You have flat sequences inside of flat sequences and even a stacked sequence inside of a flat sequence inside of a flat sequence...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to go through some tutorials and understand what they mean by Data Flow programming.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But in general multiple devices on an RS-485 bus is nothing special unless it uses some other communication protocol like Modbus.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Aug 2022 01:08:36 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Executable-file-didn-t-work-with-multiple-devices-communicate/m-p/4249063#M1236083</guid>
      <dc:creator>RTSLVU</dc:creator>
      <dc:date>2022-08-14T01:08:36Z</dc:date>
    </item>
    <item>
      <title>Rif.: Executable file didn't work with multiple devices communicate using serial port</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Executable-file-didn-t-work-with-multiple-devices-communicate/m-p/4249071#M1236088</link>
      <description>&lt;P&gt;I have dropdown list, so call the COMs. The VI works fine. It is just the exe. I don't know how to debug exe while it is running, it is not supposed to run with Labview installed.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Aug 2022 04:17:17 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Executable-file-didn-t-work-with-multiple-devices-communicate/m-p/4249071#M1236088</guid>
      <dc:creator>hw23</dc:creator>
      <dc:date>2022-08-14T04:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: Executable file didn't work with multiple devices communicate using serial port</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Executable-file-didn-t-work-with-multiple-devices-communicate/m-p/4249072#M1236089</link>
      <description>&lt;P&gt;The sub Vis are based on Modbus. The device sent binaries, and Labview only process ascii.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, it is just a code to test that my devices are under control work. The VI with multiple devices works but not the exe. It looks like Labview needs to install something for exe to work on multiple devices. I wonder if someone has the experience.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just heard the multiple device exe works in my friend computer, but we don't know who ever did something extra.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Aug 2022 04:26:10 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Executable-file-didn-t-work-with-multiple-devices-communicate/m-p/4249072#M1236089</guid>
      <dc:creator>hw23</dc:creator>
      <dc:date>2022-08-14T04:26:10Z</dc:date>
    </item>
    <item>
      <title>Rif.: Executable file didn't work with multiple devices communicate using serial port</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Executable-file-didn-t-work-with-multiple-devices-communicate/m-p/4249073#M1236090</link>
      <description>&lt;P&gt;I think it is sort of like what you guessed. But I have given each of devices a address#, so that they won't fight each other. The weird thing is Vi with multiple devices works, until it has been compiled to exe. Both Vi and exe of single device works. The serial port communication is used modbus to process binary to ascii.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, a friend has run the multiple device exe in his computer, it works. I wonder, I need to add something to Labview run time engine..... I just installed Visa run time engine, it ididn't solve my problem.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Aug 2022 04:35:25 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Executable-file-didn-t-work-with-multiple-devices-communicate/m-p/4249073#M1236090</guid>
      <dc:creator>hw23</dc:creator>
      <dc:date>2022-08-14T04:35:25Z</dc:date>
    </item>
    <item>
      <title>Rif.: Executable file didn't work with multiple devices communicate using serial port</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Executable-file-didn-t-work-with-multiple-devices-communicate/m-p/4249080#M1236092</link>
      <description>&lt;P&gt;Full VI (with sub Vis) are attached.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Aug 2022 08:40:11 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Executable-file-didn-t-work-with-multiple-devices-communicate/m-p/4249080#M1236092</guid>
      <dc:creator>hw23</dc:creator>
      <dc:date>2022-08-14T08:40:11Z</dc:date>
    </item>
    <item>
      <title>Rif.: Executable file didn't work with multiple devices communicate using serial port</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Executable-file-didn-t-work-with-multiple-devices-communicate/m-p/4249384#M1236211</link>
      <description>&lt;P&gt;I kind of solved the problem by accident. The executable starts running automatically when you click it. And channeltest.exe looks like stucked somewhere. But when I click stop and terminate the program, and run it with channels has be selected by last run, it works as expected.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I though it might take some time to for the computer to commute to the port, so I add a frame to wait 1min after I click start. I started the program, choose the right port from port list, then click "start", and the computer will wait a minute to process next frame, still, it didn't work. Looks like the exe won't figure out the port no matter what at first run.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyone has idea how to click exe file without running it after click?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 10:50:14 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Executable-file-didn-t-work-with-multiple-devices-communicate/m-p/4249384#M1236211</guid>
      <dc:creator>hw23</dc:creator>
      <dc:date>2022-08-16T10:50:14Z</dc:date>
    </item>
    <item>
      <title>Rif.: Executable file didn't work with multiple devices communicate using serial port</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Executable-file-didn-t-work-with-multiple-devices-communicate/m-p/4249395#M1236217</link>
      <description>&lt;P&gt;Another solution is to put the port control inside the while frame.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 11:41:11 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Executable-file-didn-t-work-with-multiple-devices-communicate/m-p/4249395#M1236217</guid>
      <dc:creator>hw23</dc:creator>
      <dc:date>2022-08-16T11:41:11Z</dc:date>
    </item>
    <item>
      <title>Rif.: Executable file didn't work with multiple devices communicate using serial port</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Executable-file-didn-t-work-with-multiple-devices-communicate/m-p/4249514#M1236242</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/704146"&gt;@hw23&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Another solution is to put the port control inside the while frame.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I am going to strongly recommend that you STOP RIGHT THERE and learn how to program using dataflow.&amp;nbsp; Properly programmed, you probably would never have encountered this issue.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 18:22:23 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Executable-file-didn-t-work-with-multiple-devices-communicate/m-p/4249514#M1236242</guid>
      <dc:creator>billko</dc:creator>
      <dc:date>2022-08-16T18:22:23Z</dc:date>
    </item>
    <item>
      <title>Rif.: Executable file didn't work with multiple devices communicate using serial port</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Executable-file-didn-t-work-with-multiple-devices-communicate/m-p/4252583#M1237485</link>
      <description>&lt;P&gt;Wonder where were you when I first posted the problem? It is alway easy to criticize the other than give advices.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have posted the problem for quite some time and I beleive alot of people read the codes. Some of nice people gave me advices but didn't figure out why. I really appreciate the advices.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are many levels of developers, and they are seeking helps to solve their problems.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am posting my solution trying to help whoever/which level that may encounter the problem I had and save their times.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are not humble, you are just mean. There are many levels of developers. The worst is the mean level.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2022 08:03:57 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Executable-file-didn-t-work-with-multiple-devices-communicate/m-p/4252583#M1237485</guid>
      <dc:creator>hw23</dc:creator>
      <dc:date>2022-08-31T08:03:57Z</dc:date>
    </item>
    <item>
      <title>Rif.: Executable file didn't work with multiple devices communicate using serial port</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Executable-file-didn-t-work-with-multiple-devices-communicate/m-p/4252586#M1237487</link>
      <description>&lt;P&gt;Hi hw,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/704146"&gt;@hw23&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I kind of solved the problem by accident. The executable starts running automatically when you click it. And channeltest.exe looks like stucked somewhere. But when I click stop and terminate the program, and run it with channels has be selected by last run, it works as expected.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;…&lt;/P&gt;
&lt;P&gt;Anyone has idea how to click exe file without running it after click?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I also recommend to stop and start by learning proper "THINK DATAFLOW!"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Your description sounds like your exe does NOT properly close its frontpanel when you stop it - do you know any other executable that behaves this way?&lt;/LI&gt;
&lt;LI&gt;Your description sounds like your executable has the toolbar (including the Abort and Run button) visible: do you know any other executable with an UI working this way?&lt;/LI&gt;
&lt;LI&gt;Your description sounds like you don't OBEY DATAFLOW when reading the FP controls and so you need to fill the controls with proper values, stop the program and start it again to read their values correctly…&lt;/LI&gt;
&lt;LI&gt;Your description sounds like there is no proper error handling ("stucked somewhere")…&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;So please: learn to THINK DATAFLOW and implement proper UI handling (next to error handling)!&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2022 08:21:39 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Executable-file-didn-t-work-with-multiple-devices-communicate/m-p/4252586#M1237487</guid>
      <dc:creator>GerdW</dc:creator>
      <dc:date>2022-08-31T08:21:39Z</dc:date>
    </item>
    <item>
      <title>Rif.: Executable file didn't work with multiple devices communicate using serial port</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Executable-file-didn-t-work-with-multiple-devices-communicate/m-p/4252639#M1237510</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/704146"&gt;@hw23&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Wonder where were you when I first posted the problem? It is alway easy to criticize the other than give advices.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have posted the problem for quite some time and I beleive alot of people read the codes. Some of nice people gave me advices but didn't figure out why. I really appreciate the advices.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are many levels of developers, and they are seeking helps to solve their problems.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am posting my solution trying to help whoever/which level that may encounter the problem I had and save their times.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are not humble, you are just mean. There are many levels of developers. The worst is the mean level.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I'm not being mean.&amp;nbsp; Sometimes advice hurts, like when the doctor says you are overweight and need to lose x amount of weight.&amp;nbsp; The answer to poor programming isn't to add more poor programming.&amp;nbsp; I felt the need to be abrupt, like an intervention.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2022 12:55:32 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Executable-file-didn-t-work-with-multiple-devices-communicate/m-p/4252639#M1237510</guid>
      <dc:creator>billko</dc:creator>
      <dc:date>2022-08-31T12:55:32Z</dc:date>
    </item>
  </channel>
</rss>

