AI-based applications for waveform analysis, waveform generation, instrument control, and debugging

By combining large language models (LLM) based on artificial intelligence with test and measurement instruments, automated waveform analysis, instrument control, and debugging of test and measurement instruments are realized, solving the problem of excessive manual intervention in existing technologies and improving efficiency and accuracy.

CN123178532APending Publication Date: 2026-11-27TEKTRONIX INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610732368.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2026-05-20
Filing Date
2026-05-26
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing test and measurement instruments require a lot of manual intervention in waveform analysis, instrument control and debugging, which increases time and complexity, and lacks end-to-end automation solutions.

Method used

By employing an AI-based Large Language Model (LLM) combined with test and measurement instruments, the system automates waveform analysis, instrument control, and debugging. Through anomaly detection and analysis of images and data files, it generates SCPI commands to automate the instrument setup and debugging process.

Benefits of technology

It enables automated waveform analysis, instrument control, and debugging of testing and measuring instruments, reducing manual intervention, improving efficiency and accuracy, and simplifying the operation process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178532A_ABST
    Figure CN123178532A_ABST
Patent Text Reader

Abstract

A test and measurement system comprising one or more test and measurement instruments, each instrument comprising one or more ports to receive one or more signals from one or more devices under test, a display, a memory, and one or more processors to: display a user interface to allow a user to interact with the system, display a list of large language models (LLMs) on the user interface, receive input from the user identifying a selected LLM, open an application programming interface to the selected LLM, receive input identifying a data source, select an analysis to run on the data, select one or more engineering cues for the LLM, send the one or more engineering cues for the LLM and the data to the selected LLM, receive results of the analysis from the LLM, display the results of the analysis; and store the results.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Cross-references to related applications This disclosure relates to U.S. Provisional Application No. 63 / 812,114, filed May 26, 2025, entitled "AI-BASED APPLICATION FOR WAVEFORMANALYSIS, WAVEFORM GENERATION, INSTRUMENT CONTROL AND DEBUGGING"; U.S. Provisional Application No. 63 / 844,658, filed July 15, 2025, entitled "AUTOMATED CODE GENERATION COMBINED WITH AUTOMATED DEBUGGING ARCHITECTURE FOR PROGRAMMATIC CONTROL OF A TEST AND MEASUREMENT INSTRUMENT"; and U.S. Provisional Application No. 63 / 844,658, filed October 24, 2025, entitled "AUTOMATED CODE GENERATION COMBINED WITH AUTOMATED DEBUGGING ARCHITECTURE FOR PROGRAMMATIC CONTROL OF A TEST AND MEASUREMENT". The present invention claims the rights to U.S. Provisional Application No. 63 / 905,271 entitled “Instrument” and U.S. Provisional Application No. 63 / 876,828 entitled “System for Autonomous Code Generation, Debugging, and Test Instrument Tuning and Setup Using LLM” filed on September 5, 2025. The disclosures of all of the above applications are incorporated herein by reference in their entirety. Technical Field

[0002] This invention relates to test and measurement instruments, and more particularly to test and measurement instruments that use artificial intelligence for waveform analysis, instrument control, code generation, and debugging. Background Technology

[0003] Test and measurement instruments gather information from the device under test (DUT) to allow the user to determine how the DUT should perform. In some cases, these instruments receive signals from the DUT and sample these signals to produce waveforms and digital representations of these signals. The user measures these waveforms and then adjusts the operation of the DUT until the measurement results meet the relevant standards.

[0004] This process can take a long time and requires the user to manage system settings, send the correct commands to the appropriate instruments, analyze the results, and adjust the operation.

[0005] Some of these processes have been automated to reduce time and complexity, but there is no end-to-end solution that can accept user input, run tests, write code, debug, send command codes to instruments, and make recommendations based on the results. Attached Figure Description

[0006] Figure 1 A block diagram of an artificial intelligence (AI) analysis and operational testing and measurement system is shown.

[0007] Figure 2 An example of an artificial intelligence (AI) testing and measurement analysis, as well as a user interface for operating software applications, is shown.

[0008] Figure 3 An example of a waveform generation user interface within an AI analysis and operation software application is shown.

[0009] Figure 4 An example of an instrument control user interface within an AI analysis and operation software application is shown.

[0010] Figure 5 An example of configuring the user interface for a Large Language Model (LLM) within an AI analytics and operations software application is shown.

[0011] Figure 6 An example of an instrument connectivity user interface within an AI analysis and operation software application is shown. Figure 7 An example of an animated user interface within an AI analytics and operations software application is shown.

[0012] Figure 8 The overall architecture of the AI ​​analytics and operational software application is shown.

[0013] Figure 9 The results of waveform analysis using AI analysis and operational software applications are shown.

[0014] Figure 10 The waveform analysis results are shown using AI analysis and operation software applications.

[0015] Figure 11 This shows a copy of a screenshot of a MATLAB session where errors are sent to an AI analysis and operational software application.

[0016] Figure 12 The diagram shows a sine wave generated using two different frequencies, which was used for querying by AI analysis and software applications.

[0017] Figure 13 A flowchart illustrating an embodiment of a method for automated code generation and debugging without human intervention is shown.

[0018] Figure 14 An example of the Task Manager user interface is shown.

[0019] Figure 15 A flowchart illustrating an example of a method for automating and debugging code using a cyclical approach is shown.

[0020] Figure 16 A flowchart illustrating an alternative embodiment of a method for automated code generation and debugging without human intervention is shown.

[0021] Figure 17 An example of an oscilloscope screen showing two different pulse types is shown. Detailed Implementation

[0022] This embodiment relates to a novel AI-LLM-based waveform analysis, waveform generation, instrument control code generation and execution, and general chat-based interaction, all integrated into a software analysis and operation application (referred to herein as Atomabot™ or the "Application"). The Application's primary function is to analyze and compare waveforms, measurement data files, and screen capture images to identify measurement results, anomalies, and additional information for debugging. Users can perform in-depth waveform analysis based on input images or data files. The analysis can compare good data with bad data, identify anomalies, and even explain the causes of these anomalies. The Application can also receive input images from test and measurement instrument screens, analyze the information in the images, identify problems, and suggest changes to instrument settings. Utilizing the instrument's programming interface (PI), the Application can also be controlled via user prompts.

[0023] Figure 1 An embodiment of a test and measurement system is illustrated, comprising a computing device 10 (referred to herein as a control device because it operates the application) and a collection of test and measurement instruments, such as 12. The controller device 10 has one or more connections to a Large Language Model (LLM) 14, which is not a component of the application, but the application is connected to the LLM 14. The controller device 10 and the one or more instruments include one or more processors, memories, communication ports, communication buses, user interfaces, etc. These instruments can be connected to the device under test (DUT) via probes or fixtures.

[0024] An architecture comprising one or more instruments and possibly discrete computing devices can operate in a distributed manner, with one or more processors residing on a combination of instruments and discrete computing devices. Alternatively, one or more processors may reside on one or more instruments within an embedded architecture. The LLM may reside in the cloud or elsewhere.

[0025] The following discussion will cover many of the application's features and capabilities. These features include allowing users to connect to any LLM they subscribe to, including multiple models under a single subscription. Users can interact with their LLMs through general chat. The application provides anomaly detection and analysis of images or data, either individually or compared to good images or data. The application can loop through an entire folder of data or image files, logging the results to a log file and compiling them into animation files. The animation capability provides looping playback, allowing users to easily see all their data and any discrepancies within seconds. The application also provides animation controls such as single-step forward and backward, where text results are displayed as waveforms or data graphs. The application can generate signals and save them to files or load them into an arbitrary waveform generator (AWG).

[0026] This final feature is possible because the application can connect to any type, model, or manufacturer of test instrument that supports the Standard Command for Programmable Instruments (SCPI) protocol. The application can write SCPI command functions. One embodiment uses MATLAB to write commands based on simple user prompts, then sends the commands to the instrument for execution. Users only need to write a short prompt describing what they want to do, then press a button to generate code and execute it on the test instrument. The application also supports debugging the generated code, allowing users to utilize LLM step-by-step debugging functions.

[0027] Users can edit the received function before sending. The system will analyze any type of image, including desktop windows and program debugging, by reading and understanding error messages and handling errors in the image.

[0028] This application features an architecture and user interface that seamlessly integrates the chatbot capabilities of any LLM a user wishes to connect to, merging them into test and measurement systems. The system can configure and control any desired instrument that supports SCPI commands via a network connection. In one embodiment, the network connection includes a TCP / IP network connection. The application also performs general chatbot, image, and text data analysis, signal generation, and instrument control.

[0029] Figure 2An embodiment of a user interface for analyzing and operating the application is shown. The main user interface 20 includes three text windows: a user prompt editing window 22, an LLM output text window 24, and a logging window 26 that records actions, displays warnings and errors, and provides hints on how to proceed. These elements will be referenced by the reference numbers for each user interface above, as they are common to all user interfaces.

[0030] One embodiment of this application includes a MATLAB application, but it can be implemented using other programming languages ​​and interactive computing platforms. As stated above, the application operates based on waveforms, measurement data files, screenshot images, and additional information (whether general or specific) provided by the user. User input can include data files or images, along with optional text prompts. Image files can include instrument displays with waveform data, other images, MATLAB Simulink screenshots with error messages and menu values, or any other images. For waveforms, analysis can include an overview of what is seen in the image. During debugging, error messages may be seen in the image, and menu values ​​may be read. LLM will understand this information and respond with instructions on how to fix the error. User input can include reference data or one or more images representing known good data to compare with the user's data or images for analysis and identification of differences. The application provides the option to browse files, allowing users to specify the path to the folder to open within their application. and Files (such as Excel and Notepad), and drawing options to show one or more graphs of the loaded data files.

[0031] The optional user tips in window 22 can help identify the type of data and the analysis to be performed on that data. For a base data vector with or without an X-axis, multiple analyses may be necessary. Generally, user tips are not required, but one may be included. For some analysis types, user tips can be combined with built-in engineering tips (referred to here as "engineered" tips) and associated with the selected analysis type.

[0032] When the application is run, the user identifies the data source, such as a file (with a path and folder) or an instrument. The application includes an instrument connection user interface for specifying the instrument connection and determining the data to be retrieved when the analysis button is selected or for each cycle in loop mode.

[0033] Users are presented with several analysis type options, including identifying time / frequency to analyze waveform data file input and reporting various waveform measurement results and parameters. The analysis can include anomaly analysis using engineering prompts, which searches for anomalies and reports their locations, and can report additional information about them as requested by a combination of user and engineering prompts. The analysis can also include a comparison of two similar waveforms or images from the input file and report the characteristics of the differences between them. Comparisons can also be made in... On the document. Engineering tips will be sent to fine-tune the LLM, increasing its likelihood of producing the desired results based on the analysis. For example, comparing a reference set that may involve well-known data with the set that needs to be analyzed. The report returned from the application will document the differences between the two, where they occurred, and the possible causes of the problems.

[0034] During debugging and analysis, users can send session screenshots, and the application can analyze the contents of those screenshots. The application can read error messages, such as those from a MATLAB Simulink session, interpret menu values ​​and block diagrams, and suggest ways to fix the errors. The application also provides general options that will use user input prompts and attached data or image files for analysis.

[0035] Figure 2 The user interface that appears when a user selects the Analysis tab (tab) 28 is shown. In addition to allowing the user to identify the data source, the application also provides a selection of analysis types. It should be noted that the user interface provided here is an example of how a user can analyze and operate the application. It is not intended to limit any particular configuration, feature list, or appearance, nor should it imply any limitations.

[0036] The "Analysis Type" selection facilitates the selection of engineering prompts behind the screen to better train the LLM to respond to category type requests. These engineering prompts are combined with any user input prompts requested by the LLM. The application can use a library of internally generated code and present that code to the LLM as part of the engineering prompts. This allows the LLM to write new code functions adapted to the user's requests. The new code can be used to generate waveforms behind the screen, or in some implementations, presented to the user for integration into their own system.

[0037] Options on user interface 20 include general chat, which facilitates interaction with the connected LLM. Sine wave, square wave, PRBS, and radar selections condition the LLM for these signals, including variable duty cycle generation for square waves. Image analysis options orient the LLM to examine an image and generate waveforms resembling those in the image, while data analysis options generate functional code that can produce this shape, with different control parameters to modify the data waveform it is examining.

[0038] Figure 3 The user interface 30 for the waveform generation tab is shown. This tab contains UI features that facilitate the generation of signal data by the LLM, which can be saved to a file, accessed via open or browse options, or transferred to an instrument capable of receiving waveform data, such as an oscilloscope or AWG. Other types of data can also be used, including generated sampled data, and saved to a file on the controller device or instrument. Waveform generation can be performed by a code function that generates the requested waveform data to be produced by the LLM. The application then executes the function, generates the data, and transfers it to a file or test instrument. The generated waveform can be plotted as an image for analysis and viewing, or used as... Figure 2 The input for the analysis function tab is shown. As shown in prompt window 22, the user has entered a request for a sine wave with defined parameters. Other possible features exist, but may not be discussed here.

[0039] Figure 4 The Instrument Control tab user interface 32, “Instr Control,” is shown, which facilitates control of any type of test instrument, regardless of manufacturer, model, or type, and supports SCPI TCP / IP control commands. LLMs, such as Grok, know how to write functions in any language for any manufacturer (such as Tektronix, Keysight, Anritsu, and others). The possibilities shown in this example are illustrative and not intended to limit other features or how they are displayed. The Setting Type window 34 allows selection of various internally engineered prompts attached to user input prompts to produce the prompts that the LLM actually sees, which will appear in window 24.

[0040] The general chat option allows users to easily interact with the LLM during design, debugging, and analysis. AutoSet generates customized instrument operations based on user input prompts. Frequency helps users set frequency domain analysis commands and controls. The Trigger Exception selection allows the application to read a screen image of a waveform or data file, analyze the exception, and generate an SCPI command set to send to the instrument. This provides the instrument commands to set triggers based on the exception. The WaveformMath option creates control scripts for waveform mathematical operations. The last selection in window 34 is image analysis. The application then uses the input image or... Data files are provided to aid in analysis and to determine how to set up the test instruments based on user-entered prompts.

[0041] The file control box allows users to perform file functions, such as pointing to the instrument session file to be sent to the instrument using the session path / filename box. The save image path / filename box will save the screenshot image received from the test instrument, and the save waveform path / filename box allows waveforms to be received from the test instrument.

[0042] Enter user input prompts in the User Prompts window 22 on the Instrument Control tab. As an example, a user can enter one of the following prompts: "Send oscilloscope session file to oscilloscope". "Take a screenshot from the instrument and analyze it." "Set the oscilloscope sampling rate to 100 GS / s." “Capture the waveform from channel 1 of the oscilloscope and analyze it for any abnormalities.” "Opens the complete set of jitter measurements applied to channel 2 of the oscilloscope. Reads the jitter measurements and provides a complete analysis of the jitter values. Explains the causes of excessive jitter you may have found."

[0043] Figure 5 The LLM configuration tab user interface 36 is shown. Users can select the LLM they have subscribed to and want to use for their analyses. Different LLMs may require slightly different engineering prompts to make them function as desired for a given analysis type. Although not shown here, this may include requesting user permission to use application and settings menus such as pop-ups and instrument access. Users select the LLM to use and may need to provide the LLM with a deployment name and model name. The application can retry and populate the API key and URL fields of the selected LLM.

[0044] Figure 6 The instrument connection tab user interface 38 is shown. This interface allows the user to identify one or more instruments that the application should control. Figure 6The user interface displays only two types of instruments: analytical instruments (such as oscilloscopes) and AWGs for generating waveforms. Users can enter the brand, model, IP address, port, and username and password. Then, the user selects the connect button, and the application establishes a connection to the instrument.

[0045] Figure 7 An embodiment of an animated user interface 40 is shown. This allows a user to play back animated videos while the application cycles through a large number of image or data files in a folder. In one embodiment, the video consists of one frame per file, showing the drawing data and pass / fail tabs.

[0046] This application includes elements that may appear in multiple user interfaces. These include loop, analyze, and stop. In loop mode, the application defines only one file and path, and a single analysis will occur when the analyze button is pressed. When On is selected, the browse button points to a folder containing multiple files for analysis. The analysis will be repeated for each file in the folder, and the responses will be accumulated and aggregated to obtain the final result to be presented to the user. The analyze button starts the analysis by connecting to the LLM via API and key, sending engineering prompts and optional user prompts. The application receives responses and generates a report for the user. As stated above, this will be repeated for each file in the specified folder if the loop is on. The stop button aborts the analysis process. Users may have complaints about the application, such as it lingers, takes too long, or is incomplete.

[0047] In the upper list under File-Preferences-Help, users can select a preference that causes the loop to pause on an exception. The user can then review the exception and continue. If not selected, the loop will continue regardless of the exception. Similarly, a pause button allows users to temporarily pause the loop.

[0048] The file selection provides dropdown menus that allow specific application settings to be saved and retrieved. These include, but are not limited to, loading and saving prompts, saving results, saving log files, saving settings, and loading settings from files. The help selection includes a dropdown menu to open the application's help manual and provides examples.

[0049] One aspect of this application relates to prompts. The application includes the engineered prompts mentioned above. These are pre-programmed prompts and are... Figure 2 The analysis type is selected via radio buttons. These prompts are combined with optional user-entered prompts (if any). Users cannot see these prompts. These prompts may differ between different LLMs used. Users can choose to keep or clear the prompts as desired.

[0050] Figure 8 A block diagram of the application architecture is shown. Each block represents a part of the overall application. The main control block 50 controls the output results window, saves and stores results; the log window, saves log files; loop control; the instrument control manager, which generates and saves SCPI control functions; and the automation setup and control manager. The workflow control block 52 manages user selections of tabs on the user interface and prompts generated based on those selections. In one embodiment, the workflow control includes multiplexers, each selected by user interface tabs (such as analysis type, wave generation, instrument control, etc.). Each multiplexer has an output multiplexer, which is based on tab selections and selections within the tab (such as...). Figure 2-7 (as shown in the image) and the output prompt for the selected LLM type.

[0051] The engineered hints are then sent to LLM interface block 54. This block includes a hint builder that generates hints based on the engineered hints and combines them with user hints from the user hint window in the user interface. This block also receives LLM selections, sends the appropriate API key, and identifies the correct endpoint URL. The drawing and display control block 56 also sends data or one or more image files to the hint builder for transfer to the LLM. The LLM returns response text, which is then formatted and sent to output window 60. The LLM interface block can also control the saving and loading of user hints into a hint repository (not shown).

[0052] The LLM output is then sent back to the main control block 50, which includes the instrument control manager. If the results include commands from instrument group 58, they are routed through the main control block 50 to the SCPI control function, which may also include a command repository. Instrument group 58 and main control block 50 share a connection to the instrument group (such as a TCP / IP client server). User data and images stored in plotting and display group 56 are stored in data or image folders and can be sent to the instrument group and returned from the instrument to the repository via a TCP / IP connection. As discussed above, instrument group 58 includes any number of test instruments, along with their manufacturers and models. These instruments must be able to receive SCPI commands.

[0053] The drawing and display block 56 manages user images, reference images, user data, reference data, drawing and display functions, and animations. As mentioned above, the drawing and display block communicates images and / or data to the LLM interface.

[0054] Some examples will help illustrate how parts of the application and the hardware work together. In the first example, Figure 9 The waveform data shown was generated in MathCAD and saved to a file. The image is included in the Grok3 prompt, as shown below. Figure 3 The diagram shows: "A 1 Vpp sine wave is generated at 100 MHz with a sampling rate of 1 GS / s." This process is repeated using Grok3, and below is a portion of the LLM response. Everything is correct except for the index positions of the last two anomalies. The magnitude of the fourth anomaly is incorrect, but the other three are correct.

[0055] Sample count: 501 samples Primary shape: sine wave Frequency: 10Hz Time period: 0.1 seconds (100 samples) Amplitude: 1 Number of loops: 5 Noise level: ~0.1 RMS Anomaly: 74: 1.3 (confirmed) 188:0 (confirmed) 166: 0.5 239: -06642.

[0056] In another example, the application is required to analyze two images, in Figure 10 As shown, the image was sent with the prompt "The image on the right is fine, but the image on the left has a problem. Please compare the differences and explain the cause of the problem." The image on the right is the one referred to above as the reference image. The response is as follows: Let's analyze these two diagrams step by step to understand what they represent, the differences between them, and why the diagram on the left is problematic.

[0057] General observation Both graphs appear to be frequency response graphs, potentially representing the magnitude (in decibels (dB) of a signal or system response across a frequency range (in Hertz (Hz)). The x-axis shows frequencies ranging from 0 Hz to 25E+9 Hz (25 GHz) on a logarithmic scale, and the y-axis shows the magnitude of the drop from 0 dB to -15 dB (left graph) and -14 dB (right graph) in dB.

[0058] Each graph contains multiple colored lines, indicating that these are responses from multiple channels, measurements, or simulations (e.g., different runs, different components, or different configurations). The title "Frequency Graph" on both graphs supports this interpretation.

[0059] What do these diagrams represent? These graphs may show the frequency response of the system, such as: Electronic circuits (e.g., filters, amplifiers, or transmission lines).

[0060] Communication channel (e.g., S-parameters such as S21, which measure transmission loss).

[0061] Signal processing systems (e.g., the response of digital filters).

[0062] 1. A decrease in amplitude, expressed in dB, with frequency indicates that the system has low-pass characteristics (it allows low frequencies to pass while attenuating higher frequencies), or that the system experiences signal loss with frequency changes, which is common in transmission lines or filters.

[0063] Analysis of the right image (normal) 1. Trend: The amplitude starts from close to 0 dB at low frequencies and gradually decreases as the frequency increases, dropping to about -14 dB at 25 GHz.

[0064] 2. Smoothness: The curve is relatively smooth, with small variations between different lines. This indicates consistency across the measurement results or channels.

[0065] 3. Behavior: Gradual roll-off is typical for systems with predictable frequency responses (such as low-pass filters or transmission lines with desired loss). Multiple lines are tightly grouped, indicating low variability between measurements (e.g., good repeatability or uniformity across channels).

[0066] The analysis of the left image (has issues). 1. Trend: The overall trend is similar to that of the right figure—the magnitude decreases as the frequency changes—but there are significant anomalies.

[0067] 2. Irregularity: 3. The amplitude exhibits sharp peaks and troughs, particularly noticeable at approximately 5E+9 Hz (5 GHz), 10E+9 Hz (10 GHz), and 15E+9 Hz (15 GHz). These are characterized by "spikes" where the amplitude suddenly increases and then decreases.

[0068] 4. Compared to the diagram on the right, the variations between these lines are much more pronounced. At a certain frequency, some lines deviate significantly from the others.

[0069] 5. Behavior: Sharp peaks and troughs indicate resonance, interference, or instability in the system. This is not typical for a well-performing frequency response and indicates a problem.

[0070] Why is there a problem with the left image? The left image illustrates several problems that are not present in the right image. Here are the possible causes of these problems: 1. Resonance or interference: 2. The sharp peaks and valleys in the left figure indicate the presence of resonance or standing waves. This can occur if there is impedance mismatch in the system (e.g., in a transmission line or circuit), causing reflections that result in constructive or destructive interference at a specific frequency.

[0071] 3. For example, if this is a transmission line, poor termination (e.g., not properly matched to 50 ohms) can cause reflections, resulting in these ripples in the frequency response.

[0072] 4. Measurement result artifacts: 5. Irregularities may be attributed to measurement errors or environmental disturbances. For example: 6. Crosstalk between channels (if this is a multi-channel system).

[0073] 7. External noise or electromagnetic interference (EMI) that affects measurement settings.

[0074] 8. Calibration issues inherent in measurement equipment (e.g., vector network analyzers (VNAs) in the case of S-parameter measurements).

[0075] 9. System instability: 10. If this is an active system (e.g., an amplifier), the peak may indicate instability or oscillation at a certain frequency. This can occur if the system has unexpected feedback, or if the system is operating close to its stability margin.

[0076] Another example demonstrates programming / design debugging. The user enters parameters in input window 70. The parameters are a sample-based sine type, using analog time, with an amplitude of 1, an offset of 0, 1000 samples per time interval, 0 offset samples, and a sample time of 1e-6. An error message is displayed in diagnostic window 72. The response is as follows: Thank you for sharing your Simulink session screenshot, which shows the open parameter dialog for your model "temp3" and the sine block, as well as the error message you received. I will explain the screenshot, analyze the configuration, and handle the error to help you resolve the issue and correctly configure your frame-based processing system.

[0077] Explanation of the screenshot.

[0078] 1. Simulink model layout ("temp3") Blocks in the model: Sine wave: Located at the beginning of the model, it generates a sinusoidal signal.

[0079] Data storage write (A): Directly connected to the sine wave output, writes data to the data storage memory named "A".

[0080] Data storage read (A): Connected to data storage write, read from the same data storage memory "A".

[0081] Display: Connected to the data storage and read output to display data (which may be frames or samples).

[0082] There is also a data storage block named "A" in the model, but as you mentioned earlier, it "has no wired connection in the diagram". This is expected because the data storage block is global and does not require physical connections, but relies on the shared name "A".

[0083] Connection: These blocks are connected using signal lines (arrows), indicating the flow: sine wave → data storage write (A) → data storage read (A) → display.

[0084] 2. Sine wave block parameters (open dialog) The parameter dialog for the sine wave block shows the following settings (as can be seen in the screenshot): Output sine wave: y = A * sin(2 * pi * Freq * t + phase) + bias This is the default formula for outputting a sine curve.

[0085] Output type: Sample-based (not frame-based, as you will see below).

[0086] Time (t): Use analog time (default, the indicator signal is time-based).

[0087] Amplitude: 1 (the unit amplitude of a sine wave).

[0088] Offset: 0 (no offset from zero).

[0089] Frequency: 1 Hz (a sine wave with a 1-second duration).

[0090] Phase: 0 radians (no phase shift).

[0091] Sampling time: 1e-6 (1 µs or 0.000001 seconds).

[0092] Sample size per time period: 1000 (this parameter is unusual here – see analysis below).

[0093] Number of offset samples: 0 (no offset in the signal).

[0094] Sample-based: The output is configured to be sample-based, not frame-based, which is crucial for your frame-based processing goals.

[0095] 3. Error Message Error statement at the bottom of the screenshot: The fixed step size (0.001) setting in model "temp3" is invalid. All sampling times in your model must be integer multiples of the fixed step size.

[0096] Component: Simulink | Category: Model Error The sampling time interval (1.0E-6) for “temp3 / sine wave” is not an integer multiple of the fixed step size (0.001) specified for the model.

[0097] This matches the error we discussed earlier, which indicates a mismatch between the sampling time of the sine wave (1e-6 s) and the fixed step size (0.001 s) in the solver.

[0098] 4. Solver settings (assumptions) Based on your description, the solver is configured as a discrete (no continuous state) solver with a fixed step size of 0.001 seconds (1 ms). This is the frame time of your 1k sample frames, but it conflicts with the 1e-6 s sample time of the sine wave, as explained earlier.

[0099] 5. Additional observations This screenshot shows MATLAB R2024b (top left), the most recent version, which is compatible with your settings but may have specific behaviors or bugs related to sampling time and frame-based processing.

[0100] The line in the screenshot highlights the Open Sine Block dialog, indicating that you are actively viewing or modifying its parameters, but you may not have applied or saved the changes yet (if the parameters are not completed, these changes may cause errors).

[0101] Incorrect analysis and configuration.

[0102] The error occurs because the sampling time of the sine wave block (1e-6 s) is not an integer multiple of the solver's fixed step size (0.001 s). Let's break this down and discuss why this happens and how to fix it for your frame-based processing system with 1k sample frames.

[0103] Why did the error occur?

[0104] Sampling time mismatch: Simulink requires a fixed step size, and all sampling times in the discrete model must be integer multiples of the fixed step size (0.001 s in your case). A sine wave sampling time of 1e-6 s (1 µs) divided by 0.001 s = 0.001, which is not an integer (e.g., 1, 2, 3, etc.). This violates Simulink's discrete-time constraint, even though 0.001 s / 1e-6 s = 1000 (by integer sample count per frame).

[0105] Sample-based vs. frame-based: The sine wave block is configured as a sample-based output, not a frame-based output. Here, the sample parameter per time interval (set to 1000) is misleading—it is used for the sample-based signal to determine how many samples are in one time interval of the sine wave (1 Hz time interval = 1 s). With a sampling time of 1e-6 s, 1000 samples cover 0.001 s, not a full 1-second time interval, leading to confusion and potential errors in frame-based processing.

[0106] Frame duration misalignment: For frame-based processing, you want the sine wave to output 1x1000 frames every 0.001 s (your frame period). However, the current configuration outputs individual samples at intervals of 1e-6 s, which will not align with the fixed step size of 0.001 s unless properly configured.

[0107] Key misconfiguration.

[0108] The per-time sample parameter in a sine wave block is typically used for sampled signals, not frame-based signals. For frame-based processing, you should use per-frame samples (available under the block parameters when switching to ...).

[0109] In the fourth example, the MathCAD waveform is made of a sine wave, and the frequency change occurs midway, such as... Figure 12 As shown in the diagram, the image is sent to the application with the prompt "Tell me everything about this waveform." There are some iterations around the idea of ​​indexing. After some corrective prompts, the application does indeed get the correct content. At this point, the engineering prompts are absent. Now, the LLM can be fine-tuned by the application so that it works correctly from the start. The following is the analysis response.

[0110] Step 1: Re-evaluate waveform data As previously confirmed, the waveform data contains 1000 samples at a sampling rate of 1000 samples per second (not periods / second, as I believe you mean samples / second). This means: Total sample size: 1000.

[0111] Sampling rate: 1000 samples / second.

[0112] Duration: 1000 / 1000 = 11000 / 1000 = 11000 / 1000 = 1 second.

[0113] structure: The first 500 samples (index 0–499) are higher frequency sine waves, and the next 500 samples (index 500–999) are lower frequency sine waves.

[0114] Each sample corresponds to the following time intervals: 1 / 1000 = 0.0011 / 1000 = 0.0011 / 1000 = 0.001 seconds (1 ms).

[0115] Therefore, the indexes are directly mapped to time: index 0 is 0 ms, index 1 is 1 ms, index 25 is 25 ms, and so on.

[0116] Step 2: Use the calibrated peak position to identify the period and frequency.

[0117] You have clarified that the first peak 1 in the first 500 samples appears approximately at index 25, which corresponds to 25 ms (because...). 25 × 0.001 = 0.02525 (multiplied by 0.001 = 0.02525 (multiplied by 0.001 = 0.025 seconds)

[0118] This peak represents 1 / 4 of the sine wave's duration, meaning the complete duration is 4 times that length.

[0119] The first half (samples 0–499, higher frequency) Peak at index 25: At index 25, the value is 1 (confirmed in the data: 1 at index 25).

[0120] The time at index 25: 25 × 0.001 = 0.02525 (Multiply by 0.001 = 0.02525) (Multiply by 0.001 = 0.025 seconds (25 ms)).

[0121] Time period calculation: The peak at 25 ms is at 1 / 4 of the period (for a sine wave starting at 0 with a positive slope, the first peak at π / 2 is 1 / 4 of the time interval).

[0122] Complete time period = 4 × 25 ms = 100 ms = 0.14 × 25, ms = 100, ms = 0.14 × 25, ms = 100, ms = 0.1 seconds.

[0123] Based on samples per period: At 1000 samples / second, 100 ms = 100 × 0.001 = 100100 / (multiplied by 0.001) = 100100 / (multiplied by 0.001) = 100 samples.

[0124] frequency: = 1 / 0.1 = 10f = 1 / 0.1 = 10f = 1 / 0.1 = 10Hz.

[0125] Periodic confirmation: Starting with index 0: 0.

[0126] Peak at index 25: 1 (at 90 degrees, 1 / 4 cycle).

[0127] Zero cross (negative) at index 50: 1.225 × 10−16 (1.225 multiplied by 10^{-16}) (Effectively 0, in 180 degrees, 1 / 2 cycle).

[0128] The negative peak at index 75: -1 (at 270 degrees, 3 / 4 of a cycle).

[0129] Returns to 0 at index 100: -2.449 × 10−16 - 2.449 × 10^{-16} - 2.449 × 10^{-16} (Effectively 0, in 360 degrees, complete cycle).

[0130] This confirmed that the time period consisted of 100 samples (0 to 99, inclusive).

[0131] Number of cycles: 500 samples / 100 samples per cycle = exactly 5 cycles in the first half.

[0132] The latter half (samples 500–999, lower frequency) Periodic identifier: Starting with index 500: 0.

[0133] It rises to a peak of 1 at index 625.

[0134] Falling, crossing 0 negatively at index 750: 1.225 × 10−16 1.225 multiplied by 10^{-16} 1.225 multiplied by 10^{-16} (effectively equal to 0).

[0135] The negative peak value is reached at index 875: -1.

[0136] At index 999, it returns to near 0: -0.01257 (close to 0, and we only have 1000 samples).

[0137] This indicates a complete cycle from index 500 to 999 (assuming that if the data continues, the next zero will be at index 1000).

[0138] Based on samples per period: There are 500 samples from index 500 to 999.

[0139] Time period: 500 samples at 1000 Hz = 500 / 1000 = 0.5500 / 1000 = 0.5500 / 1000 = 0.5 seconds.

[0140] frequency: =1 / 0.5=2f = 1 / 0.5 = 2f = 1 / 0.5 =2 Hz (same as the previous calculation, which is correct).

[0141] Number of loops: 500 samples / 500 samples per period = exactly 1 period.

[0142] Corrected waveform characteristics First half (0–499): Frequency: 10 Hz.

[0143] Time period: 0.1 seconds (100 samples).

[0144] Duration: 0.5 seconds (500 samples).

[0145] Cycle: 5 complete cycles.

[0146] Lower half (500–999): Frequency: 2 Hz.

[0147] Time period: 0.5 seconds (500 samples).

[0148] Duration: 0.5 seconds (500 samples).

[0149] Period: 1 complete period.

[0150] Step 3: Generate eye diagram Now, I will create an eye diagram using sequential segments of length equal to half a cycle of the higher frequency portion (10 Hz), covering them without changing their shape.

[0151] Segment length (unit interval) Higher frequency: 10 Hz, time period = 100 samples.

[0152] Half a cycle: 100 / 2 = 50 100 / 2 = 50 100 / 2 = 50 samples.

[0153] Unit interval (UI): 50 samples.

[0154] Extract fragments Total sample size: 1000.

[0155] Fragment length: 50 samples.

[0156] Number of segments: 1000 / 50 = 201000 / 50 = 201000 / 50 = exactly 20 segments (1000 samples / 50 = 20, with no remainder).

[0157] These segments are: Fragment 0: Samples 0–49 Segment 1: Samples 50–99 Segment 2: Samples 100–149 ... Segment 19: Samples 950–999.

[0158] Covering fragments...

[0159] The AI-powered analytics and operations application is an innovative solution that provides a novel approach to analyzing waveform data files and screenshot images. Leveraging its advanced AI architecture, user-friendly interface, and innovative features, the application offers valuable tools to customers across various industries. By simplifying waveform analysis, anomaly detection, and debugging, the application helps users save time and increase productivity. Overall, this application represents a breakthrough in waveform analysis technology and promises to improve the efficiency and effectiveness of waveform analysis and debugging processes.

[0160] As discussed above, the analysis and operation application can generate SCPI commands and send these commands to the instrument. In one embodiment, the LLM generates initial code in response to a user prompt describing the desired instrument operation. The application then executes and evaluates the code against the actual instrument, collects error messages and runtime data, and programmatically incorporates feedback into a new LLM prompt. This cycle continues until no further errors occur or termination criteria are met.

[0161] By systematically reconstructing each new cue using accumulated debug information, this application overcomes the cue memory and contextual limitations inherent in typical LLM APIs. The architecture requires no custom LLM training and supports multiple off-the-shelf models, providing robust flexibility. A dedicated user interface allows for hands-free automation while permitting optional human intervention. The result is a simplified approach to building, validating, and organizing modular SCPI-based control functions for a wide variety of test and measurement devices.

[0162] The goal is to allow users to define instrument control tasks in a concise language (not limited to English) and apply the generation, testing, and debugging of these tasks until they meet user specifications. Initial user prompts are slightly tweaked to match expected input / output data. The prompts are sent to the LLM to generate initial functional code for the task. The application extracts the task from the LLM response and runs it on the test instrument, collecting error messages and metadata during execution. If errors exist during execution, the application then collects more information about the errors, including behavioral and grammatical fixes. If execution completes, the application analyzes the metadata and determines whether the task is truly complete. If the LLM deems the task incomplete, it provides new prompts with information to help it generate more accurate tasks and allow the cycle to continue. A novel aspect is that users can pause the debug loop to provide their own input or additional context. A history of previous prompts, including LLM responses, error messages, and debug console output, as well as prompts constructed by the application, is stored chronologically. This provides a memory of what it did in previous iterations, given context, to appropriately interpret new debug information based on the current iteration.

[0163] User prompts should be simple and contain only the specific functionality of a given workflow. The application edits the user prompts to ensure that the LLM generates tasks that conform to the desired workflow structure. The only rigid part of the user prompt is the task definition. This is required by organizations that maintain multiple tasks.

[0164] The goal is to ensure tasks are atomic in size, minimize the complexity of the LLM, and make it easier to manage and organize within larger automation systems. This architecture allows users to build robust workflows from simple, well-defined components. Additionally, a task manager interface can be integrated, enabling users to execute task commands with the push of a single button.

[0165] Figure 13 A flowchart illustrating one embodiment of the code generation and debugging process is shown. At 80, the application receives a user prompt specifying the instrument task function. Then, at 82, the application sends a prompt to the LLM and receives a response. If the user has not yet specified an LLM as above, the interface can open, allowing the user to specify one. At 86, the application extracts functions from the LLM results and saves them to a file, such as MATLAB or Python, at 88. The function in the application that sends commands to the instrument runs at 94, and the instrument's task manager operates the instrument at 92. At 96, the application collects all output and / or error messages, screen images, and queries into a new prompt. In cases other than the first iteration, the information gathered at 96 is appended to the previous prompt at 98 and sent to the LLM. The LLM then returns the results. At 100, the results of the first iteration or the appended prompt are evaluated. If the results pass at 102, the process ends at 104. If the results fail, the user can decide to continue or stop at 106. If the user decides to continue, the process returns to 94 and iterates until the user stops, the stopping criteria are met, or the result is passed.

[0166] Figure 14 The user interface shown for this process is... Figure 4 Similar to the previous one, but with the ability to open Task Manager at point 112. The source type selection and set type buttons remain the same. User prompt window 22 allows the user to specify the desired functionality. LLM response window 24 will display the generated code with annotations as needed, and log window 26 will show any errors that occur as they are periodically passed through. "Play" button 110 starts code analysis, buttons 114 and 116 are used to forward or backward, and button 116 is used to stop. When the user opens Task Manager at point 112, they can run various task functions that can be automatically generated by the application.

[0167] The above embodiment provides a slightly different user interface for instrument control and implements cyclical control of code generation and automatic debugging. Furthermore, the ability to attach previous prompts and feedback to the current prompt accelerates the development of error-free code.

[0168] Code generation and debugging can take several forms. Figure 15A flowchart illustrating an alternative embodiment for code debugging and looping is shown. User input is received at 120. This prompt is then sent to the generative LLM at 122, 124, and returned to the application at 126. The code is extracted at 128 and saved at 130. The code is executed at 130 and can involve MATLAB or be generated by... Figure 1 Other code executed by the controller device (referred to herein as console 134), or SCPI commands executed by the instrument at 136. Data and errors are collected at 132.

[0169] If an error is detected in the result at position 138, the process moves to the analysis at position 140. This may involve an LLM (either the same one or another) trained to analyze the error via a cue and return a response. Then, at position 144, this response is checked to see if it is correct. To reduce inference bias, the generation and evaluation steps can be formulated as independent inference tasks. This can be achieved through separate cues, context isolation, or other techniques that prevent the model from reusing previously assumed information. For example, two LLM blocks 124 and 142 could have separate context windows. A “context window” in LLM refers to the working memory of the LLM, meaning the amount of text (in units) the model can consider or remember at any given time. These LLMs may fail when evaluating their own outputs, so using two different LLM / context windows for generation block 124 and analysis block 142 ensures that when evaluating the second block, it has no text from the first block in its memory. These two contexts can remain separate throughout the iterative debugging process. Alternatively, cues are carefully crafted to avoid self-biasing.

[0170] If the response is correct, the process ends at 146. If the response is incorrect, the user is asked at 148 if they want to stop. If they want to continue the process, it moves to the prompt builder at 150. The error from 138, combined with information about the error and the original prompt, is used as context at 148 and then used to build a new prompt at 150. The context from 148 is sent to the debug LLM. Again, this can be the same LLM or a separate LLM conditional on the previous context. This context is then stored in the database at 154 for later use. If the entry from the context collection is already in the database, the resulting response can be returned to the prompt builder. At 156, the user can pause the process to evaluate the prompt and progress, and send the newly built prompt to 122, or start with new user input at 120. This process continues until the generated code is correct.

[0171] Figure 16Another embodiment shown employs according to Figure 13 The embodiments shown here cover most of the procedures, but with the addition of an agent in the interaction with the LLM. The embodiments here focus on controlling a specific function to trigger the oscilloscope based on specific aspects of the input image. The process returns the oscilloscope image for analysis, allowing you to specify how to set the oscilloscope trigger, and then write and debug a MATLAB or other code function that sends commands to set the trigger. The agent will loop back, bringing up the oscilloscope screen so the LLM can evaluate whether it works, such as... Figure 13 The workflow is as described above, but with an assessment of whether the process is functioning correctly or failing.

[0172] At point 160, the user enters a prompt to specify the SCPI instrument task function, configuring the oscilloscope to trigger based on anomalies observed in the oscilloscope reference image, such as... Figure 17 As shown in the diagram. At 162, the user sets the oscilloscope to acquire a long record, thus obtaining a good reference image with an anomaly. The user can navigate to the save location at 164 to save the anomaly image to task file 166, and then at 168, task file 166 is sent to the oscilloscope task manager controlling oscilloscope 170. The user begins the analysis process at 172. The agent puts the oscilloscope into run mode. At 160, the task file can combine the two images (reference image and input image) and send them to the prompt-based build process. The process then returns to... Figure 13 The workflow shown at point 82 is different in this case; the SCPI command is based on a trigger function, and the agent handles extracting the function, running the function, attaching it to the new prompt, and evaluating the results. A key function performed by the agent is setting up the oscilloscope so that it is triggered based on an anomaly detected on the oscilloscope screen.

[0173] As a goal-oriented entity, the agent is capable of planning, responding, using tools, and maintaining memory to achieve the goals assigned to it. This includes receiving user prompts, more general agent-specific workflow prompts (optionally combined with additional information about controlling the oscilloscope or test instrument), and then having the LLM analyze the oscilloscope image and data and generate MATLAB code to perform instrument settings according to the user prompts. This includes automatically debugging the generated code while interacting with the test instrument. It also involves sending instrument setting commands to the instrument to perform the desired task, collecting any error messages, querying feedback and any console output, debugging comments, and then reconstructing the prompts containing past prompt information. The agent then feeds this feedback back to the LLM through multiple iterations until the LLM determines that the task was successful. For example, the LLM might analyze the oscilloscope screen with waveforms after setting the trigger and compare it to a reference screen snapshot of an anomaly saved at the start of the program. The LLM then knows whether the oscilloscope was triggered. If the LLM reports success, the agent stops looping. If the LLM says the oscilloscope was not triggered, it will rewrite the MATLAB code, making the necessary corrections to help the trigger work. This will be repeated until the task succeeds, or until the agent abandons the task after a certain number of attempts based on the "abandon" or "stop" criteria.

[0174] The following is the usage Figure 17 Example of code generation interaction with the ChatGPT agent as input: If I provide a screenshot of a Tektronix MSO68B oscilloscope, and the waveform with the runt pulse is clearly displayed, are you able to examine that waveform and read the time and vertical scales, and then specify how to set the oscilloscope's runt trigger parameters to trigger accordingly? In other words, can you also specify a value to set the trigger parameter? chatGPT: Yes, I can help! Please upload a screenshot of your Tektronix MSO68B oscilloscope showing the dwarf pulse. I will analyze the time and vertical scales based on the image and then provide you with specific values ​​for setting the dwarf trigger parameters.

[0175] Hint: This is the image with a short pulse that we want to trigger. What are the parameter settings for the Tektronix MSO68B to trigger this signal? Let's examine the waveforms in the image closely to identify normal pulses and low pulses, and determine the specific value of the threshold required to trigger a low pulse.

[0176] Waveform analysis: 1. Normal pulse: A normal pulse reaches its full amplitude, which appears to be approximately 300 mV.

[0177] 2. Low pulse: A low pulse does not reach the full amplitude of a normal pulse. It peaks at a lower value, which appears to be approximately 100 mV.

[0178] Threshold: 1. Upper limit threshold: This should be set just below the full amplitude of a normal pulse to distinguish between normal pulses and low-amplitude pulses. Based on waveform: • Upper threshold: 300 mV (0.3 V) 2. Lower Threshold: This should be set above the baseline but below the peak value of the short pulse in order to effectively capture the short pulse. Based on waveform: • Lower threshold: 100 mV (0.1 V) Overview of trigger settings: • Trigger type: Dwarf •Source: Ch1 • Polarity: Positive (assuming the short pulse is positive) • Upper threshold: 300 mV • Lower threshold: 100 mV These settings should help you successfully trigger the short pulses shown in the waveform. Please feel free to ask if you need further assistance or adjustments! User Tip: Please write a MATLAB function of the form `setScopeTrigger(scopeIPAddress, scopePort)`. The IP address and port number are the inputs to this function. Do not write any other function to call this function. Do not use functions from the MATLAB Instrument Control Toolbox. Inside this function, open a TCP / IP connection to the oscilloscope. Then provide SCPI commands to the MSO68B oscilloscope to set the trigger exactly as you defined in your previous prompt. Send these commands to the oscilloscope. After each command, include a query command to read back the parameters you sent and confirm that the command was successful. Place each returned query response into a text cell array and return that array as a function of the variables and data.

[0179] The generated code begins as follows: Function data = setScopeTriggerA(scopeIPAddress, scopePort) % Create a TCP / IP connection to the oscilloscope t = tcpclient(scopeIPAddress, scopePort); % Initialize the cell array to store the query response. Data = {}: ...

[0180] The second example using the same attached figure is as follows: User Tip: Now examine the oscilloscope screen image and suggest how to configure the oscilloscope to trigger based on the narrowest positive pulse in the image. Please tell me the pulse width in seconds of the narrowest positive pulse in the waveform. Then, be sure to find the trigger type of the Tektronix MSO68B oscilloscope and select the appropriate trigger mode. Then find the parameters for that trigger mode and suggest what to set them to. Please write a MATLAB function of the form data = setScopeTrigger(scopeIPAddress, scopePort). The IP address and port number are the inputs to this function. Do not write any other function to call this function. Do not use functions from the MATLAB Instrument Control Toolbox. Inside this function, open a TCP / IP connection to the oscilloscope. Then provide the MSO68B oscilloscope with SCPI commands to set the trigger exactly as you defined in the previous prompt. Send these commands to the oscilloscope. After each command, include a query command to read back the parameters you sent and confirm that the command was successful. Please put each returned query response into a text cell array and return that array as a function of variables and data.

[0181] Grok: The narrowest positive pulse in the waveform appears to be the one marked at approximately -100 ns, with a width of about 50 ns (0.00000005 seconds). For the Tektronix MSO68B oscilloscope, the appropriate trigger mode for this situation is "pulse width" triggering, which can detect these pulses based on their width.

[0182] For the pulse width trigger mode on the MSO68B, the relevant parameters to be set are: • Trigger type: Pulse width • Condition: = (equal to) • Width: 50 ns • Polarity: Positive • Source: Channel 1 (Ch1) This is part of a MATLAB function used to set up a trigger: Function data = setScopeTrigger(scopeIPAddress, scopePort) % Open TCP / IP connection to the oscilloscope t = tcpip(scopeIPAdress, scopePort,'NetworkRole','client'); Send SCPI commands to configure triggers. ……。

[0183] The interaction above demonstrates how the agent allows users to perform complex tasks using test and measurement instruments without prior programming experience. By combining an iterative loop for collecting and merging instrument responses with consecutive blocks of code generated by an LLM, this solution eliminates the need for specialized training, handles complex multi-instrument tasks, and systematically overcomes the limitations of typical LLM APIs. While the example focuses on automating oscilloscope trigger configuration, the same principles apply to a wide range of instrument types and control scenarios. The flexibility and scalability of this invention underscore its potential to simplify instrument setup and operation across numerous domains without requiring customized LLM models or specialized programming expertise.

[0184] Analysis and operation software applications provide users with end-to-end test systems, analysis tools, and code generation tools. The application utilizes one or more LLMs to assist users in analyzing their data and graphs, generating and debugging code for tasks such as building simulations in MATLAB or other simulation software, or controlling instruments and evaluating results. It provides suggestions for troubleshooting errors and controls test and measurement instruments as needed.

[0185] Various aspects of this disclosure can operate on specially created hardware, firmware, digital signal processors, or general-purpose computers that are specifically programmed, including processors that run according to programmed instructions. The terms "controller" or "processor" as used herein are intended to include microprocessors, microcomputers, application-specific integrated circuits (ASICs), and special-purpose hardware controllers. One or more aspects of this disclosure can be embodied in computer-usable data and computer-executable instructions, such as in one or more program modules executed by one or more computers (including monitoring modules) or other devices. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform a specific task or implement a specific abstract data type when executed by a processor in a computer or other device. Computer-executable instructions can be stored on a non-transitory computer-readable medium, such as a hard disk, optical disk, removable storage medium, solid-state memory, random access memory (RAM), etc. As those skilled in the art will appreciate, the functionality of a program module can be combined or distributed in various aspects as desired. Additionally, this functionality can be wholly or partially embodied in firmware or hardware equivalents, such as integrated circuits, FPGAs, and the like. Specific data structures can be used to more efficiently implement one or more aspects of this disclosure, and such data structures are intended to be within the scope of computer-executable instructions and computer-available data described herein.

[0186] In some cases, the disclosed aspects may be implemented in hardware, firmware, software, or any combination thereof. The disclosed aspects may also be implemented as instructions carried on or stored on one or more non-transitory computer-readable media, which may be read and executed by one or more processors. Such instructions may be referred to as a computer program product. As discussed herein, a computer-readable medium means any medium that can be accessed by a computing device. By way of example, and not limitation, a computer-readable medium may include computer storage media and communication media.

[0187] Computer storage media means any medium that can be used to store computer-readable information. As an example, and not a limitation, computer storage media may include RAM, ROM, electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, optical disc read-only memory (CD-ROM), digital video disc (DVD) or other optical disc storage devices, magnetic tape cassettes, magnetic tape, disk storage devices or other magnetic storage devices, and any other volatile or non-volatile, removable or non-removable media implemented in any technology. Computer storage media excludes signals themselves and the transient form of signal transmission.

[0188] Communication medium means any medium that can be used for communication of computer-readable information. As an example and not a limitation, communication medium may include coaxial cable, fiber optic cable, air, or any other medium suitable for communication of electrical, optical, radio frequency (RF), infrared, acoustic, or other types of signals.

[0189] Example Illustrative examples of the disclosed techniques are provided below. Embodiments of the techniques may include one or more of the examples described below, as well as any combination thereof.

[0190] Example 1 is a test and measurement system comprising: one or more test and measurement instruments, each instrument including one or more ports for connecting the instrument to one or more devices under test (DUTs) and receiving one or more signals from the one or more DUTs; a display; a memory; and one or more processors configured to execute code that causes the one or more processors to: display a user interface on the display to allow user interaction with the system; display a list of Large Language Models (LLMs) on the user interface; receive input from the user identifying a selected LLM; open an application programming interface (API) to the selected LLM; receive input identifying a data source through the user interface; select an analysis to be run on the data; select one or more engineering prompts for the LLM based on the selected analysis; send the one or more engineering prompts and the data to the selected LLM via the API; receive the results of the analysis from the LLM; display the results of the analysis on the display; and store the results in a file.

[0191] Example 2 is a test and measurement system according to Example 1, wherein one or more processors are in a distributed architecture.

[0192] Example 3 is a test and measurement system according to Example 1 or 2, wherein one or more processors reside in one of one or more test and measurement instruments in an embedded architecture.

[0193] Example 4 is a test and measurement system according to any one of Examples 1 to 3, wherein the code causing the one or more processors to receive user input identifying the source includes code causing the one or more processors to identify the source as one of the one or more test and measurement instruments, or one or more data files.

[0194] Example 5 is a test and measurement system according to Example 4, wherein the one or more processors are further configured to cycle through a selected analysis of the multiple data files when the one or more data files comprise multiple data files.

[0195] Example 6 is a test and measurement system according to Example 4, wherein when the source is one or more test instruments, the one or more processors are further configured to: receive one or more inputs via the user interface, the one or more inputs selecting at least one identified instrument among the one or more instruments as the source; receive one or more inputs via the user interface, the one or more inputs providing setting parameters for the at least one identified instrument; establish a connection to the at least one identified instrument; generate code to configure the at least one identified instrument according to the setting parameters; receive signals from the one or more DUTs attached to the at least one identified instrument; and convert the signals into data to be sent to the LLM for analysis.

[0196] Example 7 is a test and measurement system according to Example 6, wherein the code that causes the one or more processors to generate code includes code that causes the one or more processors to generate Programmable Instrument Standard Command (SCPI) commands.

[0197] Example 8 is a test and measurement system according to Example 6, wherein the code that causes the one or more processors to generate code includes code that causes the one or more processors to perform the following: sending the set parameters as a prompt to the LLM via an API; and receiving the code from the LLM.

[0198] Example 9 is a test and measurement system according to Example 8, wherein the one or more processors are further configured to: execute the code from the LLM on the at least one identified instrument; evaluate the execution of the code; collect any error messages generated by runtime data; merge the error messages and runtime data into a new prompt of the LLM; and repeat the execution, evaluation, collection, and merging until a termination criterion is met.

[0199] Example 10 is a test and measurement system according to any one of Examples 1 to 9, wherein the one or more processors are further configured to: display a prompt on the user interface before sending an engineering prompt to the LLM; receive a user prompt through the user interface; and combine the user prompt with the engineering prompt, wherein the one or more processors send the user prompt together with the engineering prompt.

[0200] Example 11 is a test and measurement system according to any one of Examples 1 to 10, wherein the one or more processors are further configured to generate and store log files of interactions with the LLM, any interactions with the one or more test and measurement instruments, and the results thereof.

[0201] Example 12 is a computer-implemented method comprising: displaying a user interface on a display to allow a user to operate an analysis and operation software application in a test and measurement system including one or more test and measurement instruments; displaying a list of Large Language Models (LLMs) on the user interface; receiving input from the user identifying a selected LLM; opening an application programming interface (API) to the selected LLM; receiving input identifying a data source through the user interface; selecting an analysis to be performed on the data; selecting one or more engineering prompts for the LLM based on the selected analysis; sending the one or more engineering prompts and the data to the selected LLM via the API; receiving the results of the analysis from the LLM; displaying the results of the analysis on the display; and storing the results in a file.

[0202] Example 13 is a computer-implemented method according to Example 12, wherein receiving user input identifying the source includes identifying the source as one of the one or more test and measurement instruments, or one or more data files.

[0203] Example 14 is a computer-implemented method according to Example 13, further comprising, when the one or more data files comprise multiple data files, cyclically passing through the selected analysis.

[0204] Example 15 is a computer-implemented method according to Example 14, wherein, when the source is one or more test instruments, the method further includes: receiving one or more inputs through the user interface, the one or more inputs selecting at least one identified instrument among the one or more instruments as the source; receiving one or more inputs through the user interface, the one or more inputs providing setting parameters for being at least one identified instrument; establishing a connection to the at least one identified instrument; generating code to configure the at least one identified instrument according to the setting parameters; receiving signals from one or more devices under test (DUTs) attached to the at least one identified instrument; and converting the signals into data to be sent to the LLM for analysis.

[0205] Example 16 is a computer-implemented method according to Example 15, wherein the generated code includes generating Programmable Instrument Standard Command (SCPI) commands.

[0206] Example 17 is a computer-implemented method according to Example 15, wherein generating code includes: sending the set parameters as a prompt to the LLM via an API; and receiving the code from the LLM.

[0207] Example 18 is a computer-implemented method according to Example 17, further comprising: executing the code from the LLM on one or more identified instruments; evaluating the execution of the code; collecting any error messages generated by runtime data; merging the error messages and runtime data into a new prompt of the LLM; and repeating the execution, evaluation, collection, and merging until a termination criterion is met.

[0208] Example 19 is a computer-implemented method according to any one of Examples 1 to 12, further comprising: displaying a prompt on the user interface before sending an engineering prompt to the LLM; receiving a user prompt through the user interface; combining the user prompt with the engineering prompt to produce a combined prompt; and sending the combined prompt as the engineering prompt to the LLM.

[0209] Example 20 is a computer-implemented method according to any one of Examples 1 to 12, further comprising generating and storing log files of one or more interactions with the LLM, any interactions with the one or more test and measurement instruments, and the results thereof.

[0210] All features disclosed in the specification (including the claims, abstract, and drawings) and all steps in any disclosed method or process may be combined in any combination, except where at least some of such features and / or steps are mutually exclusive combinations. Unless otherwise expressly stated, each feature disclosed in this specification (including the claims, abstract, and drawings) may be replaced by an alternative feature for the same, equivalent, or similar purpose.

[0211] Additionally, specific features are mentioned in this written description. It is to be understood that the disclosure of this specification includes all possible combinations of those specific features. Where a specific feature is disclosed in the context of a particular aspect or example, that feature may also be used in the context of other aspects and examples, to the extent possible.

[0212] Furthermore, when a method having two or more defined steps or operations is mentioned in this application, the defined steps or operations may be performed in any order or simultaneously unless the context precludes those possibilities.

[0213] Although specific examples of the invention have been illustrated and described for illustrative purposes, it will be understood that various modifications can be made without departing from the spirit and scope of the invention. Therefore, the invention should not be limited except as provided by the appended claims.

Claims

1. A test and measurement system, comprising: One or more test and measurement instruments, each instrument including one or more ports for connecting the instrument to one or more devices under test (DUTs) and receiving one or more signals from the one or more DUTs; monitor; Memory; as well as One or more processors are configured to execute code that causes the one or more processors to: A user interface is displayed on the monitor to allow users to interact with the system; A list of Large Language Models (LLMs) is displayed on the user interface; Receive input from the user, identifying the selected LLM;    Open the application programming interface (API) to the selected LLM; The user interface receives input identifying the data source;    Select the analysis you want to perform on the data;    Based on the selected analysis, choose one or more engineering tips for the LLM;    Send the selected LLM one or more engineering hints and the data to the LLM via API;    Receive the analysis results from the LLM;    The results of the analysis are displayed on the monitor; as well as Store the results in a file.

2. The test and measurement system of claim 1, wherein the one or more processors are in a distributed architecture.

3. The test and measurement system of claim 1, wherein the one or more processors reside in one of the one or more test and measurement instruments in an embedded architecture.

4. The test and measurement system of claim 1, wherein the code causing the one or more processors to receive user input identifying the source includes code causing the one or more processors to identify the source as one of the one or more test and measurement instruments, or one or more data files.

5. The test and measurement system of claim 4, wherein the one or more processors are further configured to cyclically perform selected analyses on the plurality of data files when the one or more data files comprise a plurality of data files.

6. The test and measurement system of claim 4, wherein when the source is one or more test instruments, the one or more processors are further configured to: The user interface receives one or more inputs, which select at least one identified instrument from the one or more instruments as the source. The user interface receives one or more inputs, which provide setting parameters for the at least one identified instrument. Establish a connection to at least one of the identified instruments; Generate code to configure the at least one identified instrument according to the set parameters; Receive signals from the one or more DUTs attached to the at least one of the identified instruments; as well as The signal is converted into data to be sent to the LLM for analysis.

7. The test and measurement system of claim 6, wherein the code causing the one or more processors to generate code includes code causing the one or more processors to generate Programmable Instrument Standard Command (SCPI) commands.

8. The test and measurement system of claim 6, wherein the code causing the one or more processors to generate code includes code causing the one or more processors to perform the following: The set parameters are sent as a prompt to the LLM via API; and Receive the code from the LLM.

9. The test and measurement system of claim 8, wherein the one or more processors are further configured to: The code from the LLM is executed on at least one of the identified instruments; Evaluate the execution of the code; Collect any error messages generated by runtime data; The error message and runtime data are merged into a new prompt in the LLM; as well as Repeat the process of execution, evaluation, collection, and merging until the termination criteria are met.

10. The test and measurement system of claim 1, wherein the one or more processors are further configured to: Display the prompts on the user interface before sending the engineering prompts to the LLM; Receive user prompts through the user interface; and Combine the user prompts with the engineering prompts. The one or more processors thereon send the user prompt along with the engineered prompt.

11. The test and measurement system of claim 1, wherein the one or more processors are further configured to generate and store log files of interactions with the LLM, any interactions with the one or more test and measurement instruments, and the results thereof.

12. A computer-implemented method, comprising: Display a user interface on the monitor to allow users to operate analysis and operation software applications within a test and measurement system that includes one or more test and measurement instruments; A list of Large Language Models (LLMs) is displayed on the user interface; Receive input from the user, identifying the selected LLM; Open the application programming interface (API) to the selected LLM; The user interface receives input identifying the data source; Select the analysis you want to perform on the data; Based on the selected analysis, choose one or more engineering tips for the LLM; Send the selected LLM one or more engineering hints and the data to the LLM via API; Receive the analysis results from the LLM; The results of the analysis are displayed on the monitor; as well as Store the results in a file.

13. The computer-implemented method of claim 12, wherein receiving user input identifying the source includes identifying the source as one of the one or more test and measurement instruments, or one or more data files.

14. The computer-implemented method of claim 13, further comprising, when the one or more data files comprise a plurality of data files, cyclically passing through the selected analysis.

15. The computer-implemented method according to claim 14, wherein, When the source is one or more testing instruments, the method further includes: The user interface receives one or more inputs, which select at least one identified instrument from the one or more instruments as the source. The user interface receives one or more inputs, which provide setting parameters for at least one identified instrument. Establish a connection to at least one of the identified instruments; Generate code to configure the at least one identified instrument according to the set parameters; Receive signals from one or more devices under test (DUTs) attached to at least one of the identified instruments; and The signal is converted into data to be sent to the LLM for analysis.

16. The computer-implemented method of claim 15, wherein generating code includes generating Programmable Instrument Standard Command (SCPI) commands.

17. The computer-implemented method of claim 15, wherein generating code comprises: The set parameters are sent as a prompt to the LLM via API; as well as Receive the code from the LLM.

18. The computer-implemented method according to claim 17, further comprising: Execute the code from the LLM on one or more of the identified instruments; Evaluate the execution of the code; Collect any error messages generated by runtime data; The error message and runtime data are merged into a new prompt in the LLM; as well as Repeat the process of execution, evaluation, collection, and merging until the termination criteria are met.

19. The computer-implemented method according to claim 12, further comprising: The prompt is displayed on the user interface before the engineering prompt is sent to the LLM; Receive user prompts through the user interface; The user prompts are combined with the engineered prompts to produce a combined prompt; as well as The combined prompt is sent to the LLM as the engineered prompt.

20. The computer-implemented method of claim 12, further comprising generating and storing log files of one or more interactions with the LLM, any interactions with the one or more test and measurement instruments, and the results thereof.