02-05-2020 11:49 PM
I am stuck in conversion
Solved! Go to Solution.
02-05-2020 11:58 PM
02-06-2020 01:02 AM
Hi Tushar,
generic answer to your generic question: use StringToU8Array to convert your string into individual "decimal" values…
As CButcher said: provide examples of your input string and the expected output values for those input examples!
02-06-2020 06:04 AM
And to remove almost all doubt, it is best to create a VI with your example data as a default value of the input control as well as an indicator for the data type you want out and preferably some text stating what the output's value should be.
02-06-2020 08:01 AM
@Tusharvp4 wrote:
I am stuck in conversion
What a poor message. That is like calling someone and saying your lost, and never bother telling them where you've been or where you are trying to go to.
I recommend reading http://www.catb.org/~esr/faqs/smart-questions.html
02-06-2020 10:57 AM - edited 02-06-2020 11:33 AM
The term "hex string" is not defined, so we cannot answer the question without additional information. Same for "decimal values". Both are cosmetic descriptions that don't tell us anything about the underlying datatype.
What is your definition of "Hex string":
What is your definition of "Decimal values":
07-27-2020 12:02 AM
Thank you for replying..
Now I completed my project..
But at actual i am facing another problem.
I am reading data through serial port..But while reading those data...I am losing some bytes in sequentially..
I have been tried to configure a configure port with many online solution...
07-27-2020 01:48 AM
Hi Tusharvp,
again you failed in providing information needed to help you!
Why don't you name the device you are communicating with?
Why don't you provide a manual describing the communication scheme/parameters of your device?
Why do you disable that TermChar?
Does the device really sends exactly 1000 bytes?
Why don't you handle errors (instead of just deleting them)?
Why is Baudrate a string control?
Why don't you use AutoCleanup?
Why don't you attach real code (instead of just an image of code)?
07-27-2020 03:26 AM - edited 07-27-2020 03:27 AM
Why don't you name the device you are communicating with..?
I am communicating RS-232 based Instrument..
Why don't you provide a manual describing the communication scheme/parameters of your device?
I am attaching protocol here
Why do you disable that TermChar..?
I put terminal character enables at false..& end to read property at None.. Is it correct to use..??
Does the device really sends exactly 1000 bytes?
Device is sending 595 bytes..But i am reading 1000 bytes...
Why don't you handle errors (instead of just deleting them)?
for running an instrument error free..
Why is Baudrate a string control?
Sorry..Baudrate not in string control..I am converting it in decimal too...
Why don't you use AutoCleanup?
Why don't you attach real code (instead of just an image of code)
07-27-2020 03:33 AM
Hi Tusharvp,
according to your image each messages starts with 254/FE and ends with 253/FD: why don't you use a TermChar of FD when receiving data?
@Tusharvp4 wrote:
Why don't you provide a manual describing the communication scheme/parameters of your device?
I am attaching protocol here
You didn't attach the full protocol, just a small portion of it…
@Tusharvp4 wrote:
Why don't you handle errors (instead of just deleting them)?
for running an instrument error free..
You don't "run an instrument error free" when you just delete all errors…