8/27/2023 0 Comments Multisim 14.0 adc not workingGPIO_InitStruct. This guide assumes that you have first installed NI MultiSim 13 and then installed NI ELVISmx 14.0 driver for the NI myDAQ. GPIO_InitStruct.Pin = ROUT1_Pin|ROUT2_Pin // ADC_CHANNEL_13 and ADC_CHANNEL_14 Pin initialization static void MX_GPIO_Init(void) If (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK) SConfig.SamplingTime = ADC_SAMPLETIME_640CYCLES_5 I tested the education edition which I obtained through my university. Graphics: GPU: Driver: Additional Comments. Ultiboard functionality past starting up Update functionality Hardware tested. The rest of the code is as follows: uint32_t pdlvl=0 Basic simulation in Multisim  What does not. ![]() Status_led() function is not shown but I use it a lot, no problem with it. I call _HAL_RCC_ADC_CLK_ENABLE() and _HAL_RCC_GPIOC_CLK_ENABLE() in the HAL_ADC_MspInit(). ![]() My idea is just to confirm proper ADC reading by switching status LEDs on and off if some level is available and it is not working at all so far (status led for is always ON).įor input signal source I use a GPIO pin, set to high, that passes through a 1k resistor and a LED so the voltage is about 0.7V. ![]() I am trying to run a code I found some time ago here, that allows to choose an ADC channel from a few channels and to read it individually when necessary. NI-DAQmx is an NI instrument driver that controls every aspect of your DAQ system, including signal conditioning, from configuration to programming in LabVIEW to low-level OS and device control.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |