problems in programming

thechamp

thechamp

@thechamp-p64ZA1 Oct 16, 2024
hello people,
i have three problems if someone could help

1. what is the command to put pixel in DEV-CPP. because it does not have graphics.h and i dont know much about allegro library.

2. how can i measure the execution time of a program in dev-cpp. for example i asked user radius of circle, now counter starts and program calculates the area of circle. as soon the area is calculated counter stops. and along with area the time taken by program to calculate it is shown too.

3. i have a hardware ( say microcontroller) whose one port is connected to pc and other to a device (say robot or micromouse). the program to run the device is uploaded in my hardware. when i execute this, hardware sends signal to device. but i want to read those signals using MATLAB that are being sent to device. DAQ toolbox can help me, yet i dont know how. or any other way to accomplish it?

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • silverscorpion

    silverscorpion

    @silverscorpion-iJKtdQ Feb 22, 2010

    I can answer question 3 for you..

    But you gave the answer yourself in the question. You mentioned Data Acquisition Toolbox. That's what you're gonna use.

    If you're not experienced with the toolbox, no problem. There are enough built in tutorials in Matlab itself to get you started.

    I'd recommend you use parallel port, because it's easier. To connect to parallel port and to monitor it, matlab has many functions. You just have to create an object to connect to the parallel port and do your stuff.

    You start coding it. If you face any problems, post the code here and I'll look into it.. 😀
  • thechamp

    thechamp

    @thechamp-p64ZA1 Feb 24, 2010

    so nice of you if you could check my code in future.
    but someof my queries about DAQ,

    the port which is sending signal from hardware to device is different from the port which connects my hardware to PC. can it still read the signal from the port connecting hardware and device?

    to use command "daqregister('adapter')" i need to know the vendor type of my hardware. how do i find it. even if the hardware is my cellphone, what would be vandor type of it.
  • thechamp

    thechamp

    @thechamp-p64ZA1 Feb 27, 2010

    is there someone "crazy" enough to help me??
  • Manish Goyal

    Manish Goyal

    @manish-r2Hoep Feb 27, 2010

    I don't know about dev cpp and all
    but for 1st ques ?Why don't you download graphic.h file from internet ?
  • thechamp

    thechamp

    @thechamp-p64ZA1 Feb 27, 2010

    @goyal
    ya i can download graphics.h but main problem comes is compatibility. anyways i have some other library to work with dev-cpp now
    but i need help regarding my latest post DAQ Toolbox in matlab.