I'm trying to use the I2C and UART interface at same time. It worked the first time i launched the programm but then the target "Raspberry " disconnect.
Now, i'm receiving an "unknown error" in the "Get Availabe Bytes" UART bloc.
Did someona ever try to do the same ?
bellow the screenshot of the program, in which i'm trying in the first while loop to mesure the temperature and the humidiy with an I2C sensor, and the second Bloc is a state machine to send "AT Commands " to a Modem connected to the Raspberry, through UART.
Any help is greatly appreciated.
we can't do much with a picture, but if you provide your application code it might help.
Let me ask you something:
Have you tried using the "find resources" subVI from the visa pallet to check if Serial is available? if not, try it to check if UART is available.
if it is not available i recommend you to disable the serial console in your RPi configuration, because if it is enabled, then your console is holding this resource.
were you able to detect ASRL1::INSTR ?
are you connecting through GPIO 8 and 10?
Can you try using a USB TTL adapter?
i tried using differente hardware (a pzem module) on UART and i can send and receive requests while using I2C.
double check if serial is enabled and console serial disabled in your raspberry pi config.
i noticed you are using channel 0, try using channel 1.
in my test i used visa API and VIs, not the ones from makerhub/LINX. Can you try using VISA directly?
Yes the ASRL1::INSTR is working and i'm connecting through GPIO 8 and 10.
The serial is enabled and console serial disabled in the raspberry pi config.
I've tried using the channel 1 but it didn't work as well 😕
I can't use VISA Directly, cause i need the LINX Toolkit to deploy and run LabVIEW on Raspberry Pi.
In fact you dont have to use only linx/makerhub. You can use any compatible API. The makerhub toolkit probably encapsulates the visa api to make it simpler to use.