High-Speed Digitizers

cancel
Showing results for 
Search instead for 
Did you mean: 

HWS file error when not starting with Ch 0

Hello,

 

I used the "niScope EX Save to File - HWS Low Level - Single Channel Stream.vi" as my starting point and added 8 channels for a 5105 card. Although this is a complex Queue-based vi, it works fine as long as my RAID is fast enough.

 

However, we have need to take data from channels 4 to 7 and not start with Ch 0. When I do this, my LabVIEW HWS reader does not see any data, nor does the MATLAB code I have written to read our HWS files.

 

Looking at the file in HDFView, I see that the data starts in vector0 and not vector1, as when I record Channels 0 to 3.

 

Perhaps I need to use the HDF5 LabVIEW code to force the writing to a different location in the HDF file?

 

Thanks for your help.

 

 

0 Kudos
Message 1 of 5
(6,170 Views)

John,

 

Would you mind posting the code you are currently having issues with?

James K.
National Instruments
Applications Engineer
0 Kudos
Message 2 of 5
(6,161 Views)

Hello,

 

I was out of the office Mon. and Tues. I took out a section that just collects one 5105 card in a steaming, continuous collect mode. This is part of a much bigger VI and I included the “Helper Aps” folder that has all the sub-VIs for that larger app. There are more sub-VIs than you need for “5105 Cont Collect.vi”, but it should run once you tell it where the sub-VIs are. Included is a quick-look reader I use to look at the data.

 

The data file Ch_0_to_3_5105-0.hws can be read, but the Ch_4_to_7_5105-0.hws file cannot.

 

Thank you for your help.

 

0 Kudos
Message 3 of 5
(6,144 Views)

John,

 

Can we try isolating this down to a smaller section of code that still reproduces the problem?  

James K.
National Instruments
Applications Engineer
0 Kudos
Message 4 of 5
(6,130 Views)

While I was cleaning up my code, I was able to fix my problem. Thank you for your interest.

0 Kudos
Message 5 of 5
(6,079 Views)