Tool for Reading/writing Memory on Tektronix Scopes
Learn how to download and install the Musical instrument Driver to automate measurements from Tektronix 2000, 3000, and 4000 Series Oscilloscope Instrument using LabVIEW NXG. This tutorial will talk over the Tektronix DPO 4054B, but applies to any of the Tektronix MDO MSO DPO 2000 3000 4000 Series instruments.
Install LabVIEW NXG
LabVIEW NXG simplifies hardware integration so that y'all can rapidly acquire and visualize data from virtually any I/O device, whether from NI or a third party. Combined with a graphical programming syntax that reduces programming time, LabVIEW NXG streamlines complex system pattern with tools and IP at the forefront of today's engineering science.
Figure ane. LabVIEW NXG provides an intuitive programming environment for automating measurements from both NI and 3rd party instruments.
Install Tektronix 4000 Series Instrument Commuter
NI develops and supports thousands of instrument drivers for third party instruments to help engineers and scientists automate measurements. You can find these musical instrument drivers in the Musical instrument Driver Network. Download Tektronix 4000 Series Instrument Commuter
Figure ii. The NI Instrument Driver Network houses thousands of instrument drivers for automating 3rd party instruments.
Connect and Configure Tektronix 4000 Series Oscilloscope
The Tektronix MDO MSO DPO 2000 3000 4000 Serial Instruments back up USB and Ethernet communication. Y'all need either a USB cablevision (Type A to Blazon B) or an Ethernet cable connected to a network to connect the Tektronix oscilloscope to your computer.
Figure three. The Tektronix 4000 Series have USB and Ethernet ports on the dorsum.
Configure Your Organisation With SystemDesigner
SystemDesigner, a graphical tool for discovering, documenting, and configuring your examination system, is integrated directly into every LabVIEW NXG project. This tool automatically detects USB hardware continued to your host PC and adds a graphical representation to the window. If you select the device, y'all tin can encounter additional properties, such every bit the device proper noun, and any software or drivers that are installed on your system to support this device. Y'all tin can also troubleshoot and make transmission function calls to your instrument to ensure that information technology is working every bit expected earlier moving into automation.
Effigy iv. SystemDesigner provides an intuitive, graphical representation of all hardware and software associated with your test and measurement arrangement.
Process
- Locate the advice ports on the back of the Tektronix Musical instrument.
- Locate the communication ports on your host PC.
- If you are using a laptop, y'all probable take multiple USB ports and one Ethernet port.
- If you are using a PC or an industrial PC, y'all likely have multiple USB ports but need to connect the computer to your local network. Tektronix oscilloscopes have network adequacy to permit the figurer to connect over this network. If y'all are not connected to a local network, feel free to plug in the Tektronix Oscilloscope to the computer direct via Ethernet or USB port.
- Using the right cable for your communication port (USB/Ethernet), connect your Tektronix oscilloscope instrument to your host PC.
- Power on your Tektronix oscilloscope Instrument and let time for initialization.
- Launch LabVIEW NXG.
- On the LabVIEW NXG Welcome screen, selectApply Your Hardware
- The SystemDesigner opens with a high level view of your organisation. The procedure for detecting your device depends on the bus you are using.
USB: USB devices are automatically detected in NI Measurement & Automation Explorer (MAX) and SystemDesigner
- Select your USB interface in SystemDesigner. From the Configuration Pane on the right, scroll down to the Installed drivers section to find and install the NI-VISA driver. Then return to the Configuration Pane and go to the Advanced department to selectLaunch NI MAX. Within MAX, select the USB interface and clickScan for Instruments. The instrument is so detected.
Ethernet: Ethernet network devices have to exist added using the IP address the device is given.
- Select your PC in SystemDesigner. From the Configuration Pane on the left, scroll down to the Advanced section to selectLaunch NI MAX. Within MAX expandMy System»Devices and Interfaces»Network Devices to view instruments that are continued to the aforementioned subnet as your PC. To add an instrument that is not on the local subnet, right-clickNetwork Devices, selectCreate new VISA TCP/IP Resources, and follow the instructions in the magician.
- The instrument is now configured.
Automate Measurements With LabVIEW NXG
After performing manual/interactive measurements to achieve the results that you demand to test your device, the next step is to perform automatic measurements to reduce measurement time and increase repeatability.
Application Programming Interface (API)
To aid accelerate software development, all instrument drivers follow a consequent programming flow of: Open, Configure, Read/Write, Close. All drivers for NI hardware (for example, PXI modular instrumentat) also follow this paradigm because it is a best practice when programming in LabVIEW NXG.
Figure 5. The Tektronix instrument driver for LabVIEW NXG uses an intuitive and consistent programming pattern of Open, Configure, Read/Write, and Close.
Showtime From an Example Program
The Tektronix 4000 series LabVIEW Plug and Play driver includes a LabVIEW NXG project that features several example VIs to help you get started. Open these examples using the following procedure.
- Open up LabVIEW NXG.
- Open the Learning tab by selecting theAcquire to Program tile in the Welcome screen or selecting theLearning tab from the tiptop right.
- SelectExamples»Hardware Input and Output»Instrument Drivers to locate all of the examples included with installed LabVIEW Plug and Play instrument drivers.
- Click the Tektronix project to create a new copy.
Figure 6. LabVIEW NXG instrument driver examples are included with every LabVIEW Plug and Play musical instrument driver.
- The Tektronix DPO MSO 2000 4000 Series.lvproj contains several example VIs that require no extra programming to run. Double click a Six in the Project Files tab within the Navigation Pane to open information technology.
Figure seven. The Tektronix 4000 series LabVIEW Plug and Play driver includes multiple instance VIs to get started.
- To run a Six, first select the corresponding VISA Resource Name and advisable settings on the Panel. So click the greenish Run pointer at the top left of the Vi.
Figure 8. Select the corresponding VISA Resource Name and appropriate settings on the Panel before running the example Half-dozen.
Customize Measurement Settings
All LabVIEW Plug and Play examples are completely extensible and customizable to fit your measurement needs. For instance, start with the Tektronix DPO MSO 2000 4000 Serial Larn Multiple Waveform Instance.gvi included in the Tektronix DPO MSO 2000 4000 Series example project. And so add the ability to control the range of the measurement being taken.
- Open the Tektronix DPO MSO 2000 4000 Series Larn Multiple Waveform Example.gvi from the Tektronix DPO MSO 2000 4000 Series.lvproject.
- Click Diagram on the View Selector to view the VI's Diagram.
- Use the following procedure to add the ability to command the range for your measurements
- Create a Range double control by right clicking the orange double constant that is gear up to 10 and selectingModify to control.
- Reposition controls on the Diagram equally needed. Yous tin can easily sort the Diagram by clicking and dragging to aid with reading and understanding programme flow.
- Become back to the Panel by choosingConsoleon the View Selector. Place the new command on the Console past selecting theUnplaced itemsbox and placing it on the Console.Notethat you tin can place multiple items simultaneously from theUnplaced itemsbox by holdingCtrlwhile selecting the items in the box. Y'all tin then place items one by one on the Console.
Effigy 9. Right click the Vertical Range abiding and chooseChange to control. Y'all can besides add Controls, Constants and Indicators by right clicking terminals on VI's on the Diagram to add together functionality or test parameters.
- You tin can add together and edit any controls, constants and indicators in the Item view on the right side of the LabVIEW NXG environment. This includes changing data types, adding documentation, and changing the name of the particular.
Figure ten. Identify controls onto the Panel using the unplaced items box. Keeping controls on the left of the Panel and indicators on the right helps user readability.
Add together Point Processing
LabVIEW includes hundreds of built-in functions we tin accept reward of to implement things like Indicate Processing and Analysis. Follow the process beneath to add a Summit Amplitude Assay to the "Tektronix DPO MSO 2000 4000 Series Larn Multiple Waveform Example.gvi".
- Open the Diagram of the VI by selectingDiagramin the View Selector.
- Focus on the department containing the Read (Multiple Waveforms) Node. Drop downwardly the Peak Amplitude Node next to the Read (Multiple Waveforms) Node. You lot tin can observe the Peak Amplitude assay gvi tin be found by right clicking on the Diagram white infinite, going toAnalysis»Indicate Processing» Measurement and selecting the top left node that is called Aamplitude Measurements. Drop this on the Diagram and recreate the movie shown in Figure 12.
- Use this opportunity to explore the other signal processing categories that are available for your test.
Figure 11. This is the Summit Amplitude measurement node that yous are adding.
- The Meridian Amplitude Node reads in the waveform signal that the Read (Multiple Waveforms) Node creates and analyzes the data your Tektronix device collects.
- Connect the Waveform Graph Wire to the Summit Amplitude Six past left clicking the superlative left last of the Elevation Aamplitude VI and then clicking the Waveform Graph Wire.
- Delete the Yellowish Error Wire. Then left click the bottom left Error Final of the Peak Amplitude VI and connect it to the output Mistake Terminal of the Read Waveform VI to the left of information technology. Adjacent, connect the Error Out Terminal to the Mistake In Terminal of the Close Half-dozen.
- Right click each of the Double Output Concluding on the Peak Amplitude VI and select Create Indicator to add outputs for the Top Amplitude VIs data.
Figure 12. Your case with the added Peak Amplitude VI should look similar this.
- Switch to the Panel of the VI by selectingPanelin the View Selector.
- Drop down all of the indicators and controls from theUnplacedItems box onto the Panel.
- Rename the ten and y centrality of the histogram graph to correspond with the values y'all are measuring by clicking on the axis labels and replacing the text or past clicking on the centrality labels and changing the Proper name text at the top of the Configuration Pane on the right.
Effigy 13. The Panel should look like this. You have added a new command to decide the range of your exam and you lot incorporated signal processing to determine the amplitudes of your point. Customize the Panel of the VI to fit your applications needs.
- Save the Vi by selectingFilethenRelieve Tektronix DPO MSO 2000 4000 Series Larn Multiple Waveform Example.gvi.
Add File I/O
Log the results of each exam by adding file I/O to your application. LabVIEW NXG can log to TDMS, text, binary, and CSV files. Follow these steps to add logging to a CSV file to the Tektronix DPO MSO 2000 4000 Series Larn Multiple Waveform Case.gvi.
- Open the Diagram of the Half dozen by selectingDiagramin the View Selector.
- Create space between the Read (Multiple Waveforms) Node and the Close Node. Delete the yellow Mistake wire betwixt the 2.
- Place aBuild Array Node from theData Types » Array palette where you merely created space. Expand the Build Array Node to add an actress terminal by dragging down with the mouse afterward seeing the expansion cursor announced on the lesser of the node.
- On the Build Array Node, connect the get-go concludingChemical element oneto themaximum summit indicator wire,Element two to theminimum elevationindicator wire, andElement three to thepeak to peak indicator wire.
Figure 14. Expand the Build Array Node to include multiple elements.
- Next to the Build Array Node, drib down aWrite Delimited Spreadsheet Node from theStoragepalette. Connect theappended assortmentterminal on the Build Array Node to the2d data terminal on the Write Delimited Spreadsheet Node.
- Create a constant for thedelimiter (/t) terminal on the Write Delimited Spreadsheet Node. Put "," into the constant to make the file comma delimited. So create an indicator for thenew file last on the peak right of the Write Delimiter Spreadsheet Node. Rename this indicator "New File Path".
Figure fifteen. Write to CSV files using the Write Delimited Spreadsheet Node.
- Drop down to the left of the Write Delimited Spreadsheet Node aGo System Directory,Build Path, andSupplant File Extensionnodes found in theStorage > Path palette in that order from right to left.
- Wire thepath with new extension terminal on the top correct of the Replace File Extension Node to thefileterminal on the elevation left of the Write Delimited Spreadsheet Node.
- On the Write Delimited Spreadsheet Node create a constant for the superlativeformatterminal. View how to create a format specifier by selecting the Write Delimited Spreadsheet Node andOnline transmission in the Configuration Pane on the right.
- Wire theappended path terminal on the top correct of the Build Path Node to thepathterminal on the tiptop left of the Write Delimited Spreadsheet Node.
- Create a constant for thenew extension terminal on the left side of the Supercede File Extension Node. Place ".csv" into the abiding to ensure the file is saved with the .csv extension.
- Wire thesystem directory terminal on the top right of the Become System Directory Node to thebase path final on the elevation left of the Build Path Node.
- Create a control for the name or relative path terminal on the left side of the Build Path Node. Rename the control "File Proper noun".
- Create a abiding for theblazon terminal on the top left side of the Go System Directory Node. Select "Default Data Directory" to save the file to the default LabVIEW directory.
Figure 16. With the File Name command, you tin proper noun the .csv file being created and new file.
- Wire theerror outlast on the Enable Output Node to theerror in terminal on the Write Delimited Spreadsheet Node. And then wire theerror out concluding of the Write Delimited Spreadsheet Node to theerror in terminal of the Close Node.
- Open the Panel by selectingConsolein the View Selector. Place the unplaced controls and indicators on the Panel.
Figure 17. With the File Name control, y'all tin can proper noun the new .csv file.
- Save the VI by selectingFileand thenSave Tektronix DPO MSO 2000 4000 Series Acquire Multiple Waveform Case.gvi.
- Before you lot run the gvi type in the desired file proper name, relieve the file in the default LabVIEW directory and you can see the new file path in the New File Path indicator.
Acquit Sequencing and Database Reporting With TestStand Test Management Software
TestStand is a set up-to-run test management software that is designed to assistance you develop, execute, and deploy automated test and validation systems faster. While LabVIEW NXG is ideal for developing individual code modules, y'all can use TestStand to phone call multiple code modules you have developed in LabVIEW NXG, along with other programming languages, to build a sequence. Finally, you can specify execution flow, reporting, database logging, and connectivity to other enterprise systems for your examination system.
Effigy 18. Test management software, for example TestStand, is at the top of a properly architected test organization.
Consider PXI Source Measure Units
PXI Source Measure Units and oscilloscopes are flexible, software‐defined instruments that are versatile plenty for both time‐ and frequency‐domain measurements and deliver the benefits of the PXI platform. They feature up to eight channels that tin sample at speeds upwards to 12.5 GS/s with 5 GHz of analog bandwidth. Using the PXI platform, you tin synchronize multiple oscilloscopes with other instruments at picosecond‐level accurateness for high‐channel‐count and mixed‐signal applications. These instruments besides feature numerous triggering modes, deep onboard memory, and a commuter software API that includes data streaming and assay functions.
Figure 19. The PXI-5922 oscilloscope delivers a smarter way to tackle difficult applications in industries ranging from consumer electronics and semiconductor test to aerospace and defense examination.
Source: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x2znCAA&l=en-US
0 Response to "Tool for Reading/writing Memory on Tektronix Scopes"
Post a Comment