Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

help adding Labjack to Bonsai #1

Open
amchagas opened this issue Jul 22, 2020 · 6 comments
Open

help adding Labjack to Bonsai #1

amchagas opened this issue Jul 22, 2020 · 6 comments

Comments

@amchagas
Copy link

Hi!
For some of the applications in the lab, we are using a "cheap" DAQ system named LabJack (LJ). More specifically their T7 model.

Since the company that produces this provides a lot of example code to run it in several different languages, I thought it could be fruitful to try and port their C# code to Bonsai. My end goal would be to them use this DAQ with other parts we have here to create a user friendly photometry system.

As a complete C#, .net, nuget noob, the attempts I made got nowhere unfortunately. I followed the documentation here but the code generated when creating a new Bonsai project is different from the one in the documentation and running the project with F5 doesn't create a node in Bonsai. Which is not the main issue, but made it a bit harder for me to understand if at least this minimal example was running properly.

As I tried to move forward anyways, I attempted to copy bits and pieces of code from the LabJack examples, but got stuck in the very first line where I wanted to add Using LabJack; (which is needed in the LJ example code) but got an error. I am under the impression things are properly set on my computer as I'm able to run the LJ example code using VS2017.

So, after all this long explanation (sorry!) I would like to ask if anyone could offer me a hand on this one! I'm also happy with pointers, links, tutorials on C#/Bonsai, other bonsai examples that are implementing simpler DAQs, etc.

thanks!

@vncntprvst
Copy link

Hi Andre,
I share your interest in adding Labjacks to Bonsai, as I use a T4 model for some experiments. I'm not an experienced C# coder though, but if you haven't made headway in the next couple weeks, maybe we can partner up and try to do that?

@glopesdev
Copy link
Member

@amchagas @vncntprvst Unfortunately I don't have any LabJack hardware with me. However, if you two are willing to spearhead the development, I'm happy to help you start an official `Bonsai.LabJack´ repository, provide a code template, and do code-reviews/suggestions for organizing the code in a way that makes everything fit well together, and we could all three collaborate on that.

How does that sound?

@amchagas
Copy link
Author

amchagas commented Aug 1, 2020

Hi @glopesdev @vncntprvst
Getting this off the ground collaboratively would be great!

best,
Andre

@vncntprvst
Copy link

@glopesdev @amchagas That sounds great. As mentioned above, I'm won't be able to work much on this for the next couple weeks, but after that I'm happy to contribute.

@amchagas
Copy link
Author

hi folks,
just following up on this one, how do we want to start? @glopesdev could you provide code templates? or point us in their direction please?
And create a labjack repo if you feel this would be good, otherwise we could also wait to see if we make progress on it?

@glopesdev
Copy link
Member

glopesdev commented Aug 11, 2020

@amchagas sure, let's move to this repository then: https://github.com/bonsai-rx/labjack

I would suggest we coordinate and plan there using issues, but maybe we could schedule a few quick discussions over Discord? I've created a #labjack channel. Here's a quick 1-day invite link: https://discord.gg/hdBVJm

P.S.: I'm transferring the issue over there too

@glopesdev glopesdev transferred this issue from bonsai-rx/bonsai Aug 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants