12-15-2017 12:58 AM
Thanks a LOT arteitle and jwscs, both helped me
The program is working like a charm, now I only need to know how to broke the string and how to "translate" later
You both deserve my respect.
I'm sending a image of my data and my program.
12-15-2017 12:56 PM
DO NOT enable the termination character! Reread message #16.
With binary data, the termination character (default is line feed hex 0A) can be a legitimate part of the data stream and does not signal the end of the message like it would in a more human readable ASCII format. If you get decimal 10 byte, your read will terminate early and you'll have an incomplete message. The remainder of the incoming 59 bytes will get read at the beginning of the next message.
12-15-2017 10:26 PM - edited 12-15-2017 10:45 PM
Help me once again, guys
How I do this on LabView? (attachment)
I separated the strings and solved the other problems. Only this one is missing.
12-16-2017 08:52 AM - edited 12-16-2017 09:08 AM
@senoura9 wrote:
Help me once again, guys
How I do this on LabView? (attachment)
I separated the strings and solved the other problems. Only this one is missing.
You need to post your actual raw data, not just a picture. The good news is that your picture shows the first 4 bytes as "UU 6" and that is what is expected: 0x55 0x55 0x00 0x36. Most of the remaining bytes are unreadable ASCII characters, so there is nothing for me to analyze.
Since I don't have any "Real" raw data, I'm going to make an educated guess. I made up my own data that I think looks like something you would get. I put -12.015 in the "Data of Main Display" field. This is one way how you can extract that number from the raw data (Main Data field starts at byte 35, array index 34). I'll leave it to you to extract the data from the last two bytes of that field: "Unit" & "Sub Code".
EDIT - Please take RavensFan's & arteitle's advice and disable the termination character. If you look at your manual, "Ohms" has a "Unit Code" of 0x0A. It is VERY likely you will see that character somewhere in your data.
12-16-2017 09:40 AM
RavensFan escreveu:
DO NOT enable the termination character! Reread message #16.
With binary data, the termination character (default is line feed hex 0A) can be a legitimate part of the data stream and does not signal the end of the message like it would in a more human readable ASCII format. If you get decimal 10 byte, your read will terminate early and you'll have an incomplete message. The remainder of the incoming 59 bytes will get read at the beginning of the next message.
I tried a lot to disable this thing on serial port, but every time when I will run the program the termination character is enable......I HATE THIS THING
12-16-2017 09:47 AM
jamiva escreveu:
@senoura9 wrote:
Help me once again, guys
How I do this on LabView? (attachment)
I separated the strings and solved the other problems. Only this one is missing.
You need to post your actual raw data, not just a picture. The good news is that your picture shows the first 4 bytes as "UU 6" and that is what is expected: 0x55 0x55 0x00 0x36. Most of the remaining bytes are unreadable ASCII characters, so there is nothing for me to analyze.
Since I don't have any "Real" raw data, I'm going to make an educated guess. I made up my own data that I think looks like something you would get. I put -12.015 in the "Data of Main Display" field. This is one way how you can extract that number from the raw data (Main Data field starts at byte 35, array index 34). I'll leave it to you to extract the data from the last two bytes of that field: "Unit" & "Sub Code".
EDIT - Please take RavensFan's & arteitle's advice and disable the termination character. If you look at your manual, "Ohms" has a "Unit Code" of 0x0A. It is VERY likely you will see that character somewhere in your data.
Thanks a lot, you are saving my life....sorry for don't send my raw data.....I was too sleepy last night
12-16-2017 09:49 AM - edited 12-16-2017 09:53 AM
"I tried to disable this thing on serial port". Exactly what does that mean? I'm going to guess you tried something in MAX.
You need to disable it in the code. Whatever you do in code is going to override any settings that are defined in MAX.
Turn on context help and hover over the Serial Configure VI. You'll see what all the terminal connections are.
But in this case, you don't even have to do that. You have a True constant wired in and it even has a label that says "Enable Termination Char (T)". The (T) in parentheses is there to tell you what the default value is in the event you have nothing wired to the connection on the subVI.
I wonder what would happen if you click on that boolean constant and change it to False?
12-16-2017 09:51 AM
RavensFan escreveu:
You need to disable it in the code.
Turn on context help and hover over the Serial Configure VI. You'll see what all the terminal connections are.
But in this case, you don't even have to do that. You have a True constant wired in and it even has a label that says "Enable Termination Char (T)". The (T) in parentheses is there to tell you what the default value is in the event you have nothing wired to the connection on the subVI.
I wonder what would happen if you click on that boolean constant and change it to False?
I think it will disable, right? hahahaha Thanks
12-16-2017 09:52 AM - edited 12-16-2017 09:52 AM
Yep!
Good luck. Don't hate it. Just be willing to read and learn.
12-16-2017 10:25 PM
Thanks a LOT for everyone who helped me.
My program is working till now, I'm sending what I did to take a look (I know that maybe I could do something on other way or on a faster way, but it is what I did)
My multimeter battery die right now. If you have any suggestions or tips, just tell me 🙂 🙂
(I think the termination character is fixed)
RAW DATA
5555 0036 4554 3238 3030 2020 3934 3230 3032 3134 302E 3030 2E30 3607 0000 00F7 0600 0B00 0004 0701 0000 0000 0000 0000 0000 0000 DC0D 0000 0000 6F
Answer = 0.011 nF (capacitance data)