Hello Labjack forum users and moderators!
This is my first post here, so I hope the question/doubt I have is placed in the correct place, and please bare with me while I try to explain a little of the background on this one:
- I work at the University of Sussex in the UK where I am developing tools and equipment for the neuroscience labs in the life science deparment. For one of the projects here we are trying to implement a data acquisition prototype around a LabJack T7 model. To implement this system, I dug around LabJack's website and got somethings running with your Python and C# examples, which was great and easy to start, thanks for that!
- After this was completed, I wanted to use the C# implementation you have and communicate with the T7 using Bonsai-rx (https://bonsai-rx.org/) which is a great piece of software that is allowing researchers to do neat things with little programming experience, and in this situation would allow many labs in the department to make full use of LabJack for their current and upcoming experiments.
To do that, I contacted Bonsai's main developers over their GitHub organization and they were happy to help with making Bonsai communicate with LabJack (we even figured out that this would be something that people in other labs/institutions would be happy to use once/if we got it done)
- We are now facing a problem that the .NET targets for Labjack are still for version 2.0, which is not supported by Bonsai, and we were wondering how difficult it would be to generate a .NET 4.x or greater version of the C# wrapper? our whole discussion about this is here: https://github.com/bonsai-rx/labjack/issues/3
- I also had a look at your GitHub repository but couldn't find anything that could help us in this direction (maybe I just missed it somehow?)
Sorry for the long post, and thanks in advance!
Andre
Hello Andre! Our lead .NET developer is out for the day, but we'll get back to you this week.
Our LabJack.LJM.dll assembly has a .NET 2.0 target, but it will load/run in .NET applications running 2.0 or newer. .NET 2.0 does not need to be installed on the system and only having .NET 4.x installed will be fine. A quick note that .NET 2.0 to 3.5 have the same CLR version of 2.0.
With our examples you can set the Target framework to newer than 2.0, and the application will run in that version with our assembly.
We can look into making a 4.0 build. It will be a custom forum release and not in our installer.
Attached is a .NET 4.0 targeted build of the LabJack.LJM.dll. Unzip for the dll. If needed, to install to the GAC, copy the dll to the LabJack\Drivers folder (default full path C:\Program Files (x86)\LabJack\Drivers), and run InstallLJNET.exe as administrator.
Thank you! We will keep you posted when we have examples working of LabJack working with Bonsai-Rx.