Evaluation:
Published: 29.10.2019.
Language: English
Level: Secondary school
Literature: n/a
References: Not used
  • Samples 'Water Tank Project C++', 1.
  • Samples 'Water Tank Project C++', 2.
  • Samples 'Water Tank Project C++', 3.
  • Samples 'Water Tank Project C++', 4.
  • Samples 'Water Tank Project C++', 5.
  • Samples 'Water Tank Project C++', 6.
Extract

Voltage ranges:
● Valve: open=5V, closed=0V
● Overflow: on=5V, off=0V
● Heater: on=5V, off=0V
● Overheat: on=5V, off=0V
● Pump: on=5V, off=0V
● Temperature: 0 °C=-5V, 100 °C=5V
● Level: empty=-5V, full=5V

Following lines shall be included to the program in order to use the connected sensors and actuators:
● Task handle
● DAQmxCreateTask
● DAQmxCreateDIChan
● DAQmxReadDigitalScalarU32
● DAQmxCreateDOChan()
● DAQmxWriteDigitalScalarU32()
● DAQmxCreateAIVoltageChan()
● DAQmxCreateAOVoltageChan()
● DAQmxReadAnalogScalarF64()
● DAQmxWriteAnalogScalarF64()

Author's comment
Atlants