Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Open old LabView data in *.sdf format

I am using Measurement Studio 2012 (VB.net - Visual Studio 2010) to analyze test data but running into a snag opening our existing test data files.  The LabView VI that is used to collect the data was written in an old version that LabView 2011 cannot open to see further definition.

 

I saw some reference to MSD Standard Data File.  Using VB.net FileOpen command I am able to open the file and retrieve the header information which includes test information, number of events, event names, number of parameters, parameter names, sample rates, units, etc.  But when it comes to reading the actual data I cannot seem to get it to work.

 

Does anyone know of a converter or library that I could use to open these files?  Or maybe a method that would work better than FileOpen?  Any help would be greatly appreciated!

 

This is what I have, which is based off of some old VB6 code:

 

FileOpen(1, ThisFileName, OpenMode.Binary, OpenAccess.Read)
FileGet(1, rawarray, ThisFileInfo.headerlength + 1)
FileClose(1)
'THE ARRAY WAS SAVED IN CHUNKS AT THE CHART UPDATE RATE.
ReDim structuredarray(ThisFileInfo.Scans, 1)
ReDim structuredarray(1, ThisFileInfo.ParameterCount)
eventoffset = 0
For e = 1 To ThisFileInfo.EventCount
     For c = 0 To (thisevent(e).Scans - 1) Step thisevent(e).ChunkSize
          For p = 0 To ThisFileInfo.ParameterCount - 1
               For s = 1 To thisevent(e).ChunkSize
                    structuredarray(eventoffset + c + s, p + 1) = rawarray(eventoffset * ThisFileInfo.ParameterCount + c * ThisFileInfo.ParameterCount + p * thisevent(e).ChunkSize + s)
               Next s
          Next p
Next c
eventoffset = eventoffset + thisevent(e).Scans
Next e

 

Thanks!

0 Kudos
Message 1 of 2
(4,517 Views)

@cosine4 wrote:

 The LabView VI that is used to collect the data was written in an old version that LabView 2011 cannot open to see further definition.

 



You can always post on the Version Conversion message board.

0 Kudos
Message 2 of 2
(4,510 Views)