Jump to content

Eugen Graf

Members
  • Posts

    432
  • Joined

  • Last visited

Everything posted by Eugen Graf

  1. Thank you very much for detailed answer. QUOTE(Michael_Aivaliotis @ Apr 18 2007, 09:15 AM) I know that my code doesnt make sany sense, my code is only to probe, what User Events can. QUOTE(Michael_Aivaliotis @ Apr 18 2007, 09:15 AM) You are presenting multiple issues here. Are you trying to get speed and less memory, or are you trying to solve your problem? The reason I'm asking is because you don't need to switch to a completely different architecture to solve your problem. Queues are pretty powerful on their own and still viable for your situation. From what I can see, your problem is that you are mixing your communication mechanisms. Why use "Set Value Property" on top of queues? You already have the pipeline so utilize it. See: http://forums.lavag.org/index.php?act=attach&type=post&id=5544''>http://forums.lavag.org/index.php?act=attach&type=post&id=5544'>http://forums.lavag.org/index.php?act=attach&type=post&id=5544 I want both - to solve my problem & to decide if the mechanism with user events can replace the machanism with queues. Your solution with cluster queue is interesting, but have a disadvantage. My question is: what happens if I only want to change the interface (if user changes program settings) without to send any message to visa? Therefore I want to separate message from settings with user events. If settings changes by user I will send settings user event, if a message must be send to visa, I will use the message user event. Eugen
  2. 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
  3. 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?
  4. QUOTE(Tomi Maila @ Apr 17 2007, 04:58 PM) 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
  5. Who can say why I get the timeout event in the first loop, after clicking on "Generate" button? Eugen
  6. Eugen Graf

    GPS/NMEA

    Why not? It's easy, that are ASCII messages, so you can see all what you send or receive. Eugen
  7. 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
  8. What is with "In Range and Coerce" from the Comparison Palette ? Eugen
  9. 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
  10. 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
  11. VI, which calls DLL is not reentrant. Both VIs are in the same application. Eugen
  12. Here a interesting statistic about programming languages: http://www.tiobe.com/index.htm?tiobe_index Eugen
  13. 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
  14. QUOTE(JFM @ Apr 2 2007, 12:16 PM) Thanks, I normally don't use breakpoint tool, so I couln't know this. It was really automatically tool selection, as you wrote. Eugen
  15. 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
  16. 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
  17. 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
  18. 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
  19. It sounds like a tree control. Don't you have a tree control in your LV version? Eugen
  20. 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
  21. Online users list isnt work. If I say show only registered, they show me all users incl. guests. Eugen
  22. 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
  23. QUOTE(LV Punk @ Mar 22 2007, 08:05 PM) What a shame! Its for 8.2 only. Eugen
  24. I never use express VIs, because I don't know whal happens there. I prefer only simple VIs. Can thisone help you? Eugen
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.