-
Posts
432 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Gallery
Everything posted by Eugen Graf
-
Hello, I have a problem scanning a timestamp from string on a german PC. Look attached snippet. If "use localized decimal point" is set in the environment than I get this error, if not it runs without errors. It's a bug? Eugen Now I replaced Scan From String with String To Float and then convert To Timestamp. No more errors. But where was the problem? Eugen
-
QUOTE(Thang Nguyen @ May 8 2007, 04:15 PM) Why I should use another GOOP Tools? Its not possible with LVOOP (LV8.2) ? Eugen
-
QUOTE(Thang Nguyen @ May 8 2007, 12:10 AM) Thanks Thang Nquyen, I will do it. But why I have to begin with FILE PATH as my first class? I can consider my file as an object, but I thought my objects shoulb be my items, not the DB-file. I would create my General-Item-Class and add the file path as property. It's not right? Eugen P.S. yes, it's right, either way, earlier or later the file path will be one of properties in my general class. Other question: how can I create an object from two classes? I think, if the user clicks on the "add new item" and then select the type, I will create a new object of type "special class", which is inherited from my generall class and have additional item-type-special props and methods. Eugen
-
QUOTE(Michael_Aivaliotis @ May 8 2007, 04:16 AM) Thanks Michael, I need generally informations to publish subscriber in relation to Labview, how to and examples. Are there any? Or should I make me one myself? Queues in array should be variant? I think, yes. A little example code, which only explains how to implement a easy one? Eugen
-
Hello, I want to make my first OOP-Project(for me, private, not for sell, only to get any experiance in LVOOP). The program must handle a table file with some general informations about media files(films, songs, photos a.s.o). By clicking on a row in the table - more file special informations should appear. Items should can be sorted by any column in the table and a search function should be implemented. Don't think it's my homework! I have this project just completely ready to run and it works(but is not OOP-based). My plan is following: create a class that have general properties like item-number(ID), name of item, name of file, kind, date, source, place on HD, place in the room, size, number of CDs or DVDs and general methods like set/get general properties. Than I want to inherit this class to more specifical classes, e.g. for films I add more properties: regisseur, headliners. Specifical methods: set/get spec. props for films for songs: props - songer, album. Methods: set/get props for songs and so an. It's right way to make that? Where should I begin with LVOOP? Thanks, Eugen
-
Have anybody been worked with "publish subscriber" methode? Any informations? Thanks, Eugen
-
No more suggestions? Eugen
-
Queue, Notifier or User Events ?
Eugen Graf replied to Eugen Graf's topic in Application Design & Architecture
Ups, sorry, see here http://forums.lavag.org/index.php?s=&s...ost&p=29306 Probably I am to nervous if I see my project at work an if my boss say me to make it faster. If a am home I see, where the problem is. I can imagine how to make it right, but if a am on work... Eugen So I have only to memorize , that a queue can not simply be a data buffer, but it can have a important functionality. It can "say" to a task, what to do with data in the same message. It's very significant for me. Eugen -
Queue, Notifier or User Events ?
Eugen Graf replied to Eugen Graf's topic in Application Design & Architecture
QUOTE(Michael_Aivaliotis @ May 4 2007, 10:43 AM) Sorry, I can't solve my problem with your VI. Here a screenshot. Eugen -
Queue, Notifier or User Events ?
Eugen Graf replied to Eugen Graf's topic in Application Design & Architecture
QUOTE(Eugen Graf @ May 4 2007, 12:13 AM) No, if I want to "say" to more than one task about new settings, I have to use User Events (or Notifier?) but no queues. Because if I dequeue new settings in a task, than other will dont get it. Eugen -
Queue, Notifier or User Events ?
Eugen Graf replied to Eugen Graf's topic in Application Design & Architecture
Thank you, Michael. Your recommendation with Variant Data and Action solves NEARLY ALL of my problems. Here I can use Queues or User Events, no functional difference is to recognize. The problem was to "OR" queues in tasks and with variance I can do it. Eugen -
QUOTE(Tomi Maila @ May 3 2007, 09:02 PM) He can buy a better PC (faster and with more memory), he can turn off other tasks and processes, he can sample data slower, he can call you and you can recommend it to him. I think it's wrong to drop anything and nobody knows about is, and if he makes posprocessing of this data, he see other results as expected. Eugen
-
QUOTE(Tomi Maila @ May 3 2007, 07:25 PM) Why not to make the queue bigger and dequeue it as usual? And if the queue will be nearly full, then flush it and signal a warning to the user. Eugen
-
Are there other ways to skin a 3d object with texture in LV 8.0?
-
Thank you, I will assuradly use it. Eugen
-
QUOTE(i2dx @ Apr 25 2007, 08:15 AM) Ok, I deleted all Event VI from my BD and replaces them by normally Wait VI -> error is avay now, but my program is no more event controlled. It's a pity. Eugen
-
QUOTE(LV Punk @ Mar 30 2007, 07:55 PM) Thanks, but it's only for "string" queues. If I have a queue of other datatype I have to adapt your BD to my type. Are there any possibility to adapt the data type(e.g. by variant), I can use this VI for every queue? Eugen
-
No answers. Nobody uses serial port? It's too specific? My last BD is following. http://forums.lavag.org/index.php?act=attach&type=post&id=5622 Eugen
-
Hello, if I use VISA event "Serial Character", I get follwing error Message: Error -1073807315 occurred at VISA Wait on Event in SK_Task_Read_Parse_A.vi->SK_Interface_A.vi->SK_Main.vi Possible reason(s): VISA: (Hex 0xBFFF002D) The event queue for the specified type has overflowed. This is usually due to previous events not having been closed. Can anybody say me, how to get it away and why it appears? I tryed to discard occurences before waiting on event, I tryed to enable/disable event before/after I wait on it. But it comes again and again. Eugen
-
Queue, Notifier or User Events ?
Eugen Graf replied to Eugen Graf's topic in Application Design & Architecture
QUOTE(i2dx @ Apr 24 2007, 05:16 PM) Timeout -1 or better FFFFFFFFh should be possible, but I get "Timeout Error" if I do it. It's a bug? Eugen -
Queue, Notifier or User Events ?
Eugen Graf replied to Eugen Graf's topic in Application Design & Architecture
QUOTE(Eugen Graf @ Apr 20 2007, 04:59 PM) Ok, nobody want to help. I did it myself. Eugen http://forums.lavag.org/index.php?act=attach&type=post&id=5615 http://forums.lavag.org/index.php?act=attach&type=post&id=5618 http://forums.lavag.org/index.php?act=attach&type=post&id=5616 http://forums.lavag.org/index.php?act=attach&type=post&id=5619 P.S. can anybody say me, how to set timeout in "Wait On VISA Event" to unlimited? -
QUOTE(Michael_Aivaliotis @ Apr 18 2007, 06:40 PM) Hello Michael, your solution is realy good, I can understand it and thank you for. Can you say me how to make it for reading task? Not so easy, I think. It can be anything, but not locals, globals or references. And no timeouts in event sructure. Thank you. Eugen
-
Queue, Notifier or User Events ?
Eugen Graf replied to Eugen Graf's topic in Application Design & Architecture
Can anybody say me how to solve the same problem in the "read task"? How can I "say" to the read task about new settings? Thanks, Eugen -
Thanks Michael, I will show your VI more detailed and answer later. To your questions: there may be up to 8 devices (my biggest project) with different interfaces. The most are serial, but some of them TCP/IP and CAN, no GPIB. Here an example of my older project (for two devices), you will see that I can't place all VIs on one display screen. And if there are much more devices, then the BD would be bigger. I can in fact hide more SubVIs into one, but I don't think my program will be well arranged. Please no critic, I know the BD on the snippet have more programical errors, but think on I was a LV-beginner at those time. Eugen
-
Hello, I love the synchronisation palette of LV and multitasking functionality of them. My actually application architecture for communicating with devices over any interface is following: My application contains e.g. 5 tasks: 1. main task - is a state machine with ca. 10 steps. 2. read & parse task 3. log data to hard drive task 4. show data to user task 5. write data (command) to devise task steps in the main task are following: 1. settings - reads and writes settings cluster to a XML-File. If no XML-File exists, a settings window pops up, user have to make settings and they will be written to a new XML-File. 2. open interfaces - inits and opens interfaces to devices with settings from XML-File 3. start tasks - starts another (see above) tasks dynamically. 4. wait on commands - contains a event structure, which queries user events from FP 5. reinit program - if settings are changed by user, all tasks will be reset with Set Value Property, device interfaces will be closed and reinit then if user want to exit program 6. stop tasks - all tasks will be stopped by closing queue or notifier refnums 7. terminate tasks - if any task runs after closing refnums (normally not used) then this task will be aborted 8. close interfaces 9. exit LV Also, to communicate between tasks I use (easy example with only one devise): 1. One queue - read&parse task put messages into this queue and log task gets this messages and logs them to hard drive 2. One notifier - read&parse task put messages to notifier and show task gets them and shows to user 3. One notifier - user puts any commands to this notifier and "send to devise" task gets them and sends to devise Its okey? Good or bad? Now I want to replace my communication mechanism because of following problem: http://forums.lavag.org/index.php?s=&s...ost&p=28344 What do you think about it? best regards, Eugen