Code testing without DAQ Hardware

조회 수: 4 (최근 30일)
Scott
Scott 2012년 1월 27일
댓글: Joseph Schmitz 2014년 2월 24일
Is there a way to test/develop daq code without any available hardware (including 'winsound'). My students have access to virtual machines which do not have sound cards available. I would like them to be able to have some sort of "fake" analog input.
A kind of virtual experiment would be the ultimate but anything even a bunch of zeros would work. Ideally I would supply some sort of dynamic waveform which they would acquire (sample with DAQ type setting of input range and sampling freq) and process as if in the lab performing an experiment. Then they could show up in lab with more functional code and actually do the experiment with real hardware a bit more efficiently.
This is an instrumentation and dynamic systems lab (MATLAB, Simulink and QuaRC based) with everything from thermocouples and vibrating structures to QBOTS...
Thanks in advance...
Scott
  댓글 수: 1
bym
bym 2012년 1월 27일
In my experience, the interfacing of the daq to the host program is where the 'rubber meets the road' and can't be simulated to any great benefit. Labview can 'simulate' a lot of their data acquisition devices, but I almost never use that functionality. A quick search of the internet turned up a US$20 thermocouple device. Is that a possibility?

댓글을 달려면 로그인하십시오.

채택된 답변

Rob Graessle
Rob Graessle 2012년 1월 27일
NI-DAQmx and the Measurement & Automation Explorer will allow you to create a simulated device. In MATLAB, the simulated device will appear just as if it was a real device, but it would return "fake" data.
  댓글 수: 1
Joseph Schmitz
Joseph Schmitz 2014년 2월 24일
I have attempted to do this with a NI compactDAQ device. I experience an issue where i can see the DAQ (simulated) hardware but cannot interact with it. I have not found a way to actually get the simulated DAQ device to begin an acquisition.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Walter Roberson
Walter Roberson 2012년 1월 27일
In theory you could write a device driver which claimed to be a sound device (or A/D converter) and which extracted the samples from a file.
I don't think it would be especially fun to do that. :(

카테고리

Help CenterFile Exchange에서 Data Acquisition Toolbox Supported Hardware에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by