LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI Softmotion problem: Size of the buffer or array is incorrect

Hi Bojan,

 

I downloaded your SolidWorks assembly and was able to run it with no issues. Did anything change between the time when it worked and now? Did you add more axes/points to your contour table? I tried changing the scan rate, the contour table, and the maximum step size of the SolidWorks simulation, but I wasn't able to get it to fail.

 

One thing you might try is to change the scan engine mode in the Distributed System Manger. From your LabVIEW project, go to Tools » Distributed System Manger. On the left side of the screen, you should see a tree with 'My Systems.' Underneath that, you should see localhost. Click on localhost to reveal a scan engine interface (see image below). Try changing the scan engine mode from this menu and see if you experience any faults or if you still see the same behavior.

 

screenshot dsm.png

 

Thanks,

0 Kudos
Message 11 of 26
(1,180 Views)

I made a few changes but only to the UI. It's the same code and I still can't run it.

There is a fault in the Distributed System Manager. 

 

-66460 labview: The I/0 scan time exceeded the NI Scan Engine period you specified on the scan engine page of the target propreties dialog box.

 

Thanks for your help.

 

Bojan

0 Kudos
Message 12 of 26
(1,178 Views)

Hi Bojan,

 

Error -66460 is not unexpected. The actual SolidWorks simulation is mathematically intensive and can take longer than the scan period that you set. You can safely ignore that error (which is why it is a minor error and doesn't actually get reported to the user during simulation).

 

Were you able to change to active mode from the Distributed System Manager? Did you still get the SoftMotion buffer error?

 

Thanks,

0 Kudos
Message 13 of 26
(1,169 Views)

Hi,

 

I tried to switch to active mode from the DSM but I couldn't.

 

prtscr.png

 

Here is some more info about my problem:

 

 

I started to work with LabVIEW about a two weeks ago. I have created a few projects with NI LV Softmotion module and SolidWorks and everything was ok, had no problems at all. About a week ago, I opened my last project, 6DOF Robotic Arm and I tried to add contour move. Also, I added new table with points for all 6 axis. When I tried to switch to active mode I couldn't. I got this error. 
"An error occurred while attempting to switch the I/O scan mode. NI SoftMotion: The size of the buffer or array is incorrect." 
I deleted the contour move function block and table because i thought that that will solve the problem. But it didn't. 
Since than, I can't run any simulations with Softmotion and I can't switch to active mode. I can't run even the LV example files. And yes, it's always the same error.
I re-installed whole application but it didn't solve the problem. 
System configuration
1.8 GHz Core 2 Duo CPU, 2GB RAM, Win7 32 bit, SW 2011 SP3
0 Kudos
Message 14 of 26
(1,167 Views)

Hi Bojan,

 

I've tried to duplicate your problem by deleting tables, creating tables, and creating a new project from scratch. No matter what I do, I can't get that error when transitioning the scan engine to active mode. I have seen the scan engine give errors after LabVIEW crashes, so I even tried this scenario but still wasn't able to see the error.

 

Just to be clear, you're using LabVIEW 2011, SoftMotion 2011, and RIO 4.0, correct? We did have an issue in SoftMotion 2009 that would cause this exact error, but it got fixed in 2009SP1. 

 

Right now the only suggestion I have is to open up the task manager, go to the processes tab, and force close LabVIEW.exe. However, if you've restarted your computer in the past week and you are still having this issue, then force closing LabVIEW won't help.

 

I will continue to think of ideas.

 

Thanks,

0 Kudos
Message 15 of 26
(1,155 Views)

Yes. I use LabView Academic Suite 2011. 

Thank you for your assistance with this matter. I appreciate your help.

 

Regards,

Bojan

0 Kudos
Message 16 of 26
(1,146 Views)

Hi Bojan,

 

I don't have any updates. I am going to go over this with a developer tomorrow. Just to be clear, you have tried ending the LabVIEW process and/or restarting your computer, right?

 

Thanks,

0 Kudos
Message 17 of 26
(1,132 Views)

Hi Paul,

 

I tried that but it did not resolve the problem.

 

Regards,

Bojan

0 Kudos
Message 18 of 26
(1,130 Views)

Hi!

 

I am dealing with the exact same problem for the past two weeks and not able to undone it.

Reinstalled softmotion module and that didn't solve the problem.

I was thinking about reinstalling the whole LabView and erase the whole NI content from disk and start from scratch

0 Kudos
Message 19 of 26
(1,096 Views)

M3Thod,

 

Thank you for your post.  R&D is still addressing this issue and no work-around/fix has been arrived at as of yet.  I will post an update as soon as one becomes available.  I apologize for the inconvenience.

 

Regards,

 

Chris L

Applications Engineer

National Instruments

Regards,

Chris L
Applications Engineer
National Instruments

Certified LabVIEW Associate Developer
0 Kudos
Message 20 of 26
(1,082 Views)