I am working with an Agilent E5071C VNA and am trying to retrieve trace data from the machine. Unlike the docs for other VNAs, I've found the doc for the E5071C to be much harder to follow. What I am trying to do is select a trace for a particular channel and then get the measurement data.
Working with a PNA, this would just be simple as setting the channel and trace, querying CALC<num>:DATA? FDATA, then get the frequency CALC<num>:X?.
How would a similar routine be programmed for the E5071C. The programming manual does not give much of an insight for how to retrieve data like this.
There's a VBA example program for the E5071C VNA on Keysight's webiste:
[VBA Sample Program] Save Trace Data VBA
OR
This Microsoft Excel sample VBA program enables the ENA user to transfer the data to an external PC:
[VBA Sample Program] ENA Data Transfer Program
This will have the right commands to use.
Related
We currently have HP XP2 tablets with a built in internal GPS receiver. What we'd like to achieve is obtain GPS Lat/Long coordinates using an MS Access database and VBA code.
Would it be possible for anyone to please provide the VBA code required to access the coordinates to make them available to add to our Access database?
Please see details below regarding GPS receiver model and drivers:
Driver = u-blox GNSS Location Sensor Driver.
Description = The u-blox GNSS Location Sensor driver is required to enable the u-blox USB GPS standalone device.
Standalone GPS name = HP Graff GNSS Module
If i understand correctly you want to extract with VBA the GPS coordinates from your internal GPS receiver and add them to a an Access database.
If that is the case, then unfortunately VBA is a language only used by MS office application, therefore if your built in GSP receiver is not an office application i'm quite sure you wont be able to extract the data using VBA (it is possible in a few cases but it requires a very advance knowledge of VBA)
The easiest way for you would be to extract manually the data and save them in a specific location of your files and then ask the VBA macro to open the file and save the data in your database.
If you really want to extract the data without any human interaction, I suggest you use python or another programming language or check on the IFTTT website if you can create an applet.
I hope this answer will help you!
If you need a more detailed question, you'll need to send more specification about your data, the built in GPS app...
I am simulating a Simulink model(using script) and currently using a toworkspace block to first save the output data to workspace and then using these data for further processing in my script.
My simulink model has two outputs velocity and acceleration.
But in my script I want to simulate the model and meanwhile use the model outputs to be saved or further used without using the toworkspace block.
I tried:
set_param('mdl_name','SaveState','on','StateSaveName','State',...
'SaveOutput','on','OutputSaveName','velocity');
data=Simulink.SimulationOutput;
I expected the data to have velocity values but it returns empty value.
I need some suggestions regarding whether there is another way to use an API and access a particular simulation output after simulating it via script or a suggestion to improve the above script.
Several causes can lead to this behavior. I suggest you to run "sldemo_varsize_basic" in MATLAB command window. This will start a built-in application example of the "ToWorkspace" block. Compare the parameters of the "ToWorkspace" blocks in this model and your model + the "Data Import/Export" pane in the "Configuration Parameters".
I was also using the "ToWorkspace"-based approach, but I changed to storing the results by "Signal Logging" ( in my application I found it more convenient to handle the results + there are no additional blocks required each time I want to log a new signal).
A complete list of ways to "Save Runtime Data from Simulation" is listed on the linked Mathworks website.
I am in the process of migrating from a recruitment ATS called Bullhorn, who also acted as our mail server. We have been provided with a backup of our data which includes all our emails stored in a table - so far so good. However, each of those emails' bodies is stored in the database table as an Image type as a zipped binary (Not so helpful).
I'm pretty stumped with how to get this stuff out. There is a forum in which there is a thread dedicated to this but predictably Bullhorn are not so enthusiastic spending time supporting customers who are migrating away. Here is the thread: http://supportforums.bullhorn.com/viewtopic.php?f=34&t=1672
As I explain in that thread, I have used a program called Chilkat with which I can successfully read a table row, decompress the Email Body Column and display the raw HTML in the console window. But now, I don't really know where to go. I've read in to Datasets and Table Adapters but I'm not too sure how I can get the Chilkat software to work on data within that dataset.
So, I wonder if anyone can help out with this and provide some guidance?
Or.... I've been reading about using SQL to store binaries and it seems it has it's own compression - so could I use a CLR as a stored procedure to be able to give better access to this data.
Ultimately, I'd like to be able to output this in to either a CSV file or use GeniusConnect to recreate an Outlook file - ultimately ending up in Gmail.
Any help will be greatly appreciated.
(Originally posted not being logged in - added this to stop it being flagged as a duplicate)
Thanks!
Chris
I want to connect to IBM mainframe thru VB.net and run jobs present in mainframe directly through VB.net and view the output back....
Can any one please help how to connect to IBM mainframe and run jobs directly through vb.net....
I presume you are not looking to duplicate the functionality of ISPF GUI mode.
One method would be to use FTP directly to the JES internal reader as discussed in this thread. It is possible that the mainframe security folks will disallow this, I know mine did.
Another method would be to screen scrape ISPF.
Instead of screen scraping ISPF, you could use the submit command in TSO and run SDSF in TSO to retrieve your output. You could also write Rexx or Java to run on the mainframe to give you your output in a form you desire instead of having your VB code conscious of the ISPF and/or SDSF panels.
You could use a CICS web service that submits batch jobs via the SPOOL API, retrieving the results might be more of a challenge. You might have to store the output in a z/OS Unix file and retrieve it from there.
So, let's say that I have a VBA application inside of whatever Office Application. I have created a command-line VB.net program to do all of the fun web-services stuff.
Okay, the VBA application calls Shell() to run the command line program. Now, what is the best way to get information (a tracking number for a package) from the VB.net program back into the VBA program?
My thoughts on the issue so far include:
Writing the number with Console.Write and then somehow extracting it in VBA
Or, using some kind of external interface (like a database or file system) to number the data and then get it out in VBA.
Any thoughts on this?
Why not call the Web service directly from VBA?
Check the samples in MSDN on how this can be done:
Calling XML Web Services from Office VBA Using the Web Service References Tool
Other options that you have would be:
Make your VB assembly COM-visible so that you talk to the VB code directly without having to launch a separate process
Write all relevant data to an intermediate file and read that from VBA