LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Bug? advanced TDMS on sbRIO9636

Solved!
Go to solution

Hi everyone,

 

the problem comes from a sbRIO system using VxWorks. If I want to log the measurement data on a USB storage, it takes to long to sue the normal TDMS VIs, as it take much time for saving the file. So I decided to use advanced TDMS VI to save measurement data. This is how I did on sbRIO:

advanced TDMS.png

 

It doesn't bring any problem if I have 533 data pro channel. However, if the number of data more than 534, the channels in the TDMS data is not arranged correctly. You may find out how it looks like from my attachment. I have also tried the interleaved data layout and it works, but not comparable with the speed of the non-interleaved data layout.

 

So far Ihave no better idea how I can save data (20000 Simples x16 Chn) on a VxWork system correctly. Any suggestions will be welcome!

 

I've posted the situation in another post from my last question, so I just want to explain the situation better in this way.

 

Wilbur

0 Kudos
Message 1 of 5
(2,898 Views)

Hi,

 

Your advanced TDMS VI is correct. You can verify this by running your VI on your Windows(not the VxWorks target), the VI creates it 4 channels which has 8000 values each, it should be working just as what you've programmed.

 

But I also found the "non_interleaved_sb_RIO.tdms" file from your attachment is un-readable/corrupted, I cannot read the 4 channels' values successfully from your file.

 

I understand that your VI should generate equivalent files on both Windows and VxWorks, but the corruption make me think whether your were writing the file on some bad sectors in your USB storage. Could you please try writing the tdms file to other partition(e.g., the tmp folder on VxWorks) ?

 

 

0 Kudos
Message 2 of 5
(2,880 Views)

Hi,

 

the TDMS file is the one using this vi generated on the sbRIO VxWorks system. It does not change the corruption whether I use another USB or using a SD card on the sbRIO.

 

There is no problem if I use this vi on Windows!

0 Kudos
Message 3 of 5
(2,878 Views)

uh...I know this might not help to solve your issue.

 

I ran your VI on a clean installed VxWorks-9012 target just now, and didn't find any corruption in file. All the channels and the values are fine. I ran this VI with LabVIEW 2012 + Real Time Module + NI-RIO 12.0.

 

So I would recommend you can try to re-install your VxWorks if possible, or you can try if other VxWorks targets can reproduce the same issue?

0 Kudos
Message 4 of 5
(2,866 Views)
Solution
Accepted by topic author wilburwu

Hi,

 

This is a unknown problem of the advanced TDMS VIs. It seems that this "new" feature does not quite compatible with the sbRIO vXWorks.

 

As solution I use the normal TDMS v1.0 which is perfectly done on a sbRIO.

0 Kudos
Message 5 of 5
(2,795 Views)