Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| daq-and-datalogging:documents:ulx-for-ni-labview-1 [2023/07/05 09:18] – Scandiweb | daq-and-datalogging:documents:ulx-for-ni-labview-1 [2023/07/28 20:29] (current) – Arthur Brown | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Getting | + | ====== Getting |
| Measurement Computing offers programming support for NI LabVIEW by way of using ULx. Included with the ULx installation is a collection of sample programs you can use and learn from to perform all manner of functions. | Measurement Computing offers programming support for NI LabVIEW by way of using ULx. Included with the ULx installation is a collection of sample programs you can use and learn from to perform all manner of functions. | ||
| Line 16: | Line 16: | ||
| Now wire the Create Channel.VI' | Now wire the Create Channel.VI' | ||
| + | <WRAP centeralign> | ||
| {{https:// | {{https:// | ||
| + | </ | ||
| Next, we will add a simple way to display the value read from the USB-1608G. | Next, we will add a simple way to display the value read from the USB-1608G. | ||
| + | <WRAP centeralign> | ||
| {{https:// | {{https:// | ||
| + | </ | ||
| Also notice there is a numeric display on the front panel. | Also notice there is a numeric display on the front panel. | ||
| Line 26: | Line 30: | ||
| The next step is to tell the Create Channel.VI what physical channel of the USB-1608G to measure. Hover your mouse’s cursor over the Create Channel.VI, then move it over the Physical Channel pin, when the cursor changes to the wiring tool, right click on the pin, and select Create >> Control. | The next step is to tell the Create Channel.VI what physical channel of the USB-1608G to measure. Hover your mouse’s cursor over the Create Channel.VI, then move it over the Physical Channel pin, when the cursor changes to the wiring tool, right click on the pin, and select Create >> Control. | ||
| + | <WRAP centeralign> | ||
| {{https:// | {{https:// | ||
| + | </ | ||
| And your Front Panel will look like this: | And your Front Panel will look like this: | ||
| + | <WRAP centeralign> | ||
| {{https:// | {{https:// | ||
| + | </ | ||
| All you need do now is click on the physical channels combo box and select Dev1/Ai0 to select channel 0 of the USB-1608G, and click on the run button to acquire a sample and display it. | All you need do now is click on the physical channels combo box and select Dev1/Ai0 to select channel 0 of the USB-1608G, and click on the run button to acquire a sample and display it. | ||
| Line 37: | Line 44: | ||
| If all ran correctly, your Front Panel should look something like this: | If all ran correctly, your Front Panel should look something like this: | ||
| + | <WRAP centeralign> | ||
| {{https:// | {{https:// | ||
| + | </ | ||
| You can enhance this VI by adding error handling, a while loop, iteration timing, writing the data to file, etc. but here is where we will leave this VI, to be continued in Part 2. Save this VI to your computer as we will add to it in part 2. | You can enhance this VI by adding error handling, a while loop, iteration timing, writing the data to file, etc. but here is where we will leave this VI, to be continued in Part 2. Save this VI to your computer as we will add to it in part 2. | ||

