K8062 LabView error handling

Hi all,

I am writing a program in LabView to control several LEDs via the K8062. Everything works well, apart from error handling. The issue I am facing is that if the K8062 is not plugged in, the LabView program executes the StartDevice command but gives no indication if this has failed or not. The intent here is to inform the user if there is a problem communicating with the K8062 purely through the LabView software.

I have tried to link the error out of the Call Library Function Node to display any errors but there are none displayed. Any help would be appreciated!

You may use the DLL function Connected().
For more info please see this thread:
Detecting a connected K8062

The function Connected() is included into the 64 bit version too, available here:
https://app.box.com/s/rycgkozm40ueay4fnljgl3ud2qj7p0fj

Thanks for the reply, this is what I am looking for. The download link for the 32-bit modified .dll doesn’t seem to be working (tried different browsers), is there any chance it could be re-uploaded? Thanks

Now re-uploaded, hopefully ok:
https://app.box.com/s/ncpqz9qnbmnu58p1mwm0sh5oqkydwjcj

Thanks, download is working and I have the function set up in LabView now. However, I am not quite sure how to get a response from the function. I followed the subVI to create the example shown in the attached image, however when I run that case structure, there are no notifications or error codes appearing. Is there something I have missed in setting up this function? thanks again.

labview K8062 example

Indeed, there is no error information output.
The return type of this function is boolean.
If there in the LabView is no boolean return type available…
You can use numeric return type instead.
Try 32 bit integer…
Check if return value is 0=false or 1=true.

I couldn’t find a boolean return type, and the numeric type gives 0 regardless of whether the device is initialised or even connected via USB. Any thoughts on how to make sure the function is running properly?

image

Is the DMX signal LED blinking?
When blinking, the function should return true = 1.

Yes the DMX lights are blinking and I can send signals to the LEDs with the rest of my program via the K8062

Are you using the 32-bit version of the DLL?
If yes, a possible cause to the problem may be that there in the Windows\SysWOW64 or in some other search path folder is the old (original) version of the K8062e.exe.
The original version of the K8062e.exe does not support function Connected().

Yes, this has solved the issue! I replaced the K8062D.dll and K8062e.exe in the SysWOW and system23 folders with the updated versions and I can now get the readout from the function. Thanks

I’m glad the issue has been resolved!