Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    glopesdev
    @glopesdev
    Following them should be enough to adapt the workflow to your purpose. All the questions you asked have been addressed there
    Can Hicabi Tartanoglu
    @caniko_gitlab
    Thank you for the help :)
    Andre Maia Chagas
    @amchagas
    Hi folks!
    new bonsai user here (or trying to be anyways... :) )
    Andre Maia Chagas
    @amchagas

    I'm build some scientific equipment at Uni Sussex in the UK and just started playing around with Bonsai, so I'm still trying to get basic things right...

    I managed to get the system working with a high-speed camera and with an arduino board. Now I'm trying to retrieve and generate analog signals using an NI card, more specifically an NI USB-7856R.

    I installed all necessary packages, but can't seem to get the sources properly configured...
    My test routine is only a functional generator and an analogoutput node, which I've configured one channel using the identifier given by NI MAX software like so: RIO0/ao0
    Other than that all other properties seem correct, but I'm getting the following error: Device identifier is invalid with status code -200220.

    anyone has pointers or ideas on this?
    Actually is this the best place to ask these types of questions?

    Can Hicabi Tartanoglu
    @caniko_gitlab
    How can I publish a Bonsai package for community?
    @glopesdev
    glopesdev
    @glopesdev
    @caniko_gitlab, were you able to generate a NuGet package from Visual Studio?
    if you have a package, you just need to create an account at MyGet.org https://www.myget.org/
    The bonsai community feed is open for external uploads: https://www.myget.org/gallery/bonsai-community
    Is your package an example workflow, or C# code?
    there is a small description about exporting packages here: https://groups.google.com/d/msg/bonsai-users/1afBirQb53Q/fRDbj4UZBQAJ
    Can Hicabi Tartanoglu
    @caniko_gitlab
    It is C# code, @glopesdev
    Great! I didn't know about the community upload program. I will use it as soon as I export the code.
    I still need help with exporting the C# code
    Can Hicabi Tartanoglu
    @caniko_gitlab
    I looked over the links, and there are no guides for exporting C# packages from Visual Studio or JetBrains Rider
    glopesdev
    @glopesdev
    unfortunately exporting nuget packages got harder starting from VS 2015, before it was trivial and worked with the Bonsai package template out of the box
    after VS 2017 it may become easy again, as everything is migrated to .NET Standard
    for now, you have to download the nuget command line tool
    this last link is the link for nuget CLI
    Can Hicabi Tartanoglu
    @caniko_gitlab
    The packing was successful, thank you. However, I am getting this error when I try to install package locally:
    image.png
    @glopesdev
    glopesdev
    @glopesdev
    This is because of the online dependency, can you select the All tab on the left side and search for your package? That way the online dependency should be resolved successfully
    In the new version this problem will not happen, but for now this is the workaround
    Can Hicabi Tartanoglu
    @caniko_gitlab
    That is what I did
    Should I upload the package, and try to install it that way?
    Currently I added the folder where I created the nupkg
    I didn't want to upload a faulty package
    Can Hicabi Tartanoglu
    @caniko_gitlab
    I uploaded the package, maybe you can try to install it. See if you have any luck
    @glopesdev
    The name of the package is BonsaiMQ
    Can Hicabi Tartanoglu
    @caniko_gitlab
    The package did run correctly during testing, I am not sure what the issue is here. Thank you
    glopesdev
    @glopesdev
    @caniko_gitlab i think the problem is that you need to include the NetMQ package in the repository as well
    for example, you can download the NetMQ.nupkg file manually and add it to your local folder
    if all the dependencies are there, bonsai can find and install it
    btw, I briefly checked your repository, and I wouldn't advise using the Bonsai namespace for custom packages, as it can create name clashes with official repositories
    you should give it your own namespace, so users know where the package comes from
    but anyway, we can fix this later, for now i agree you should try it locally and get it to install
    Can Hicabi Tartanoglu
    @caniko_gitlab
    I am getting this:
    image.png
    glopesdev
    @glopesdev
    @caniko_gitlab I looked into the NetMQ.nupkg file and it looks like indeed they have two files with exactly the same name [Content_Types].xml inside their package
    i don't know how this is even possible. even if you unzip the file manually to a folder, it will give you a warning/error as two files cannot exist with the same name in the same folder
    it looks like netMQ version 4.0.0.1 does not have this problem
    can you try to download and use that package instead?
    you should also select that version of the package in your custom bonsai project
    Can Hicabi Tartanoglu
    @caniko_gitlab
    Done, and done. Thanks
    It worked this time