This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
resources:tools-software:ace:remotecontrol [09 Aug 2018 22:05] – [Examples] Matt McCarn | resources:tools-software:ace:remotecontrol [31 Jul 2020 22:11] (current) – [Python] Michael Sink | ||
---|---|---|---|
Line 7: | Line 7: | ||
===== Examples ===== | ===== Examples ===== | ||
- | === Large Capture With AD9208 === | + | ==== Python ==== |
+ | |||
+ | In order to use Python with the remote control library, you will need to install the Python.Net package. | ||
+ | |||
+ | === Large Data Capture With AD9208 === | ||
+ | |||
+ | Currently 1GB of data can be captured with the ADS8V1 and 2GB of data can be captured with the ADS7V2 using the AsyncRawCaptureToFile transaction. The following example shows how this transaction can be used from a Python script with the AD9208 evaluation platform. | ||
Setup: AD9208 board connected to ADS7V2 or ADS8V1 motherboard. ADC clock = 3GHz, REFCLK = 375 MHz | Setup: AD9208 board connected to ADS7V2 or ADS8V1 motherboard. ADC clock = 3GHz, REFCLK = 375 MHz | ||
+ | Python Code: | ||
< | < | ||
+ | |||
+ | # Copyright (c) 2019 Analog Devices, Inc. All Rights Reserved. This software is proprietary to Analog Devices, Inc. and its licensors. | ||
+ | |||
+ | # These code snippets are provided ‘as is’ with no warranties, guarantees of suitability, | ||
import clr | import clr | ||
Line 17: | Line 29: | ||
import time | import time | ||
+ | # Connect to ACE using the remote control client | ||
sys.path.append(r' | sys.path.append(r' | ||
clr.AddReference(' | clr.AddReference(' | ||
Line 22: | Line 35: | ||
clientManager = adrc.ClientManager.Create() | clientManager = adrc.ClientManager.Create() | ||
client = clientManager.CreateRequestClient(' | client = clientManager.CreateRequestClient(' | ||
+ | |||
+ | # Load the AD9208 plug-in | ||
client.AddHardwarePlugin(' | client.AddHardwarePlugin(' | ||
+ | # Navigate to initialization wizard and set to one converter | ||
client.set_ContextPath(r' | client.set_ContextPath(r' | ||
client.NavigateToPath(' | client.NavigateToPath(' | ||
client.SetWizardParameter(' | client.SetWizardParameter(' | ||
time.sleep(2) | time.sleep(2) | ||
- | |||
- | #Navigate to initialization wizard and set to one converter | ||
client.ApplyWizardSettings(' | client.ApplyWizardSettings(' | ||
- | #Navigate to capture wizard and set the number of samples to 500MSamples (1GB) | + | # Navigate to capture wizard and set the number of samples to 500MSamples (1GB) |
client.NavigateToPath(' | client.NavigateToPath(' | ||
client.SetWizardParameter(' | client.SetWizardParameter(' | ||
- | #Divert the output of the ADS7V2/ | + | # Divert the output of the ADS7V2/ |
client.AsyncRawCaptureToFile(os.path.expanduser(' | client.AsyncRawCaptureToFile(os.path.expanduser(' | ||
+ | # Wait up to 5secs for the capture to complete | ||
+ | client.WaitOnRawCaptureToFile(' | ||
</ | </ | ||
+ | |||
+ | Download Python and Jupyter Notebook versions of this example: | ||
+ | {{ : | ||
+ | |||
+ | ==== LabVIEW ==== | ||
+ | |||
+ | More information on the following example will be added. | ||
+ | |||
+ | {{ : | ||