<?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: Automate CLI commands from a Linux Environment using RS232 Serial Port with the use of Basic Write and Read VISA functions. in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Automate-CLI-commands-from-a-Linux-Environment-using-RS232/m-p/1682474#M598317</link>
    <description>&lt;P&gt;Hello Ealmeida,&lt;/P&gt;
&lt;P class="MsoNoSpacing"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="MsoNoSpacing"&gt;Would you be able to provide the TestStand sequence and VI you are using; at the moment it is difficult to troubleshoot the issue from just the TestStand Report.&lt;/P&gt;
&lt;P class="MsoNoSpacing"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="MsoNoSpacing"&gt;Eric&lt;/P&gt;</description>
    <pubDate>Wed, 24 Aug 2011 20:26:39 GMT</pubDate>
    <dc:creator>Eric_L</dc:creator>
    <dc:date>2011-08-24T20:26:39Z</dc:date>
    <item>
      <title>Automate CLI commands from a Linux Environment using RS232 Serail Port with the use of Basic Write and Read VISA functions.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Automate-CLI-commands-from-a-Linux-Environment-using-RS232/m-p/1677600#M597356</link>
      <description>&lt;P&gt;I have to read the output of a Linux OS boot from a unit under test (via a serial RS232 prt), then trigger a write, based on a particular string being&amp;nbsp;read from a buffer (read). There are 25 commands that I have to execute (write) where I have to read the responses of each command and compare the output to make sure the command(s) executed properly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to use the Basic Read and Write VISA functions from the LabView tools and I am having no luck.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2011 20:40:06 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Automate-CLI-commands-from-a-Linux-Environment-using-RS232/m-p/1677600#M597356</guid>
      <dc:creator>ealmeida</dc:creator>
      <dc:date>2011-08-19T20:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Automate CLI commands from a Linux Environment using RS232 Serial Port with the use of Basic Write and Read VISA functions.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Automate-CLI-commands-from-a-Linux-Environment-using-RS232/m-p/1677690#M597373</link>
      <description>&lt;P&gt;Can you provide us with some details?&amp;nbsp; Any error messages?&amp;nbsp; A VI that we can look at?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Saying "I am having no luck" doesn't give us any clue as to where we can start to help you.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2011 21:42:56 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Automate-CLI-commands-from-a-Linux-Environment-using-RS232/m-p/1677690#M597373</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2011-08-19T21:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Automate CLI commands from a Linux Environment using RS232 Serial Port with the use of Basic Write and Read VISA functions.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Automate-CLI-commands-from-a-Linux-Environment-using-RS232/m-p/1677748#M597383</link>
      <description>&lt;P&gt;I have attached a document on what I am trying to do. I am using the attached VI to try and get the just the login at this point. I am not very good at LabView so please forgive me for my ignorance. I am looking for an out line that I can try and get this working...&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2011 22:28:13 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Automate-CLI-commands-from-a-Linux-Environment-using-RS232/m-p/1677748#M597383</guid>
      <dc:creator>ealmeida</dc:creator>
      <dc:date>2011-08-19T22:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Automate CLI commands from a Linux Environment using RS232 Serial Port with the use of Basic Write and Read VISA functions.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Automate-CLI-commands-from-a-Linux-Environment-using-RS232/m-p/1677774#M597386</link>
      <description>&lt;P&gt;The first thing I see is that your VI is all out of whack.&amp;nbsp; You took the Basic Serial example and swapped things around in a way that doesn't make sense and won't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp; You configure and open the serial port.&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp; You check the # of bytes and read the port.&amp;nbsp; Well that is going to be zero because you just opened it.&lt;/P&gt;
&lt;P&gt;3.&amp;nbsp; You write something to the port.&lt;/P&gt;
&lt;P&gt;4.&amp;nbsp; You wait a bit.&lt;/P&gt;
&lt;P&gt;5.&amp;nbsp; Then you close the port.&amp;nbsp; So if you did get any response from the command you wrote, you've just lost it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Look at the Basic Read Write serial example again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then look at the Advanced Serial Read Write.&amp;nbsp; That is a better example in a lot of ways because it does a serial configuration before the loop.&amp;nbsp; Then it does read and write in a loop.&amp;nbsp; Then it only closes the port after you hit the stop button.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2011 23:20:38 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Automate-CLI-commands-from-a-Linux-Environment-using-RS232/m-p/1677774#M597386</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2011-08-19T23:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Automate CLI commands from a Linux Environment using RS232 Serial Port with the use of Basic Write and Read VISA functions.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Automate-CLI-commands-from-a-Linux-Environment-using-RS232/m-p/1677926#M597424</link>
      <description>&lt;P&gt;Besides what Ravens had to say, you have a long, long way to go. You have done nothing about the steps you have to run once the login prompt is detected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've done this numerous times for linux and RT OS's and what you need to implement is a basic state machine. There are shipping examples to help you get started.&lt;/P&gt;</description>
      <pubDate>Sat, 20 Aug 2011 21:15:43 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Automate-CLI-commands-from-a-Linux-Environment-using-RS232/m-p/1677926#M597424</guid>
      <dc:creator>Dennis_Knutson</dc:creator>
      <dc:date>2011-08-20T21:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: Automate CLI commands from a Linux Environment using RS232 Serail Port with the use of Basic Write and Read VISA functions.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Automate-CLI-commands-from-a-Linux-Environment-using-RS232/m-p/1679488#M597771</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you able to successfully use the basic serial read and write example code?&amp;nbsp; Try sending just the basic *IDN? command, and see if you can read that back.&lt;/P&gt;
&lt;P&gt;If that works out for you, also take a look at the advanced read and write example.&amp;nbsp; We can incoporate that with a state machine to read and write a series of commands.&amp;nbsp; &lt;A href="http://zone.ni.com/devzone/cda/tut/p/id/7595" target="_self"&gt;Here is a tutorial on state machines&lt;/A&gt; if you are unfamiliar with them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lisa&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2011 22:25:56 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Automate-CLI-commands-from-a-Linux-Environment-using-RS232/m-p/1679488#M597771</guid>
      <dc:creator>lis@jiang</dc:creator>
      <dc:date>2011-08-22T22:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Automate CLI commands from a Linux Environment using RS232 Serail Port with the use of Basic Write and Read VISA functions.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Automate-CLI-commands-from-a-Linux-Environment-using-RS232/m-p/1679640#M597796</link>
      <description>Sorry, but the *IDN? command has nothing at all to do with a linux os.</description>
      <pubDate>Tue, 23 Aug 2011 02:55:37 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Automate-CLI-commands-from-a-Linux-Environment-using-RS232/m-p/1679640#M597796</guid>
      <dc:creator>Dennis_Knutson</dc:creator>
      <dc:date>2011-08-23T02:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Automate CLI commands from a Linux Environment using RS232 Serial Port with the use of Basic Write and Read VISA functions.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Automate-CLI-commands-from-a-Linux-Environment-using-RS232/m-p/1681228#M598086</link>
      <description>&lt;P&gt;I made my state machine and it works pretty good via the VI interface.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now when inserting the VI (Read and Write) inbetween a Initialize VI and Close VI I get several errors that are enclosed. This is from a TestStand environment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The other issue is that how do I go about searching the complete output Read String for a substring or parameter within the Read Back string? Can that be done in TestStand and if so how does one go about that?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2011 00:16:40 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Automate-CLI-commands-from-a-Linux-Environment-using-RS232/m-p/1681228#M598086</guid>
      <dc:creator>ealmeida</dc:creator>
      <dc:date>2011-08-24T00:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Automate CLI commands from a Linux Environment using RS232 Serial Port with the use of Basic Write and Read VISA functions.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Automate-CLI-commands-from-a-Linux-Environment-using-RS232/m-p/1682474#M598317</link>
      <description>&lt;P&gt;Hello Ealmeida,&lt;/P&gt;
&lt;P class="MsoNoSpacing"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="MsoNoSpacing"&gt;Would you be able to provide the TestStand sequence and VI you are using; at the moment it is difficult to troubleshoot the issue from just the TestStand Report.&lt;/P&gt;
&lt;P class="MsoNoSpacing"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="MsoNoSpacing"&gt;Eric&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2011 20:26:39 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Automate-CLI-commands-from-a-Linux-Environment-using-RS232/m-p/1682474#M598317</guid>
      <dc:creator>Eric_L</dc:creator>
      <dc:date>2011-08-24T20:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Automate CLI commands from a Linux Environment using RS232 Serial Port with the use of Basic Write and Read VISA functions.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Automate-CLI-commands-from-a-Linux-Environment-using-RS232/m-p/1682478#M598318</link>
      <description>&lt;P&gt;Ok. I will zip this up for you and enclose it. I am at a dead end here and I have been trying everything imaginable to first find out what the Failed Flag is within the log file and secondly trying to figure out how to search the expected response for particular strings within it...&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2011 20:34:01 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Automate-CLI-commands-from-a-Linux-Environment-using-RS232/m-p/1682478#M598318</guid>
      <dc:creator>ealmeida</dc:creator>
      <dc:date>2011-08-24T20:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: Automate CLI commands from a Linux Environment using RS232 Serial Port with the use of Basic Write and Read VISA functions.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Automate-CLI-commands-from-a-Linux-Environment-using-RS232/m-p/1684178#M598627</link>
      <description>&lt;P&gt;Hello Ealmeida,&lt;/P&gt;
&lt;P class="MsoNoSpacing"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="MsoNoSpacing"&gt;The tests are all failing at the moment because you are comparing all the outputs to “abc”. I would recommend processing the string in the Labview and passing a pass or fail out to TestStand. The string comparison and processing would be much easier to do in the Labview environment than passing it back into TestStand.&lt;/P&gt;
&lt;P class="MsoNoSpacing"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="MsoNoSpacing"&gt;Eric&lt;/P&gt;
&lt;P class="MsoNoSpacing"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2011 23:43:56 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Automate-CLI-commands-from-a-Linux-Environment-using-RS232/m-p/1684178#M598627</guid>
      <dc:creator>Eric_L</dc:creator>
      <dc:date>2011-08-25T23:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Automate CLI commands from a Linux Environment using RS232 Serial Port with the use of Basic Write and Read VISA functions.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Automate-CLI-commands-from-a-Linux-Environment-using-RS232/m-p/1686576#M599140</link>
      <description>&lt;P&gt;Hi Eric. I am not sure on how I would do any compare for a substring within an output string, from a VI prespective.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With that said, I am trying to use the "String Value Test" within TestStand to go ahead and read the output, then search the output from a string.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) Write command = ping -c&amp;nbsp; 10 169.254.100.3&lt;/P&gt;
&lt;P&gt;2) Output =&lt;/P&gt;
&lt;P&gt;ping -c 10 169.254.100.3\r PING 169.254.100.3 (169.254.100.3) 56(84) bytes of data.\r 64 bytes from 169.254.100.3: icmp_seq=1 ttl=30 time=36.1 ms\r 64 bytes from 169.254.100.3: icmp_seq=2 ttl=30 time=32.0 ms\r 64 bytes from 169.254.100.3: icmp_seq=3 ttl=30 time=32.0 ms\r 64 bytes from 169.254.100.3: icmp_seq=4 ttl=30 time=27.9 ms\r 64 bytes from 169.254.100.3: icmp_seq=5 ttl=30 time=60.0 ms\r 64 bytes from 169.254.100.3: icmp_seq=6 ttl=30 time=56.6 ms\r 64 bytes from 169.254.100.3: icmp_seq=7 ttl=30 time=52.0 ms\r 64 bytes from 169.254.100.3: icmp_seq=8 ttl=30 time=48.0 ms\r 64 bytes from 169.254.100.3: icmp_seq=9 ttl=30 time=32.0 ms\r 64 bytes from 169.254.100.3: icmp_seq=10 ttl=30 time=60.0 ms\r \r --- 169.254.100.3 ping statistics ---\r &lt;EM&gt;&lt;STRONG&gt;10 packets transmitted, 10 received, 0% packet loss&lt;/STRONG&gt;&lt;/EM&gt;, time 9036ms\r rtt min/avg/max/mdev = 27.958/43.700/60.049/12.257 ms\r [root@XN1003-03EF28 ~]#&lt;/P&gt;
&lt;P&gt;3) Now I want to search that output to make sure I get: &lt;EM&gt;&lt;STRONG&gt;10 packets transmitted, 10 received, 0% packet loss&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The String Value Test in TestStand is designed to do this but I cannot get it to work. I set the Limits and Data Source to the appropriate values and it fails every time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is TestStand and Labview the correct tools to do this basic function or is TCL/TK the best thing for this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would assume NI toolset to be the best but after waisting all this time and money on seats, I am second guessing at this time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have any guidance here, please let me know and thanks so much for your help in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ealmeida﻿&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2011 12:57:00 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Automate-CLI-commands-from-a-Linux-Environment-using-RS232/m-p/1686576#M599140</guid>
      <dc:creator>ealmeida</dc:creator>
      <dc:date>2011-08-29T12:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Automate CLI commands from a Linux Environment using RS232 Serial Port with the use of Basic Write and Read VISA functions.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Automate-CLI-commands-from-a-Linux-Environment-using-RS232/m-p/1686742#M599175</link>
      <description>&lt;P&gt;Have you taken either a TestStand or LabVIEW class? The string value test is NOT designed to search for a substring within another string. Where did you get the impression that it does? It is an EQUAL comparison and you obviously do not have equal strings. You would need to use the TestStand Find() function or as mentioned, a function in LabVIEW (i.e. Match Pattern).&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2011 14:28:02 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Automate-CLI-commands-from-a-Linux-Environment-using-RS232/m-p/1686742#M599175</guid>
      <dc:creator>Dennis_Knutson</dc:creator>
      <dc:date>2011-08-29T14:28:02Z</dc:date>
    </item>
  </channel>
</rss>

