LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read two analog signal

Hello,

I am using Labview 2017 with a LattePanda, and my problem is that I can't read two analog signal.

I have to get the temperature and the luminosity, both sensor works fine alone but when I want to make them work together I have weird results. There is my example :

Read2analog.PNG

I have already test several way, and on this way I read the temperature one time and then I read the voltage of the light sensorfrontpanel_2analog.PNG

But the temp sensor vary very much and I don't understand why !

I hope you could help me ! and sorry for my bad english !

0 Kudos
Message 1 of 3
(2,738 Views)

Hi Seypow,

 

does the temp sensor also vary when you read just this sensor?

 

On your VI:

- why are there 2 close functions, when the connection to LINX is only opened once? Delete one of them!

- why are there 2 case structures? Why don't you use just one case structure and put one of the sensors in the FALSE case?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(2,736 Views)

Thanks for your fast answer GerdW !

 

When I read the temp sensor alone it works well !

 

I tried a lot of way to make it works and here I read one sensor on every impair loop and the other one on pair loop. I did this to "separate" the reading of sensors. But I don't know if it was good

 

 

 

Responseforum.PNG Is that the way you wanted me to do ?

I already tried this option but it still don't work 😞

0 Kudos
Message 3 of 3
(2,721 Views)