Jump to content

Abdullah1

Members
  • Posts

    7
  • Joined

  • Last visited

Abdullah1's Achievements

Newbie

Newbie (1/4)

0

Reputation

  1. We are looking on collecting 50us of data every 1000us. However we are able to collect 50us at random times. See attached code. Could you suggest a modification to the code or a solution to this problem. clear() // Set up the scope channel 2 //Scope1.Rate.value = 50000000; // Sampling rate (50 Mz) //Scope1.Samples.value = 2500 // Scope1.Time.Position.value = 25e-6; Scope1.Time.Base.value = 50e-6 Scope1.Trigger.Type.text = "Edge"; // Trigger type Scope1.Trigger.Source.text = "Channel2"; // Trigger source Scope1.Trigger.Condition.text = "Rising"; // Trigger condition Scope1.Trigger.Level.value = 0.5; // 50% trigger level Scope1.Trigger.Hysteresis.value = 0.1; // Trigger hysteresis Scope1.Trigger.Filter.text = "Decimate"; // Trigger filter //Scope1.Trigger.BufferSize.value = 2500 //uffer size //Scope1.Trigger.Buffer.value = 0; // Buffer index //Scope1.Trigger.Delay.value = 0; // Trigger delay for(var i = 0; i < 200; i++){ print("Recording", + (i+1) + " of 200..."); Scope1.run(); Scope1.wait(); Scope1.Export("/home/SWE/Desktop/new007/new007_" + (i + 1) + ".csv"); wait(0.01) } print("Finish Recording")
  2. Hello all, I am currently using AD2 and I tried using the record tool to obtain the data based on the rate and period specified however I cant receive the signal needed because the sample rate is always lost based on the study that I am recording. So I am new to scripting and I would like to create a script that can record the data 30 time in one sitting. Each record should gathers signal of 2ms with rate of 6.25MHz at once and be done 30 times, and can be saved in one csv file if possible. Thank you.
  3. @artvvb I appreciated your assistance on all my questions. Based on the limitation of the recording tool is there a way I could set the recording to record 2ms each time and save it on a file each time. For example setting the function to record 30 times, 2ms for each recording in 6.25MHz rate and saving it in one file of data? Thank you
  4. @artvvb Thank you for guiding me on this. So when I click record it always says sample were lost. I am trying to get 60ms in a (5-6.25MHz). What could be the issue and how to make it work. I am sending two signals of 10kHz and 2.5MHz connected in AND gate generated by 5V and recording the response from the transducer.
  5. Hey @artvvb Thank you for your quick response. I am using AD2 and I tried the method above but it still not giving me 120 frames. Just to clarify what I am doing: I am generating a wave that capture the transducer response from 0 to 0.5ms each frame. From the captured above it only shows 2 frames which I only can record 1ms and be exported in csv file. I am trying to get 120frames = 60ms of that response to be exported to csv. Is there a possible way to do that?
  6. Hello I am new to analog discovery and I would like to export the data from the study that I am doing however it only export what is shown on screen as 2-3 frame where I am looking to get 120 frames of the study from the data. So from the study shown here it shows 2 frames and while trying to export the data it only gives me the option to receive what is shown here and not the ability to make it gather a 120 frames of the data. Is there a way to that? I tried using the record to play but not sure why it didn't give me the option to specify how many frames that I can get.
×
×
  • Create New...