LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

OPEN/READ ATTACHED FILE

Solved!
Go to solution

Dear friends,

Anyone can read the attached file (. txt) with LabVIEW? Matlab can?

thanks

0 Kudos
Message 1 of 42
(3,382 Views)
Looks like binary data. Do you have specs on the file format?
0 Kudos
Message 2 of 42
(3,374 Views)

@Prof. Arne Saknussemm wrote:

Matlab can?


 

LabVIEW can read it too! 😄

Looks like a binary file, so we need to know the format. Who wrote the matlab code to read it?

 

0 Kudos
Message 3 of 42
(3,372 Views)

Try this... 😮

 

 

0 Kudos
Message 4 of 42
(3,359 Views)

Dear Friend Knight of NI,

Excuse me my ignorance on LabVIEW.

 

With his tip, I developed the attached  .vi  to open the binary file (1.txt). Still does not work!!!  Any suggestions to improve?

 

I await your valuable help!!!



Thanks

 

 

Download All
0 Kudos
Message 5 of 42
(3,326 Views)

Define work 🙂

 

altenbach's solution will open your file.

 

In order to decode it, we need to know how the file was encoded.  Without that information, we really can't go any further.

 

So, we eagerly await your help in identifying the file format 🙂

0 Kudos
Message 6 of 42
(3,309 Views)

Dear Friend Taki1999,

The attached file (1.txt) is binary. Okay?

thanks

0 Kudos
Message 7 of 42
(3,301 Views)

Not OK.

 


@Prof. Arne Saknussemm wrote:

Dear Friend Taki1999,

The attached file (1.txt) is binary created by <Fill in the Blank> Program using <Fill in the Blank> Protocol where the first N bytes are header information and the packing of structure is X items of Y Bytes with Z endianess. Okay?

thanks


 

0 Kudos
Message 8 of 42
(3,293 Views)

I asked this before, but why can't you simply show us the matlab code that can successfully read the file?

I am sure it can be translated to LabVIEW verbatim (well, that's probably the wrong word here. 🐵

 

(Also, why do you keep attaching the same 2.5MB file? Three times so far! Once is enough!)

0 Kudos
Message 9 of 42
(3,284 Views)

Dear friend Taki1999

The answers will be answered to you SOON! Smiley Happy

 

Thanks

0 Kudos
Message 10 of 42
(3,261 Views)