-
Posts
432 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Gallery
Posts posted by Eugen Graf
-
-
P.S. firstly I wanted to replace Queues in tasks with User Events, because I have this problem:
http://forums.lavag.org/index.php?act=attach&type=post&id=5537
How do you think, what is better to use Queues or User Events? What is faster and eats less memory?
-
QUOTE(Tomi Maila @ Apr 17 2007, 04:58 PM)
Because you should register the event for both event handlers independently...EDIT: Event registrations are like mail boxes. In your loop you put two loops checking the same mailbox. I guess the timeout occurs because of race condition. Event handler starts to handle event but notices that it's already handled. If you register the event for both loops the timeout doesn't occur. Your upper loop is generating user events for itself in reponse to the same user events. This will not be very wise

Tomi
Thanks, I know its not right to generate event if the same occures, so I will get neverending story in my programm. I want only to understand how user events work.
And I know too, that two event structures in one VI have to be avoided. But my second loop simulates only an another task (other VI, which will be started dynamically).
The aim was to register all events in the main task and handle them in other tasks, I want to commit only the registration refnum to other tasks, but you say its not possible, I have to register events in each task.
Eugen
-
Who can say why I get the timeout event in the first loop, after clicking on "Generate" button?
Eugen
-
-
I found out now, that the error appears if I loaded the VI and want then build an application. The app builder loads the VI into memory too, than I have the DLL twice and get the error.
I post the error message at tuesday, than you can sse what I think.
Eugen
-
What is with "In Range and Coerce" from the Comparison Palette ?
Eugen
-
QUOTE(Tomi Maila @ Apr 4 2007, 04:01 PM)
I think it can't help, because even using of statical VI reference causes the problem.
Eugen
-
I think, I change the statical call to dynamical, than I have no problems with (excluding one disadvantage - the name of called VI must stay constant).
Eugen
-
VI, which calls DLL is not reentrant.
Both VIs are in the same application.
Eugen
-
Here a interesting statistic about programming languages:
http://www.tiobe.com/index.htm?tiobe_index
Eugen
-
Can be, that, if I loaded a VI, which calls a DLL, into memory(by opening e.g. from project explorer) and then load a VI, which calls this VI by static reference, then LV tryes to load the DLL twice?
I get errors from DLL if I do that and LV closes immideatly.
Eugen
screenshots
-
QUOTE(JFM @ Apr 2 2007, 12:16 PM)
Use the break point tool from the Tools-Palette.When the break point tool is black, it will add a breakpoint, when it is white it will remove a previously added breakpoint.
In your case use the tool and click within the loop.
/J
Thanks, I normally don't use breakpoint tool, so I couln't know this. It was really automatically tool selection, as you wrote.
Eugen
-
Hello LAVAs,
until debugging I unintentionally clicked on while loop and an breakpoint inside the while loop was created. Now I dont know how to remove it. Here my screenshot. No selection for removing by right klicking on the loop appears.
Eugen
-
Very helpfull, thanks a lot.
Eugen
-
QUOTE(LV Punk @ Mar 30 2007, 01:50 PM)
Thank you very much for this information.
QUOTE(LV Punk @ Mar 30 2007, 01:50 PM)
I almost always create my queues as part of my application startup using a fixed size, immediately populate them with dummy data (to reserve the memory) and then flush the queue.Do you do it in a for loop? So in your initialisation step? Can you post an exapmple? Thanks
QUOTE(LV Punk @ Mar 30 2007, 01:50 PM)
I think allowing a queue grow to unbounded is "asking for trouble".Its right.
Eugen
-
Hello all,
if I see an unlimited queue size, I think LV must realloc the memory every operation with this queue. Now I ask me, its only if the size is unlimited or the memory will be reallocate if the size is definied?
If the memory will be reallocate, its more more slower as the "normally" queue in other programming languages.
Eugen
-
Also I defined now my Intro VI to top level VI and call Main VI from there. The effect I want to avoid is avay now.
Eugen
-
It sounds like a tree control. Don't you have a tree control in your LV version?
Eugen
-
Thanks, but the presentation is in japan and in the thread from NI forum describes my way to make that, but I still know how to implement it with VI server. My problem is only, that the main VI will be shown for 1 ms or fewer, because its the top level VI.
Eugen
-
Online users list isnt work. If I say show only registered, they show me all users incl. guests.
Eugen
-
Hello everybody,
I want to implement a intro window in my application. During starting and initialization of my main, a intro (with groving transparency) window should be shown. Also I can't place the intro subVI to my main, because it will be wait until intro is done. Therefore I start my intro by VI server in the first state of my main state machine. You can see both pictures appended.
The problem is if I start my exe, so top level VI is my main. The window of the main will be shown for few microseconds starting exe. I want avoid it, I want nothing will be shown before intro.
Should I make my intro as top level and start my main there or I can set it in VI settings or exe builder or ini-file?
Thanks, Eugen
Here is my intro VI.
Eugen
-
QUOTE(LV Punk @ Mar 22 2007, 08:05 PM)
What a shame!
Its for 8.2 only.
Eugen
-
I never use express VIs, because I don't know whal happens there. I prefer only simple VIs.
Can thisone help you?
Eugen
-
QUOTE(dwisti @ Mar 26 2007, 09:09 PM)
Really, i installed that from a c't magazine http://www.heise.de/ct/english/ and there stood its a one-year-license. I look tomorrow on my license info.
Eugen

timeout in event structure
in User Interface
Posted
QUOTE(Tomi Maila @ Apr 17 2007, 05:51 PM)
Thanks, for answer.
The snippet shows my "send commands to VISA" task. The user can change settings in main task and all other tasks will be updated with new settings (Set Value Property). But VISA Write on attached picture have older settings if a new message comes and sends only by second message to the right interface. Its the dataflow principle of LV.
Eugen
P.S. see here http://forums.lavag.org/index.php?s=&showtopic=2710&view=findpost&p=25858' target="_blank">http://forums.lavag.org/index.php?s=&s...ost&p=25858