Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Andre Maia Chagas
    @amchagas
    TY!
    On an unrelated note, I was planning/had a look at porting a LabJack T7 we have in the lab so that it could be used with Bonsai... This is a somewhat cheap DAQ system, that has already examples and code to run on c# https://labjack.com/support/software/examples/ljm/net Is anyone using such a device? before I go all in into writing code, etc?
    Kolah
    @Koalachubb_twitter
    Hi
    may i know is there any way to do fft analysis on an audio source in bonsai?
    @glopesdev its okay. its just that whenever there is an error in my workflow, it crashes instead of showing an error message. :(
    glopesdev
    @glopesdev
    @Koalachubb_twitter that is strange, does that happen with any error?
    for fft analysis you can use DiscreteFourierTransform , look for the VoicePaint example in the Gallery
    Kolah
    @Koalachubb_twitter
    @glopesdev unfortunately yes. rarely it sends an error message and just crashes most of the time when there is error
    so i have to be very careful to save every single time i add a node
    thanks ill try that!
    glopesdev
    @glopesdev

    so i have to be very careful to save every single time i add a node

    just adding a node in the editor can make it crash? that is really surprising. let me know if you find out any pattern, I am intrigued. which operating system are you running it on?

    Kolah
    @Koalachubb_twitter
    @glopesdev not necessarily every node. but i just save just in case. :v
    Im currently using Windows 10
    But recently i realized it hasnt been crashing as much. Maybe because i have put the Bonsai folder in the 'ignore' section of windows security.
    Kolah
    @Koalachubb_twitter
    i have another question. i don't know whether its just my mistake or the new version doesn't draw a centroid line like it used to in the older version?
    glopesdev
    @glopesdev
    @Koalachubb_twitter hmm, not sure what the issue might be, what node are you trying to visualize?
    @/all we're moving the gitter chat over to Discord, so feel free to join us there: https://discord.gg/K8jUKH7
    Kolah
    @Koalachubb_twitter
    @glopesdev I have a video of a moving mouse. I’ve managed to draw a centroid on it using python scripting and i also want to add a line that tracks it.
    in the older version when i used the draw centroid node it automatically draws a line that trails the mouse but it does not anymore
    is it possible to draw a tracking line using a python script?
    Kolah
    @Koalachubb_twitter
    Actually i have found your python script on google groups. Thanks!
    mhrashi
    @mhrashi
    I am having trouble connecting my Basler a2A1920 camera to Bonsai. I have downloaded the necessary Pylon packages but continuously receive and error that says "External Component has thrown an exception" when I try to double click on PylonCapture. CameraCapture also seems not to work.
    Ana Sias
    @acsias_gitlab
    I'm having an issue with the crop polygon function. Any time I try to edit it causes bonsai to crash
    Mao Ye
    @maoyeh
    Hi Bonsai community, I found the timer in the bonsai is automatically running after I start the program. If I want to start timer at specific condition like keydown. Is there anyway to do that? Thanks a lot.
    Vincent Prevosto
    @vncntprvst
    image.png
    @maoyeh you can use a SubscribeWhen
    Mao Ye
    @maoyeh

    image.png

    Thanks very much! It works very well. I am kind of understanding the logic behind them. One more question, is there anyway to show the timer counting down?

    Vincent Prevosto
    @vncntprvst
    Just double-click on the Timer node
    Mao Ye
    @maoyeh

    Just double-click on the Timer node

    Thanks for your reply. Actually, I tried. It showed nothing but a time and y axis.

    Vincent Prevosto
    @vncntprvst
    @maoyeh The timer values will be displayed on that axis once you start the timer by pressing the key you specified in KeyDown (any key if you did not specify one). You can change the change visualizer by right-clicking on the Timer node and selecting the Text visualizer .
    image.png
    Mao Ye
    @maoyeh
    SharedScreenshot.jpg
    Thanks a lot. This is what I got. Don't work.
    Vincent Prevosto
    @vncntprvst
    that's an easy fix: set a period in the timer (e.g., 00:00:01 for every second) :) Here you set your timer to start after 20 seconds, then do nothing.
    Mao Ye
    @maoyeh
    SharedScreenshot.jpg
    It works by counting up. Not exactly what I want. But thanks anyway.
    ChangQing-SH
    @ChangQing-SH
    a quick question: how to read open-ephys ADC
    signal in bonsai?
    Jonathan Newman
    @jonnew
    I can answer that @ChangQing-SH - Just use the IntanEvalBoard node, right click, select Output from the dropdown and you will see all the outputs that the board provides including the onboard ADC.
    ChangQing-SH
    @ChangQing-SH
    @jonnew Thanks, I already solved it out, the question from an open-ephys Chinese user, since I didn't install Bonsai at that time, just post here for help.
    Daniel Jaffe Butler
    @daniel.jaffe.butler_gitlab
    Hi @glopesdev, thanks for the great project. I'm trying to capture video with two Basler cameras. CameraCapture works for just one camera, but not two. So I am trying PylonCapture, but it's not working for me - I just get "External component has thrown an exception." Is there any way I can help hunt down the problem?
    Neurosci128
    @Neurosci128
    Hi. In Bonsai, is there a way to time track in the software's workflow? I'm trying to develop a workflow sequence where I can automatically track how long it takes for a mouse to sniff a certain object.
    I am using a video where the mouse is in a cage, and an object with a certain odor is placed in the cage. In my lab, I am tasked with finding a sequence where I cam track the total amount of time it took for the mouse to sniff. In other words, I need to track down exactly when the mouse sniffs, NOT when the mouse is roaming around in the cage. Hope this makes sense.
    Neurosci128
    @Neurosci128
    I've tried looking at the github page for automatic time tracking, but I was still confused.
    Vincent Prevosto
    @vncntprvst
    @Neurosci128 In case you're still working on this. I can think of two ways of doing this. Assuming you have a way to detect when the mouse is sniffing (based on proximity ?), you could either have a timestamps node connected to the video flow, and propagate its values only when the sniffing condition is true (then compute sniffing duration from the timestamps), or you could trigger (or take values from) a timer every time the sniffing occurs.
    @daniel.jaffe.butler_gitlab The PylonCapture error might be due to Pylon viewer. Some recent versions aren't compatible. Have you tried downgrading it ? You'll find references to that issue in the forums.
    winnubstj
    @winnubstj
    Hello!Kind of new to bonsai so I got a very basic question about creating a new package:
    when I follow the example here: https://bonsai-rx.org/docs/create-package/ the generated template script looks very different
    Is this an old version or something?
    Also when I run the template it doesnt show up as a node in bonsai
    Vincent Prevosto
    @vncntprvst
    Hi @winnubstj . I think the page about creating a package hasn't been updated in a long while. You may get more support asking about this in the Google forum. Otherwise, if that can help, check the main repository to see recent package developments: https://github.com/bonsai-rx/
    yonatan19-meet
    @yonatan19-meet
    Hey,
    I want to have Bpod system (from Sanworks LLC) send TTL analog pulses to Bonsai, so I'd be able to do photometry during behavior.
    I cloned the bonsai-bpod repository - https://github.com/bonsai-rx/bpod - but could not understand how to open a project that uses it, and did not find a Bonsai Workflow File inside the repository.
    I guess that there's a basic concept I misunderstand, but would very happy to get some guidance.
    Thanks!