Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. interesting problem

interesting problem

Scheduled Pinned Locked Moved C / C++ / MFC
c++comdata-structureshelpquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sunnygirl
    wrote on last edited by
    #1

    hello @all, i need an instruction which waits until MATLAB will finish it's job. earlier forum question: hello @all, i try to explain what i want / must do : i have something like this: i=0; while(i<5) { // reading out a com // get datasets and process them // send the processed datasets to MATLAB to get a diagram // the diagram is seen in my mfc-program (but came from matlab) i++; } the only problem is the while loop. without these, the program part runs perfectly. however i need a while loop or something like that. i think, the problem lie in the fact that the program sends the data to matlab and then directly in the code continues to go. possibly different processes run off parallel. i think i must have something that waits so long, till matlab is ready with the diagram (i tried Sleep(1000) but it do not work). maybe somebody know, if matlab has got a 'instruction' or if i can make something like a 'queue'. thank you very much happy

    J 1 Reply Last reply
    0
    • S Sunnygirl

      hello @all, i need an instruction which waits until MATLAB will finish it's job. earlier forum question: hello @all, i try to explain what i want / must do : i have something like this: i=0; while(i<5) { // reading out a com // get datasets and process them // send the processed datasets to MATLAB to get a diagram // the diagram is seen in my mfc-program (but came from matlab) i++; } the only problem is the while loop. without these, the program part runs perfectly. however i need a while loop or something like that. i think, the problem lie in the fact that the program sends the data to matlab and then directly in the code continues to go. possibly different processes run off parallel. i think i must have something that waits so long, till matlab is ready with the diagram (i tried Sleep(1000) but it do not work). maybe somebody know, if matlab has got a 'instruction' or if i can make something like a 'queue'. thank you very much happy

      J Offline
      J Offline
      jmkhael
      wrote on last edited by
      #2

      Donno how ure doing it but take a look at the code on http://www.codeproject.com/com/matlabengine.asp and http://www.mathworks.com/access/helpdesk/help/pdf\_doc/matlab/apiext.pdf Papa while (TRUE) Papa.WillLove ( Bebe ) ;

      S 2 Replies Last reply
      0
      • J jmkhael

        Donno how ure doing it but take a look at the code on http://www.codeproject.com/com/matlabengine.asp and http://www.mathworks.com/access/helpdesk/help/pdf\_doc/matlab/apiext.pdf Papa while (TRUE) Papa.WillLove ( Bebe ) ;

        S Offline
        S Offline
        Sunnygirl
        wrote on last edited by
        #3

        thanks for reply. :rose::rose::rose: cool idea with the first url. but the second link is 'broken', or?? sunny

        1 Reply Last reply
        0
        • J jmkhael

          Donno how ure doing it but take a look at the code on http://www.codeproject.com/com/matlabengine.asp and http://www.mathworks.com/access/helpdesk/help/pdf\_doc/matlab/apiext.pdf Papa while (TRUE) Papa.WillLove ( Bebe ) ;

          S Offline
          S Offline
          Sunnygirl
          wrote on last edited by
          #4

          my error. Everything is correct. super, thank you. :rose::rose::rose: sunny

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups