Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69272

Digital Channel acquired and saved to TDMS file, Read then search for nth Edge: Efficient Method Recommendation

$
0
0

Hello LabVIEW Community,

 

I am currently working on a project where I need to search for the nth rising edge on a digital channel that I have acquired and saved to a TDMS file.

­

MY CONTEXT:

I used a NI-MIO 6363 to acquire a digital signal. This card does not support NI-HSDIO API as I am told.

I read from the TDMS entire channel as a long 1D array of Booleans, then compute two arrays:

  • One containing indexes of rising edges,
  • The other containing indexes of falling edges,

then if I want the 3rd rising edge, it’s easy: it’s element #3 in the rising array.

The above works in most cases, except if I acquire 1 minute of a 10MHz square wave, my computed transition arrays become too big and cause a computer freeze.

 

SOLUTION #1:

  • I am about to implement this: Update the above code to do the edge index computations by reading chunks instead of the entire channel.

 

POSSIBLE SOLUTION #2?

  • Is there a built-in feature in the TDMS API or in DAQmx that already does this?

 

Could anyone provide guidance?

 

Thank you in advance for your assistance,

 

With Best regards,

 

Rollin


Viewing all articles
Browse latest Browse all 69272

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>