LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Perkinelmer X-ray frame grabber XRD-FG

Trying to write a labview code to run the frame grabber XRD-FG from Perkinelmer. Have the HIS dll file and HIS menu, still can't make correct calls. Can't even initialize the frame grabber
Can a computer learn how to program?
0 Kudos
Message 1 of 4
(3,846 Views)

There are two main ways that the executable code inside a DLL may be used in LabVIEW. First, the DLL may contain functions which are accesses through the C or stdcall calling conventions. In this case the functions in the DLL will be called using a Call Library Node. Secondly, DLL may also contain ActiveX objects which are accessed through ActiveX Property and Invoke nodes in LabVIEW.

I was not able to find any information about the DLLs you mentioned on the Perkinelmer web site, so it is not clear how we should properly use the DLLs. I have included links below to more information on how to use the Call Library Node and ActiveX VIs in LabVIEW.

Tutorial: ActiveX and LabVIEW
Tutorial: An Overview of Accessing DLLs or Shared Libraries from LabVIEW

Scott Y.
NI

0 Kudos
Message 2 of 4
(3,833 Views)
Thank you Scott, here is the dll, one of the vi I am trying to make and the menu. From page 60 and after are some detailed info about the functions inside the dll. I am reading the tutorials you suggested now. Thank you very much for helping!
Can a computer learn how to program?
0 Kudos
Message 3 of 4
(3,829 Views)
After taking a look at the PDF and VI attached to your last post, I think the issue is in the parameters that you are passing to the Acquisition_Init() function.

On page 61 of the PDF you can see that the first argument, phAcqDec, expects a pointer to structure. In your labview code you are actually passing a Double into this input.

Do you have any C example code for using the functions in this DLL? If you spend time reading and understanding the C examples it will make it much easier to use the same functions in LabVIEW.

Scott Y.
NI
Message 4 of 4
(3,817 Views)