08-08-2008 11:06 AM
08-08-2008 11:14 AM
You would create a diagram constant of the desired type and wire it to the type input of "read binary file". If you don't get a broken wire, it's legal. 😄
Since you wrote DBL data, you would read it as DBL. Most likely, you need to also specify little endian.
Can you attach a small sample file and tell us what kind of data you expect?
What is your LabVIEW version? I don't see any "bytestream type" input. If your version is ancient, you might not even have the byte order input.
08-08-2008 11:21 AM - edited 08-08-2008 11:21 AM
The Matlab "double" is 64 bits (8 bytes). It doesn't make much sense to use an integer datatype to read a floating point value, so you would use DBL in LabVIEW. The numeric data types table can be found here.
08-08-2008 01:41 PM
08-08-2008 02:02 PM
08-08-2008 02:19 PM - edited 08-08-2008 02:20 PM
08-11-2008 01:28 PM
08-11-2008 01:32 PM
08-11-2008 01:41 PM
Let's assume you already have the terminal for the "data" indicator. SImply right-click in and select "create constant". You'll get a diagram constant of the same type to do whatever you want with it. 😉
FElicia wrote:
By the way, how to create the DBL array connected to the type cast? Is that a constant/indicator/control?