Any example code using Generic IVI Scope driver to get an External Trigger from a Scope?

I'm using a LeCroy WavePro 950.

I have done that using a "waverunner" if memory serves me correctly.
Did you check out the driver available for download from this site?
http://zone.ni.com/idnet97.nsf/9b2b33e1993d877786256436006ec498/bd22a2bf3d4a5503862569a7007778d7?OpenDocument
I first had to figure out how to get the scope trigger manually. Once I had that figured, I was able to adapt the example to do the triggering.
Hope this helps,
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction

Similar Messages

  • Any Examples of using ActiveCollectionModelDecorator with POJO data control

    Are there any Examples of using ActiveCollectionModelDecorator with POJO data control in any of the sample packs?

    OK, here's an quick example. Create a new Windows Forms application and add a ScatterGraph and a Label to the form. Add a cursor to the ScatterGraph, then add the code below to the form. This generates 50 random data points when the form is loaded and plots them, then uses the cursor's AfterMove event to display the current X and Y positions in the label. Here's the code:
    Private Sub OnFormLoad(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Const dataLength As Integer = 50
    Dim xData(dataLength - 1) As Double
    Dim yData(dataLength - 1) As Double
    Dim rnd As Random = New Random
    For i As Integer = 0 To dataLength - 1
    xData(i) = i
    yData(i) = rnd.NextDouble() * 10
    Next
    ScatterGraph1.PlotXY(xData, yData)
    End Sub
    Private Sub OnAfterMoveXYCursor(ByVal sender As Object, ByVal e As NationalInstruments.UI.AfterMoveXYCursorEventArgs) Handles XyCursor1.AfterMove
    Label1.Text = String.Format("({0}, {1})", e.XPosition, e.YPosition)
    End Sub
    Hope this helps.
    - Elton

  • There's any example of using the gateway plugin functionality?

    Hello again!!! xD
    There's any example of using the gateway plugin functionality?

    To put your custom media element loaded from a plugin on the stage, you can use a MediaContainer object:
    var adContainer:MediaContainer;
    adContainer.width = 468;
    adContainer.height = 60;
    adContainer.addMediaElement(adElement);
    addChild(adContainer); // assuming we're on a Sprite.
    The video element can be in its own container:
    var videoContainer:MediaContainer;
    videoContainer.width = 468;
    videoContainer.height = 60;
    videoContainer.addMediaElement(videoElement);
    addChild(videoContainer);
    Regardless of wheter or not the adElement and videoElement are in a parallel element together, each indiviual view will appear in the assigned container.
    Does that anwer your question?
    Cheers,
    Edwin

  • About a year ago we purchased a used macbook pro and can not get music to transfer from iPhones to mac

    about a year ago we purchased a used macbook pro and can not get music to transfer from iPhones to mac

    how can i get All music transferred? even non purchased

  • Any example code to generate and measure both channels using a 4451 DSA card?

    I want to generate signals and check the magnitude and phase performance between the inputs on a 4451 DSA card. It seems like there would be some example code already available for this function.

    I've attached an example which shows how to perform sychronized input and output with a NI-4451 board. This example only acquires the raw voltages and displays them on a graph. If you want magnitude and phase information, consider using a complex FFT algorithm.
    Hope this helps,
    Jack Arnold
    Application Engineer
    National Instruments
    Attachments:
    DSA_Simultaneous_IO_(reduced_ringing).vi ‏177 KB

  • Ni 6111 and Single Scan mode - any example code

    Hi,
    I am using the  Measurement Hardware Driver Development Kit (MHDDK) to program an NI 6111. I just cannot work out how to get
    single scan to work. No matter what I do, I either get no conversions or a full FIFO.
    The example code does not include any Single Scan examples and I would be extremely grateful if someone could provide me with example code.
    thanks
    Russell Thamm

    Hi Russell-
    Is there a reason why you have decided to perform register-level programming with this device?  It is supported by NI-DAQmx for Windows and NI-DAQmx Base for Linux and Mac.
    Regardless, if you would like to request support for the MHDDK I would encourage you to repost your question on the DDK Forum.
    Hopefully this helps-
    Tom W
    National Instruments

  • Any example to use TransposeData()

    Hi,
    I want to use TransposeData() to transpose my 2D array of type char.
    char temp[100][100];
     for(x = 0; x <= row; x ++)
      for(y = 0; y <=col; y ++)    
       temp[x][y]= data[x][y];
     TransposeData  (temp,1, row*col, col);
    I am getting row, col, data from other function.TransposeData() is not actually transposing my data and I am also not getting any error for this. I am suspecting the 2nd parameter 'dataType', I am not sure what to give for 'char' data type.I just tried with 1.
    Can anyone guide me in this...
    Thanks,
    Haari

    Hello Haari -
    I'm not sure if you've found the answer to this or not, but you should pass VAL_CHAR for the second parameter.  Once you've done that, your code should work as you expect.
    Just FYI - when in CVI, you can display the function prototype by pressing ctrl+shift+space when editing.  This will bring up a tooltip showing the prototype:
    Once you've done that, you can navigate to the parameter you're interested in and get additional help.  If the parameter has a little box with a '...' next to it, you can select the button or press ctrl+shift+enter to bring up a helpful dialog or list:
    NickB
    National Instruments

  • Any example code for WVD spectrogram in labview ?

    I heve been trying to implement the WVD spectrogram in my vi with no luck. Can't find any examples on how to do it.

    Look at the Functions palette >> Analyze >> Signal Processing >> Frequency Domain >> WVD Spectrogram.vi.
    This is in LV 7.1.1 Full.
    The WVD uses a different kernel than the Fourier transform and works well with rapidly changing signals. The major disadvantage is the large amount of spurious signal that appears in the spectrogram.
    Lynn

  • Any Example code site for MQ v6.0 Clustering

    Hi All
    Can any body please help me some sites, where I can get some example codes, for MQ Clustering in java....
    Windows platform
    MQ Webspere v6.0
    thanks in advance
    Balmiki

    I'm looking for exact property need to be set for SSL in Oracle MQ adapter.
    It would be very helpful if Oracle have some standard docs.

  • Any examples of using XSU for multi level nesting

    Are there any examples of inserting into a set of object tables using the XSU where the parent-child relationship is more than 2 levels deep. i.e where you have to use REF's or views to do this.
    I have had no problems with a 2 level insert using object tables but that's not much use to me.
    I know that natively only 2 levels of nesting are supported.
    I may have to resort to parsing the data manually using the PL/SQL parser if I can't get the XSU to do it.
    null

    lAnubisl wrote:
    My customer's solution has several issues generating PDF files and we are looking at the Acrobat SDK as at the instance of the final truth.
    I use Interop.Acrobat.dll as a .NET project reference to open and resave PDF documents. I'd like to do all things I mentioned above.
    After years and years, I have concluded that if you do serious PDF development, you need a set of libraries. For instance, if you are doing typesetting type of work ("vertical center", "horizontal center", "margin", etc., etc) , there is an excellent library from a guy in Germany (land of Johannes Gutenberg and printing presses)...
    ... which turned out to be useless in my next project which dealt with AcroForms.
    I know exactly what you mean by "the final truth", sometimes I wish Adobe had some sort of official validating tool (like XML does).
    Per your comments, I would recommend you to consider this library. It is available in all languages and its output is the same quality as Adobe's or at least in the same league:
           http://www.pdftron.com/pdfnet/index.html
    If you want to comment further, we must go to a different forum, since we are not supposed to discuss any non-Adobe products here.

  • Any example for using LDAP for WLS7.0

    Is there any example I can follow to setup a LDAP as the default security realm
    for wls7.0 ?

    Hello Friend,
    The detailed instructions for setting up an external LDAP
    provider for WLS 7.0 can be found at the following link.
    http://e-docs.bea.com/wls/docs70/secmanage/realm.html#1172008
    I hope that helps.
    Regards,
    Tom Hegadorn
    Developer Relations Engineer
    BEA Support
    "Friend" <[email protected]> wrote:
    >
    Is there any example I can follow to setup a LDAP as the default security
    realm
    for wls7.0 ?

  • How to Use AccessibleObjectFromWindow API in VBA to Get Excel Application Object from Excel Instance Window Handle

    I need to get the Excel.application object from a window handle using AccessibleObjectFromWindow. I can't seem to make the code work. First, I successfully search for the XLMAIN windows. Then, when I get a handle, I execute the AccessibleObjectFromWindow
    function. It seems to return a value of -2147467262 in all cases. Therefore, I believe that it is returning an error value. I can't figure out how to determine the meaning of this value.
    If it is an error value, I believe that one or more arguments are in error. My best guess at present is that the GUID argument is incorrect. I have tried two GUID values: {00020400-0000-0000-C000-000000000046} and {90140000-0016-0409-0000-0000000FF1CE}.
    I have seen both used in conjunction with OBJID_NATIVEOM. Neither one seems to work. I really would prefer not to use the second one as it has an Excel major and minor version number. I would hate to have to change this code, if a new minor version appeared.
    The attached code has been commented to show which parts have been shown to work and which not. I'm at my wits end and really need help.
    Thanks
    'This module is located in Access 2010, but this is an Excel question.
    Option Compare Database
    Option Explicit
    ' Module-Level Declarations
    'The GetDesktopWindow function and FindWindowEx function work just fine.
    Public Declare Function GetDesktopWindow Lib "user32" () As Long
    Public Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" _
    (ByVal hWnd1 As Long, _
    ByVal hWnd2 As Long, _
    ByVal lpsz1 As String, _
    ByVal lpsz2 As String) _
    As Long
    'I'm not getting the expected output from this function (see below)
    Private Declare Function AccessibleObjectFromWindow& Lib "oleacc.dll" _
    (ByVal hwnd&, _
    ByVal dwId&, _
    riid As GUID, _
    xlwb As Object)
    Type GUID
    lData1 As Long
    iData2 As Integer
    iData3 As Integer
    aBData4(0 To 7) As Byte
    End Type
    Function ExcelInstances() As Long
    ' Procedure-Level Declarations
    ' Value of OBJID_NATIVEOM verified by checking list of Windows API constants _
    on this site: http://www.lw-tech.com/q1/base.htm
    Const OBJID_NATIVEOM = &HFFFFFFF0
    Dim hWndDesk As Long 'Desktop window
    Dim hWndXL As Long 'Child window
    Dim objExcelApp As Object 'Final result wanted: Excel application object
    'Following variable (xlapp) to be set by AccessibleObjectFromWindow function
    Dim xlapp As Object
    Dim IDispatch As GUID 'GUID used in call to AccessibleObjectFrom Window function
    'Set up GUID to be used for all instances of Excel that are found
    Dim tmp1 As Variant 'Return value from AccessibleObjectFromWindow
    ' Executable Statements
    SetIDispatch IDispatch
    IDispatch = IDispatch
    'Get a handle to the desktop
    hWndDesk = GetDesktopWindow 'This seems to work
    Do
    'Get the next Excel window
    'The following statement seems to work. We are finding and counting _
    correctly all the instances of Excel. hWndXL is non-zero for each _
    instance of Excel
    hWndXL = FindWindowEx(GetDesktopWindow, hWndXL, "XLMAIN", vbNullString)
    'If we got one, increment the count
    If hWndXL > 0 Then
    'This works. We correctly count all _
    instances of Excel
    ExcelInstances = ExcelInstances + 1
    'Here is the problem. The following statement executes and returns a value of _
    -2147467262. xlapp, which is passed by reference to AccessibleObjectFromWindow, _
    is set to nothing. It should be set to the object for Excel.application. _
    I believe that this value is not an object. I tried to reference tmp1. in the _
    immediate window. There was no Intellisense.
    'I think that the function in returning an error value, but I can't figure _
    out what it is. I believe that AccessibleObjectFromWindow returns error _
    values, but I don't know where to find their values so I can interpret the _
    function's results.
    'As best I can tell, the hWndXL parameter is correct. It is the handle for _
    an instance of Excel. OBJID_NATIVEOM is set correctly (see constant declaration _
    above). xlapp is passed by reference as a non-initialized object variable, which _
    will be set by AccessiblObjectFromWindow. IDispatch may be the problem. It is set _
    as shown below in the procedure SetIDispatch(ByRef ID As GUID). This procedure _
    appears to work. I can see that IDispatch is set as I intended and correctly _
    passed to AccessibleObjectFromWindow.
    tmp1 = AccessibleObjectFromWindow(hWndXL, OBJID_NATIVEOM, IDispatch, xlapp)
    'Need to write code to test tmp1 for error. If none, then set objExcelApp = _
    object. Also, I exect xlapp to be set to Excel.application
    End If
    'Loop until we've found them all
    Loop Until hWndXL = 0
    End Function
    Private Sub SetIDispatch(ByRef ID As GUID)
    'Defines the IDispatch variable. The interface _
    ID is {90140000-0016-0409-0000-0000000FF1CE}.
    'NOT USING {00020400-0000-0000-C000-000000000046}, _
    which could be the problem
    '9 is release version - first version shipped (initial release)
    '0 is release type - retail/oem
    '14 is major version
    '0000 is minor version
    '0016 is product ID - MS Excel 2010
    '0409 is language identifier - English
    '0 is x86 or x64 - this is x86
    '000 reserved
    '0 is debug/ship
    '000000FF1CE is office family ID
    With ID
    .lData1 = &H90140000
    .iData2 = &H16
    .iData3 = &H409
    .aBData4(0) = &H0
    .aBData4(1) = &H0
    .aBData4(2) = &H0
    .aBData4(3) = &H0
    .aBData4(4) = &H0
    .aBData4(5) = &HF
    .aBData4(6) = &HF1
    .aBData4(7) = &HCE
    End With
    End Sub
    DaveInCalabasas

    I don't think you can return a reference to Excel's main window like that as you are attempting to do.
    Ref:
    http://msdn.microsoft.com/en-us/library/windows/desktop/dd317978(v=vs.85).aspx 
    It's relatively straightforward to return any workbook's window in any given instance, and in turn it's parent Excel app. Try the following and adapt as required (and include error handling) -
    Option Explicit
    Private Declare Function FindWindowEx Lib "User32" Alias "FindWindowExA" _
    (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, _
    ByVal lpsz2 As String) As Long
    Private Declare Function IIDFromString Lib "ole32" _
    (ByVal lpsz As Long, ByRef lpiid As GUID) As Long
    Private Declare Function AccessibleObjectFromWindow Lib "oleacc" _
    (ByVal hWnd As Long, ByVal dwId As Long, ByRef riid As GUID, _
    ByRef ppvObject As Object) As Long
    Private Type GUID
    Data1 As Long
    Data2 As Integer
    Data3 As Integer
    Data4(7) As Byte
    End Type
    Private Const S_OK As Long = &H0
    Private Const IID_IDispatch As String = "{00020400-0000-0000-C000-000000000046}"
    Private Const OBJID_NATIVEOM As Long = &HFFFFFFF0
    Sub test()
    Dim i As Long
    Dim hWinXL As Long
    Dim xlApp As Object ' Excel.Application
    Dim wb As Object ' Excel.Workbook
    hWinXL = FindWindowEx(0&, 0&, "XLMAIN", vbNullString)
    While hWinXL > 0
    i = i + 1
    Debug.Print "Instance_" & i; hWinXL
    If GetXLapp(hWinXL, xlApp) Then
    For Each wb In xlApp.Workbooks
    Debug.Print , wb.Name
    Next
    End If
    hWinXL = FindWindowEx(0, hWinXL, "XLMAIN", vbNullString)
    Wend
    End Sub
    'Function GetXLapp(hWinXL As Long, xlApp As Excel.Application) As Boolean
    Function GetXLapp(hWinXL As Long, xlApp As Object) As Boolean
    Dim hWinDesk As Long, hWin7 As Long
    Dim obj As Object
    Dim iid As GUID
    Call IIDFromString(StrPtr(IID_IDispatch), iid)
    hWinDesk = FindWindowEx(hWinXL, 0&, "XLDESK", vbNullString)
    hWin7 = FindWindowEx(hWinDesk, 0&, "EXCEL7", vbNullString)
    If AccessibleObjectFromWindow(hWin7, OBJID_NATIVEOM, iid, obj) = S_OK Then
    Set xlApp = obj.Application
    GetXLapp = True
    End If
    End Function
    Note as written if an instance does not have any loaded workbooks a reference will not be returned (though a workbook can be added using DDE, but convoluted!)
    FWIW there are two other very different approaches to grab all running Excel instances though something along the lines of the above is simplest.
    Peter Thornton

  • Upgrade hard drive or get an external?

    I have an iBook G4, and apparently I only have 30 GB on my hard drive. Would it be more cost efficient for me to get an external hard drive for some of my files, or should I upgrade the hard drive I have?

    The answer depends on a couple of things.
    How much you depend on your iBook (and the files) as a portable device, and whether it would be a burden to carry around another hard drive to manage those extra files;
    Whether most of your files are "active" (ie, they're part of your iTunes/iPhoto library, or are files that you use frequently) or if they can be archived off the drive.
    Bear in mind also that internal hard drives aren't expensive, but they are fiddly and time-consuming to install. If you have to pay a technician to install it, you may end up paying a lot for the time. On the other hand, moving your internal drive up to 100GB or more would give you a lot of breathing space for future expansion.
    If you need to stay portable but still decide on an external drive, you can get a small Firewire drive that doesn't require additional mains power (it's powered directly through the Firewire connection). If you're happy leaving the drive in one location, you can go larger at the cost of having to use a separate power connector.
    Hope that helps inform your decision.
    Matt

  • Any examples of using OVS in interactive forms?

    Hi All,
    I'm trying to use OVS input help in Adobe forms (which was suggested by OSS support as a workaround to another issue) and I see there some people in this forum asking similar questions but I don't see an answer posted in any of the threads.
    When I import the SDN tutorial example for OVS "WebDynpro_OVS_Valuehelp" and I add an interactive form to it and implement a call to the OVS, nothing appears to happen.
    Note that the way I implemented it (and the way OSS suggests) is to use the "value help button" from the native pallet and the and then change the Javascript by filling in the field name in this section of code:  var fieldName = "*INSERT_NAME_HERE*";
    So my question is, can somebody point me to a sample project that I can download and import to show me OVS working in Adobe?
    Many thanks,
    -Tom

    Hi All,
    I'm trying to use OVS input help in Adobe forms (which was suggested by OSS support as a workaround to another issue) and I see there some people in this forum asking similar questions but I don't see an answer posted in any of the threads.
    When I import the SDN tutorial example for OVS "WebDynpro_OVS_Valuehelp" and I add an interactive form to it and implement a call to the OVS, nothing appears to happen.
    Note that the way I implemented it (and the way OSS suggests) is to use the "value help button" from the native pallet and the and then change the Javascript by filling in the field name in this section of code:  var fieldName = "*INSERT_NAME_HERE*";
    So my question is, can somebody point me to a sample project that I can download and import to show me OVS working in Adobe?
    Many thanks,
    -Tom

  • Is there any example code to send a message from Service Broker to ActiveMQ?

    I would appreciate any links or discussion on this. I have found a number of similar questions but no definitive answer that it can be done. There is a .NET interface to ActiveMQ so maybe the answer is a C# CLR procedure to get this done.
    Thanks
    Tom

    Hi Thomas,
    A C# CLR procedure sounds like a fitting solution, since basically what you need is to access some program external to SQL Server.
    Note that doing so will require you to create an UNSAFE assembly within SQL Server, and probably also set the database as TRUSTWORTHY. These are serious security risks and not recommended unless there's no other choice.
    A more secure solution would be to have some .NET application that accesses your Service Broker queue (instead of an automatic reader handling procedure), and programmatically sends its contents to the ActiveMQ. This is essentially a 3rd party component
    that would need to be developed.
    I hope that helps
    Eitan Blumin; SQL Server Consultant - Madeira Data Solutions;

Maybe you are looking for

  • Missing jar - BOE XI3.1 SP3 IG Kit for PeopleSoft with client comp option

    Hi Team, I have successfully installed  BOE XI 3.1 SP3 in our Linux m/c and while installing Integration Kit for PeopleSoft in Windows m/c selected with Client Computer option the Kit shown the message unable to find pscafinstall.jar from BusinessObj

  • Process chain not executing

    Process chain is activated, but not getting execute. Also no jobs are being scheduled for the same. Please help ASAP. Regards, Iira

  • Printing all PDF files in a folder in file name order

    When I do a select all and then Print the PDF files selected are printing in a random order.  Is there any way to have them print in the order that they appear in the folder (Listed by name)?  Thanks

  • Ciscoworks 2.6 and Nexus 7000 issues

    Running LMS 2.6 with RME version 4.0.6, and DFM 2.0.13. We keep getting false alerts in DFM on the temperature in our Nexus 7000 switches. The alert says that the high temp threshold is 45C, and it's being exceeded at 46C. The thing that bothers me i

  • [OT] Se busca becario  en Valencia

    This is a multi-part message in MIME format. ------=_NextPart_000_000D_01C6D7E3.3BB56710 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Perdonad por el [OT], pero estamos buscando un becario para una agen