AFG3102 can be controlled with VBA?

Hello

I am new to PC instruments control and I need to use AFG3102 to stimulate the oscilloscope to test it.

I've seen in previous posts that Visual Basic and c# can be used to control PC AFG3102 but I would use VBA (Excel) in order to present the stimuli and the results in Excel spreadsheets.

Can someone help me with this? First of all, it is possible to control AFG3102 via VBA and Excel, and if so, can someone guide me how do?

Thanks in advance!

Hello Taniusha,

I'm not quite sure the differences and the similarities between VB and VBA.  Most any development environment will have a mechanism that allows to call in external code, it is just might be easier for some types of external code.

If you just need to store the data in an Excel file, there are other options apart from having your code to run in Excel.  The simple implementation is to simply store your data in a format that Excel can read easily.  The more complex implementation is to use the ActiveX to control Excel programmatically.

See you soon,.

NathanT

Tags: NI Hardware

Similar Questions

  • Can I control with structure case tab control pages?

    Hello!

    I'm quite new to Labview and my company wants me to do some programs for electronics testing. I am currently working on the GUI and I would like three pages in a tab with control buttons control.

    I've only had the Labview 2009 base package, so I can't use the structure of the event.

    If you open my .vi you can see I have a control tab with three pages. On the first page, I had a 'Start' button which should open the next page in the tab control. On the Central page, I have a "Back (back)" button that should go back to the previous page. The button called "Lagre (Save)" should work as a next button and go to the last page. On this page, I have a 'back (Back)', 'Ny test (new test-> go to first page again)' and 'Avslutt (Quit).

    The buttons on the tab control of cases something that I copied an example just to try. It works perfectly, but I can't change the Structure of the event in the example.

    Is it possible to solve with Structure box? Or maybe there are other solutions? Feel free to edit my .vi if you wish

    Thanks for the help!

    Kind regards

    Same Myhre

    Test engineer

    Hello again,

    I made a fundamental change in your VI.  Only the first box in the first tab works, but I guess that you can sort the rest of them.  I hope it helps to start with.

    Dani

  • HDMI sound can be controlled with a Xonar DG?

    I just installed a map its Xonar DG hoping I could control the sound in the graphics card HD 6670 HDMI connector. When I open sound in Control Panel and select the recording tab, it says under the tab stereo mix that the sound card is not available. There is no way to enable it via the HDMI connector?

    Thanks, Jeff

    Hi Jeff,

    I suggest you to follow the article provided to solve the problem.

    Follow the steps in the article.

    http://www.ASUS.com/Sound_Cards_and_DigitaltoAnalog_Converters/Xonar_DG/

    Note: tells what to use and how to install the card.

    You can also contact the Asus Support.

    http://www.ASUS.com/support

    If you need help with the Windows operating system, just tell me and we will be happy to help you.

  • Breadcrumbs can be controlled with CSS on a specific topic?

    I use RH 9 and I have a CHM output.

    We again our intro page and it is significantly different in the style of other pages.

    He doesn't have a master page.

    It has a dark background in the css.

    But other areas have a master page from standard.htt and they have a white background in their css.

    I am trying to find a way control the style of the navigation bar on the home page so that it respects the stylesheet of the current .htm. The breadcrumb comes from the definition of provision:

    You can see here the navigation bar at the top right is a nasty blue colour. Yuck.

    My other pages, apparently because the background is white:

    2015-08-25_10-56-22.png

    Ideas on how to style crumbs just this page?

    I know that the solution here is probably to remove the box above and apply to bread inside the .htt header. But I work in a source repository and that change brings a change to all 1400 + htms which use the standard.htt, and I try to avoid this.

    I found a way to do this. I have used jQuery and the. CSS method to dynamically change the style. It took a lot of trial and error to select the correct code for my page. I did something like this:

    Which resulted in this inside the chm where this paragraph of breadcrumbs added to the compilation:

  • You can use a control with the premier surface / audition?

    Is there an area of control or Tablet out there that works seamless with the Prime Minister and hearing? I clean up audio on the daily and must work super fast. My wrists are starting to kill me and I need to put in place. I would use my mouse and keyboard as little as possible!

    Everything I do in hearing can be quick access keys. I do not work with multitrack. A lot of cleaning of the dialog box.
    Everything I do to the Prime Minister, again, is simple and can be quick access keys

    Would love some dials to zoom / scroll / audio gain... all this is constant.

    All the control surfaces that can be used with hearing are intended for mixing. Thus they consist mainly of a Bank of faders, buttons and touches of channel selection as well as the transport controls. They are not really a program of prophylaxis of the governed. However, one that might be of interest is Contour Designs' http://ergo.contour-design.com/ergonomic-mouse/shuttlepro-v2. There is a certain button models already available for hearing and well first they are all customizable user with the provided editing software.

  • When you open a Photoshop file with Bridge, how can I control what version of Photoshop, the file wil

    At the opening of a bridge of fthrough Photoshop file, how can I check which version of Photoshop, the file will open in?

    I store my PSD files that is adjacent to the original RAW file which it originates.

    If I open the folder and double-click this PSD file, it opens to the CS6. But, if I use the bridge (CS6) for access to and open the same file, it starts by is Photoshop CS5 and then opens this file PSD in CS5.

    How can I control which Photoshop will open a file then choose to open it through Bridge?

    Interesting, but it does not give any idea what I'm supposed to do. No Photoshop ducuments listed.

    Look at the PSD file on the location of Curt and Photoshop Document research. Beside him ideally should show Adobe Photoshop CS6 if you have Bridge open CS6. Click to provide the fly on the menu and choose the correct Photoshop from the list.

    But probably something went wrong with your installation. By default, Bridge chooses the latest version of PS to open its plug in.

    Maybe reset preferences may also help you. Can you provide more details about the version of the OS etc.

    And you have a good reason to keep your Raw and finalized in the same place files. Personally I put them aside and use a convention of appropriate filename (YYYYMMDD and details) so I can easily search the DNG files in my archives if I needed, but I don't make mistake by opening a bad

  • can anyone tell how to compare two documents with two controlled with the same mouse pointers

    can anyone tell how to compare two documents with two controlled with the same mouse pointers?

    Windows and OS X can only display a mouse pointer - it is created by the operating system, not the application.

  • Open with options: I want to add a new application to the list right click on file-> open with and rearrange the list so my search app is first. I know that I can use open with-> other and select any application, but it takes too much time since I u

    I want to add a new application to the list right click on file-> open with

    and also reorder the list so my search app is first / top of the list.

    I know that I can use open with-> other and select any application, but it takes too long I should use my intended application in this way several times a day.

    Basically, I'm looking for a configurable way configure open with, something more to send to Windows.

    Thank you very much for all the advice offered.

    The operating system, not you, not control that open with the menu command.

  • Have no control with the mouse on my Satallite P300-123

    I have a problem with my mouse on the laptop. When I use the mouse, the mouse is every time left right up down.
    So I have no good control with the mouse.

    Can someone help me with this probem?

    (Sorry for my English)

    Hello

    Do you use the touch pad or external mouse?
    If you use an external mouse disable touchpad by using the FN + F9 key combination, especially when you use the keyboard.

  • Re: Cannot use remote control with my Satellite P20

    I just got hold of a PSP20E and the remote control (2 of them) does not work, the light blinks but that's all. When I try to set up in the Media Center settings, I get the message unable to detect the remote sensor.

    I was told by the previous owner it was working, the only thing I've done is to adapt to a new DVD (TEAC DV-W28E) player and loads of recommended Windows updates. The BIOS version is 1.6 and I'm under Win XP MCE (sp2). Any ideas would be welcome.
    Either by the way, I write a BIOS updated on a CD, or do I have to buy a floppy drive?

    Hello, Alan

    I used Satellite P20 over 2 years and I never noticed any problem with the small remote control. I guess you bought second-hand laptop and in my opinion, the first things you need to do is install the OS via recovery CD.

    When the laptop to factory settings, you must test the operation of the equipment, in particular the use remote control. Recovery image is designed so that everything should work. If this isn't the case, it may be just because of a malfunction of the equipment. As I've already said I used this laptop long enough and never noticed any problems.

    To be honest I didn t make updates because the BONE was very well set up. As I said, you can test it with recovery image.

    The BIOS update you need floppy drive.

  • How to use the "Toshiba controls" with other players?

    Heey

    I have a Satellite with Toshiba controls. How can I change so I can use the buttons for other media players and not only Windows Media Player?

    A dude sorry for the bad news, but I fear that it is not possible to use the Toshiba controls with another application as with WMP (CD) and WinDVD (DVD)
    I think that the utility was already programmed and designed to use only these two applications.

  • The movement of my robot can be controlled by the entry of a camera control in labview?

    I'm new to mindstorms and I'm trying to interface a camera that I can easily control in Labview with the NXT unit movement.  I want this to be real time.  What is the best way to get Labview to send commands that get immediately updates implemented by unity NXT?  Thank you.

    Sorry - fact.  Thank you.

  • What can the LAbview with a USB webcam?

    Hi there, I was wondering if someone can help me with my main project.

    I intend to purchase the NI Labview remote control.

    I want to be able to control the distance of Labview Panel through the web.

    Is it easy to generate NI Labview Remote Panel application on my own? I'm still in College.

    or can I buy the NI Labview Remote Panel app for $309 and use applications to control my labview through the web software.

    in this case, I counted about writing software to take the USB camera and post it on the web.

    What can I do with the usb camera?

    can I change the color? hear the sound? you guys can suggest me to do if I get to work with the web?

    Help, please...

    Thank you in advance...

    OK, back to topic.

    A classic exercise would be the detection of changes such as the detection of an object moving for security, etc.. Expand on that and save images when movement has been detected. Another step further, to subtract the background of the object in motion and present a sequence of images of just the moved object.

    Too exotic?

    That level down to a manually-initiated process to do a "what's new? It compares a before and after picture and shows you what has changed.

    Ben

  • PID control with big delay in the process variable

    Hello

    My goal is to control the temperature via a valve and heat exchanger. I proceeded variable (temperature) measured from a hose. This temperature should be raised a few degrees with a heat exchanger. So basically I need to order a valve that allows the water to flow through the heat exchanger to raise the temperature to the desired level.

    My original plan was to use a base PID regulation to operate the dispenser. However, it is about 0.5 to 1 minute of delay time in the temperature probe after I opened the valve, which increases the temperature. This leads to a situation where the PID regulation valve fully open during this period (trying to get the temperature rise). Then once the temperature begins to rise it fires quite quickly. PID begins turning the tap off almost immediately, but because of the time delay in the sensor, the temperature exceeds seriously. This led to severe oscillation and at worst unstable processes. I tried to adjust the PID control to "predict" the timer to close the valve in advance to minimize the excess, but failed.

    I would appreciate if anyone has any ideas how to make this type of control with Labview PID functions. I also wonder if there is a better type of control procedure for this scenario as a PID control?

    -Lars

    This is a very common situation in the heating control, and generally PID can be adjusted to make it work. How do you do the tuning? If you do it by trial and errors, you have little chance to succeed. For a slow process with time delay, I like to use the method Cohen Coons, or similar open Ziegler-Nichols-loop method. The idea is that you temporarily remove or disable the PID. Set the valve in a fixed position and wait for the temperature to stabilize. Then, change the setting of the valve and record temperature at regular intervals data until the temperature is stable again to a new value. Use these data to get the initial values of PID using the equations provided by the tuning method you choose.

  • Update of digital control with different values with array function

    Hello

    I have attached my code base. I want to execute the code for 2 sets of digital control with a gap between the two values, then pass it. Something like that

    ABC

    Initialize the P1 = 10; P2 = 20; P3 = 30; P4 = 40

    Run the code

    delay = 10ms

    Update of P1 = 150; P2 = 200; P3 = 350; P4 = 500

    Run the code

    jump to abc

    I am stuck how can I update the values of P1, P2, P3, P4? I thought about using a function table but couldn't go further.

    Thanks for the help,

    Ana

    Hello Ana,

    One way you might achieve what you are looking for is using property nodes. These property nodes will allow you to change the values of the block diagram control. You can set up a structure of case inside your loop that will change control through nodes of property value after a certain number of iterations. Here is a community sample that shows how to use the nodes property to change the Boolean controls:

    https://decibel.NI.com/content/docs/doc-22669

    -Erik S

Maybe you are looking for