Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| daq-and-datalogging:documents:ulx-for-ni-labview-2 [2023/06/13 14:18] – created Scandiweb | daq-and-datalogging:documents:ulx-for-ni-labview-2 [2023/07/28 00:51] (current) – Arthur Brown | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Getting | + | ====== Getting |
| In part one, we learned how what is the minimum amount of VIs needed to acquire one analog data sample and display it on the NI LabVIEW front panel. | In part one, we learned how what is the minimum amount of VIs needed to acquire one analog data sample and display it on the NI LabVIEW front panel. | ||
| Line 22: | Line 22: | ||
| Here is where we left off: | Here is where we left off: | ||
| - | {{https:// | + | <WRAP centeralign> |
| - | {{https:// | + | {{https:// |
| + | </ | ||
| + | |||
| + | <WRAP centeralign> | ||
| + | {{https:// | ||
| + | </ | ||
| From the Block Diagram, right click anywhere there is white space to pop up the Functions menu. Select Express >> Exec Control >> While Loop. Your cursor will change to this . Place the cursor between and above the two ULx VIs on the block diagram, click and hold your left mouse button down, then drag the cursor until it is to the right and below the data.VI. | From the Block Diagram, right click anywhere there is white space to pop up the Functions menu. Select Express >> Exec Control >> While Loop. Your cursor will change to this . Place the cursor between and above the two ULx VIs on the block diagram, click and hold your left mouse button down, then drag the cursor until it is to the right and below the data.VI. | ||
| - | {{https:// | + | <WRAP centeralign> |
| + | {{https:// | ||
| + | </ | ||
| Plus you will see a ‘Stop’ button on your Front Panel. | Plus you will see a ‘Stop’ button on your Front Panel. | ||
| Line 46: | Line 54: | ||
| To slow the looping down, we will add the Time Delay.VI. | To slow the looping down, we will add the Time Delay.VI. | ||
| - | {{https:// | + | <WRAP centeralign> |
| + | {{https:// | ||
| + | </ | ||
| As you can see, a dialog box pops up with this VI, asking you to set the time delay. | As you can see, a dialog box pops up with this VI, asking you to set the time delay. | ||
| Line 64: | Line 73: | ||
| - | In its current state, this example can run indefinitely. | + | In its current state, this example can run indefinitely. |
| Line 74: | Line 83: | ||
| Now we will add a way to exit the While Loop when there is a problem. | Now we will add a way to exit the While Loop when there is a problem. | ||
| - | {{https:// | + | <WRAP centeralign> |
| + | {{https:// | ||
| + | </ | ||
| - | Run this now, then remove the USB cable from the [[https://www.mccdaq.com/usb-data-acquisition/ | + | Run this now, then remove the USB cable from the [[https://digilent.com/shop/mcc-usb-1608g-series-high-speed-multifunction-usb-daq-devices/ |
| - | {{https:// | + | <WRAP centeralign> |
| + | {{https:// | ||
| + | </ | ||
| When you click on Continue, notice execution of the VI has stopped. | When you click on Continue, notice execution of the VI has stopped. | ||
| Line 95: | Line 108: | ||
| It should look like this: | It should look like this: | ||
| - | {{https:// | + | <WRAP centeralign> |
| + | {{https:// | ||
| + | </ | ||
| You’ll need to add a wire from the data terminal (pin) of the Read.VI to the data pin on the Waveform Chart.VI. | You’ll need to add a wire from the data terminal (pin) of the Read.VI to the data pin on the Waveform Chart.VI. | ||
| - | {{https:// | + | <WRAP centeralign> |
| - | + | {{https:// | |
| - | You can run this, but before you do, did you remember to plug the USB cable back in to your device after the error test? | + | </ |
| + | You can run this, but before you do, did you remember to plug the USB cable back in to your device after the error test? | ||
| Your Front Panel should look something like this while it is acquiring data: | Your Front Panel should look something like this while it is acquiring data: | ||
| - | {{https:// | + | <WRAP centeralign> |
| + | {{https:// | ||
| + | </ | ||
| //**Saving the data to file**// | //**Saving the data to file**// | ||
| Line 114: | Line 132: | ||
| Our last goal is to save the data to a file. Again, we will use an Express.VI to keep this simple. | Our last goal is to save the data to a file. Again, we will use an Express.VI to keep this simple. | ||
| - | {{https:// | + | <WRAP centeralign> |
| + | {{https:// | ||
| + | </ | ||
| Let’s run our VI! Run it for a bit, then stop it. If all ran correctly you should have a data file waiting for you. Though the file is much longer that this, here is sample of contents of the file including the header: | Let’s run our VI! Run it for a bit, then stop it. If all ran correctly you should have a data file waiting for you. Though the file is much longer that this, here is sample of contents of the file including the header: | ||
| - | {{https:// | + | <WRAP centeralign> |
| + | {{https:// | ||
| + | </ | ||
| Line 132: | Line 153: | ||
| **Attachments**\\ | **Attachments**\\ | ||
| - | [[ https:// | + | [[ https:// |

