Hi
I am currently building script software with VB .Net
To port VB code to VB .Net, I need to import AgtPBPulse ,AgtPBPattern, AgtPBSignalGenerator
I think , i need to import driver to get dll files to use those function.
http://www.home.agilent.com/en/pd-57267-pn-E8267C/psg-vector-signal-generator?cc=US&lc=eng
Therefore, I visited product page to get driver files, but i couldn't find any driver files from Window 7 and VB .Net
Where should i download drivers ?
Update
i download driver from
http://www.home.agilent.com/agilent/software.jspx?ckey=1669133&lc=eng&cc=US&nid=-35536.536882548&id=1669133
However, I am not really sure which dll files needs to import for these function
thanks
Update
I thk ,
Dim Bin2To4Wav As New AgtPulseBuildingAPI.PBProject is the way to use library in VB .Net.
I haven't test yet. I will update the result later...
Edited by: Bob001 on Mar 27, 2014 2:23 PM
Edited by: Bob001 on Mar 27, 2014 2:29 PM
Edited by: Bob001 on Mar 27, 2014 3:11 PM
I am currently building script software with VB .Net
To port VB code to VB .Net, I need to import AgtPBPulse ,AgtPBPattern, AgtPBSignalGenerator
I think , i need to import driver to get dll files to use those function.
http://www.home.agilent.com/en/pd-57267-pn-E8267C/psg-vector-signal-generator?cc=US&lc=eng
Therefore, I visited product page to get driver files, but i couldn't find any driver files from Window 7 and VB .Net
Where should i download drivers ?
Update
i download driver from
http://www.home.agilent.com/agilent/software.jspx?ckey=1669133&lc=eng&cc=US&nid=-35536.536882548&id=1669133
However, I am not really sure which dll files needs to import for these function
thanks
Update
I thk ,
Dim Bin2To4Wav As New AgtPulseBuildingAPI.PBProject is the way to use library in VB .Net.
I haven't test yet. I will update the result later...
Edited by: Bob001 on Mar 27, 2014 2:23 PM
Edited by: Bob001 on Mar 27, 2014 2:29 PM
Edited by: Bob001 on Mar 27, 2014 3:11 PM
You got the right driver (the RF Signal Generator IVI-COM driver). Add a Reference in your project, go to the COM tab, and scroll down until you see IVI AgilentRfSigGen and add it to the project (it will automatically add any other references it needs).
Then, add the following namespace at the top of your code:
+Imports Agilent.AgilentRfSigGen.Interop+
Then add the following code where you want to use the driver:
+Dim driver As new AgilentRfSigGen+
+driver.Initialize("YourInstrumentAddressGoesHere", False, False, "")+
+driver.Close()+