2024.11.26 10:40 Reasonable_Excuse_13 redpitaya
I am looking for synchronized data acquisition with an external trigger and high-frequency inputs. Specifically, I want the acquisition to begin when a positive edge external trigger occurs, and the acquisition should stop when another positive edge external trigger is detected. All this should be done in deep memory mode.
#!/usbin/python3 """Example of DMA acquisition of 1024-samples of data on both channels""" import time import numpy as np import rp ## size in samples 16Bit DATA_SIZE = 1024 # ((1024 * 1024 * 128) / 2) ## for 128 MB ## READ_DATA_SIZE = 1024 # (1024 * 256) ## for 128 MB ## dec = rp.RP_DEC_1 trig_lvl = 0.2 dma_data = np.zeros((DATA_SIZE), dtype=np.float32) #! dtype must be "np.float32" dma_data2 = np.zeros((DATA_SIZE), dtype=np.float32) print(type(dma_data2[0])) # Initialize the interface rp.rp_Init() ### Setting up DMA ### # Get Memory region memoryRegion = rp.rp_AcqAxiGetMemoryRegion() g_adc_axi_start = memoryRegion[1] g_adc_axi_size = memoryRegion[2] print(f"Reserved memory Start: {g_adc_axi_start:x} Size: {g_adc_axi_size:x}\n") # Set decimation rp.rp_AcqAxiSetDecimationFactor(dec) # Set trigger delay for both channels rp.rp_AcqAxiSetTriggerDelay(rp.RP_CH_1, DATA_SIZE) rp.rp_AcqAxiSetTriggerDelay(rp.RP_CH_2, DATA_SIZE) # Set-up the Channel 1 and channel 2 buffers to each work with half the available memory space. test = int(g_adc_axi_start + (g_adc_axi_size/2)) print(test) #print(type(test)) rp.rp_AcqAxiSetBufferSamples(rp.RP_CH_1, g_adc_axi_start, DATA_SIZE) rp.rp_AcqAxiSetBufferSamples(rp.RP_CH_2, int(g_adc_axi_start + (g_adc_axi_size/2)), DATA_SIZE) # Enable DMA on both channels rp.rp_AcqAxiEnable(rp.RP_CH_1, True) print("Enable CHA\n") rp.rp_AcqAxiEnable(rp.RP_CH_2, True) print("Enable CHB\n") # Specify the acquisition trigger rp.rp_AcqSetTriggerLevel(rp.RP_T_CH_1, trig_lvl) ### Acquisition ### # Start the DMA acquisition rp.rp_AcqStart() print("ACQ Started\n") # Specify trigger source rp.rp_AcqSetTriggerSrc(rp.RP_TRIG_SRC_CHA_PE) state = rp.RP_TRIG_STATE_TRIGGERED ## Wait for the triggering moment #while 1: # state = rp.rp_AcqGetTriggerState()[1] # if state == rp.RP_TRIG_STATE_TRIGGERED: # print("Triggered") # time.sleep(1) # break # Wait until both buggers are full/data is acquired fillState = False while not fillState: fillState = rp.rp_AcqAxiGetBufferFillState(rp.RP_CH_1)[1] print("DMA buffer full") # Stop the acquisition rp.rp_AcqStop() print("Stop DMA acq\n") # Get write pointer on the triggering location posChA = rp.rp_AcqAxiGetWritePointerAtTrig(rp.RP_CH_1)[1] posChB = rp.rp_AcqAxiGetWritePointerAtTrig(rp.RP_CH_2)[1] rp.rp_AcqAxiGetDataVNP(rp.RP_CH_1, posChA, dma_data) rp.rp_AcqAxiGetDataVNP(rp.RP_CH_2, posChB, dma_data2) print("Captured data:") print("N CH1 CH2") for i in range(0, DATA_SIZE, 1): print(f"{i+1:<4} {dma_data[i]:<16} {dma_data2[i]:<16}") ### Releasing resources ### print("\nReleasing resources\n") rp.rp_AcqAxiEnable(rp.RP_CH_1, False) rp.rp_AcqAxiEnable(rp.RP_CH_2, False) rp.rp_Release()
submitted by Reasonable_Excuse_13 to NoStupidQuestions [link] [comments]
2024.11.26 10:40 blueroses200 Another song in the Phoenician language: Adoon - Iqna
submitted by blueroses200 to PhoenicianLanguage [link] [comments] |
2024.11.26 10:40 copterdoc415 [USA-HI][H] PayPal [W] Trimui model s / powkiddy a66
Looking to buy this bad boy hopefully wanna get this tiny gem
submitted by copterdoc415 to hardwareswap [link] [comments]
2024.11.26 10:40 toolbox_007 Hilfe bei PC Konfiguration
Servus,
ich möchte mir schon länger meinen ersten PC bauen habe aber noch keine Erfahrung auf was man da achten muss. Könnte mir jemand vielleicht einen Konfiguration vorschlagen für einen Gaming PC in all-white in einem Preis Segment von 1000 Euro bis 3000 Euro mit dem ich die nächsten Jahre alle neuen Spiele problemlos spielen kann.
LG
toolbox
submitted by toolbox_007 to PCBaumeister [link] [comments]
2024.11.26 10:40 Makimaki02 [H] 82% Paypal G&S [W] Lots of Amazon GCs
Please note that I will NEVER reach out to you first regarding this trade. If someone similar to my username reaches out to you regarding this specific trade, you are in the process of being scammed. Please make sure that you are transacting with the real me.
Looking for Amazon US GCs only at this time. Payment is via PayPal G&S. I will close this post once I have enough GCs.
Thanks! :D
submitted by Makimaki02 to giftcardexchange [link] [comments]
2024.11.26 10:40 First-Relative9459 Magnificent century promotional shoot
submitted by First-Relative9459 to MagnificentCentury [link] [comments] |
2024.11.26 10:40 The_Real_Smooth "UNEMANCIPATED" minor children - discussion "
Law no. 555 of June 13, 1912:
Unemancipated minor children of those who lose citizenship become foreigners when they have common residence with the parent exercising parental authority or legal guardianship and acquire the citizenship of a foreign state [...].Hi /juresanguinis, I belong to those whose dream of Italian citizenship was smashed on October 3, 2024 with the publication of the new Ministry guidelines on the minor issue, that apply to my case (GGF born in Italy 1906, GF born in France 1927, GGF naturalises as French in 1946 when GF is 18yo).
2024.11.26 10:40 wuhfee if you own a pot, bring it.
i’m already tired of being the only person bringing a pot and still being one of the only people popping the rest of grandma’s buns.
i’ve seen an awful lot of complaining about the change at granny’s and not enough pots being brought to the table.
i bring the silly cauldron that was free from the halloween event and change back to my “backpack” (moomin tent) after granny’s is over. it adds less than 10 seconds onto my journey to granny’s.
if you have one, take it with you. if you don’t, hold your candle out instead of selfishly standing in the middle of the table contributing nothing.
submitted by wuhfee to SkyGame [link] [comments]
2024.11.26 10:40 lazarspace Enabled 80 percent Limit and Cycle Count on 14 pro max iOS 18.1.1
submitted by lazarspace to iPhone14Pro [link] [comments] |
2024.11.26 10:40 FlowGreen4794 Any muscular gym bros looking for a feed? 😇 Hmu on Discord/Tele krisc1912 - must show off
submitted by FlowGreen4794 to Snapchatgerman [link] [comments]
2024.11.26 10:40 Extra_Cancel_9129 Kriti Sanon from IFFI 2024
submitted by Extra_Cancel_9129 to KritiSanonn [link] [comments] |
2024.11.26 10:40 Square_Background470 Lunette de soleil YVES SAINT LAURENT
submitted by Square_Background470 to bordeaux [link] [comments]
2024.11.26 10:40 Inevitable_Row_1482 It’s not fair
This past Sunday received the terrible news of our first FET failing. Have been waiting for the periods to come. Since we can’t move ahead until the periods, have been discussing and contemplating a lot about this journey with my husband. Both of us try to eat healthy, sleep on time, exercise daily. But still after 3 years of TTC we are without a baby. Our friends(almost all) who have messed up lifestyles are enjoying their lives with their children. I am not ashamed to say that I feel a lot of resentment. I mean this is not fair. Not at all.
submitted by Inevitable_Row_1482 to IVF [link] [comments]
2024.11.26 10:40 matricesandmusic DIY modular fightstick build?
Hello everyone,
I want to build a modular fightstick (leverless), where the buttons can be connected to the main controller via cables individually. Basically something like the Logitech adaptive gaming kit, but with arcade buttons. It would be great if the footprint could be much smaller than that of the Logitech buttons, I’m thinking about small clip-in push buttons to keep everything as small and flat as possible.
Are there any examples of similar builds out there or any resources that could help me? I’d be grateful for any tips!
submitted by matricesandmusic to fightsticks [link] [comments]
2024.11.26 10:40 sasuke5432 Notice periods
Not to be a worry buddy but is two weeks termination notice standard in everyone else's contract the firm work for does this for everyone
submitted by sasuke5432 to uklaw [link] [comments]
2024.11.26 10:40 LainInCode Looking for a Python Learning Buddy!
Hey! I want to learn Python, but I procrastinate a lot when I’m on my own. Maybe having someone to learn with will help change that. I’m thinking of starting CS50p, but we can discuss what works best. As of now, my schedule is flexible, so time zones aren’t an issue.
submitted by LainInCode to ProgrammingBuddies [link] [comments]
2024.11.26 10:40 WomenLoverr_ Dove Cameron feet 🔥
submitted by WomenLoverr_ to CelebrityLegsandFeet [link] [comments] |
2024.11.26 10:40 HistoricalFennel9968 am i datable?
submitted by HistoricalFennel9968 to DateOrNot [link] [comments] |
2024.11.26 10:40 Few_Expression_3163 Would you like to share your thoughts on a unique podcast and Instagram project? Hi! I'm Neoza Goffin, exploring the theme of touch in our society. This 5-10 min survey helps us discover how touch deepens connections in relationships, families, and friendships. Your input shapes our journey!
submitted by Few_Expression_3163 to SurveyExchange [link] [comments]
2024.11.26 10:40 RevolutionaryClue855 New smaller keyboard
looking for a dmaller keyboard as my 'Corsair K70 RGB Pro Mechanical Gaming Keyboard Cherry MX Red' was boight for when i did uni and is too big for my desk rn. looking for a smaller keyboard but same sound and feel for gaming as im autistic
submitted by RevolutionaryClue855 to keyboards [link] [comments]
2024.11.26 10:40 Mister-Fuzzball Fog of War #16
I feel like I am missing something really simple but no matter how much I stare at it I cannot for the life of me see it. The Hint days R5C4 now becomes 8, but I do not know why, as far as I can see putting in a 7 does not conflict with anything. submitted by Mister-Fuzzball to crackingthecryptic [link] [comments] |
2024.11.26 10:40 necromancers_katie Bilge!
Just got this one in the mail today. So excited to give a try. Herr is my first play through:
Lumina Jackson Flesh: 7 Spike: 8 Crunch: 10 Vigor: 160 Fatigue: 30
Rosie jackson Flesh: 3 Spike: 4 Crunch:9 Vigor: 130 Fatigue: 30
My name is Lumina Jackson. I was sent to the penal colony along with my sister Rosie. What was our crime? Being born. We were... "volunteered" by that asshole running the colony to come to Neptune and mine ambergris for the rich fuckers back on earth. So very kind of them to volunteer us. They told us that if we found the ambergris we would be given our freedom. They would give back to us what they had no right to take. We'll no right according to me. They have the might, they make the laws, so they gave themselves the right.
So Herr we are, we landed on this intense creature the size of a continent. It is the last of its kind. Apparently the poor thing surfaces every few years looking for a mate Tha doesn't exist. And here we come...sent by " people" who also feel it is their right to send us inside this being and mine it...like a hole in the ground.
Rooms 1) entrance a safe zone 2) found a room with a fistula along its wall, there is a small fountain spewing a black liquid. According to the field guide we got this liquid heals us, but also takes some of our energy. No need for that yet. I don't want to use the fistula 3)found a wet room, it looks very plain, but all the ways forward are tightly locked by nerves. I can tell there is no way to get it open. If we had a higher number of parasites in our body thr way would probably open for us but we don't have any parasites yet. We back tracked to the room with the fistula and went down into another room 4) we walked into a very strange room. There is an eye embedded in the wall. It is currently closed. For which I'm very grateful. The folds of the eye glisten welly. I shudder and love on. 5) walked into another room, the flesh is pulsating, undulating. In the corner are three clocked figures. When I looked closer it turned out to be three corpses of other...volunteers. I can see they are covered from head to toe in parasites, but the good ones. Don't think it's right to call them parasites. Since they actually help you. The rich back on earth are more parasitic than they are. Using us, harvesting us like crops. These organisms, they can help us survive this place. The thing is...if we accept these organisms which we will need to do to survive Here find thr ambergris and live.where would we go? We were rejected when we were plain humans. Do they think I believe they will accept us and free us when we come back with our.....little friends? I don't believe it. But I believe our survival hinges on making use of them. I cracked open the first body...I found 10 parasites! I moved onto the next body....I managed to crack this one too! Another 9 parasites. The last body yielded another 10. This is an amazing boon! How did I get so lucky to find 30 parasites! 30!!! These volunteers must have been here for a very long time, to manage to collect so many!! When I looked at them, they did indeed look old, and weathered. Is it possible to survive here? Inside this monster so long? What did they eat? How did they manage? I know that if we get our purity to 90% we will be accepted by all the parasites around us. We would be more parasites than human. Each settler, because that is what they were...settlers within the leviathan had multiples of various parasites. We found: Several heart spiders, pinskins, fingerworms, 3 angel clamps, 3 compassworms, and 3 whaletongues. I looked at Rosie. There were enough parasites for both of us to gain 90% assimilation into the inner biome of the leviathan. Close enough to be accepted here, but still retain control of ourselves. Ready to leave your humanity behind? I asked rosie Yes she said N This is my first playthrough of this game. I'm sure I missed or messed up the rules lol. I def took this in a different way lol. It was interesting.
submitted by necromancers_katie to Solo_Roleplaying [link] [comments]
2024.11.26 10:40 Jonny_____ Missed the O2, got London Stadium with The War on Drugs
What a ride the last month has been. Hope everyone got what they wanted - and if you didn't, maybe something even better is around the corner.
submitted by Jonny_____ to Samfender [link] [comments]
2024.11.26 10:40 omilovesmaps Cute.
submitted by omilovesmaps to geoguessr [link] [comments] |
2024.11.26 10:40 emeraldeagle007 Check
submitted by emeraldeagle007 to CommentRemovalChecker [link] [comments]