Jump to content
  • 0

Edit library VIs and read from digital discovery


PeterCo

Question

Hi,

I'm using the digital discovery connected to a function generator.

It has been set up as logic analyzer to sample at 1Mhz, DIN0..7, triggered on a rising edge of DIN0.  For this I followed the flow from DigitalIn_record.py.  Now I want to read the data so I check with DigitalInStatusRecord.  The number of available samples is read with DigitalInStatusData.  For this I edited the latter VI to accept and return rgData to be an "array" of type "array data pointer" of size countofdatabytes. 

First problem seems to be that no data is read back, I only see 0s.  In Waveforms I see the applied signal so hardware is fine.

Second problem is that the trigger config seems incorrect as the device always has the maximum number of samples available since the last read and not since the last trigger event.  I'm reading at 10Hz, triggers come at 5Hz. 

Obviously I need to get problem 1 solved before looking into problem 2.  I might be doing something wrong while editing the DigitalInStatusData.vi.  I've tried several options, got none working though.

Also quite annoying : LV cashes every second time I edit a digilent library VI.

Thanks for any hints.

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...