LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

error connecting Labview with Solidworks

Hi,

I have been using Labview together with Solidworks and it has been working perfectly. Suddenly, it started returning to me an error message when I try to deploy all components of the project. The message says:

''an error occurred while attempting to switch the I/O scan mode

NI SoftMotion: The specified index is not valid for the given resource.''

 

Does anyone have an idea of how to solve this problem?

 

Thanks in advance!

0 Kudos
Message 1 of 12
(5,506 Views)
0 Kudos
Message 2 of 12
(5,480 Views)

More details on the error:

 

Error changing to active mode: -77075. 

NI SoftMotion: The specified index is not valid for the given resource.

 

Any help on this?

 

Cheers.

0 Kudos
Message 3 of 12
(5,466 Views)

Just to complete my last post. Another error code appears when I try to look for the reasons of this problem:

 

error code -66460. Labview: The I/O scan time exceeded its period.

 

Any help would be more than welcome!

0 Kudos
Message 4 of 12
(5,463 Views)

Hi there

 

The first error you encounter; 77075, refers to having two or more simulated axes above any SolidWorks axes in the LabVIEW Project Explorer window causes a NIMC_invalidIndexSpecifiedError (-77075) when switching to Active mode. This can be solved by installing SP1 for LabVIEW 2009 Softmotion Module. This is outlined in the below document;

 

LabVIEW 2009 SP1 NI SoftMotion Module Bug Fixes

 

The second error you encounter; 66460 is most likely sourcing from solid works not sending points back fast enough. Again I would recommend upgrading to SP1 and also by using write setpoints and running at 100ms or so. I would also recommend using a smaller step size specified in the properties of the SolidWorks assembly in LabVIEW project and set the scan engine back to 10 ms to trial. These were run on axis two the linear stage in the assembly. Please let me know if this resolves the support issue at hand.

 

I have also referenced a good link to Getting Started with Solidworks and LabVIEW, this can be found below;

 

Getting Started with NI SoftMotion for SolidWorks

 

 

Many thanks for using the NI forums and I look forward to your reply.

Kind regards

David

Applications Engineer
National Instruments UK
0 Kudos
Message 5 of 12
(5,444 Views)

Hi David,

Thanks for your support.

I haven't been able to overcome the situation yet. I've upgraded Labview and SoftMotion to SP1 but the situation persists. The error comes out like this:

''Error occurred while attempting to switch the I/O scan mode. NI SoftMotion: An error occurred while reading deployed data''.

(And still error code:  -66460).

 

More help would really be more than welcome!

 

Regards.

0 Kudos
Message 6 of 12
(5,424 Views)

Hi again

 

I believe this happens when calling multiple straight line moves in a short period of time. The software prepares a preemptive switch for the first one and before it can begin making the adjustments the second call comes in and results in the error. By adding a 100 ms wait in-between straight line moves would be one way to remove this issue, you could also perform a contour move.

 

Let me know how you get on.

Many thanks for using the NI forums and I look forward to your reply.

Kind regards

David

Applications Engineer
National Instruments UK
0 Kudos
Message 7 of 12
(5,417 Views)

 

Hi David,

 

Thanks again for your help. That's actually a contour move that I'm trying to perform. Previously I performed the same trajectory with a set of straight lines and then I did it using a contour move and both were working perfectly. Suddenly, it just started returning errors to me. It worked ok for few days and then errors started coming... That's what I'm finding a bit strange!...

 

I'm looking forward to hearing from you again.

0 Kudos
Message 8 of 12
(5,410 Views)

Hello everyone, 

I am having this error -77005, when i try to Deploy the Axis in labview. I am using labview 2013 f2 with softmotion 2013 , solidworks 2012 64-bit. Its a very simple assembly as you will see in the attachment. 

I would really appreciate it if someone would help. Thanks in advance 

 

Download All
0 Kudos
Message 9 of 12
(4,872 Views)

Hey alkaff89,

I have managed to re-create your error code on my pc. Reading the code alone you may have one of the following issues: 

 

1. You need to define the resource outside of (before) the while loop. (See Figure 9 of the 2nd article I have linked). 


2. The resource address you have specified is either incorrect or has been changed since defining it. Try checking the resource is where you have specified and named correctly.


3. The other possibility is that you have “NI Scan Engine support” installed on your computer, and as it is conflicting with this operation you need to uninstall it. 

These articles that may be of use to you: 
Configuring NI SoftMotion Axes

Getting Started with NI SoftMotion for SolidWorks

 

Is this VI part of a project set up as shown in Figure 4. in the 2nd article I have linked? If not then I think this should be the first thing to try.

 

Finally; in future could you please create a “New Message” in the relevant forum section when you have a new query? Thanks. 

Hope this helps, 


Tim, CLD, CTD
National Instruments (UK & Ireland)
________________________________________________
"No problem is insoluble in all conceivable circumstances"
0 Kudos
Message 10 of 12
(4,824 Views)