Skip to main content



      Home
Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » Analog Inputs for NXP(Create an analog input in forte to run in NXP)
Analog Inputs for NXP [message #1862744] Tue, 26 December 2023 08:45 Go to next message
Eclipse UserFriend
Hi, its possible to create the program to use analog inputs in forte?
Re: Analog Inputs for NXP [message #1862751 is a reply to message #1862744] Wed, 27 December 2023 10:48 Go to previous messageGo to next message
Eclipse UserFriend
normally yes
Re: Analog Inputs for NXP [message #1862756 is a reply to message #1862751] Wed, 27 December 2023 13:49 Go to previous messageGo to next message
Eclipse UserFriend
Have some example to make access to analog inputs in NXP??
Re: Analog Inputs for NXP [message #1862757 is a reply to message #1862751] Wed, 27 December 2023 13:51 Go to previous messageGo to next message
Eclipse UserFriend
Do you have some examples to create this access analog pins of the NXP microcontrollers? I made the GPIO, but i dont find the analog;
Re: Analog Inputs for NXP [message #1862776 is a reply to message #1862757] Fri, 29 December 2023 03:30 Go to previous messageGo to next message
Eclipse UserFriend
I don't have any NXP microcontroller so sorry I can not help you here. But it should be similar to GPIOs. Maybe the code for Wago Kbus modular can serve as inspiration.
Re: Analog Inputs for NXP [message #1862780 is a reply to message #1862757] Fri, 29 December 2023 04:24 Go to previous messageGo to next message
Eclipse UserFriend
I don't have any NXP microcontroller so sorry I can not help you here. But it should be similar to GPIOs. Maybe the code for Wago Kbus modular can serve as inspiration.
Re: Analog Inputs for NXP [message #1862811 is a reply to message #1862780] Fri, 29 December 2023 13:37 Go to previous messageGo to next message
Eclipse UserFriend
Problem solved. Thanks for the help.
Re: Analog Inputs for NXP [message #1862813 is a reply to message #1862811] Fri, 29 December 2023 17:04 Go to previous messageGo to next message
Eclipse UserFriend
Do you have any feedback for us and other 4diac users who may face similar issues?
Re: Analog Inputs for NXP [message #1862828 is a reply to message #1862813] Sat, 30 December 2023 13:48 Go to previous messageGo to next message
Eclipse UserFriend
In the case Alois, i dont adjust the software in the right way, using GPIOS and analogs input. I have problem when i cast the value to BOOL to WORD because in the nxpDigitalHandle.cpp the library "../../../core/datatypes/forte_word.h" dont be called. When i put this on my software and made the cast, i can read the analog value off the pin. That's what i did. But now i will change the software to add the analog pins together with the GPIO pins.
Re: Analog Inputs for NXP [message #1862829 is a reply to message #1862813] Sat, 30 December 2023 14:01 Go to previous messageGo to next message
Eclipse UserFriend
In the case Alois, i dont adjust the software in the right way, using GPIOS and analogs input. I have problem when i cast the value to BOOL to WORD because in the nxpDigitalHandle.cpp the library "../../../core/datatypes/forte_word.h" dont be called. When i put this on my software and made the cast, i can read the analog value off the pin. That's what i did. But now i will change the software to add the analog pins together with the GPIO pins.
Re: Analog Inputs for NXP [message #1862832 is a reply to message #1862829] Sat, 30 December 2023 16:54 Go to previous message
Eclipse UserFriend
Thx for the feedback. For that you will need to rework the handles to be of WORD or DWORD type. I think you can find an example for that in the Wago modular kbus implementation.
Previous Topic:4DIAC IDE
Next Topic:Error when using dlopen function in ext_modules
Goto Forum:
  


Current Time: Sun Jun 22 23:29:15 EDT 2025

Powered by FUDForum. Page generated in 0.05819 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top