04-14-2017 12:52 AM
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.
04-14-2017 09:05 AM
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.
04-14-2017 09:59 AM
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?
04-17-2017 11:41 AM
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.
05-11-2017
02:44 PM
- last edited on
06-16-2025
06:41 PM
by
Content Cleaner
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