LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

MIL/Gov UFF file spec

I am looking for a Universal File Format (UFF) file specification document, or a Labview translator.
0 Kudos
Message 1 of 6
(3,484 Views)
Hello Jim,

There is no translator that I am aware of but you can quite simply parse the data yourself. LabVIEW allows you to work with either ASCII, binary, or datalog files. In this case, you can use simple ASCII files and then parse each line using the scan from string function as you read it. I don't know which UFF you are using. If we use this UFF-58 (http://www.lanl.gov/projects/damage_id/data/uff_type58.txt) as an example, line 7 gives you the data type and then just use a selector to choose the correct parsing for the data starting on line 12 (which holds the data values).

So for example, case 1 on that page works out to

Case Type Precision Spacing Format
-------------------------------------------------------
1 real single even 6E13.5

I hope this he
lps...
Dafna
0 Kudos
Message 2 of 6
(3,480 Views)
Dafna
Sorry for this being in the real-time forum. It is a LV general question. Thanks for your response. This is binary data from an ADOCS box, so unfortunately, it is not ASCII viewable.
Jim
0 Kudos
Message 3 of 6
(3,480 Views)
Hi Jim,

Since you mentioned that this should be a LabVIEW General question, I'll go ahead and recategorize it. Your links to this post and subscriptions should continue to function as before.

Regards,
Wilbur Shen
Web Support and Operations
National Instruments
0 Kudos
Message 4 of 6
(3,480 Views)
Jim,

I agree with Dafna. However, since you say that it is a binary file, you will need the specification to decifer it and that is what you are looking for. Do you know which specification it is? That will be the first issue to solve.

Randy Hoskin
Applications Engineer
National Instruments
http://www.ni.com/ask
0 Kudos
Message 5 of 6
(3,480 Views)
 
The UFF file info can be found at http://www.sdrl.uc.edu/uff/uff.html
 
The Sound and Vibration Toolkit 5.0 and the Sound and Vibration Measurement Suite 5.0 offers LabVIEW VIs to read and write UFF58 files. 

Feroz

 

 

0 Kudos
Message 6 of 6
(3,147 Views)