LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

File Size After WDF to TDMS Conversion

Solved!
Go to solution

I looked at the block diagram of WDF_to_TDMS.vi that you posted. There was a constant of "1" limiting the For Loop to one iteration. You had already extracted the number of blocks so you just need to wire the number of blocks to the (N) terminal of the For Loop. To test it out, I created a shift register to count the number of times the For Loop ran and it matched. See the attached for the changes I made and for the results. I hope this helps.

0 Kudos
Message 11 of 15
(1,110 Views)

Yes, the loop was in the code, awaiting the correct method to access multiple data blocks.  However, just running the loop N (# of data blocks) times does not read the rest of the data blocks.  All it does is read the first data block N times.  (You can see that the output files have identical data repeated N times.)  What we need is a way to tell the Get Properties VI that we are reading something other than the first data block from the WDF file (perhaps by sending it an updated RefNum?).  Then subsequent iterations would append nicely to the TDMS file.

0 Kudos
Message 12 of 15
(1,097 Views)

Using XViewer to read the wdf file provided, it appears the wdf only has one group. Could you verify the number of groups in the wdf file?

0 Kudos
Message 13 of 15
(1,094 Views)

In Xviewer you use the "Toggle History Window" button to bring up all of the different data blocks, and overlay the desired blocks in the current window.  Each one has a start time and block number associated with it, although for the example file (Example File 4Sig_139Blocks.wdf) I don't know why they are labeled in the order -138 through 0000.

0 Kudos
Message 14 of 15
(1,080 Views)
Solution
Accepted by topic author steveh01

Okay, the WDF plugin doesn't access all of the data blocks, but there is a work-around.  Until Yokogawa can fix the plugin, you need to convert the WDF file back to a WVF file (with associated HDR file), then you can use the WVF plugin to view the data or translate the file into a TDMS file.  I am attaching code to show how.  Here are the tools that make the code work:

 

OpenG Libraries
https://www.ni.com/en/support/downloads/tools-network/download.openg-libraries-for-labview.html

 

WDF to WVF Converter

https://y-link.yokogawa.com/YL008/?V_ope_type=Show&Download_id=DL00002358&Language_id=EN

 

WVF Plugin

https://www.ni.com/en/support/downloads/dataplugins/download.yokogawa-dataplugin-for-yokogawa-wvf.ht...

0 Kudos
Message 15 of 15
(1,028 Views)