LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview 8.0 PDA local & global variable cause a crash

I've attached a pic of the portion of the VI that causes the PDA application to crash. What is happening is that I write the initial resistance0 to a (global or local) of a chip by using a case structure  that sets the value when the while loop first executes, afterwards, every other iteration, it sets the resitance to a (local or global variable) called resistance then it plots it.. unfortunately, accessing the variable
this way causes it to crash .. Any help would be greatly appreciated.

Message Edited by GHernandez on 02-09-2006 06:25 PM

Message 1 of 6
(3,838 Views)

Using globals as a data transfer mechanism is a dangerous thing to do in general and is probably not wise on a PDA, due to the limited memory and processor power.

Try looking up functional globals (or LV2 global) and that might help. Also, try minimizing the amount of locals and display clusters, as they will also cost you in memory.


___________________
Try to take over the world!
0 Kudos
Message 2 of 6
(3,823 Views)
I've re-written this application , where i have not included global variables for resistance, or resistance0 or the counter. The VI executes for maybe a  min or 2 then crashes giving me the following error:

App failed. Error code 560331006. Bad input argument to function.
unfortunately, this error code does not tell me anything.
.

Message Edited by GHernandez on 02-10-2006 04:51 PM

Message Edited by GHernandez on 02-10-2006 04:52 PM

0 Kudos
Message 3 of 6
(3,817 Views)
It appears that labview crashes when i try to display a waveform chart  inside the tab control.. Any help on how to fix this would be grealty appreciated. I've so far eliminated all but one global variable, and it runs fine.
untill i try to display a waveform chart..

0 Kudos
Message 4 of 6
(3,808 Views)

Again, I don't know how 8 is, but earlier versions were not up to the task of updating several graphs at the same time properly, especially if you had to switch tab pages. Instead of using a chart, you can try creating a FIFO VI which will simulate the chart using a graph and only update it when it's displayed. I don't know if that will help, but it might. I've posted such examples before. Try searching my posts for XY Chart.

And don't use globals on the PDA! (unless it works for you) Smiley Happy


___________________
Try to take over the world!
0 Kudos
Message 5 of 6
(3,803 Views)

I experienced a crash from Local Variable of An DBM Array Value.

Simular Error acured and program stopped.

After I changed Local Variable to Property node(->Value), it works fine. ^^

I have no idea what was the reason. Maybe there is some buggs on PDA,TPC Module.

but I think it is little bit difficult to solve it in case of Global Variable. 😞

 

Smiley Wink I hope this can help you~~!! have a nice day~!

0 Kudos
Message 6 of 6
(2,803 Views)