LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can i read a rz-file?

it work, but can you explane what the "and" with the 00FFFFF make? and how do i find this constant "00FFFFF"
and the second part is, that i can right readout the string, but i also use typ cast, and what is the type? i can#t see it in your picture
0 Kudos
Message 21 of 23
(762 Views)


@chefcommander wrote:
it work, but can you explane what the "and" with the 00FFFFF make? and how do i find this constant "00FFFFF"
and the second part is, that i can right readout the string, but i also use typ cast, and what is the type? i can#t see it in your picture

The 00FFFFFF is just a plain U32 diagram constant where I changed the format for convenience (these are hard to enter in decimal without making your head spin ;)). Place a numeric diagram constant, change its representation to U32, then right-click ... format&precision and select (hexadecimal, 8 digits, pad with zeroes).

If we read the data as little endian, the four bytes get reversed and the x20 is highest order in the U32 (see string output set to hex display). Logical operations on numerics are done bitwise, so if we do a logical AND of any number with another number containing 00FFFFFF, we are clearing the first eight bits, leaving the other 24 bits unchanged. This is oftern called a masking operation.

For example, the first number in the file is 204C74C4, masking it with 00FFFFFF will turn it into 004C74C4. Masking the entire array will simply replace all x20 with x00. Simple, right?

If you don't wire the type for the typecase, it will cast to a string. That's all we need, so leave the type unwired. 🙂 Notice that my string is set to hex display (right-click) and uses a fixed width font (Courier) font to keep the numers aligned. A proportional font does not look great here.

0 Kudos
Message 22 of 23
(745 Views)
ok thx, now i have the problem that the data are to much. I read the data step by step and write they in an array, but at a point the memory is to smal, so i need an other way to show the complite data in a graph. I think a plot ist the best way, but how can i icrease this plot, when the next data came? so that for the plot i don't need the complite array, only the actual arry an that i will put behinde the plot. is this possible?
0 Kudos
Message 23 of 23
(722 Views)