Pictorial Usage Guide  for  _main_.vi.
1 - 5load / initialized  6 - 10single conversion  11 - 13scanning 
click any image below to zoom  ( about zoom )   |   click any link above to find out more about each group

  load and initialize
1 the main VI
2 continuous run
3 running
4 initialize
5 green = success
 
  set channel and get one conversion 
6 set poll chan
7 wait
8 success
9 get conversion
10 conversion result
 
  scanning
11 start scanning
12 wait to start
13 scan running





































































 

About Zooming

Click any image with your mouse to zoom, and a full-size image  ( read below for more information on image sizing )  will display in your browser. After viewing the image, click your browser's  Back  button to return to this page.

It should be noted that your browser may automatically scale the zoomed image in order to fit it within the browser window. This may happen if either your browser windows is not displayed full screen size, or if you have a low resolution screen setting such as 800x600 or less. If the browser rescales the image, passing the mouse pointer over the image will usually present you with either a menu, icon, or some other option that can be used to scale the image to full size.

Top of page





































































 

load and initialize

What the images show -

1.)  The  _main_.vi  that will be used in the examples. Note the other files that were also in the archive - of particular interest is  READ_1st_LV.htm,  which should be read before doing anything. If you haven't yet thoroughly read  READ_1st_LV.htm,  do so now, then load  _main_.vi

2.)  After loading  _main_.vi  click the  continuous run  button.

3.)  The red LED should remain lit the entire time you are doing the excercises described in this document.

4.)  Click the  show initialization  button. Notice that a big   WAIT   LED appears and a windows message box is presented, showing the current configuration that the DLL will be using. The sample application will attempt to find a  M201_SP.INI  in the windows directory and load the configuration from that. If the .INI file is not found, it will load default values.

You must use the  IniTool.exe  to create the correct configuration file that will both access the correct COM port on your PC and properly use the sample application. Be sure to read  READ_1st_LV.htm  and create the correct  M201_SP.INI  configuration file if you haven't already done so.

To continue, with the initialization, click the  OK  button in the box that shows the configuration.

5.)  Once successfully initialized the LED beside the  show initialization  button will turn green.

Top of page





































































 

single conversion

What the images show -

1.)  Select the main channel. If a multiplexer is connected, a sub-channel can also be selected.

2.)  Anytime a channel is changed, the LED will flash to indicate that you must press the  Set Polled Chan  button.

3.)  After the channel is set, the LED beside the button will turn green.

4.)  Click the  Get One Voltage  button. Notice that a big   WAIT   LED appears, and the button also shows a wait message until the call to get the voltage has returned.

5.)  Upon success, the voltage will be displayed in the table of channels/sub-channels.

Top of page





































































 

scanning

What the images show -

1.)  Click the  click to start scanning  button and then wait for the big   WAIT   LED to turn off.

2.)  Note that the  click to start scanning  button has changed to a  click to stop scanning  button which will stop the scan if clicked.

3.)  The voltages will appear in the table of channels/sub-channels.


note:  If you followed the instructions in  READ_1st_LV.htm  to create the correct  M201_SP.INI  configuration file, the scan will display data for the channels as shown





































































 

scanning

After initializing, you can begin scanning. If you've setup everything according to the instructions in  READ_1st_LV.htm,  pressing the  click to start scanning  button should begin the scan and display the voltages within the two boxes. You should press the  click here to stop scanning  button when you wish to end the scan. Be sure to end the scan before closing the application or attempting to use any of the other buttons on the main panel.

As you may have noticed when using  IniTool.exe,  there is an option to cause the DLL to send the scan data either to memory where an application can read it  ( as is done in this VI ),   send the data to a log file, or send it to both memory and a log file.

Click any image to zoom, and then your browser  BACK  arrow to return to this page.

Top of page





































































 

read a single voltage

Once initialized, and while not scanning, the M201 is considered to be in  polled mode where you can perform any I/O operation as well as read a single voltage at any time.

Click any image to zoom, and then your browser  BACK  arrow to return to this page.

Top of page