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-3 [2023/07/05 09:21] – Scandiweb | daq-and-datalogging:documents:ulx-for-ni-labview-3 [2023/07/28 00:51] (current) – Arthur Brown | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Getting | + | ====== Getting |
| In part 2, we enhanced the VI we created in part 1 by adding the ability to acquire data at a steady rate, display the data in a stripchart, save the data to a log file, and notify the operator if is there is an error. | In part 2, we enhanced the VI we created in part 1 by adding the ability to acquire data at a steady rate, display the data in a stripchart, save the data to a log file, and notify the operator if is there is an error. | ||
| Line 12: | Line 12: | ||
| Here is where we left of in part 2; our Block Diagram and Front Panel looked like this: | Here is where we left of in part 2; our Block Diagram and Front Panel looked like this: | ||
| - | {{https:// | + | <WRAP centeralign> |
| - | {{https:// | + | {{https:// |
| + | </ | ||
| + | |||
| + | <WRAP centeralign> | ||
| + | {{https:// | ||
| + | </ | ||
| **Scaling** | **Scaling** | ||
| Line 42: | Line 47: | ||
| Let’s start by making our While Loop wider. | Let’s start by making our While Loop wider. | ||
| - | {{https:// | + | <WRAP centeralign> |
| + | {{https:// | ||
| + | </ | ||
| Since everything we’re to do is in this loop, then that is the portion shown. | Since everything we’re to do is in this loop, then that is the portion shown. | ||
| Line 72: | Line 79: | ||
| Your diagram should look like this: | Your diagram should look like this: | ||
| - | {{https:// | + | <WRAP centeralign> |
| + | {{https:// | ||
| + | </ | ||
| Here is our Front Panel, running with the new changes: | Here is our Front Panel, running with the new changes: | ||
| - | {{https:// | + | <WRAP centeralign> |
| + | {{https:// | ||
| + | </ | ||
| Note that it looks about the same as it did before, but the data is 200 times what it was originally and so are the Y axis labels on the chart. | Note that it looks about the same as it did before, but the data is 200 times what it was originally and so are the Y axis labels on the chart. | ||
| Line 95: | Line 106: | ||
| Your block diagram and front panel should like this: | Your block diagram and front panel should like this: | ||
| - | {{https:// | + | <WRAP centeralign> |
| + | {{https:// | ||
| + | </ | ||
| To simulate the pressure sensor, use a variable power supply, one that can output from 0 to 5VDC. If you have not already done so, attach the output of the power supply to Channel 0 (CH0H) of the USB-1608G. | To simulate the pressure sensor, use a variable power supply, one that can output from 0 to 5VDC. If you have not already done so, attach the output of the power supply to Channel 0 (CH0H) of the USB-1608G. | ||
| Line 122: | Line 135: | ||
| Lastly, to complete the error handling, while we could add an additional Simple Error.VI, we can make our block diagram more efficient if we keep only the original one with its settings. | Lastly, to complete the error handling, while we could add an additional Simple Error.VI, we can make our block diagram more efficient if we keep only the original one with its settings. | ||
| - | {{https:// | + | <WRAP centeralign> |
| + | {{https:// | ||
| + | </ | ||
| To detect the operation of the digital bit (DIO0), connect it to a digital volt meter, and use the terminal GND for your meter’s ground. | To detect the operation of the digital bit (DIO0), connect it to a digital volt meter, and use the terminal GND for your meter’s ground. | ||
| Line 129: | Line 143: | ||
| A view of the completed and running Front Panel: | A view of the completed and running Front Panel: | ||
| - | {{https:// | + | <WRAP centeralign> |
| + | {{https:// | ||
| + | </ | ||
| As we have seen in all three parts of this article, it is easy to use NI LabVIEW with Measurement Computing hardware to measure analog signals, manipulate the data and control digital IO. This is just a simple example of what you can do with tools such as these. | As we have seen in all three parts of this article, it is easy to use NI LabVIEW with Measurement Computing hardware to measure analog signals, manipulate the data and control digital IO. This is just a simple example of what you can do with tools such as these. | ||

