Running the _MAIN_.VI sample VI
|
To run the sample application _MAIN_.VI with everything setup the way it is within that VI, take the following steps:
1.) |
Use IniTool.exe - which should be present in the archive from whence the and the LabView sample VI comes - to
create the M201_SP.INI file with a 4-channel ( 0, 1, 4, and 5 ) normal
( multi-channel ) scan. For each channel, you must first select the main channel, and then select 0 for both
the low and high channel. After each setting of the main channel/sub-channel set, you must click the
save the above values to memory now button before proceeding to the next
main channel/sub-channel set.
Also look for the option to change Log scan data to
and set it to memory only. You may also have to change the setting of the COM-port to what you are
using for the M201. Leave all the other settings as they are ( that application loads with default settings ).
Be sure to follow the on-screen instructions in IniTool.exe and set the low and high channel for each channel and then press the
button below the selection boxes to save for each channel that has been modified. For this specific setup, you will first select main
channel 0, and then set low channel to 0, followed by setting high channel to 0 - this channel should already be set that way by default,
but just make sure that it is. Do the same for main channel 1 ( the default for channel 1 is not correct for use with the
sample application included here ). The rest of the channels can be left at their defaults since the defaults is to not
scan any of the others.
After setting up the configuration be sure to use the save and exit button in that application to cause the file
to be saved in your Windows directory which is where the DLL will be looking for it. Upon exit, you will likely be presented with a
screen informing you that the scan interval has also be changed which is because of the number of channels that will be scanned - accept
the changes, allowing the application to close and update the .ini file.
| |
2.) |
Open _MAIN_.VI and press the continuous run button in the main menu, and then press
Initialize
Device. After the initialization is finished ( an LED will appear on the screen during initialization,
and then disappear when the initialization has completed ), you can press the click to start
scanning button and the scan data should display continuously in the two voltage boxes until you press the same scan
button which should have been automatically renamed click here to stop scanning.
| |
3.) |
You can press the Get One Voltage button anytime after initialization, when not scanning, to
read a single voltage with each click of that button, or use the button above it to change the channel that is used by polled mode.
| |
4.) |
Do not stop the continuous run while scanning.
| |
| |
View QuickRef.htm
( internet connection required )
and LabProto.htm for information about interfacing the DLL to
your custom VI, using the VIs provided here as a reference for making the calls into the DLL.
Note:
The two files mentioned above that are included with this archive were created at the same time as this archive and may not be the
most recent. The most recent of those and other files and related information can be accessed from a
Table Of Contents Page
( internet connection required )
at our website.
LVSampStart.htm is a pictorial guide for the usage of _main_.vi
|