Jump to content

Eugen Graf

Members
  • Posts

    432
  • Joined

  • Last visited

Posts posted by Eugen Graf

  1. QUOTE(ragglefrock @ Sep 6 2007, 04:48 PM)

    I'm confused as to why the Read case needs to queue itself up. Reading the Queue happens every iteration anyway, so it doesn't serve any purpose to have a specific Read case to tell it to do so. Can you explain what you're trying to accomplish? Do you only want to process messages after hitting Connect?

    I want only to start the COM-interface reading in the bottom loop from the upper loop. After it is started, it should do reading up to the upper loop commands idle.

    Why not? What can be wrong here?

    Thanks, Eugen

  2. Hello,

    I use a queued state machine in my program. The bottom loop is my parser and works in own VI. If I click connect my parser should start to read interface and triggers himself for the next read. But if I want to stop them, they will not stop. I see why, but have no right solution.

    http://forums.lavag.org/index.php?act=attach&type=post&id=6857

    My bad solution is to flush the queue in state idle, but it works wrong, if I click any other button while waiting on reading (5 sek). In realy reading doesn't need 5 seconds, it only to show you my problem.

    http://forums.lavag.org/index.php?act=attach&type=post&id=6858

    Thank you, Eugen

  3. QUOTE(yen @ Sep 5 2007, 08:29 PM)

    Can you post an example of completely transparent 3D Cluster (no borders and no shadow must be visible) here? Please. I don't think it's possible.

    QUOTE(yen @ Sep 5 2007, 08:29 PM)

    You could probably also do the programmatic replacing - there is a Control class (private) method which allows you to replace a control with another one, but I believe it suffers from the same problems you mentioned with the manual replace.

    Sorry, I don't love/use private methods and properties.

    QUOTE(yen @ Sep 5 2007, 08:29 PM)

    What I would probably do about that is use KShif's property saver to transfer the properties (although I don't know if it would handle all kinds of objects) and replace the controls inside the arrays and clusters instead of the arrays and clusters themselves.

    That is too difficult for this. I wish it would be implemented in LV, like:

    rightklick on

    Control->Control Style->Classic

    ->Modern

    ->System (optional, if possible)

    Eugen

  4. QUOTE(Tomi Maila @ Sep 4 2007, 05:22 PM)

    You mean you want to do this manually for some VIs or automatically for a large number of VIs?

    Yes, manually. I know I can use Control->Replace and then replace my modern object to a classic. But it doesn't work for clusters and arrays. Furthermore if I replace a object to any other, then the new loses properties, like formatting.

    Eugen

  5. For UDP broadcast, a UDP server should run on the XBOX and wait for your request. If no UDP server ist available, than you can try to connect to the XBOX over TCP/IP in a for loop.

    Eugen

    P.S. if you know any program, which do, what you want, than you can use any sniffer to hear up the traffic between this program and the XBOX.

  6. QUOTE(jbrohan @ Sep 3 2007, 02:25 PM)

    Right, I use only queues of type string in my programs, because of modules compatibility. For this example it is not requiered.

    QUOTE(jbrohan @ Sep 3 2007, 02:25 PM)

    2) The split 1D array can be moved inside the case statement

    3) The Buffer Size check can be moved inside the case too

    Yours Sincerely

    John

    The Buffer size control(terminal on BD) inside the case too.

    One more comment from me:

    Build array VI can eat some CPU, so you can better use "replace array subset". Than you have to know the max. buffer size in developing phase and probably limit the buffer size control to this max. size.

    Eugen

  7. I am working with data monitoring for IMUs. But I newer try to integrate or differentiate a signal under Windows.

    1. And if I should do it, I need a TIMESTAMP for EVERY sample or I need to know the sampling frequency.

    2. I would say integrate or differentiate every 25th or 50th sample is a wrong way to reduce CPU load. This way means, that you loose some important informations about the signal. The right way would be to integrate every sample and buffer them. After them you can show data with e.g. 10 or 5 Hz. So you will dont get more than 5% CPU load.

    3. To log data on HD you can use the right sampling frequency, it doesn't need some CPU.

    Eugen

    P.S. AND I AM SURE that LV is not much slower than C/C++ or other programming languages. You have only right use it. :star:

  8. Hello, what is the most appropriate alignment grid for Front Panel? I don't more know my default value. I think e.g. on default sizes of controls.

    If I place a LV control (e.g. 39X20 = default size of a boolean button) to my FP and move them, but my alignment grid is 8X8, then I get some little problems (see attachment).

    Eugen

    P.S. I know I can group/ungroup or resize buttons, but I want only to know what is the default grid size after LV installation.

  9. I thank you all. I use Pub/Sub model in one project now. It's really cool. I can see all queues traffic, all themes and tasks:

    http://forums.lavag.org/index.php?act=attach&type=post&id=6729

    My StartUp VI looks like in following example:

    http://forums.lavag.org/index.php?act=attach&type=post&id=6730

    My Dispatcher Task is here:

    http://forums.lavag.org/index.php?act=attach&type=post&id=6731

    And on this example you can see, how my modules (tasks) say to dispather about themes (topics) while starting:

    http://forums.lavag.org/index.php?act=attach&type=post&id=6732

    And this is my Create&Subscribe VI used in each task:

    http://forums.lavag.org/index.php?act=attach&type=post&id=6733

    A big thank to all, Eugen

×
×
  • Create New...

Important Information

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