08-20-2024 11:22 AM
This is my file, could you please check it for me? Thank you very much.
08-20-2024 11:28 AM - edited 08-20-2024 11:29 AM
@M0906961 wrote:
This is my file, could you please check it for me? Thank you very much.
Please do a "save for previous", 2020 or below, and attach again. I currently cannot open VIs saved in LabVIEW 2023. I am guessing that some of your diagram constants have the wrong representation.
08-20-2024 11:37 AM
You try it, I will save it as the 2020 version
08-20-2024 12:18 PM
You are reading the data as I32 instead of U8. The representation of the constant wired to the read function is incorrect.
Note that my code still needs some tweaks, because some peaks wrap around. It is not entirely clear how to fix that yet.
08-20-2024 12:44 PM
How do I fix my program? Thank you.
08-20-2024 01:33 PM - edited 08-20-2024 01:39 PM
As a very first step, you need to change the representation of that U8 diagram constant (right-click...representation...U8). You should also learn what the representation means!
As a second step, we need to correct for the wrapping and I think I found reasonable solution. See attached.
Seems to work well, even for messy data such as 223.dat
08-20-2024 07:41 PM
@M0906961 wrote:
@Bob Schor, Thanks for your reply, I will add more knowledge in this area. The file I'm using cannot be uploaded here. Thank you.
I'm not sure what you mean by "file ... cannot be uploaded here". I assume you mean you tried, but got an error message that says "you cannot attach at (something) file", because the file "extension" was not accepted. The answer is to "zip" up the file, as .zip files are allowed. Here's one (reasonable) way to do this:
Note that Altenbach managed to partially deconstruct your .dat file by looking at the "picture" you sent of (part of) the file. A number of us (including me) have successfully analyzed "unknown" data files and deduced a probable description of the data formats that were written in some (unknown, binary) format. This is precisely what you are asking us to do -- we need you to send us example data and we'll try to "reverse-engineer it" for you.
Bob Schor
Bob Schor
08-20-2024 08:38 PM
Oh sorry !! I forgot about the zip file, I have the sample file from here. I'm attaching the link here to put the file directly. I'm afraid that won't be good.
Thank you.
08-20-2024 08:53 PM
It seems to me that if you want us to "work for you" (without pay) to help you to open some data files, the least we can expect is that you'd do the work of providing the data (files) you want us to figure out how you can use them using LabVIEW. Now, if you were offering to hire one of us at normal consulting rates ...
Bob Schor
08-20-2024 10:59 PM
I'm just here to discuss LabVIEW, thank you for your kindness.