Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
daq-and-datalogging:documents:usb-1208ls-vbnet-examples [2023/06/14 04:19] – Scandiwebdaq-and-datalogging:documents:usb-1208ls-vbnet-examples [2023/07/28 01:01] (current) – Arthur Brown
Line 1: Line 1:
-====== Python for Windows Continuous Background with Device Discovery ======+====== VB.NET Examples for the USB-1208LS, Modified from the Universal Library ======
  
-The following Python for Windows example demonstrates device discovery and a continuous background acquisition. +**Hardware:**  USB-1208LS
  
-Once started, the acquisition is monitored using the get status function that returns total count and buffer index position. Data is retrieved from the device buffer when it is more than half full (index > half). When this happens, it transfers data from the device buffer to the user buffer. The acquisition loop continues to monitor the index and when it rolls over to zero, transfers data from the upper half of the device buffer. It continues to do this back-n-forth or ping-ponging between the low and upper halves. +**Problem:**
  
-The data is automatically scaled to volts via the ScaleData feature. This requires the use of the functions scaled_win_buf_alloc to allocate memory and scaled_win_buf_to_array to transfer the data. The ScaleOption.ScaleData informs the AInScan function that the ScaleData feature is in use. For simplicity, only one row of data is printed each time the buffer is transferred.+I'm looking for USB-1208LS Microsoft Visual Basic dot net examples.
  
-To install the Python for Windows support, copy the following URL into your browser and follow the instructions provided. +I would like it if they would demonstrate reading/writing to the digital ports, writing to the analog outputs and reading data from the analog inputs both in background and foreground mode.
-https://github.com/mccdaq/mcculw+
  
-This example was built using Python 3.8.5 and PyCharm. The code module is provided via a download link at the end of this article.+**Solution:**
  
 +Attached to this article is a zip file containing a set of examples that meets the above requirements. Download the zip file and extract the contents to your hard drive.
 +
 +For other MCC products or other languages, please search this knowledge base.
  
  
 **Attachments**\\  **Attachments**\\ 
-[[ https://files.digilent.com/resources/measurement-computing/Reference Attachments/a_in_scan_background_discovery.py | a_in_scan_background_discovery.py]]+[[ https://files.digilent.com/reference-attachments/VBNet2005.zip | VBNet2005.zip]]