cancel
Showing results for 
Search instead for 
Did you mean: 

Ask how to open some files

M0906961
Member

Re: Ask how to open some files

Message contains an attachment

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

altenbach
Knight of NI

Re: Ask how to open some files


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

M0906961
Member

Re: Ask how to open some files

Message contains an attachment

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

altenbach
Knight of NI

Re: Ask how to open some files

Message contains an image

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.

M0906961
Member

Re: Ask how to open some files

How do I fix my program? Thank you.

altenbach
Knight of NI

Re: Ask how to open some files

Message contains an image Message contains an attachment

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

 

 

 

Bob_Schor
Knight of NI

Re: Ask how to open some files


@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

M0906961
Member

Re: Ask how to open some files

Message contains a hyperlink

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.

Bob_Schor
Knight of NI

Re: Ask how to open some files

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

M0906961
Member

Re: Ask how to open some files

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