Jump to content

rjratnip

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by rjratnip

  1. Hi, I'm trying to determine how to measure a signal in a narrow bandwidth using the SDK. I have a Discovery 3 device and am wondering which, if any, of the sample py programs demonstrate this. What I basically want to do is set the analyzer to look at a particular frequency and BW and see if there's a signal there, returning the voltage of any signal that might be there. Basically, like setting up the spectrum analyzer at a fixed frequency and span to return dbV. Any guidance is appreciated. Thanks!
  2. Hi, I'm trying to understand the idxDevice value in the FDwfDeviceOpen() function. The documentation says it is a 0-based value for the devices, so I assumed if I only have one device connected then the idxDevice would be 0. But, if I specify 0 then no devices get opened. I ran a loop from 0-255 for the index, and it found no devices. If I specify the -1 value for "open all devices", then the device gets opened. One reason I want the index is for using the FDwfEnumDeviceIsOpened(int idxDevice, int *pfIsUsed) function so I can tell if the device is already opened for managing multiple measurements in my software. I prefer not to keep opening and closing devices as it takes some time to do this. Can you explain how to determine what the value for this index should be for my device? Is there a way I'm not seeing to determine the index of a device that is opened? I'm using a Analog Discovery 3 device. Thank you. Robert
  3. Thanks for your help so far. We upgraded to a Pi 4 and it works now. I downloaded the Waveforms SDK and tried some of the test python scripts. Some work, others result in a segmentation fault. One that works is the test_temperature.py, which appears to measure the board temperature of the the Discovery. For some of the others, I stepped through the python code and when the device is opened, the device name is blank. I also see an enumeration in device.py that does not include the "Analog Discovery 3", which is what I have. What is the device name that is supposed to be reported with this device? Have the test scripts been updated for the 3 model or do I need another version of the SDK? From device.py: device_names = [("Analog Discovery", constants.devidDiscovery), ("Analog Discovery 2", constants.devidDiscovery2), ("Analog Discovery Studio", constants.devidDiscovery2), ("Digital Discovery", constants.devidDDiscovery), ("Analog Discovery Pro 3X50", constants.devidADP3X50), ("Analog Discovery Pro 5250", constants.devidADP5250)] Thanks for any help.
  4. Thanks. I've tried multiple USB-C to type A cables and none work. I'm assuming it just doesn't work with a Type A, on a Windows PC or the Pi Zero 2W, even though some on this forum seem to have success with it. I also tried a powered USB-C hub and get the same problems. However, I'm also getting new errors after it kind of starts working, such as: 1. The device has turned off 2. Over temperature, >85C (this just after a couple of seconds of running) 3. Lost connection to the device. 4. And also still get the over-current error. And again, the check box to ignore the over-current appears to do nothing. The error keeps happening and pops up with that box unchecked even though I continue to check it and click 'OK'. Since the Discovery seems to work fine on my Windows laptop, I'm assuming there are fundamental problems with it working on the Pi Zero 2W. Do I need a different Pi model? Unless there is some breakthrough info, I don't see it working on the Pi Zero. We kind of need the Pi Zero for form factor reasons, but if the Discovery 3 does not work on it then that's a mute point. I'd appreciate hearing any other suggestions. The Pi Zero is running the recommended OS from the Raspberry Pi people, it has 512 MB of RAM, and I'm just trying to use the Digilent Waveforms App to see if things work before I delve into try to use the SDK in Python. One last thing, the menu you show above with the "Stop with AUX" selection, that menu is all greyed out and, thus, i can't select anything. What does that mean? Thanks.
  5. I have a Discovery 3 connected to a Raspberry Pi Zero 2W with a USB-C to micro USB adapter. The Discovery is recognized, but when I open an instrument I get a "The device has stopped working due to overcurrent" error. Checking the "Disable current limit" box has no effect. I have connected an external 5V supply to the discovery and still get the same error. Other things of note: 1. Connecting the Discovery to a computer with a USB-C to type A adapter causes it not to work at all. I did not see anything about that as being a problem. 2. If I connect the Discovery to external 5V while it is connected to the Pi via USB, it draws no current through the 5V supply. Disconnecting the USB and reconnecting it causes the Discovery to draw about 600 mA through the 5V supply. Is this intentional? Any help on the overcurrent error and how to fix it is appreciated. Thanks.
×
×
  • Create New...