LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help/Guidance on writing to Binary Files to be read by other languages - Varying DataTypes

Solved!
Go to solution

There's also the Excel addin to view TDMS files, supplied by NI themselves:

 

https://www.ni.com/en/support/downloads/tools-network/download.tdm-excel-add-in-for-microsoft-excel....

 

(Note it loads a TDMS file into Excel, you don't view the TDMS directly, and you can't save back TO a TDMS from Excel, but you can view all of the data very easily.)

Message 11 of 15
(407 Views)



@LuminaryKnight wrote:

I created a very simple VI that starts with U32 and increments the U32 and shifts it around.  Each iteration, the incremented value is converted to Single Precision.  I instructed the loop to stop if the previous SGL is equal to the current SGL.  Attached are the final numbers once it hits a repeat value.

LuminaryKnight_0-1738868396742.png

 


 

If you do the counting in U32, and convert to SGL for display it will continue to increment, just not every time. For example after a while it will only increment by 4 every 4th iteration.

 

 

altenbach_0-1738885888471.png

 

 

 

 

I really don't know what "shifts it around" means. I assume you increment in a shift register. Here, a shift register is a single in-place memory location, nothing to do with "shifting" and "around". 😄

0 Kudos
Message 12 of 15
(384 Views)

@altenbach wrote:



I really don't know what "shifts it around" means. I assume you increment in a shift register. Here, a shift register is a single in-place memory location, nothing to do with "shifting" and "around". 😄


It's a new phrase I'm coining.  Cuz you know, a while loop is a roundish circle.  Shift register sits on the edges... so... you shift data around.  Give it time, all the cool kids will be saying it.

0 Kudos
Message 13 of 15
(344 Views)

@LuminaryKnight wrote:

@altenbach wrote:



I really don't know what "shifts it around" means. I assume you increment in a shift register. Here, a shift register is a single in-place memory location, nothing to do with "shifting" and "around". 😄


It's a new phrase I'm coining.  Cuz you know, a while loop is a roundish circle.  Shift register sits on the edges... so... you shift data around.  Give it time, all the cool kids will be saying it.


Data remains in place. You read from the left and overwrite the same memory location on the right.

 

(In computing, a shift is often something very different. Still, I agree that the naming of shift register could have been better, but that was coined well over 40 years ago... 😄 )

0 Kudos
Message 14 of 15
(326 Views)

For anyone who might care how this ended, saving an array of cluster to binary file and then ingesting in a different language (in this case, Python) was actually very doable.  Other developer just parsed the binary file with the datatype structure I gave him and voila. The data matched.  We came up with a unique header for the future in case the data changes which... probably(famous last words)... won't.  I'm sure we ended up reinventing the wheel (TDMS files) but... whatever.  Thanks for all the help.

Message 15 of 15
(204 Views)