updated on 2-22-12
  NEW DLL VERSION 1.5.2012.0


Updated on 01/29/2008

Uncompress install.zip. Install.zip contains detailed instructions
to setup the host computer to connect to M401.

M401dllA.rtf contains the latest Model 401 API documentation for developers.

SWUM401A.rtf is the latest Model 401 software user manual.

M40x.dll is the dll used by applications to access the M401.
Copy M40x.dll to demo application folder or demo source folder if executing from the development enviornment.

M40xVC.exe is the M401 VC++ demo application.
M40xVC.zip is the archive file containing the M401 VC ++ demo application source code.

M40xVB.exe is the M401 VB demo application.
M40xVB.zip is the zipped file containing the M401 VB demo application source code.

Callback.cfg contains configuration settings for selecting the method used by the
demo apps to read data from M40x.dll.

Demo Application Quick Start

1.  Create a new folder on your computer.

2.  Copy M40x.dll, Callback.cfg, M40xVB.exe to
    the new folder.

3.  Read install.doc to setup your computer to 
    connect to M401.

4.  Run M40xVB.

5.  There are 8 slots in the combo box under "Network Setting" 
    for the IP addresses of upto 8 M401s. Each slot is labelled
     with its index 0 = , 1 = , 2 = , ...... 7= ). 
    The demo app can operate upto 8 M401s simultaneously.
    Enter the IP address of the M401 you want to connect to in 
    an empty slot next to its index label(0= 10.1.1.31).
    Click "connect". After connecting, the demo app performs
    offset and fullscale calibration.

6.  After connecting to the M401 select a channel from
    the combo box above the "channel" label and click send.
    Note: only channels 0,1,6,7 are valid in M401. 	

7.  Select internal data rate from the combo box above
   "Dev Rate" and click Send Rate.
    In single channel scanning, the scan rate = internal date rate.
   
    In multi-channel/multi-channel calibration/ external
    multiplexer scanning , the scan rate = 
    (internal data rate)/ (5 x total number of channels).
     
8.  Click Start scan to start single channel scanning. 
    During single channel scanning you can change the channel by
    following step 6. 

9.  Click "Stop scan" to stop scanning. 

10. For multi-channel scanning first select the number of 
    channels from the combo box next to Num chans, then 
    check "Multi-chan Scan:", and click "Start Scan". For 2 channel 
    multi-channel scan, channel 0 and 1 are selected for conversion.
    For 3 channel multi-channel scan, channel 0, 1, 6 are selected
    for conversion . For 4 channel multi-channel scan, channel 
    0, 1, 6, 7 are selected.

11. For multi-channel calibration scanning, first select the number of 
    channels from the combo box next to Num chans, then 
    check "Multi-chan Scan:", then check "Cal Scan", 
    and click "Start Scan". In calibration scan, channel 7 voltage
    is subtracted from all the other selected channels. If the number
    of channels selected is 1 then channel 0, 7 are selected.
    For 2 channels, channel 0,1, 7 are selected. 3 channel
    and 4 channel calibration scan is the same, channel 0,1,6,7 are selected.     	

12. Refer to M401dll.txt for external multiplexer scan.


13. Click Change to Polled Mode to change to polled mode. 
    In polled mode follow step 6 to change channel. Click
    "Get Conv" to get a single conversion on the selected
    channel. Click "Change to Scan Mode" to go back to scan mode.

14. To send digital output, enter the digital output value (0 - 255),
    in the text box above "Digital Output"label , and click "Send".
    Digital output can be sent to the M401 in polled mode or during 
    single channel, multi-channel, multi-channel calibration scan.


15. Check Scan Log File to log scans to a log file. Log files are created
    in the demo app folder and have the IP address of the M401 followed by  
    the scan start time as the filename.			 	

16. The demo application displays the minimum, maximum voltage and the 
    effective number of bits of the selected channel. In multi-channel/
    multi-channel calibration scan the user can select any one of the
    selected channels from the channel selection combo box.

17. Click "Config M401 Settings" to change the M401s IP address, subnet
    mask, gateway address, and DHCP timeout. The AD range is set at the
    factory and must not be changed.

18. Click "Self Test" to check the firmware version and 
    configuration settings.
 
If there are errors during scanning then "Scan Error" is displayed in 
red color in the lower left corner. Click "Scan Error" to get more 
information about the scan error.
    
Version 07.11.2007 and later:

New Features:

For troubleshooting, check "Expanded Error Logging" to log all errors
in the M401, otherwise only very few non-recurring fatal errors will be 
logged to conserve memory.

Check the "Changes.txt" file in the VB and VC source folders for changes in the current version of demo apps.


 
		



Note:
External multiplexer(extended) scanning is available ONLY in polled methods of
reading data from the dll. To configure demo applications for polled
method see instructions in "M401dll.txt" or simple copy the callback.cfg
provided here to demo app folder. The callback.cfg has settings to setup demo
apps for polled method of reading data from the dll. To start extended scan
check Ext. Scan check box before pressing "Start Scan". Press "Ex Scan Setup"
to select channels for extended scan.
