04-25-2019 10:12 AM
Hi,
I am trying to build a LabView driver for the Hamamatsu Spectrometer C13054MA. The company has provided a .NET dll and also some example code using VB. The VB script is working okay. Using LabView I am able to initialize the spectrometer but anything after that is not working. Can anyone help with this. I have attached the dll and code example.
Thanks in advance
04-26-2019
06:34 AM
- last edited on
11-16-2024
03:44 PM
by
Content Cleaner
Hello,
If I understand correctly, you are a trying to create a custom instrument driver that will be able to communicate with LabVIEW - is that correct?
Have you had a look at NI-VISA?
You can use NI-VISA to communicate with most instrumentation buses including GPIB, USB, Serial, and Ethernet. It provides a consistent and easy to use command set to communicate with a variety of instruments.
Kind regards,
Michael
05-01-2019 01:18 PM
Hi Michael,
Sorry for getting back late on this. Somehow notification didn't come.
Yes I am trying to create a driver for this spectrometer.
They haven't provided any information about serial commands. Just provided the dll and some Visual basic example code which uses the same dll and it is working for that code.
Thanks
Sayak
05-02-2019 04:36 AM
Hi Sayak,
How do you have it connected?
There is some KBs on the website dependent on which connection type you are using.
If you put:
at the front of google searches, this will force Google to bring forward compatible KBs on NI's website - just a little tip for searching for information 😉
E.g. site:https://knowledge.ni.com labview error code X
Kind regards,
Michael
05-02-2019 08:18 AM
Hi Michael,
Thanks for the tip.
There is only one connection available is thorough a micro USB.
05-03-2019
04:23 AM
- last edited on
11-16-2024
03:45 PM
by
Content Cleaner
Hello Sayak,
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x1qzCAA&l=en-US
This tutorial is how to use a USB instrument in conjunction with VISA. This may be a solution to your problem
Kind regards,
Michael