Appendix A - Using the Data Acquisition (DAQ) Simulator
Learning to program in Visual Basic and DAQ, like most worthwhile endeavors, is inefficient and requires effort and time. The paradox of learning is that you learn the most when you make mistakes.
The simulator allows you to work on exercises even though the hardware is not available. Therefore you can complete your exercises outside the laboratory and use the DAQ hardware only to verify your error free programs.
To use the simulator, browse the EmantVB2005 folder and look for the simulator program called LightApp.exe Click on the program to start the simulator.
Your simulator must be running before you run your own program.
-
To change the analog inputs, adjust the sliders
-
To operate the switch, click on the switch.
-
The LEDs will turn on / off according to your program.
The following information is needed from exercise 5
When you are using the DAQ module, you need the Emant300 class. To use the simulator just add the line DAQ.Simulation = True between creating the Emant300 object and Emant300.Open method (add the highlighted line)
Dim DAQ As Emant300 = New Emant300
DAQ.Simulation = True
DAQ.Open()
When you have access to the DAQ hardware, either comment out the Simulation line using ' or set the property to False and your program will use the hardware
' DAQ.Simulation = True
or
DAQ.Simulation = False
If you have created your own DAQ solution using the EMANT300 hardware and you wish to create a simulator for your system, a Sim300 component is available for you to do so. Please email for information.
The software simulator is only available for .NET languages and not for LabVIEW.
DAQ & Visual Basic Page 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37