LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

error 70006

Hello,

 

I have made a VI to control my motion system MID-7604 called Thetamove_MW033103.vi and everything worked fine. The motion system moved to the desired location and the "Read Vector Space Position.flx" reported the correct position.

 

However, when I try to add more functions in a new VI called "Auto_Thetamove_MW033103.vi" to automatically increase the angle by a specified increment, the "Read Vector Space Position.flx" returns "Error -70006 occurred at Read Vector Space Position.flx" with the description:

 

"Possible reason(s): Motion:  An invalid axis number or other resource ID (vector space, encoder, I/O port, and so on) was used. If you are using the NI SoftMotion Controller, this error indicates that the resource used in the operation is not configured."

 

I tried creating constants that would input directly to the "Read vector space position" but it still gives that error. I spend several hours diagnosing this but still no luck so any help would be greatly appreciated.

 

Thank you,

Max

Download All
0 Kudos
Message 1 of 8
(3,691 Views)

Hi Max,

 

Are you saying that you can run Thetamove just fine, then immediately try to run Auto_Thetamove and it throws the error?  Did you change the axis configurations in Measurement and Automation Explorer (MAX) at all? I assume you have verified you are referencing the correct axis?  You can check MAX for that, too.  

 

Kristen H.

0 Kudos
Message 2 of 8
(3,667 Views)

Hello,

 

Thank you for the reply. Yes I can run the Thetamove just fine but when I stop it and try to run Auto_Thetamove, the error shows up. I did not change anything in MAX or any configurations on the MID controller and the axis are correct.

 

I tried to make a constant input to the axis because I thought it would get pass on from the initialization block to the while loop but it still didnt work.

 

Max.

0 Kudos
Message 3 of 8
(3,640 Views)

Hi Max!

 

If you run Auto_Thetamove with highlight execution on does the error occur during the first iteration of the loop?  Have you been able to isolate the issue to a particular part of the VI?

 

Kristen H.

0 Kudos
Message 4 of 8
(3,601 Views)

The error occurs as soon as the "Read Vector Space Position.flx"" block is called on. There are no other issues in the VI besides that.

 

Max
0 Kudos
Message 5 of 8
(3,589 Views)

Hi Max!

 

So are you saying the error occurs on the first iteration of the loop? Also, could you create indicators off the Resource Output wire that goes into the Read Vector Space Position.flx in both VIs to see if there is a difference there?  

 

Kristen H.

0 Kudos
Message 6 of 8
(3,565 Views)

Hello Kristen,

 

Yes the error occurs right away in the first iteration. I have created indicators for the ouput wires, ran both VI separately, and there are no difference on the indicator. They all return the correct Vector Space and Board ID.

 

Thanks,

Max

0 Kudos
Message 7 of 8
(3,563 Views)

Hi Max,

 

I am not really sure what the problem is.  It could be that the VI was corrupted somehow.  If you simply copy the block diagram of the Auto VI to a new block diagram, does the error still occur?  Is this the only VI that uses  Read Vector Space Position VI and throws the error?  In other words, is the error specific to the Auto_Thetamove VI?

 

Kristen H.

0 Kudos
Message 8 of 8
(3,534 Views)