04-19-2010 07:58 AM
I am working on a software which runs on a CRIO system.
I have constant crashes (LV2009 all updates installed)
when I try to add the function binary_to_nominal.vi from the examples
to operate on Analog-Output data from the FPGA.
Specifically, when I place it (still unconnected) inside a for loop to operate on an array
of data (binary, calibration data and output are arrays) I can still save the file.
However, when I connect the output of this function to the index-tunnel and the
index tunnel is connected to an index-array function, Labview crashed the moment
I am trying to save my work, but only when saving the file (which contains no errors).
Anyone else had tzhis porblem and knows a solution?
Olaf
Solved! Go to Solution.
04-20-2010 06:23 AM
Hi Olaf,
If I get you right you have an example similar to the AI Raw Host Calibration - cRIO.lvproj in the example finder. The binary to nominal VI returns the nominal value and the for loop creates the 1D array. And then you are trying to index the array with the index array function. Right?
I have tried it in LabVIEW 2009 SP1 and there was no problem (during development and when i saved the VI).
- Is there an error message after the crash when you restart LabVIEW? Is the error message from LabVIEW or from microsoft?
- As a workaround you can try to copy only the code in the "binary to nominal.vi" to your main RT VI which is needed for your application and try again to save your work.
Thanks,
Cheggers
04-20-2010 09:53 AM
It is almost as you have shown except that I had defined arrays instead of cluster in the FPGA controls. I have added a screenshot of my version which is still saveable. Only the connection to the index-array function causes the crash. What I can also say is that after restarting Labview only the LV-recovery dialog pops up, no further error messages.
04-21-2010 02:11 AM
Hi Olaf,
that's strange. Can you attach the host VI that I can try to reproduce this behaviour?
One thing that I saw (maybe you didn't noticed) is that you have a second tunnel at the for loop, which makes no sense.
If you connect the wire from the index array function to the upper tunnel (and delete the lower tunnel) is LabVIEW still crahsing?
Are you sure the crash comes from the binary to nominal.vi? If you replace this VI with a dummy function (for example a random number which is connected to the output tunnel) is LabVIEW still crashing?
Cheers,
Cheggers
11-30-2010 05:15 AM
It's a long time now but I only now have time again to work on that project. The second tunnel you mentioned was intentional to be as close to what I wanted before the crash appears.
I actually could solve the problem now by re-compiling the FPGA part of the project. Maybe this hasnot been done with the recent version of Labview I was working with. So I guess the FPGA bitecode was the problem. Now I could remove thhe second tunnel and link the two variables together as I wished and save without crash.