Hi, welcome to this video series of creating Bluetooth Low Energy or Wireless LAN test
with Keysight X8711A using LabVIEW
In this episode, i will create a LabVIEW project
and demonstrate all of the steps and procedure
to establish an instrument connection using 34999A driver.
This is the mandatory step before we can perform any BLE or Wireless LAN test.
Before i start, there are 3 steps to establish the instrument connection.
Which are the step 1, step 2 and step 5. Step 3 and step 4 i will demonstrate them in the next video.
So to communicate and control the 34999A module, a Kt34999A driver is needed.
So this driver supports for 32 bit and 64 bit platform.
After understanding all of these, let's get started.
First, to reference the DLL into LabVIEW.
You right click at the block diagram.
Find the connectivity and .NET and the constructor node.
You can always use the pin button here to create a window for this.
So we create a constructor node.
Browse the DLL and we find the DLL that you want.
That's it.
So click this and select OK.
And you can see the KeysightIotDeviceTest here.
Expand it. And find the Kt34999A.
Click OK.
So this is the instance that we created.
That's all for the step 1.
So let's proceed to the step 2, Create the Instrument Session.
So first, we create a Property node.
And we link the reference port together.
And the property we select the ComPort.
And next we select the Invoke node.
To access the method to do the work for the class.
So we link the reference port together as well.
And we select the method of Connect().
So let's do one more example.
We create a Property node.
And we link the reference port together.
And this time we select the IDN which is the Identity Information.
So in this case, we will read the IDN from the driver.
So we change the ComPort into the Write method.
And we create a constant for this.
So how do we know the ComPort number that we want.
We go to the Device Manager.
And we can see the Ports.
Double click it and you can see the number.
At here, our ComPort number is 40.
So i will input a constant of 40 into this.
And next we need to input the resourceName.
Actually the resourceName is referring to the VISA address.
We go to the Connection Expert.
And we find our VISA address.
We copy it.
We create a constant and we paste into it.
That's it. Simple right.
Next, we create another constant for timeOut.
And the timeOut here is referring to milliseconds
So we input about 2000 ms which is 2 seconds into this.
And the IdnString we create an indicator for this.
So in this case, we read the IDN from the driver
And it will show at the indicator here.
So that's all for the step 1 and step 2.
And before we end the whole program
it is always a good practice to end the test with a Disconnect() method
which belongs to step 5, Close the Session
which means close everything.
So what we need to do now is we create one more Invoke node.
And we link the reference port together as usual.
And we select the method of Disconnect().
One last thing is you need to connect all the error ports together.
So at here, you create a control for this.
And you need to link all the error ports together.
And lastly you create an indicator for the last block.
That's the whole program of this test.
Now we connect the instrument to our PC and run the program.
So we click the run button.
We open up the Front Panel
And we run the program
So here is the IdnString read from the driver
So this means the connection is already successfully established.
That is all for this tutorial and i hope you enjoy watching this.
And i will see you again in the next episode.