Lesiastas

Members
  • Content Count

    54
  • Joined

  • Last visited

About Lesiastas

  • Rank
    Frequent Visitor

Recent Profile Visitors

425 profile views
  1. Hi @attilaI was able to reduce the time it takes for RgLong to be processed by putting the start and stop bit between the entire data, not between each character. I also customized several settings. Here's the latest code that I'm using: The test time that I've measured so far are: Can you please check if there are possible improvements to the latest code? I'm not confident that it is the best setup to use at the moment. Thank you for your guidance. Best regards, Lesiastas
  2. Update: I was able to transmit a binary sequence consisting of: 1 start bit + (32 inverted data bits of the word "UART") + 1 stop bit + 6 additional "1" bits (to fill in missing bits in extra byte) I enabled DIOs 0, 1, and 2. I transmitted the data using DIO 0 to DIO 2. The Logic Analyzer was able to receive these raw samples: I was able to parse it by detecting the start bit first then converting the bits of the word "UART" into decimal values. After that, I convert the decimal values into ASCII format. The problem I observed is that the received result is still no
  3. Greetings, I am working on a project using the Pattern Generator and Logic Analyzer functions of Analog Discovery 2. I'm trying to figure out the proper arrangements of bits to be assigned to the Pattern Generator so that the Logic Analyzer can receive it in UART format properly. Let's say I want to transmit the word "UART" using the Pattern Generator. Here's how I'm doing it using the Custom Signal setting in the Pattern Generator: The bits highlighted in green are the start and stop bits while those in yellow are the inverted data bits of the word "UART". I also adj
  4. Hi @attila Thanks for being straightforward with your answer I have a few questions regarding the capabilities of Analog Discovery 2 and its features: 1). Are there other features of AD2 besides the Pattern Generator and Logic Analyzer that can be used to test RgLong to achieve a faster test time? 2). Just in case this is the limitation of AD2, are there other Digilent products that you would recommend to achieve a test time of 10 seconds or less? 3). Can you please explain what setup I need to use to do continuous capture and data processing for RgLong? Best regar
  5. Hi @attila Thanks for the tweaks you've made with the code that I sent. I really appreciate it I have a few questions regarding the capabilities of Analog Discovery 2 and its features: 1). Is it possible to achieve a test time of 5 - 10 seconds using the Pattern Generator and Logic Analyzer features of AD2? Can you please explain what needs to be done to achieve this? 2). If not, are there other functions of AD2 that can be used to test RgLong for 744 iterations to achieve a test time of 5 - 10 seconds or is this the limit of Analog Discovery 2? Best regards, Lesiastas
  6. Hi @attila Thanks for the advice regarding the ConfigOpen. The buffer size of the Logic Analyzer can now handle up to 16384 samples.This is the setup that I'm working on. Please see the following code: - Selects the 4th configuration of AD2 which allocates 16k+ digital buffer - Uses the Pattern Generator to transmit the processed string data. - Uses the Logic Analyzer to receive and decode the transmitted data from the Pattern Generator. The data to be transmitted is RgLong which contains 510 characters. Each character is 10 bits long (1 start bit, 8 data bits, 1 stop bit).
  7. Greetings! I'm working on a project involving the use of the AD2's Logic Analyzer Function. I need to receive 510 bytes of data in the shortest time possible. My questions are: 1). Can the Single/Repeated Acquisition Mode of the Logic Analyzer handle 510 bytes of data? - I observed that it can only handle up to 4096 samples and 1 byte of the data I'm handling is 10 bits (1 start bit, 8 data bits, 1 stop bit). So all in all, the Single/Repeated Acquisition Mode can only handle 409 bytes of data. Is there a way to make it capable of handling 510 bytes of data? 2). What
  8. Hi @attila Thank you for your support regarding the code I'm working on. I'm still getting a big execution time from this group of codes: Public Function AD2_RecordStart(ByVal hdwf As Integer, ByVal fReconfigure As Integer, ByVal fStart As Integer, ByVal fReadData As Integer, ByRef sts As Byte, ByVal cSamples As Integer, ByVal cBuffer As Integer, ByRef cAvailable As Integer, ByRef cLost As Integer, ByRef cCorrupted As Integer, ByRef rgData() As Byte) As Integer 'Record Parameters ReDim rgData(cSamples) Dim fOverflow As Boolean : fOverflow = False Dim
  9. Hi @attila I'm having a hard time figuring out where to insert the snippet of code you've provided. I'd like to ask where should I place it in this VB Script I'm working on. Public Shared Function AD2_RecordStart(ByVal hdwf As Integer, ByVal fReconfigure As Integer, ByVal fStart As Integer, ByVal fReadData As Integer, ByRef sts As Byte, ByVal cSamples As Integer, ByVal cBuffer As Integer, ByRef cAvailable As Integer, ByRef cLost As Integer, ByRef cCorrupted As Integer, ByRef rgData() As Byte) As Integer 'Record Parameters ReDim rgData(cSamples) Dim fOverflow A
  10. Hi @attila I'm really sorry for the confusion that I've caused you. What I'm doing is I'm observing the behavior of the AD2 in the WF application and I integrate those into the VB Script I'm working on. Then if I encounter a really hard showstopper, that's when I go and ask the forums for more details. Thanks for this advice! I'll try exploring the different settings of DwfParamOnClose I'm sorry to be a bother but can you please explain this quote further? Thank you in advance! Best regards, Lesiastas
  11. Hi @attila Thank you for clearing that one. I'll apply that concept to the code I'm working on. Does this mean I have to set the following APIs to these parameters: Dim cSamplesAfterTrigger As Long : cSamplesAfterTrigger = 18000 Dim cSamples As Long : cSamplesAfterTrigger = 18000 'Logic Parameters FDwfDigitalInTriggerSourceSet(phdwf, trigsrcDetectorDigitalIn) FDwfDigitalInTriggerSet(phdwf, 0, 0, 0, &HFFFF) FDwfDigitalInDividerSet(phdwf, (100000000.0 / 230400)) FDwfDigitalInSampleFormatSet(phdwf, 8) FDwfDigitalInBufferSizeInfo(phdwf, BufferSize) If cSamples > Buff
  12. Hi @attila Thanks for reminding me about some information about my previous posts. I've determined why my VB Script is taking too long. It's not because of the Logic Analyzer's Record Mode, it's because of the Analog Discovery 2's FDwfDeviceConfigOpen. I've done 10 trials in measuring the Logic Analyzer Record Mode in the VB Script I'm working on: AD2_Time_Testing.rar The AD2_RecordStart first enables the trigger for the Logic Analyzer and then starts the transmission of the Pattern Generator. This ensures that data is received. It's average test time is 0.03 seconds, wh
  13. Hi @attila Does this mean I have to set FDwfDigitalInTriggerPrefillSet(hdwf, 0) to this values? Best regards, Lesiastas
  14. Hi @attila Thanks for pointing that out. I've tried it in the WaveForms GUI Application and the way I see it, the record mode fills the sample size set before returning results. This will take some additional test time in the application that I'm using it for. I've created a custom script for both the Pattern Generator and Logic Analyzer using VB6.(AD2_Time_Testing.rar) The setup that I am working on is this: 1). I'm using the Pattern Generator to transmit 256 characters. DIOs #0 and #1 are used as the Transmitter pins. 2). I'm using the Record Mode of the Logic Analyzer
  15. Greetings! i'm working on a project involving the use of the Logic Analyzer function of the Analog Discovery 2. I have observed that its Record Mode can be used to capture huge samples of data. The only problem that I'm having is it takes too long for the Record Mode to fill its memory before returning results even when the sample size used is 20k. I would like to know if it is possible to make the Record Mode of the Logic Analyzer intelligent in a way by making it stop filling its memory when the data to be transmitted has already been received. Because the application that I'm usi