LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Trigger crash when source added - LabView 2017

Solved!
Go to solution

Hello,

 

I am updating a test bench made with LabView 2017 and I have to modify the attached VI.

This programm purpose is to generate and acquire the values of cDAQ NI modules.

BaptisteGuilleux_0-1742474276965.png

 

If the marqued source is filled the programm crash, otherwise if not, the digital front is passed but the following start task won't have the required source.

When the programm crash I obtain this error :

 

Exception : Access violation (0xC0000005) à EIP=0x2089EB6B
Version : 17.0f2 (32-bit)

 

Hardware :

BaptisteGuilleux_1-1742475478371.png

 

0 Kudos
Message 1 of 6
(160 Views)

That's quite the monstrosity.

You're better off throwing it away and starting over.

0 Kudos
Message 2 of 6
(115 Views)

Do you have some advices to start over ? 

0 Kudos
Message 3 of 6
(93 Views)
Solution
Accepted by topic author Baptiste.Guilleux

Hi Baptiste,

 


@Baptiste.Guilleux wrote:

Do you have some advices to start over ? 


This is your current VI:

The white area in the navigation window marks one FullHD screen: your VI is way too large and not maintainable…

 

Advice:

  • Use a project file to organize your project.
  • Create subVIs, especially for recurring tasks/code snippets…
  • Cleanup code: straight wires, left-to-right arrangement.
  • Avoid coercion dots: they have a meaning!
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 6
(81 Views)

Thanks you GerW for this response.

 

This sub-VI is part of a much larger project with multiple sub-VIs. As mentioned, this is a project that we are taking over, making changes to the initial project. I send you the main file of the project. Do you think it's worth making changes to this, or would redoing everything be a more useful solution?

 

Have a nice day.

0 Kudos
Message 5 of 6
(76 Views)

Hi Baptiste,

 


@Baptiste.Guilleux wrote:

would redoing everything be a more useful solution?


Yes. Definitely:

Your main VI also is way too big, so the same advices apply…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 6
(68 Views)