-
Posts
6,481 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Gallery
Everything posted by attila
-
Waveforms . Analog Discovery . UART data stream to scope display
attila replied to SIB_V3's question in Test and Measurement
- 4 replies
-
- analog discovery 2
- uart
-
(and 5 more)
Tagged with:
-
Hi @J.J. 1. The settings in the application are not immediately executed but with a few ms delay. When running a Script are executed during wait or immediately on instrument's config, run, single or stop call. With the "CAL_START=1; config();" you make sure the cal_start is set before SignalA=1 This, according your timing diagram. You can also use the following to have certain timing between cals_start and SignalA StaticIO.Channel0.CAL_START.value = 1; StaticIO.config(); // apply CAL_START now wait(0.02); StaticIO.Channel0.SignalA.value = 1; StaticIO.config(); // apply SignalA now wait(2); 2. Yes. For synchronized and record modes both single and run will perform one capture.
-
analog discovery ii AD2 : "no device detected"
attila replied to aket's question in Test and Measurement
Hi @aket The device was probably damaged by high USB voltage. I don't think it worth replacing the FTDI since probably other ICs are also fried, see the following two cases: -
Waveforms - define default measurements?
attila replied to philipg's question in Test and Measurement
Hi @philipg You could save workspace or project with your setup. For faster loading save it "without acquisition" and you have "Open last workspace on start" checkbox on the main page. -
(Waveforms) Scope is not triggered by Wavegen
attila replied to Dimitris's question in Test and Measurement
Hi @Dante Use newer version which generates trigger for every Wavegen signal period when run length is continuous: The 3.18.28 or older output high while running and the trigger is considered to be the rising edge. So it will only trigger when Wavegen is started or finite run used. -
will Analog Discovery 2 work with Android OS on a tablet?
attila replied to Jaye's question in Test and Measurement
Szia @Andras I was referring to device(s) with network support like ADP3250, ADP3450 -
will Analog Discovery 2 work with Android OS on a tablet?
attila replied to Jaye's question in Test and Measurement
Szia @Andras Unfortunately I don't see having Android support any time soon. The WF app can be compiled for Android, I've tested it on my phone. The UI would need some tweaking for touch operation and small screen. The problem would be with the USB device drivers but it would be possible to support network devices. -
Hi @Tuan.Dinh The command and read/write are handled by separate function calls so there will be a few ms delay between these. You could reduce the frequency, like to 1kHz or below, to reduce the proportion of delays vs bit rate. The Read0 is for SDIO, where the data signal is bidirectional, ICs where the first bits are MOSI (command, address, write-data) and the following may be MISO (read-status, read-data).
-
Hi @mnorth Did you set the master enable? as it is AnalogIO_AnalogDiscovery2_Power.py By default on app/script exit or device close function the outputs are stopped (disabled). Keep the app/running or set the onclose to run. # master enable dwf.FDwfAnalogIOEnableSet(hdwf, c_int(True)) # 0 = run, 1 = stop, 2 = shutdown dwf.FDwfParamSet(DwfParamOnClose, c_int(0))
-
Signal assignment for CAN on digital discovery in Waveforms
attila replied to itsnathan's question in Test and Measurement
Hi @itsnathan See the following post: -
WaveForms Logic bug: Moved signals lose name
attila replied to LarsB's question in Test and Measurement
Hi @LarsB It is solved in newer version: -
WaveForms Logic: Arrows scroll the wrong way
attila replied to LarsB's question in Test and Measurement
Hi @LarsB With the arrow swapping I wanted to indicate the current navigation direction. -
multiple Digital Discovery logic analyzers via Python
attila replied to JeromeBoateng's question in Test and Measurement
Hi @JeromeBoateng The DD has 24 DIN and 16 DIO lines so it would be easier to handle all 20 by one device. Regarding device synchronization see the following post:- 3 replies
-
- digital discovery
- python
-
(and 1 more)
Tagged with:
-
WaveForms Logic: Arrows scroll the wrong way
attila replied to LarsB's question in Test and Measurement
Hi @LarsB It depends on the perspective, some people may expect to shift the signal while others the view. You change the Navigation option under the gear drop-down or right click: -
Waveforms . Analog Discovery . UART data stream to scope display
attila replied to SIB_V3's question in Test and Measurement
Hi @SIB_V3 What is not working?- 4 replies
-
- analog discovery 2
- uart
-
(and 5 more)
Tagged with:
-
About ADP5250 using drive API to output voltage
attila replied to Kou's question in Test and Measurement
Hi @Kou You can use the WF SDK to control the ADP5250 as described in the WF pdf manual and it is compatible with most of the examples. This device can also controlled natively with dadp5capi like this: C:\Users\Public\Documents\National Instruments\VirtualBench Documentation\ C:\Users\Public\Documents\National Instruments\VirtualBench ANSI C Examples\ C:\Program Files (x86)\National Instruments\Shared\ExternalCompilerSupport\C\lib32\msvc\ nivirtualbench.lib #include <stdio.h> #include <windows.h> #include "nivirtualbench.h" // change functions in nivirtualbench.h like: // typedef niVB_Status (__cdecl *niVB_Initialize)(uint32_t version, niVB_LibraryHandle* handle); int main(void){ HMODULE hNil = LoadLibraryA("dadp5capi.dll"); if(!hNil) return 0; niVB_LibraryHandle hLib; niVB_Initialize vb_Initialize = (niVB_Initialize)GetProcAddress(hNil, "niVB_Initialize"); niVB_Finalize vb_Finalize = (niVB_Finalize)GetProcAddress(hNil, "niVB_Finalize"); //.... if(vb_Initialize(NIVB_LIBRARY_VERSION, &hLib)) { FreeLibrary(hNil); return 0; } //.... vb_Finalize(hLib); FreeLibrary(hNil); printf("done"); return 1; } -
How do I operate Wavegen of 100Hz by using SDK?
attila replied to suke's question in Test and Measurement
Hi @suke See the following script: AnalogOut_Pulse_Sync.py It generates the following and identical to the Wavegen configuration from the application. -
Analog Discovery 2, Waveform Generator Resistance
attila replied to latot's question in Test and Measurement
Hi @latot Use a ~500 Ohm series resistor when connecting it to low impedance to limit the current to 10mA and you can safely generate +/-5V signals. The device is protected and won't be damaged if you short the AWG output directly to anything between +/-5V, including GND. This is a protection and it is not recommended to be hold for long duration due to generated heat and unpredictable (temperature/time dependent) 45-65mA current. In regards to you heat/power question: The PTC is in the feedback loop and when shorting the output to GND the output amp will push it above +/-5V, so more than 5V will drop on the PTC, the worst is when connected to +/-5V, the drop will be above 10V. -
Errors: "Device is not calibrated", "...stopped working due to overcurrent"
attila replied to Zapp's question in Test and Measurement
Hi @Zapp I've informed the support team before the earlier post. -
bode plot measured value presentation
attila replied to Kurt Blum's question in Test and Measurement
Hi @Kurt Blum 1. If you are referring to the Nyquist and Nichols plots, no, these are separate plots with different X/Y. You could eventually use custom plot in the Script tool or external application. 2. Yes, File/Export (Ctrl+E), select the Source you want and Save or Copy to Clipboard. -
multiple Digital Discovery logic analyzers via Python
attila replied to JeromeBoateng's question in Test and Measurement
Hi @JeromeBoateng See the WF SDK/ samples/ py/ DigitalIn_Trigger.py or other similar examples and the pdf manual. Remove or set to zero option to have DIN0... order: dwf.FDwfDigitalInInputOrderSet(hdwf, c_int(0)) Set sampling format to 32 bit and use c_uint samples: dwf.FDwfDigitalInSampleFormatSet(hdwf, c_int(32)) To trigger on any rising edge on DIN0-19: dwf.FDwfDigitalInTriggerSet(hdwf, c_int(0), c_int(0), c_int(0xFFFFF), c_int(0))- 3 replies
-
- digital discovery
- python
-
(and 1 more)
Tagged with:
-
Errors: "Device is not calibrated", "...stopped working due to overcurrent"
attila replied to Zapp's question in Test and Measurement
Hi @Zapp For warranty and replacement contact the support.digilent at ni.com specifying the Date of Purchase, Seller and Purchase Order/ Web order Number