Ravinath Posted February 8, 2018 Report Posted February 8, 2018 hye. anyone know how to convert ASCII into hexadecimal in labview? Quote
Tim_S Posted February 8, 2018 Report Posted February 8, 2018 Hexadecimal as in an array of numeric values? The String to Byte Array primitive does that. Quote
crossrulz Posted February 8, 2018 Report Posted February 8, 2018 You need to be A LOT more specific. I have seen at least 5 different definitions of "hex". Do you have an example of your data coming in and what you expect out? Doing this with a VI whose controls and indicators have set default values is by far the best way. Quote
infinitenothing Posted February 8, 2018 Report Posted February 8, 2018 Maybe: http://zone.ni.com/reference/en-XX/help/371361H-01/lvhowto/hex_display/ Quote
Ravinath Posted February 9, 2018 Author Report Posted February 9, 2018 On 2/8/2018 at 7:26 PM, crossrulz said: You need to be A LOT more specific. I have seen at least 5 different definitions of "hex". Do you have an example of your data coming in and what you expect out? Doing this with a VI whose controls and indicators have set default values is by far the best way. Expand hye. Is the below block diagram is correct? if correct means why i cannot construct it in labview? Quote
crossrulz Posted February 9, 2018 Report Posted February 9, 2018 On 2/9/2018 at 6:19 AM, Ravinath said: Is the below block diagram is correct? Expand How are we supposed to know? You still have not told us what you expect as an output with a specific input. As far as what is different between the two pieces of code you have there, you need to wire up an I32 constant to the top of the Type Cast, not a string. It will adapt. Quote
Jimmy Chretien Posted February 13, 2018 Report Posted February 13, 2018 There's a primitive for that. Cheers, Untitled.vi Quote
FelipeCoutto Posted February 15, 2018 Report Posted February 15, 2018 Adding to @Jimmy Chretien response, if you want the result as a Hex string Quote
Ravinath Posted February 26, 2018 Author Report Posted February 26, 2018 On 2/8/2018 at 7:26 PM, crossrulz said: You need to be A LOT more specific. I have seen at least 5 different definitions of "hex". Do you have an example of your data coming in and what you expect out? Doing this with a VI whose controls and indicators have set default values is by far the best way. Expand hye.actually i need to insert the following hex instruction packet as an input of the uart tx. can you help on this.thanks Quote
crossrulz Posted February 26, 2018 Report Posted February 26, 2018 Do as ensegre shows or just use a normal string constant and set the display style to "Hex". Then type in those hex values. I also highly recommend you set the Visible Items->Display Style to make it more obvious that you are looking at the hex values and not ASCII characters. Quote
Ravinath Posted February 27, 2018 Author Report Posted February 27, 2018 On 2/26/2018 at 8:54 AM, ensegre said: Expand hye...when i create a constant for the byte array to string i can't add the hex inputs.how to create it? Quote
ensegre Posted February 27, 2018 Report Posted February 27, 2018 Right click -> Visible Items -> Radix Left click on d -> Hex Quote
Ravinath Posted March 3, 2018 Author Report Posted March 3, 2018 On 2/27/2018 at 8:46 AM, ensegre said: Right click -> Visible Items -> Radix Left click on d -> Hex Expand hye. if i want to create serial communication in labview to turn on the g15 cube servo is the below construction is correct? im using GD02 rev2.0 driver for the servo. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.