LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Ask how to open some files

This is my file, could you please check it for me? Thank you very much.

0 Kudos
Message 11 of 25
(468 Views)

@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.

0 Kudos
Message 12 of 25
(464 Views)

You try it, I will save it as the 2020 version

0 Kudos
Message 13 of 25
(457 Views)

You are reading the data as I32 instead of U8. The representation of the constant wired to the read function is incorrect.

 

altenbach_0-1724174268945.png

 

 

Note that my code still needs some tweaks, because some peaks wrap around. It is not entirely clear how to fix that yet.

0 Kudos
Message 14 of 25
(434 Views)

How do I fix my program? Thank you.

0 Kudos
Message 15 of 25
(428 Views)

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.

 

altenbach_0-1724178648924.png

 

Seems to work well, even for messy data such as 223.dat

 

altenbach_1-1724178775726.png

 

 

 

0 Kudos
Message 16 of 25
(425 Views)

@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:

  • Create a folder, give it a name that makes sense (such as "DAT file").
  • Copy your ".dat" file into that folder.
  • Right-click the folder, choose "Send To:", "Compressed (zipped) folder".
  • Attach the resulting "DAT file.zip".

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

0 Kudos
Message 17 of 25
(409 Views)

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.

0 Kudos
Message 18 of 25
(401 Views)

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

0 Kudos
Message 19 of 25
(395 Views)

I'm just here to discuss LabVIEW, thank you for your kindness.

0 Kudos
Message 20 of 25
(388 Views)