LabView FrontPanel DLL Import


#1

LabView is technically not supported by Opal Kelly but a significant number of our customers use the okFrontPanel DLL extensively with LabView. We do not own a seat for LV so cannot officially provide support.

One such customer (who prefers to remain anonymous) has provided us with some screenshots that may help you get started.

The primary take-home message from this is that you should add “_WIN32” to the Preprocessor Definitions during the Import Shared Library wizard. Everything else is just defaults.


#2

Here are the screenshots…

[ATTACH=CONFIG]198[/ATTACH] [ATTACH=CONFIG]202[/ATTACH] [ATTACH=CONFIG]199[/ATTACH] [ATTACH=CONFIG]200[/ATTACH] [ATTACH=CONFIG]201[/ATTACH]


image005.jpg (49.3 KB)

image002.jpg (48.1 KB)

image004.jpg (31.8 KB)

image003.jpg (32.8 KB)

image001.png (24.0 KB)


#3

And more screenshots…

[ATTACH=CONFIG]206[/ATTACH] [ATTACH=CONFIG]203[/ATTACH] [ATTACH=CONFIG]204[/ATTACH] [ATTACH=CONFIG]205[/ATTACH]


image007.jpg (40.9 KB)

image008.jpg (50.8 KB)

image009.jpg (52.0 KB)

image006.jpg (29.2 KB)


#4

And the last bits…

[ATTACH=CONFIG]208[/ATTACH] [ATTACH=CONFIG]207[/ATTACH]


image011.jpg (28.2 KB)

image010.jpg (22.9 KB)


#5

Hi !

I would like to know what is the Labview version and the Windows version used for this DLL import ?

Thank you for your answer.


#6

Hi, I met a problem. When i import the dll file using Import Shared Library Wizard, the labview was freeze for GetJTAGResetProfile function.
Any ideas? Thanks.


#7

There are four functions which cannot be imported successfully.
Which are:

  1. Get FPGA Boot Reset Profile
  2. Get FPGAJTAG Reset Profile
  3. Set FPGA Boot Reset Profile
  4. Set FPGAJTAG Reset Profile

The import shared library report is:
{The following VI cannot be created. This might indicate that the associated function contains parameters of a data type that cannot be converted directly. To work around this issue, you can create a custom control or typedef control to represent a complex structure or multidimensional array, then re-run the Import Shared Library wizard and select Update VIs from a shared library. Using the same shared library, step through the wizard again. On the Configure VIs and Controls page, assign the custom control or typedef to the associated parameter(s). Complex structures include nested structures, structures containing arrays, arrays of strings, and multidimensional arrays.}

These functions may not be used. However, it will be great that the problem can be fixed.
Any ideas?
Thanks for you response.

PS. The FrontPanel is 4.2.6 release. LabVIEW 2012.


#8

Screenshots appear not to be visible anymore. Can Opal Kelly reload them again? Many thanks,

Nikola Krstajic


#9

The screenshots are broken due to a data translation issue. You can fix this by replacing the domain name portion of the URL with “forums.opalkelly.com”. For example, the first screenshot is available here: