01-13-2021 12:40 PM
I am trying to build an application to interact with a cRIO. When running it on the development machine everything works fine and if there is an error I get an error message from simple error handle:
However, when I run the application on the target computer I get that the error code is undefined.
How can I "teach" my application the error codes from the module? The module I am using is SoftMotion, but the problem is probably not limited to that.
I also tried adding Soft Motion Run time to the installer, but that wants to be activated. I also don't need SoftMotion to run my Windows application, so I'd like to leave it out if possible.
Any help is appreciated!
01-13-2021 01:14 PM
@PeterFoerster wrote:
I am trying to build an application to interact with a cRIO. When running it on the development machine everything works fine and if there is an error I get an error message from simple error handle:
However, when I run the application on the target computer I get that the error code is undefined.
How can I "teach" my application the error codes from the module? The module I am using is SoftMotion, but the problem is probably not limited to that.
I also tried adding Soft Motion Run time to the installer, but that wants to be activated. I also don't need SoftMotion to run my Windows application, so I'd like to leave it out if possible.
Any help is appreciated!
The error is actually being reported correctly, but it occurred at an unidentified location. I misread it the first time, also, because you almost never see the "unidentified location" message. It it's "un-something", it's almost always "undefined".
I'm sot sure what it means when running on a target, but in development mode, it means the VI where it occurred only exists in memory - i.e., it has yet to be saved to disk.
01-13-2021 02:24 PM - edited 01-13-2021 02:26 PM
Oh, sorry. It didn't attach my second screenshot, which is what this is actually about:
So as I said: It seems that my application can't interpret the error code. How do I include it in the exe or installer?
P.S.: The unidentified location is only because I just connected an error cluster and didn't fill out the soruce string.