Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

binary to nominal - crashing LV2009 upon saving VI

Solved!
Go to solution

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

0 Kudos
Message 1 of 5
(3,829 Views)

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?

 

binary to nominal.JPG

 

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

 

Sascha
0 Kudos
Message 2 of 5
(3,812 Views)

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.

 

PINC_AI.PNG

0 Kudos
Message 3 of 5
(3,802 Views)

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.

 

tunnel.JPG 

 

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

Sascha
0 Kudos
Message 4 of 5
(3,783 Views)
Solution
Accepted by Olaf_Stetzer

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.

0 Kudos
Message 5 of 5
(3,507 Views)