Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Hamamatsu Spectrometer C13054MA

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

0 Kudos
Message 1 of 6
(2,794 Views)

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

 

 

0 Kudos
Message 2 of 6
(2,767 Views)

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

 

0 Kudos
Message 3 of 6
(2,755 Views)

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:

site:https://knowledge.ni.com 

 

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

0 Kudos
Message 4 of 6
(2,747 Views)

Hi Michael,

 

Thanks for the tip.

There is only one connection available is thorough a micro USB.

 

 

0 Kudos
Message 5 of 6
(2,741 Views)

Hello Sayak,

 

http://www.ni.com/tutorial/4478/en/

 

This tutorial is how to use a USB instrument in conjunction with VISA. This may be a solution to your problem

 

Kind regards, 

Michael

0 Kudos
Message 6 of 6
(2,718 Views)