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.
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.
There are four functions which cannot be imported successfully.
Which are:
Get FPGA Boot Reset Profile
Get FPGAJTAG Reset Profile
Set FPGA Boot Reset Profile
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.
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:
I just posted this implementation of the DES Tester for LabVIEW. There were some functions that didn’t import but I didn’t need them. Also, I had to make some manual tweaks to how the parameters were handled. The end result is available if you inspect the call library configuration in the VIs attached in this thread: