<?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 Send Hex string over Modbus to SMC Actuator in Instrument Control (GPIB, Serial, VISA, IVI)</title>
    <link>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Send-Hex-string-over-Modbus-to-SMC-Actuator/m-p/4306443#M85196</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am trying to send a hex string command to multiple holding registers via Modbus to an SMC traverse. I know I need to convert this string to a byte array, but I cant use the "string to byte array" VI because it interprets as ASCII.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have attached the VI with the command inside, I need to pass it to Multiple Holding registers VI.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lazer723_0-1684765778711.png" style="width: 400px;"&gt;&lt;img src="https://forums.ni.com/t5/image/serverpage/image-id/318340i72C9A73F8A705C4B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lazer723_0-1684765778711.png" alt="Lazer723_0-1684765778711.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lazer723_1-1684765975937.png" style="width: 400px;"&gt;&lt;img src="https://forums.ni.com/t5/image/serverpage/image-id/318341iE05F2D588C511C57/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lazer723_1-1684765975937.png" alt="Lazer723_1-1684765975937.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 22 May 2023 14:33:51 GMT</pubDate>
    <dc:creator>Lazer723</dc:creator>
    <dc:date>2023-05-22T14:33:51Z</dc:date>
    <item>
      <title>Send Hex string over Modbus to SMC Actuator</title>
      <link>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Send-Hex-string-over-Modbus-to-SMC-Actuator/m-p/4306443#M85196</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am trying to send a hex string command to multiple holding registers via Modbus to an SMC traverse. I know I need to convert this string to a byte array, but I cant use the "string to byte array" VI because it interprets as ASCII.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have attached the VI with the command inside, I need to pass it to Multiple Holding registers VI.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lazer723_0-1684765778711.png" style="width: 400px;"&gt;&lt;img src="https://forums.ni.com/t5/image/serverpage/image-id/318340i72C9A73F8A705C4B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lazer723_0-1684765778711.png" alt="Lazer723_0-1684765778711.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lazer723_1-1684765975937.png" style="width: 400px;"&gt;&lt;img src="https://forums.ni.com/t5/image/serverpage/image-id/318341iE05F2D588C511C57/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lazer723_1-1684765975937.png" alt="Lazer723_1-1684765975937.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 14:33:51 GMT</pubDate>
      <guid>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Send-Hex-string-over-Modbus-to-SMC-Actuator/m-p/4306443#M85196</guid>
      <dc:creator>Lazer723</dc:creator>
      <dc:date>2023-05-22T14:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Send Hex string over Modbus to SMC Actuator</title>
      <link>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Send-Hex-string-over-Modbus-to-SMC-Actuator/m-p/4306456#M85197</link>
      <description>&lt;P&gt;What would happen if you would change the display format of your string constants to hex display (right-click) and re-enter your data? Similarly, formatting your number as hex is probably incorrect.&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 14:49:31 GMT</pubDate>
      <guid>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Send-Hex-string-over-Modbus-to-SMC-Actuator/m-p/4306456#M85197</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2023-05-22T14:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Send Hex string over Modbus to SMC Actuator</title>
      <link>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Send-Hex-string-over-Modbus-to-SMC-Actuator/m-p/4306462#M85198</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm formatting as Hex initially because I want to be sure that I am sending the exact thing that is in the manual.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I convert the string constant to Hex display and then paste the data in, what would I do with that output?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, The only part of the string that needs to be variable is the (3) Position input where 30000 (300.00 mm e.g) translates to 00 00 75 30.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your help&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT: I see, now I can directly connect the hex string to the String to Byte array and it interprets it correctly. Can this Byte array then be directly sent to the Write Multiple Holding registers VI?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 15:27:27 GMT</pubDate>
      <guid>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Send-Hex-string-over-Modbus-to-SMC-Actuator/m-p/4306462#M85198</guid>
      <dc:creator>Lazer723</dc:creator>
      <dc:date>2023-05-22T15:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: Send Hex string over Modbus to SMC Actuator</title>
      <link>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Send-Hex-string-over-Modbus-to-SMC-Actuator/m-p/4306468#M85199</link>
      <description>&lt;P&gt;Sorry, I am currently not at a computer with LabVIEW, but there is a big difference between:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Hex formatted string, i.e. a string containing exclusively ASCII characters 0..F&lt;/LI&gt;
&lt;LI&gt;A binary string where all values (0..255) are allowed and that looks correct if the display is set to hex display.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;You want #2.&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 15:29:55 GMT</pubDate>
      <guid>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Send-Hex-string-over-Modbus-to-SMC-Actuator/m-p/4306468#M85199</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2023-05-22T15:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Send Hex string over Modbus to SMC Actuator</title>
      <link>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Send-Hex-string-over-Modbus-to-SMC-Actuator/m-p/4306512#M85200</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i understand now. I think I have gotten it to be in the correct format. So the move command is in two steps, Step 3.1 is to write the move settings, and 3.2 is to initiate the move. I have attached a snippet. However, nothing is moving. I should mention that I know I am communicating with it correctly because I am able to Home it through boolean (coil) flags.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lazer723_0-1684774260053.png" style="width: 400px;"&gt;&lt;img src="https://forums.ni.com/t5/image/serverpage/image-id/318355iBD50292913AF4710/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lazer723_0-1684774260053.png" alt="Lazer723_0-1684774260053.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lazer723_1-1684774291462.png" style="width: 400px;"&gt;&lt;img src="https://forums.ni.com/t5/image/serverpage/image-id/318356i4D4927086BD2C6BE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lazer723_1-1684774291462.png" alt="Lazer723_1-1684774291462.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 16:55:03 GMT</pubDate>
      <guid>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Send-Hex-string-over-Modbus-to-SMC-Actuator/m-p/4306512#M85200</guid>
      <dc:creator>Lazer723</dc:creator>
      <dc:date>2023-05-22T16:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: Send Hex string over Modbus to SMC Actuator</title>
      <link>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Send-Hex-string-over-Modbus-to-SMC-Actuator/m-p/4306519#M85201</link>
      <description>&lt;P&gt;This is still a horrible mess.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Please show the display style for all string diagram constant.&lt;/LI&gt;
&lt;LI&gt;Your uninitialized shift register will grow forever because it contain stale data. It should be U8, so wire the default tile&lt;/LI&gt;
&lt;LI&gt;You probably want to cast the position, not format it.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 17:39:34 GMT</pubDate>
      <guid>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Send-Hex-string-over-Modbus-to-SMC-Actuator/m-p/4306519#M85201</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2023-05-22T17:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: Send Hex string over Modbus to SMC Actuator</title>
      <link>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Send-Hex-string-over-Modbus-to-SMC-Actuator/m-p/4306526#M85202</link>
      <description>&lt;P&gt;See if this can give you some ideas....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="altenbach_0-1684778533331.png" style="width: 999px;"&gt;&lt;img src="https://forums.ni.com/t5/image/serverpage/image-id/318358i82546CC25B353BC7/image-size/large?v=v2&amp;amp;px=999" role="button" title="altenbach_0-1684778533331.png" alt="altenbach_0-1684778533331.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 18:02:42 GMT</pubDate>
      <guid>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Send-Hex-string-over-Modbus-to-SMC-Actuator/m-p/4306526#M85202</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2023-05-22T18:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: Send Hex string over Modbus to SMC Actuator</title>
      <link>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Send-Hex-string-over-Modbus-to-SMC-Actuator/m-p/4306536#M85203</link>
      <description>&lt;P&gt;Haha, I wish I could say it wasn't a horrible mess. Just trying to get a proof of concept before I start streamlining. Yes, your example makes a lot more sense. That will result in a 1D array of&amp;nbsp; 8bit bytes, but the Input of the Write Multiple Holding Registers.vi says it normally accepts 1D of 16-bit words as the register values. The controller I am using runs on 8 bit length.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would U8 still be correct?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot for your help&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This snippet didn't result in any movement.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="movev2.png" style="width: 400px;"&gt;&lt;img src="https://forums.ni.com/t5/image/serverpage/image-id/318360i6E46540BA2C0B1DA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="movev2.png" alt="movev2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 19:10:59 GMT</pubDate>
      <guid>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Send-Hex-string-over-Modbus-to-SMC-Actuator/m-p/4306536#M85203</guid>
      <dc:creator>Lazer723</dc:creator>
      <dc:date>2023-05-22T19:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Send Hex string over Modbus to SMC Actuator</title>
      <link>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Send-Hex-string-over-Modbus-to-SMC-Actuator/m-p/4306544#M85204</link>
      <description>&lt;P&gt;Well, you can cast the string to an U16 array equally well. Don't forget to calculate the checksum and append it.&lt;/P&gt;
&lt;P&gt;I did not validate the rest of your strings, so check the manual.&lt;/P&gt;
&lt;P&gt;Notice the red coercion dot at the IO function? If you hover over it with the mouse, what does it say it expects?&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 20:09:23 GMT</pubDate>
      <guid>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Send-Hex-string-over-Modbus-to-SMC-Actuator/m-p/4306544#M85204</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2023-05-22T20:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Send Hex string over Modbus to SMC Actuator</title>
      <link>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Send-Hex-string-over-Modbus-to-SMC-Actuator/m-p/4306889#M85217</link>
      <description>&lt;P&gt;Working!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So after much fiddling I've got it working. There were a few key things that needed to be known. The modbus Write Multiple Holding Registers.vi accepts only a 1D array of 16bit words (essentially two 8 bit bytes put together), simply casting my 8bit array to U16 would only pad each element with an extra 8 bits of zero, when what should be done is to combine each pair of 8 bits into a 16 bit word. So [11,22,33,44] would become [1122,3344] instead of [0011,0022,0033,0044].&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I found it easier to go back to regular strings and loop Hex to 16bitNumber and form an array rather than reshaping the existing U8 array.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This works because the modbus VI actually does a lot of the heavy lifting, it splits each 16 bit word into two U8 bytes before sending it to the device. Also, I needed to remove any preamble to the hex string, (the number of words and number of data elements), and only give the exact values that are to be written to the registers, the modbus vi appends all necessary preamble, and indeed CRC bytes all by itself.&lt;/P&gt;
&lt;P&gt;I found this out by opening up the modbus VIs and went digging.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So in the end here is the snippet that worked. Allowing me to set the speed and position and results in actuator motion. (All this is inside a larger VI that initialises the modbus master etc.)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Move working.png" style="width: 400px;"&gt;&lt;img src="https://forums.ni.com/t5/image/serverpage/image-id/318432i351852552AEC3A21/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Move working.png" alt="Move working.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your help!&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 11:58:33 GMT</pubDate>
      <guid>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Send-Hex-string-over-Modbus-to-SMC-Actuator/m-p/4306889#M85217</guid>
      <dc:creator>Lazer723</dc:creator>
      <dc:date>2023-05-24T11:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Send Hex string over Modbus to SMC Actuator</title>
      <link>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Send-Hex-string-over-Modbus-to-SMC-Actuator/m-p/4307005#M85221</link>
      <description>&lt;P&gt;NO!!!! Just NO!!!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This code is just plain ridiculous! Why format it in normal display in hex format with space delimiters using 3x more momory, just to strip it all out nanoseconds later.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's code that gives exactly the same output as yours!&lt;/P&gt;
&lt;P&gt;(note the correct representation of the controls!)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="altenbach_1-1684960273409.png" style="width: 999px;"&gt;&lt;img src="https://forums.ni.com/t5/image/serverpage/image-id/318462i74B0E5AB9BA402FD/image-size/large?v=v2&amp;amp;px=999" role="button" title="altenbach_1-1684960273409.png" alt="altenbach_1-1684960273409.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You NEED to do a few tutorials and &lt;U&gt;understand the difference&lt;/U&gt; between a hex formatted string using characters 0..F and a binary string where each character can be anything from 00 to FF). You also need to understand the display style of strings.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also note that your FOR loop and shift register is just pure Rube Goldberg code! Compare the two alternatives:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="altenbach_0-1684960222150.png" style="width: 999px;"&gt;&lt;img src="https://forums.ni.com/t5/image/serverpage/image-id/318461i73D1A1B3768E2155/image-size/large?v=v2&amp;amp;px=999" role="button" title="altenbach_0-1684960222150.png" alt="altenbach_0-1684960222150.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also strongly recommend to stay away from stacked sequences. There is a reason they are no longer in the palettes!&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 20:39:14 GMT</pubDate>
      <guid>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Send-Hex-string-over-Modbus-to-SMC-Actuator/m-p/4307005#M85221</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2023-05-24T20:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Send Hex string over Modbus to SMC Actuator</title>
      <link>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Send-Hex-string-over-Modbus-to-SMC-Actuator/m-p/4307015#M85222</link>
      <description>&lt;P&gt;Ah yes. It seems I have a lot to learn about hex strings and 'text' strings and type casting in Labview!&lt;/P&gt;
&lt;P&gt;Sorry, this is my first foray into digital types.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So if I understand correctly, finally, inputting the hex data into a hex-displayed string actually stores the data in binary (a binary string?) rather than ascii, which leaves it free to be easily reinterpreted into any desired numerical representation. And the Type cast block formats the input into the same hex displayed string (binary string?) that is connected to at the output. So the string concatenate block is now in binary string mode as soon as you wire a hex-string to it? Or is it in fact that everything is always in binary string mode but the 'regular' string just displays the binary in ascii. Still not used to the whole non-text string thing, but I think I'm getting there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was also not aware that the Hex to number vi works with arrays as well, that's pretty neat and definitely neutralises my loop.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 22:22:01 GMT</pubDate>
      <guid>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Send-Hex-string-over-Modbus-to-SMC-Actuator/m-p/4307015#M85222</guid>
      <dc:creator>Lazer723</dc:creator>
      <dc:date>2023-05-24T22:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Send Hex string over Modbus to SMC Actuator</title>
      <link>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Send-Hex-string-over-Modbus-to-SMC-Actuator/m-p/4307019#M85223</link>
      <description>&lt;P&gt;The display style of a string is a purely cosmetic property and does not change the actual string data. But yes once a string is in hex display, it know what to do when you enter data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Typecast just blindly does big endian and never generates errors. If you need more control, you can use "flatten to string.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A string is a string is a string. ASCII is just a convention how to interpret bit patterns to alphabetic characters.&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 22:29:23 GMT</pubDate>
      <guid>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Send-Hex-string-over-Modbus-to-SMC-Actuator/m-p/4307019#M85223</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2023-05-24T22:29:23Z</dc:date>
    </item>
  </channel>
</rss>

