HP manual Take the Reading, Close the Driver and Automation Sessions

Page 46

3Connect the automation refnum and error terminals from Initialize Invoke Node to DCVoltage.Configure Invoke Node.

4In the Class Browser, go back to the top-level object and double-click the Trigger property and select the Delay property. Click Create Write and drag the Property Node to the Block Diagram.

5Create a constant and enter a value of 0.01 seconds for the Delay field.

6Connect the automation refnum and error terminals from DCVoltage.Configure Invoke Node to Trigger.Delay Property Node.

Take the Reading

1Return to the Class Browser, and under Properties and Methods, double-click the Measurement property and select the Read method. Click Create and drag the Invoke Node to the Block Diagram.

2Set the value for Timeout to 1 second (1000 ms) by entering 1000 in the MaxTimeMilliseconds field.

3Connect the automation refnum and error terminals from Trigger.Delay Property Node to Measurement.Read Invoke Node.

Display the Reading

Create an indicator for Measurement.Read from the Invoke Node terminal.

Close the Driver and Automation Sessions

1Return to the Class Browser, and under Properties and Methods, double-click the Close method. Click Create and drag the Invoke Node to the Block Diagram.

2Close the Class Browser. From the ActiveX subpalette, select Close Reference and place on the Block Diagram.

3Connect the automation refnum and error terminals from Measurement.Read Invoke Node to Close Invoke Node and then to Close Reference function.

Add Error Checking

1Return to the main functions palette. From the Dialog & User Interface subpalette select Simple Error Handler VI and place it on the Block Diagram.

2Connect the error information from Close Reference function to Simple Error Handler VI.

46 Chapter 4

Image 46
Contents Getting Started Guide Page Contents Using IVI with Visual C# and Visual Basic .NET Using IVI with LabVIEWUsing IVI with LabWindows/CVI Using IVI with Measure Foundry Using IVI with MatlabUsing IVI with Paws Using IVI with Visual Basic 6.0 Using IVI with Agilent VEE ProAdvanced Topics Chapter Introduction Why Use an Instrument Driver?Purpose Why IVI? Class IVI Driver Why Use an IVI Driver? Flavors of IVI Drivers Download and Install IVI DriversShared Components Familiarizing Yourself with the Driver ExamplesIntroduction Chapter Using IVI-COM in C++ Chapter Using IVI with Visual C++Download and Install the Driver EnvironmentCreate a New Project and Import the Driver Type Libraries \Program Files\Ivi\BinUsing IVI with Visual C++ Dmm-ConfigureIviDmmFunctionDCVolts, 1.5 Configure the InstrumentSet the Trigger Delay Dmm-Trigger-Delay =Error Checking Set the Reading Timeout/Display the ReadingClose the Session Build and Run the Application Using IVI-C in Visual C++Exit1 IAgilent34401Ptr dmmuuidofAgilent34401 try \Program Files\IVI\include \Program Files\IVI\Lib\msc$VXIPNPPATHWinNT\include Chapter Goto Error else error = error #endif Define Error CheckingError = #ifndef checkErr #define checkErrfCallCheckErr hp34401aRead session, 1000, &reading Set the Trigger and Trigger DelayIf session Hp34401aClosesession Build and Run the Application Further Information Chapter Using IVI with Visual C# Visual Basic .NET Create a New Project and Reference the Driver Using Agilent.Agilent34401.Interop Create an Instance of the DriverType dmm.Initialize GPIB23, false, true, simulate=true Type double reading Dmm.DCVoltage.Configure1.5Dmm.Trigger.Delay = Dmm.CloseTips Agilent34401Class dmm = new Agilent34401ClassConsole.WriteLineThe reading is 0, reading Console.ReadLine Imports Agilent.Agilent34401.InteropOption Explicit On Chapter Chapter Using IVI with LabVIEWTM Using IVI-CCreate a Project and Access the Driver Using IVI with LabVIEW Take the Reading Display the Reading Add Error CheckingRun the Application Setting a Property in an IVI-C Driver Using IVI-COMUsing IVI with LabVIEW Initialize the Instrument Configure the Instrument Close the Driver and Automation Sessions Run the Application Chapter Chapter Using IVI with LabWindowsTM/CVITM Create a New Project and Add Instrument Driver Files#include hp34401a.h Using IVI with LabWindowsTM/CVITM Configure the Instrument Set the Reading Timeout GPIB023INSTR, Vifalse Printf %f, reading Chapter Chapter Using IVI with Matlab Development EnvironmentConfigure the IVI Driver TopicsUsing IVI with Matlab DMM in the Driver session field Create an Instance of the Instrument Configure and Control the InstrumentGenerate an Instrument Wrapper Connect to the InstrumentDisconnect from the Instrument Set Reading TimeoutDisplay Reading Remove the Driver from MemoryMatlab is a registered trademark of The MathWorks, Inc Chapter Chapter Using IVI with Measure Foundry Data Source Using IVI with Measure Foundry Control Source Using IVI with Measure Foundry Compile and Run Data SinkClose Session Using IVI with Measure Foundry Chapter Chapter Using IVI with Paws Prepare the Paws Environment VDC $ NOM 0 V UL 0.5 V LL -0.5CNX HI X20-2 LO Cnx hi DMM-Hi, lo DMM-LoAdd the Wcem Interface Functions Connect to the IVI-COM Driver Extern Hresult hr #include DMM.h Extern CComPtrIAgilent34401 driver#include DMM.h Variantfalse Varianttrue Hr = driver-getDCVoltage&pDMMDCVoltHr = pDMMTrig-ConfigureAgilent34401TriggerSourceImmediate Display\0333041m Bad return from Close method\033m\n Prepare the Run-Time System Environment IEEE-488 Bus Configuration File ChannelBuild the Project MLALoad and Run the Project Chapter Chapter Using IVI with Visual Basic Add a Button Option Explicit Dim dmm As New Agilent33401Type 1.5 Type dmm.Trigger.Delay = Type dmm.CloseTips Further Information Chapter Chapter Using IVI with Agilent VEE Pro Launch the Instrument Manager and Select the DriverChapter Using IVI with Agilent VEE Pro Initialize the Instrument Configure the Instrument Tips Another Method to Display the Reading Further Information Chapter IVI Architecture Chapter Advanced TopicsDriver API Driver Types Advanced Topics Instrument I/O InterchangeabilityAdvanced Topics IVI Configuration Store Advanced Topics Chapter IVI-COM IIviSessionFactory factory = new IviSessionFactoryClassConsole.WriteLineIdentifier 0, identifier Driver.InitializelogicalName, true, trueString identifier = driver.Identity.Identifier IIviDmm dmm = IIviDmmfactory.CreateDriverlogicalNameIVI-C Future Development Editing the Configuration StoreIVI Drivers in Action Advanced Topics Chapter

Drive specifications

HP Drive is a sophisticated storage solution designed to meet the demands of modern computing environments. It integrates cutting-edge technologies and features to ensure reliable performance, high capacity, and enhanced data security.

One of the main features of HP Drive is its versatility. It is compatible with a variety of systems, both for personal and enterprise use. This flexibility allows users to integrate HP Drives into their existing hardware setups without compatibility issues. Whether for desktops, laptops, or servers, HP Drive offers multiple form factors, including 2.5-inch and 3.5-inch drives, to cater to different requirements.

Another essential characteristic of HP Drive is its high storage capacity. With options often reaching up to several terabytes, users can store vast amounts of data, including high-definition videos, large databases, and extensive software libraries. The increased capacity is particularly beneficial for businesses requiring extensive data storage and retrieval.

Speed is a critical factor in data storage, and HP Drive employs the latest technologies to enhance performance. Many HP Drives utilize Solid State Drive (SSD) technology, which provides significantly faster data access and read/write speeds compared to traditional Hard Disk Drives (HDD). This results in quicker boot times, reduced application loading times, and overall improved system responsiveness. Moreover, some models integrate NVMe technology, elevating the performance even further with faster data transfer rates.

Data security is a paramount concern for users, and HP Drive addresses this with several features. Many models come equipped with built-in encryption technology, safeguarding sensitive data against unauthorized access. Additionally, HP offers robust support options including data recovery services and software solutions to ensure that users can recover their information in the event of a drive failure.

In terms of durability and reliability, HP Drive products undergo extensive testing to ensure they can withstand harsh operating conditions. They are designed to operate under various environmental factors, making them suitable for both office and industrial settings.

Overall, HP Drive stands out as a premier choice for those seeking a reliable, high-capacity, and high-performance storage solution. Its combination of advanced technologies, extensive compatibility, and robust security features make it a top contender in the competitive storage market. Whether for personal use or enterprise needs, HP Drive has proven itself as a dependable option for today's data-driven world.