LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

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

Hi,

 

I'm Bojan and I'm new to LabView.

I have a problem with NI Softmotion. A few days ago everything was working just fine but today when I tried to run the same simulation with Softmotion and SolidWorks I got an error. It says:

"An error occurred while attempting to switch the I/O scan mode. NI SoftMotion: The size of the buffer or array is incorrect."    

I looked at the site (ni.com support) but I can't find a solution.

 

error.png

Please help,

Bojan 

 

0 Kudos
Message 1 of 26
(3,748 Views)

Anyone?

 

Is there a way to reset or clear the buffer?

 

I tried to build an array and since that I can't use LabView Softmotion. No matter what I open in softmotion, it shown same error message.

 

How can I get tehcnical support from NI? I'm using licensed version, LabView Academic Suite 2011.

 

Regards,

Bojan

0 Kudos
Message 2 of 26
(3,724 Views)

Bojan,

 

This error is probably begin thrown because your input array for the contour move does not match the buffer size allocated for the move.  The following link from the SoftMotion Module help describes the different contour move options and how the buffer allocation works for each option.  Check your settings and make sure your buffer size and array size match up.  If this does not solve the problem you can access further support resources by going to ni.com/support. You receive a one year free subscription to SSP support with the purchase of the academic suite.  If your SSP subscription is still current, you are entitled to phone support and can click on Contact an Engineer to receive further support.  Please let me know if you have further questions.  

 

Regards,

Chris L
Applications Engineer
National Instruments

Certified LabVIEW Associate Developer
0 Kudos
Message 3 of 26
(3,694 Views)

 


@Chris L wrote:

Bojan,

 

This error is probably begin thrown because your input array for the contour move does not match the buffer size allocated for the move.  The following link from the SoftMotion Module help describes the different contour move options and how the buffer allocation works for each option.  Check your settings and make sure your buffer size and array size match up.

 


Thanks for your reply,

 

There is no link.

@Bold - How can I do that?

 

Regards,

Bojan

0 Kudos
Message 4 of 26
(3,690 Views)

Bojan,

 

Sorry about that.  Here is the link to the document I referenced earlier: http://zone.ni.com/reference/en-XX/help/371093K-01/nimclvfb/excontourmove_00b10009/.  As far as checking your settings, it depends on how theprogram has been constructed.  If you can give a little more information about your program, or even post it to the forum I could take a look at if for you.  Most likely we've defined either an array size or a buffer size whichis incompatible with the default setting, but I would have to see the program to know for sure.

 

 

Regards,

Chris L
Applications Engineer
National Instruments

Certified LabVIEW Associate Developer
0 Kudos
Message 5 of 26
(3,686 Views)

@Chris L wrote:

Bojan,

 

Sorry about that.  Here is the link to the document I referenced earlier: http://zone.ni.com/reference/en-XX/help/371093K-01/nimclvfb/excontourmove_00b10009/.  As far as checking your settings, it depends on how theprogram has been constructed.  If you can give a little more information about your program, or even post it to the forum I could take a look at if for you.  Most likely we've defined either an array size or a buffer size whichis incompatible with the default setting, but I would have to see the program to know for sure.

 

 


Vi attached. I would be grateful if you check it.

 

 

0 Kudos
Message 6 of 26
(3,681 Views)

Bojan,

 

Thank you for posting your code.  I took a quick look at it, and I think you are correct in assuming that the error is coming from the contour VI.  I am going to use our test machine which has SoftMotion and SolidWorks installed and run your code to see if I get the same error.  If so, then I should be able to figure out what the cause of it is.  I have a feeling that the formatting is not correct in Table 1, but I want to verify my assumptions.  I will let you know the results once I have looked into this further.

Regards,

Chris L
Applications Engineer
National Instruments

Certified LabVIEW Associate Developer
0 Kudos
Message 7 of 26
(3,656 Views)

Thanks,

 

I can attach solidworks files also, if you want.

 

Regards,

Bojan

 

0 Kudos
Message 8 of 26
(3,653 Views)

Bojan,

 

That would be great.  For some reason I thought I already had them, but I was mistaken.  Thanks!

Regards,

Chris L
Applications Engineer
National Instruments

Certified LabVIEW Associate Developer
0 Kudos
Message 9 of 26
(3,647 Views)

Hi

 

You can download it from here.

It's made with SW 2011.

 

Regards,

Bojan

0 Kudos
Message 10 of 26
(3,640 Views)