Simulator program

hi all,
can any one share me the code,to control my device using PC,
just like a simulator.
thanks
mraj

The agents must store paths to food. Right now the agents move acorrding to their schema. If they get stuck a random set of moves is generated for that agent. The idea of the simulation is for agents to learn the environment (paths to food) through the use of their inborn schema and associative memory. For example, when an agent finds food, that path is stored in it's associative memory. The agent is then placed in a random location in the environment. That agent will then use its schema and associative memory to find food, meaning when the agent moves it will check it's associative memory for a move that matches the current move - if no match is found it will move according to its inborn schema (default move pattern).

Similar Messages

  • Running the simulation program in RTX

    Hi,
    My simulation program runs fine with windows. Now I am trying to run it with RTX Eval version but the results which I get are not correct. There is no I/O interface in my system. I am giving fixed control inputs and want to view the plots on the screen. I have used Labview 8.0 and simulation module 2.0. Does the simulation module work fine with RTX?
    Also, how to view the data on screen from the program running on the RTX? I am checking only the final value presently to verify my results.
    thanks and regards,
    Rashmi

    Rashmi,
    Sorry this has taken so long to get a response, but I am going to need some more information before I can fully help you.
    Just to verify, the results on the Windows system are correct, but they become incorrect when ran on the RTX?
    What exactly is incorrect about the results?
    Have you tried some LabVIEW examples on the RTX to make sure the output is what was expected?
    from the main LV screen>>Find examples >> browse >> toolkits and modules >> control and simulation >> simulation
    Chris Van Horn
    Applications Engineer

  • Multi-Agent Simulator Program

    Hi All,
    I'm working on a multi-agent simulator in which agents learn an environment while moving through it. Being somewhat new to Java, I'm looking for suggestions on what data structure to use for storing an agents associative memory. To give you an idea, I'm currently using an array for the agent's exploratory memory (a buffer), then when the agent finds food the path used to find food is then copied to the agent's associative memory and the exploratory memory is whiped clean. The problem I'm encountering is I don't want just a bunch of paths to be stored in the agent's associative memory - exsecially paths that have exact subpaths. For example, if an agent moves North, North, East, then South, and finds food, that path will be stored in associative memory - in case the agent finds itself on that same path it can use it's associative memory to find food. The problem is what if the agent does find itself on that same path, but moved South then West prior to finding the above path. My current logic updates associative memory with the full path taken to reach food. Therefore I would have two paths in my associative memory but one path would be a subpath of another. I guess I'm looking for a data structure that can store full paths as well as parts of paths that connect to full paths. Also, the agents don't know where the food is, they only know paths to food. I can't make a matrix for the agent mapping the environment. I was considering storing full paths and using an emotional context, but wouldn't that be inefficient to store all full paths when some paths are subpaths of other paths?
    Any suggestions?
    Thanks

    The agents must store paths to food. Right now the agents move acorrding to their schema. If they get stuck a random set of moves is generated for that agent. The idea of the simulation is for agents to learn the environment (paths to food) through the use of their inborn schema and associative memory. For example, when an agent finds food, that path is stored in it's associative memory. The agent is then placed in a random location in the environment. That agent will then use its schema and associative memory to find food, meaning when the agent moves it will check it's associative memory for a move that matches the current move - if no match is found it will move according to its inborn schema (default move pattern).

  • Login and download simulation program

    Hi,
    I currently have to login to a website and download an xml file daily.
    I would like write a program that mimics that login and download action. The login is though a windows prompt popup. I have been told that Apache HttpComponents can be used to write this program except that I really don't know where to start. Has anyone used HttpComponents before for a similar task? Are there other non-commercial alternatives?
    Thanks

    Im not too familiar with this stuff but can you pass the login info
    in the webaddress with a normal HTTPConnection.
    Something like:
    www.site.com/?login=password

  • I Need help on how to write a simulation program using Java

    I am currently working on my final project and i will be grateful if i can get any help on the needed resources that i will require for my code

    Benny,
    If that means you want someone to work for you, then you better have deep pockets, most of the developers' time goes for 100+ an hour.
    But if you mean you would like to ask quesitons about code you have written and get advice on how to continue or fix a problem you are having, then post the relavant code piece and ask away. There are many that will be glad to help you in that manner.
    But this is NOT a do my homework for me board and unless you can clue your Prof in that your work is not your own, then you would be cheating for a grade you do not deserve, and in that case--please just go else where or drop out--either one will make no difference to me or most of the developers on this board.

  • I'm very frustrated by this samll program. It 's expected to give out the dynamic respones of a pile partly burried in soil, but it gives out....

    I'm translating a small simulation program from ASYST to LV which simulates the dynamic response of a partly burried pile(mobility vs. frequency), the expected result should be a wave shape varying with frequency, but what I got is not such thing. I don't know if anybody can help me to check what's wrong with it. it's attached.
    Attachments:
    Simulation.vi ‏129 KB

    thanks.let me re-post the vi and it's subvi. Do you know about ASYST? an out of date language.
    Attachments:
    Simulation.vi ‏122 KB
    segment_loop.vi ‏123 KB
    global.vi ‏9 KB

  • Can a C++ sub-program invoked as a cin node call a LabView sub-vi as a "function"

    The subject says it all, we have a mostly LabView system that controls a numerical
    simulation program. We would like to add a new numerical analysis package written
    in C. To be used as written this C package must call one of our LabView sub-vi's
    as a function numerous times. Can this be done?
    -thanks

    > The subject says it all, we have a mostly LabView system that controls a numerical
    > simulation program. We would like to add a new numerical analysis package written
    > in C. To be used as written this C package must call one of our LabView sub-vi's
    > as a function numerous times. Can this be done?
    >
    CINs are one way of doing this, but they are C code written specifically
    for LV.
    A better solution is to use the Call Library Function node, or the DLL node.
    Your C code may already be built into a DLL. If not, it is easier and more
    familiar to the people doing it.
    Another option is to use a built EXE and the System Exec node. Note
    that a
    DLL has multiple entrypoints that can be called at different times to provide
    lots of flexibility. An EXE has few, typically o
    ne, entrypoint and is sort
    of difficult to control once it is up.
    Another option, if the C code is written this way already is to use an
    automation interface -- an ActiveX interface. This is really about the
    same as a DLL, but it follows certain standards so that ActiveX client
    programs can access things in a standard way.
    Be sure to look at the Code Interface or external code manual. It should
    be a pdf manual in the help directory.
    Greg McKaskle

  • Program RPURMD00 to undo TP postings Performance Issues

    Hello All,
    We have created incorrect Third Party positng documents in PCP0. These have not been posted yet. When we try to run the simulation program to undo postings (RPURMD00), it took more than 22 hours and we finally had to cancel it and restart. Even the second time it exceeded time limit. Undo process should happen to delete about 150 entries in Table T51R5. So I was expecting not more than an hour or so.
    Is there a SAP note released to resolve this? Or is there an alternative to undo the postings?
    Appreciate any quick responses.
    Thanks,
    Soujanya.

    Can anyone please help me with this URGENT Issue:
    Can I just delete/ignore the incorrect third party posting documents?
    I am trying to run a simulation with the correct posting date parameters (before deleting the Incorrect documents), the third party posting do not seem to pick up any Garnishment vendors we are trying to post. Is this because, we still have the production Incorrect documents generated and not deleted.

  • Simulation of articulatory(speech production) activity in human.

    Hello..........!
    I want to simulate the artificial speech production system in labview which will be helpful for the people who have lost their ability to speak due to laryngeal cancer or laryngectomy.
     while searching through net i got the following circuit i want to know if it is possible to simulate this using labview, if so please help me otherwise please anyone can suggest me the other circuit for the artificial speech production system.? I am giving here the circuit as well as the description please provide me the block diagram and front panel of the system. please help me.
    The vocal tract is represented 'as a non uniform transmission line supporting longitudinal propagation only. Its characteristic impedance at all points is inversely proportional to the cross sectional area in a plane perpendicular to the flow line . The tract is assumed hardwalled ; the compliance of the soft tissues of the tract wall is ignored. The sampling frequency for the
    simulation , 24 kHz, is determined by the spacing of area samples, 1.5 cm, that is necessary to simulate the continuous tract up to a signal frequency of 6 kHz. Since the length of each section is considerably smaller than the wavelength even at this frequency, the effect of the distributed reflection of a section traversed by the wavefront in one sampling period can be represented by a lumped reflection coefficient centered on the section.Figure 1 shows a block diagram of the v o c a l - t r a c t model. Pressure samples propagate back and forth along the transmission line and suffer multiple internal reflections . E x c i t a t i o n may be p e r i o d i c, simulating vocal-cord vibration , or turbulent corresponding to frication . For per i o d i c e x c i t a t i o n the samples of the excitation function are added to the samples of the r e f l e c t e d signal arriving at the glottis . Turbulent excitation may take place at the vocal cords or at any interior section . It is Implemented by means of a white - noise generator and associated source impedance placed in  series with the line . For computational simplicity , the tract is assumed lossless within its interior . Simple digital filters act at the tract boundaries, the vocal cords and the lips , to approximate the frequency-dependent losses so that  actually measured resonant-frequency bandwidths are properly matched. The glottal reflection and the labial radiation functions act essentially as high-pass filters ; the labial reflection appears as a lowpass filter . The nasal passage is  represented by an additional transmission line of fixed but nonuniform shape coupled to the main tract with the aid of a variable coupling parameter. It serves in the production of nasalized vowels and consonants. The system output is obtained by summing the outputs of digital filters approximating the free-space radiation characteristics at the lips and nostrils . Radiation through the lips is , of course, controlled by the variable lip area. If the opening is reduced, more of the energy arriving at the lips is reflected within the tract and less is radiated to the outside . Radiation through the tract wall is not explicitly included. Articulatory movement is simulated by defining a sequence of articulatory states or targets and interpolating the position -dependent reflection coefficient values and oral - nasal coupling between them. Thus targets are not necessarily phonemic in nature but may be specified as frequently as desired in order to approximate natural articulatory movement as closely as possible . When the articulator positions are derived from a model of articulatory activity , the vocal - tract shapes computed therefrom are expected to act as the target states of the simulation program. Stress and intonation information are assumed embedded in the excitation frequency and amplitude parameters and will not be discussed here in detail . Linear interpolation of the reflection - coefficient values implies that near sharp constrictions the area varies linearly with time, but where the area changes slightly or the reflections are small, the areas vary exponentially with time. The resonant-frequency curves resulting from this procedure resemble those observed in spectrograms more closely than the straight -line segments used in most formant synthesizers.  

    Duplicate thread: http://forums.ni.com/ni/board/message?board.id=170&message.id=282858
    LabVIEW Champion . Do more with less code and in less time .

  • Simulation and design

    Plz, can any one tell me
    If there is any program that I can desgin a network with Routers and switches, and make simulation on it to test and see the result
    and thanks

    Assalam-O-Alikum Anas,
    Here is the link to the very best simulation program which is free....
    http://www.gns3.net/
    download and run this application. But you will need Cisco IOS for each platform. If you have CCO account with H/W and Software maintenance, then download and copy into relevant directory.
    There are loads of technotes and video tutorials you can access from the same site as well as loads of tutorials on Youtube.com
    Hope this helps....
    Shaheen

  • Capturing video of a simulation....!

    Hi guys...!
    I'm working on a simulation program, but I want to make a video of the simulation and save it on a disk...so that my boss could play the video during a conference meeting.
    It's a simulation game that runs on my computer.
    Any idea on how to do that ...?? I searched online, but I didn't find anything interesting or anything that tells me how to do that.
    Any suggestion will help....
    Thanks...
    --- Spirit_Away

    This may or may not help. There is a piece of example code on the JMF page that takes a list (actually its a vector) of images and the height and width of those images as well as a frame rate and converts them into a quicktime (.mov) file which can later be viewed.
    http://java.sun.com/products/java-media/jmf/2.1.1/solutions/JpegImagesToMovie.java
    My advice (which is the same as CeciNEstPasUnProgrammeur is to research the Awt.robot class for taking a series of screenshots, then saving those screenshots, storing the filenames in a vector and feeding that vector (as well as the other parameters) into the jpegImagesToMovie method DoIt. Look into that and if you have any problems let me know. I've done a similar task to this so hopefully if you can't figure it out, i'll be able to help. But definitely try it out on your own. You'll learn more that way
    Regards,
    Jay

  • Possible to run NXT program on PC simulate before I run it on nxt brick?

    1. Is it possible to run NXT program on PC simulate before I run it on nxt brick?  For example, NI has this program http://legoengineering.com/library/doc_download/126-play-the-scale.html so I want to run it on my PC first to check it and or modify it.  Then later I will install(compile) whatever to put it on the nxt brick.  Is there any type of simulation program or visual simulation of what I am about to put on the nxt brick before I put it on? 
    2.  (a)What is the difference between Lego NXT-G 2.0 versus (b)(Labview Student edition $80.00 + NI LabVIEW Toolkit for LEGO MINDSTORMS NXT )? I am guessing no datalogging with just option b?
      (a= http://www.legoeducation.com/store/detail.aspx?CategoryID=178&by=9&ID=1670&c=1&t=0&l=0&bhcp=1 ) (b= http://zone.ni.com/devzone/cda/tut/p/id/4435 )
    Thank you?.

    I do know of this one software where you can simulate the NXT, but it might only be for NXT-G programs.
    SimplySim at The NXT Step
    Other than that I don't think there's any way.
    As for the difference between the two, there's a whole ton. Those are two different programs with very different syntaxes. Lego NXT-G is the basic software that comes with the NXT kit. It's a very scaled down version of LabVIEW and is pretty nice. LabVIEW is much more advanced and you can do much more with it, but you are restricted to using the LabVIEW NXT Toolkit and the NXT's cababilities. (no float, only so much RAM, etc.). But you can still do a ton more with it. Yes, you can data log with LabVIEW in, like, many ways.
    Hope that helps!

  • Help on Server Socket Programming??????

    hello Friends,
    I need your help on following:
    I am the only person working on this project and the company wants me to prepare a infrastructure of this project and I should also give a demo of this project to my seniors. I will breif you up with my project:
    1. There is this gif image of distillation column. i will be publishing it using JApplet or Applet.
    2. This Image must be seen on internet.
    3. On the circle of these Image the user will click(In all there are five circles, called as controllers)and a dialog box should open thru which user will input the float values(I am using the JOptionPane class to open this dialog box).
    4. The inputed values will the be given to the C program which is the simulator for distillation column.
    5. The C program will generate the output through iterations(Code entirely in C), the output of each program will then be poped up to over the image beside the respective controlled or under the respective controller but definetely over the same gif file.
    6. The number of iteration will depend on how fast the C program converges the inputer parameters. And each output must be show over the gif image and when the final iteration value will appear it should remain on the image until some new value is inputted by the user again by clicking on any of the circle.
    The proposed theory to do this project accoding to me is as follows:
    1. Since each value must be thrown to the user. I beleive this is a real time project. So I decided to use Client Server Networking technology provided by java.
    2. Then I figured out that in this project there should be 2 clients One is the GUI which is the Image screen to receive the input from the user and to show the output to the user. Second client is a java program sitting behind the server which will receive this input data from user and it will have an NATIVE method through which all this input will be given to the C simulator program.
    3. The middle bridge between these two clients will be a server. Which will just pass the data to and fro from both the clients.
    3. The C program will perform iterations using these input values from second client. This C program will then give each iterations output to the Java program using JNI technology. This second client then sends this output value to the GUI clients through server.
    Well another very important thing, I am inexperience in the field of software so I had to do a lot of R&D and this is what I found out. Frankly I am really not sure whether this is the right path to approach to this project or there is some other correct and realistic way than this? Well friends i would certainly request you if you can suggest some other simple or rather correct path or else if this is the right path then would you please suggest me the possible hiches or perticular points where I should concentrate more.
    Well i am eagerly waiting for your reply.

    Since you are publishing your results on the net , it will be a better idea to use JSP?Servlet/Beans architecture instead of swing
    I will propose a architecture as follows:
    Client : Standard Browsers, IE and NS
    Middle Tier: Java Webserver/Application Server
    This will depend on your budget. If u have a fat allowance go for weblogic/websphere . If u are operationg on shoe string budget try for apache , etc
    In the server tier code your application in the follwing architecture
    JSP for presentation: Distillation towers picture, input boxes .. etc
    Servlets for business logic invocation and routing requests: Your JSP submits input values to servlets, which does the processing using Java Bean Components. Since you have a lot of Logic written in C I would suggest to encapsulate these in JavaBean components using JNI technology and reuse the code.
    After processing the servlet again forwards the response to another JSP for output
    Advantages:
    1.Your clients can be thin as most of the processing is done at the server
    2. Thread Management is taken care of by your webserver, which otherwise would be a headache
    3. Writing this through low level socket programming will be much more difficult as you will write your own protocol for communication this will be error prone and not scalable
    If you still decide to go for traditional client server programming using swing, use RMI for communication as I insist that socket programming is very very cumbersome...using your own protocols
    hope this helps
    Shubhrajit

  • Algorithm help needed for electrically charged metallic sphere simulation

    I am making a simulation program using Java which takes into account the gravity, air resistance as well as electrical forces of the two charged metal spheres.
    The user can input/select:
    1) The initial velocity for each metallic sphere
    2) The variables in g = MG/(r+h)^2 Newton's law of gravitation (so gravity is SLIGHTLY different per metallic sphere depending on the height from the surface of the Earth - assuming the user chooses Earth)
    3) Metallic spheres' charges
    4) Dielectric constant
    5) Separation distance
    6) Drag coefficient
    7) Radius of metallic spheres
    8) Horizontal position
    9) Mass of metallic spheres
    10) Vacuum
    11) Air
    12) Other medium
    My question is: How do I make it so that these change over time where the time is determined by a javax.swing.Timer object? In other words, I want the Timer object to change at least one thing which will then change something else and cause a chain reaction such that when the metallic spheres are drawn, there is motion hence it becomes an animation.
    I just need the initial push to get started because I haven't yet "seen the light". So I would appreciate it very much if someone could help me see how to change the very first datum that will cause a domino-effect and then the animation.
    Thanks in advance!

    Ok so this is what I'm planning to do but just wanted to know if it's the best way to go about it:
    a = v/s => g = v/s (where g is not a constant but varies very slightly)
    and then v = gs and update the velocity every 100 milliseconds. (0.1 seconds).
    before re-updating the velocity again I am planning to update the position (I'm not thinking about other stuff yet) based on the velocity via:
    v = p/s => vs = p
    where for all cases s is seconds s = s+100milliseconds if whoever you are reading this right now didn't know for whatever reason.

  • Windows update turned off by some program, why?

    Hi There 
    I have recently purchase the HP OMEN (last week) and so far I love it!!
    But I have this questin, I just installed this simulation program called LSDYNA. When I launch it for some reason it seems as my power plan changes but without changing the plan i am on if that makes sense. Before opening the program i am on Hp recommended and after it is opened i am still technically on Hp recommended but the brightness of my screen increases to max level (100%) and more annoyingly the windows update center is turned off so no automatic update whie I am using the program. 
    Please could someone explain me what is going on? 
    Kind regards

    Hi  JJLuvzU
    Thanks for your help 
    I think I found where the problem emanated from. I had the total bitdefender2015 installed on the laptop and this software comes along with a user profile that allows itself to control a multitude of your computer behavior such power management. When LSDYNA is launched the program switches to the gaming user profile and all its settings.
    Thanks again for your help.

Maybe you are looking for