06-11-2012 07:36 PM
i am taking a mechatronics course and they ask me as homework to control a sensor but i don not understando what can i control from this sensor, i expect you could help me
06-12-2012 08:17 AM
First, thank you for being upfront and indicating this is a homework problem. It's quite refreshing when people do that instead of trying to pretend it's not and thinking we can't figure it out.
Obviously, we're not going to do your homework for you, but we can offer some help. Assuming, of course, that you show that you're actually going to do some homework upfront. So, what have you looked into? Have you looked at the sensor in question? How does it work? What does it need to work? Clearly, software alone can't make it work - you need some hardware. What kind? Do you intend to make this hardware, or do you have it?
06-12-2012 08:25 AM
i would start with working out the system, datasheets on the cny70, work out exactly what is required from the question. spec out the hardware, then start writing out rough ideas. Keep looking back at the question and it will all slowly make sense. I wouldnt dive straight into coding until i understand exactly what i need to be trying to achieve.
once you understand exactly what you need to achieve and with what hardware you can look into planning the code and taking it from there. If you get stuck with coding feel free to ask for help and post the code you have as most people on here will heppily pass contructive critisism as well as help you through the parts your struggling with
06-14-2012 11:07 AM
Hello Miguel,
thank you for using NI forums.
I 'googleed' the CNY70 and I found that it is a simple infrared sensor that returns a 0 or 1 if the sensor has an object in fort of it.
I think what you can do is use LabVIEW to visualize if there is an object in front of the sensor or not.
But that depends on what your professor is asking for.
I think it is a good idea to ask exactly what you need to achieve.