Jump to content

jjylf

Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Posts posted by jjylf

  1. QUOTE (ned @ Jun 24 2008, 03:02 PM)

    This is definitely not the way to do it - you're potentially losing precision while adding overhead and extra bytes of data. There are much easier ways to convert numeric data into a string for transmission purposes. Take Justin's suggestion - use flatten to string and unflatten to string. Or, if you don't need to do any verification of the data type on the receiving end, just use Type Cast, found in the Numeric pallette under Data Manipulation.

    I`m sending the data to a Java program. Is there any java library methods to unflatten the string?

  2. QUOTE (Antoine @ Jun 24 2008, 12:10 PM)

    If you execute in highlight mode you will see why it can't work :)

    You're welcome :)

    There are different way of stopping several loops with only one button, do you need help on this ?

    I`m now using a local Variable. I don`t think that will cause problems.

    Thanks again.

    But I`ve got a problem with everything running very slow. I want the loops to execute at 20Hz, but when I run it only executes at about 1-2Hz.

  3. QUOTE (Antoine @ Jun 24 2008, 10:04 AM)

    post-11832-1214298944.jpg?width=400

    The stop button in loop (1) is connected to the stop in loop (3). That is the only dependence I can think of.

    QUOTE (jjylf @ Jun 24 2008, 10:18 AM)

    The stop button in loop (1) is connected to the stop in loop (3). That is the only dependence I can think of.

    Hi.

    I removed the stop button connection, and it worked. Thank you very much! :D

  4. Hi.

    I am programming a VI that mainly consists of three while loops:

    (1) The main while loop takes input from a java program (TCP/IP) manipulates the data and puts it in the queue.

    (2) The second while loop deques elements and sends it to an electric motor.

    (3) The third while loop gets input (meassurements) using the DAQ Assistant express VI and sends it to the java program (Also TCP/IP, different port).

    Developing this program I first made two while loops, (1) and (2), and it executes well in paralell. Then I added the last (3) while loop for meassurements and it won`t execute. Not untill i press the stop button for the first (1) while loop. But I want all three to run in paralell.

    I`m using the "Wait Until Next ms Multiple" VI with 50 ms in all the three while loops. I do this because the sampling period from the java simulator is 50 ms.

    Any suggestions to what might cause the last (3) while loop not to run will be greatly appreciated. Thank you.

×
×
  • Create New...

Important Information

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