Error 7008 on StepperSetTargetPosition or Labview Crash on the same call function

Supporting Labview 2012 and up
sinestic
Fresh meat
Posts: 4
Joined: Tue Feb 27, 2018 3:46 am
Contact:

Error 7008 on StepperSetTargetPosition or Labview Crash on the same call function

Postby sinestic » Tue Feb 27, 2018 3:52 am

Hi, as i wrote in the object, my labview program stuck into the call from dll of the function StepperSetTargetPosition. I inserted this block with the StepperGetPosition in a subvi. I tried to debug the problem but everytime i run into this block labview crash without an error and i tried to put the function outside the subvi with the same result. i really don't know what is the problem that causing this, because the crash happens when call the function DLL. I'm using latest version of windows 10 and labview 2017 f2.

jdecoux
Labview Developer
Posts: 27
Joined: Mon Nov 13, 2017 10:20 am
Contact:

Re: Error 7008 on StepperSetTargetPosition or Labview Crash on the same call function

Postby jdecoux » Thu Mar 01, 2018 4:49 pm

7008 is the error code for an address issue. This may indicate a problem with the Phidget ID being provided to the VI.

Does this problem occur with the Stepper Step Mode Example provided with the Phidgets LabVIEW library?

If not, can you attach a picture of a simple version of your code that causes the problem?

sinestic
Fresh meat
Posts: 4
Joined: Tue Feb 27, 2018 3:46 am
Contact:

Re: Error 7008 on StepperSetTargetPosition or Labview Crash on the same call function

Postby sinestic » Mon Mar 12, 2018 4:44 am

yes, with every example. The problem is located on call function dll. The error occurs not at first pass in this block or others block. Is complicated i know, but only one time i received the error number. I downgraded to labview 2014 and now works fine. i think it's a lv2017 bug

fraser
Engineering
Posts: 217
Joined: Thu Nov 19, 2009 4:41 pm
Contact:

Re: Error 7008 on StepperSetTargetPosition or Labview Crash on the same call function

Postby fraser » Mon Mar 12, 2018 7:33 am

Phidget calls to the library will return "Address Issue" or EPHIDGET_FAULT if there is an issue with a object pointer. In this instance for setTargetPosition, it returns it if the pointer to the object being set is NULL. So somewhere, the Phidget object is losing its address before being passed to the function. Tracking down where might be more tricky.


Return to “Labview”

Who is online

Users browsing this forum: No registered users and 1 guest