08-22-2013 08:17 AM
hi, I've been searching, but couldnt find anything similar with my error. After executing my VI few times, somehow the resource device becomes duplicated. I cant use this duplicated resources to start my VI.
I had this issue with LV 2010, and I have just installed LV 2013 (evaluation) to check if this problem still exists. For both versions, the problem is there.
regards,
Yan.
08-22-2013 08:23 AM - edited 08-22-2013 08:24 AM
08-22-2013 09:12 AM - edited 08-22-2013 09:13 AM
Hi ben,
I'm using while loop because I need to put event stucture. And I always have the task closed when my event stucture done. So, I dont really think thats the issue?
For example if I'm trying to generate signal based on event, I need to put them inside while loop, isnt it?
the local variable (which represented as reference) is actually that clock indicator (inside event structure).
08-22-2013 09:30 AM
You should setup once before the while loop and close once after the while loop. This makes sure you have the resource during the extent of your application.
08-23-2013 03:46 AM
hi all, thanks for responses.
So, how should I change my event? I should take out my init&close session out of the event? or how should I do it properly? Maybe I'm just not trying hard enough to find examples to work with multi pxie devices with events. An example of how to do it would be very appreciated.
regards from Berlin,
Yan.
08-23-2013 04:57 AM
I just did some trial and I think I found the bottleneck.
When running a VI, if I click Abort Execution (Red button on top) would mean my VI is not properly executed until the end. This would create the duplicates. Is it normal? I mean, not everyone are pro LV programmer who can ensure their code should execute nicely from the start to the end. Sometimes we need to click the abort button.
regards,
Yan.