LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to set the fundamental frequency of NI-DAQmx Simulated Devices

Hi,

 

Situation: I do not have the DAQ device now. but I want to test the software with the target device. In NI Max I created a simulated device for the target hardware. The objective is to acquire and analyze the analog inputs with 60 Hz fundamental frequency. My program has multiple queues combined with event handler and message handling queue. One queue acquire instantaneous measurements, one queue calculates rms value, and one queue calculates active and reactive powers. Also, the fundamental frequency of the signal should be detected as well.  

 

Question: How I can have 60 Hz signals at the simulated device? 

 

I tries multiple methods but each one has an issue.

 

Set sampling rate to 6kHz , buffer size to 100, number of samples to 100 and sample per channel to 500. The signal has 60 Hz and detected frequency is correct but the buffer overflows. I've played with different values for sampling rate, buffer size and number of samples but something will be wrong. Low number of samples leads to wrong frequency detection, low buffer size causes overflow, high buffer size needs higher sampling rate to simulate 60Hz. 

 

Please help me with the right setting for the simulated hardware. 

 

Thanks,

 

 

 

0 Kudos
Message 1 of 1
(2,186 Views)