02-26-2009
06:41 PM
- last edited on
03-07-2025
07:12 PM
by
Content Cleaner
I read this article "
NI-DAQmx Simulated Devices"
( https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x0PxCAI&l=en-US#toc2 ). And I am trying the example code "
Cont Acq&Graph Voltage-Int Clk VI ", follow exactly what the webpage say.
However, I don't understand
Please help , thanks
02-26-2009 08:55 PM
I don't quite understand your questions. I have no idea what you mean by stopping the simulated device. You don't stop a simulated device any more than you stop an actual device. You can remove it from MAX but as long as it is present, you can call that device in VI Logger, the MAX test panels, or a LabVIEW VI. Nor is it necessary to create any type of task in MAX in order to use a device (real or simulated) in LabVIEW.
You use a simulated device in place of an actual device when you are trying to develop some code before the hardware arrives. You can use it to validate that the tasks you create are valid and don't generate any errors.
02-26-2009
09:33 PM
- last edited on
03-07-2025
07:13 PM
by
Content Cleaner
The data logging task begins. Data from the NI-DAQmx simulated device is displayed in the Real Time Data viewer.
e. Click Stop task.
02-26-2009 09:40 PM
02-26-2009 09:50 PM - edited 02-26-2009 09:55 PM
The part that really make me confuse is how I can know the simlated device is running in my expected way?
I set only 6 out of 14 channels in the MAX to receive inputs, but all the channels in the example code can receive the stimulated signal. Why ??
Does any stimulation begin button in MAX??? I see a panel asked me how many data point to generate or continuously generate. I set only generate 1000 point. The example code can detect signal after the 1000 data points have been generated? Why ?? 😉
Thanks 🙂
02-26-2009 10:28 PM
Whatever task you create in MAX can be changed, modified, or ignored in a program you write. Personally, I never create or save a task in MAX and just specify everything in my LabVIEW program. That way, you don't have to look in two different places to understand what is going on. NI has given you the option of doing either or both. The LabVIEW program is not using the saved task at all. It is creating a new one.
You are assuming that the simulatio of an analog output effects the simulation of an analog input. Not at all true. The simulation of a generated signal has no relationship at all to an acquisition of a simulated signal. In the real world, you could connect the analog output to an analog input but since no real signal exists and you have no real hardware to physically connect pins, that is obviously not possible with simulated hardware.