From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
04-16-2013 07:52 AM
Hello,
Always the firt time I run my VI, and the program executes the "Plotting signals" Loop I have the message in attach. Then I Close the project and Re-open again and recover the files. I execute the VI and this time the problem not appear.
Here you can see the "Plotting Loop" the upper loop. When I delete the Chart the problem not appear. Some times the problem appear, some times not.
Im using Labview 2012 Sp1 f2, Win7 SP1.
All the best
04-16-2013 09:04 AM
Gabriel,
you should post the complete code. There are several things we dont see in your screenshots leading to open questions. For example:
Where is the stop button located? Which code adresses it?
Additionally, using variables (locals in your screenshots) can induce issues (not saying they are in your situation!). Another thing are subVIs which are not included in LV directly, like e.g. your Create Task. For the waveform function, i am also not sure....
In general, the LV crash report is created in a described situation because most likely the OS is shutting down the task LabVIEW.exe. The reason could be an access violation as listed in your screenshot. This could indicate improper usage of a DLL or driver functions.
hope this helps,
Norbert
04-16-2013 09:37 AM
Please post your code if you can. These type of crashes are very hard to track down, and it looks like it is reproducable in a small application where nothing obviously wrong is being done. There are several posts on NI's forums around this Access Violation Error, and not all of them have been solved. I have seen this on rare occasions but so far only in the development environment.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
04-16-2013 10:02 AM
Thanks for replay.
Here is the "Main" VI ( Principal in Portuguese).
The file is big, It will warm about miss dependency files.
It is my first complete system using Labview. I'm using config files, data base, OPC, USD Aquisition, Reporting files, queues, Arrays Signal analises...
Sorry about some bad programing practices.
If you need some addicional subVI you can ask..
Sorry about all comments in VI are in Portuguese.
All the best
04-16-2013 10:58 AM
@Gabriel_Oliveira wrote:
Here you can see the "Plotting Loop" the upper loop. When I delete the Chart the problem not appear. Some times the problem appear, some times not.
I could not find any charts in your program. do you mean the graph named "eddy currents"?
04-16-2013 11:05 AM
Sorry its graph and not chart!
It's it. (eddy currents)
All the best
04-17-2013 02:24 AM
Gabriel,
since subVIs are missing, we cannot try to reproduce the crash.
Looking into individual loops, the code looks not too bad. But having all loops on a single block diagram bloats it to unmanagable code. Please reduce the size of the block diagram by using custom written subVIs.
Additionally, your code heavily abuses local variables which *could* induce any kind of issues, including crashes. So please try to reduce those to less than 5% of what you are using right now, ideally to 0%.
Another thing i am seeing is that you are using front panel element data binding. Are you sure that this is working properly? Are all shared variables you hook to are present and working?
hope this helps,
Norbert
PS: A single VI with more than 1-2MB either has misplaced default values or is simply too large. OK, for top level VIs, this might be a tough rule, but my experience is very well regarding trying to make VIs as small and focused as possible.
04-18-2013 02:26 PM
Norbert,
The front panel element data binding was the fast way I found to link Shared Variables to my app. What is the better way to do it?
All the best.
04-19-2013 01:54 AM
Gabriel,
a crash of LV is always an unexpected result. This should not happen.
With my questions, i want to point you in direction you should check and test. So, it is not essentially the question "How can replace code you are using with some other stuff" but it is "what is the code which is causing this unexpecting behavior"?
That being said, access violations are usually generated by interfacing to external components. Classic components (somehow pre-destinated) for this are DLLs. But i encountered also TCP issues, .NET and other interfaces to eventually cause this. So pllease try to break things down until you identify the source.
hope this helps,
Norbert