LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW 2009 Freezing when using Ni845x.dll

Hi Folks,

 

I ported one of my projects from 8.6 to 2009 and I was having some issues.

After digging throug, the subVIs, I realized that my problem was with one subVIs that looks for all 845x devices connected to my PC.

The subVI uses the Ni845x.dll and it works fine in 8.6 yet LabVIEW 2009 freezes as soon as I execute it more than once.

It seems like a bug in 2009 as it works fine in 8.6.

Any feedback?

 

Thanks in advance

0 Kudos
Message 1 of 13
(3,711 Views)

Hello LVexport2b,

 

Do you know which version of the NI-845x driver you are using?  This is the latest one (that adds support for 2009).

 

If you are using this version, could you possibly post the VI ythat reproduces the issue (or a simplified version of it).

 

Thanks,

O. Proulx
National Instruments
www.ni.com/support
0 Kudos
Message 2 of 13
(3,703 Views)

Hi O_Proulx,

 

I have the latest version 1.1.3.

I have attached the VI and I have 3 8451s connected.

 

Thanks

0 Kudos
Message 3 of 13
(3,695 Views)

Hello again,

 

I tested the VI with 0,1 and 2 devices and I did not get LabVIEW to freeze.  Does LabVIEW only freeze with 3 or more devices?  Can you get an NI-SPY capture of the VI running on your machine?

 

Thanks,

O. Proulx
National Instruments
www.ni.com/support
0 Kudos
Message 4 of 13
(3,690 Views)

Hi again,

 

I got the capture you requested.

The program runs ok with 1 device.

After I add the second device and do a few runs, LabVIEW froze & shutdown.

 

Once again, thanks for the help.

0 Kudos
Message 5 of 13
(3,688 Views)

Hello again,

 

The SPY capture is prettu much identical to mine.  The dll seems to be called correctly.  Do you get any kind of error when LabVIEW shutsdown or when you restart?

O. Proulx
National Instruments
www.ni.com/support
0 Kudos
Message 6 of 13
(3,676 Views)

 

I don't get any error. It just freezes & shutsdown.

If I restart LabVIEW, I don't get the Investigate error & I don't have that option on the Help menu.

Any other suggestions?

 

Thanks

0 Kudos
Message 7 of 13
(3,674 Views)

(I'm slowly running out of suggestions...)

 

Can we try changing the error checking level for the call library nodes to see if that has any effect?

 

Thanks,

O. Proulx
National Instruments
www.ni.com/support
0 Kudos
Message 8 of 13
(3,651 Views)

I tried changed the error checking level from Default to Disable but with the same results.

When I set it to Maximu, I get this error message: 
LabVIEW: (Hex 0x5EC) The method in the DLL overwrote past the end of space allocated for one of its parameters. This may have corrupted memory.

 

I also tried installing LV2009 on another machine that has 8.6 and the same thing happens. It works fine on 8.6 but crashes after 1 or 2 runs on 2009.

 

0 Kudos
Message 9 of 13
(3,638 Views)

I think found another separate problem (or difference) with LV2009.

One of my other projects that was working fine in LV8.6, has  broken arrows in LV2009.

Upon further investigation, I found that under ...\LabVIEW 8.6\vi.lib\Utility\config.llb doesn't  exist in LV2009 as an LLB but as regular directory.

Furthermore, some of the VIs that were in the config.llb aren't even in the config.llb folder.

Hence, I had no choice but to down grade back to LV8.6.

However, after saving the project from 2009 to 8.6, LabVIEW always says that changes were made to a few of the VIs if opened within the project or inidividually even if no changes were done.

The change details state "Disable structure switched frame". I did have Disable Diagram structure in those VIs but I deleted them.

I searched the forums for "Disable structure switched frame" but got no results.

Any info that .

Thanks again.

 

0 Kudos
Message 10 of 13
(3,626 Views)