Jump to content
  • 0

Synchronous Record Mode in LabView


Vladdos

Question

I use AD2 as an oscilloscope. Great product for standard applications.
 I need to create a realtime logger based on LabView. Then the problems began. One of them is here https://forum.digilentinc.com/topic/13312-acqmoderecord-in-labview-ad2/#comment-44519. There is no solution.
It is necessary to provide synchronous recording from two analog inputs and one digital ch. I did not find a description of working with the AnalogRecord mode with an infinite recording length in the Digilent Examples LabView folder. I tried to write a VI based on the pyton of the DigitalIn_Record.py example, but did not find the necessary functions in LabView. Older functions do not work with the new version of the SDK. New functions are not described in any way in the WaveForms SDK Reference Manual. New functions do not include any reference to AnalogRecord mode. Is it right to use this mode for continuous data collection?

How to make it work? How to start continuous acquisition? How to ensure synchronization of measurements? What functions can stream data from an AD2 buffer to a PC?

I would be grateful for any help in this matter. thank

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

First I set the record length to 0 and the acqmode to 3.

To read the buffer from the AD2, call the AnalogInStatus function and then the AnalogInStatusRecord function. This tells you how many samples are available. You retrieve them with AnalogInStatusData.

Link to comment
Share on other sites

Thank. Yes, but it doesn’t work correctly. Details here https://forum.digilentinc.com/topic/13312-acqmoderecord-in-labview-ad2/.
 I seem to have found a solution to this problem. When calling the FDwfAnalogInStatusData function from the LV example, four parameters are passed to it. The fourth parameter was incorrectly specified, fixed as on the screen. It seems to work.
Now I'm trying to configure the synchronous start of AnalogIN and DigitalIN using the trigsrcPC source. AcqmodeRecord for both instruments. FDwfAnalogInTriggerSourceSet and FDwfDigitalInTriggerSourceSet are set to trigsrcPC. From the program I call FDwfDeviceTriggerPC. I give the same signal to the inputs. Inputs do not work synchronously. What am I doing wrong? I would be grateful for any help. Thank

read.jpg

ad2ww worked!.vi

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...