Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| daq-and-datalogging:documents:usb-1208ls-vbnet-examples [2023/07/11 05:17] – Scandiweb | daq-and-datalogging:documents:usb-1208ls-vbnet-examples [2023/07/28 01:01] (current) – Arthur Brown | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| - | The following Python for Windows example demonstrates device discovery and a continuous background acquisition. | + | **Hardware: |
| - | 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 | + | I would like it if they would demonstrate reading/ |
| - | https:// | + | |
| - | 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:// | + | [[ https:// |

