05-13-2020 12:06 PM
Buen dia, he realizado pruebas de lectura de datos con los modulos de la paqueteria linx la mayoria a sido un exito, el problema se ha dado al intentar realizar la lectura del sensor ultrasonico HC-SR04 con el nodo read que se encuentra en las funciones de Linx, Sensors, Distance, Ultrasonic.
Una vez que lo ejecuto no envia ningun resultado a los indicadores numericos que le he colocado en sus salidas de datos, la version de labview que uso es 18 y la version de la paqueteria Linx es 3.0.1.192, he probado el funcionamiento de mi sensor en la plataforma arduino directamente y si funciona. Alguien puede apoyarme?, se lo hagradeceria. Adjunto VI usado.
05-16-2020 04:44 PM
Have you deployed the Linx Firmware to the Arduino? What was the result of that? This would be under Tools -> MakerHub -> Linx -> Linx Firmware Wizard...
Are you able to just turn on / off the LED attached to pin D13 using Linx?
06-04-2021 01:29 PM
Tengo el mismo problema, ¿lo lograste resolver?
06-05-2021 08:29 PM
Hey @Dave_H69, I'll give you a step by step instructions:
with arduino plugged on a USB port follow the instructions to upload the firmware:
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019TmpSAE&l=pt-BR
I'm using a LabVIEW 2020SP1 professional, with LINX installed.
Create a new VI, insert OPEN.vi, READ.vi from ULTRASSONIC pallete and CLOSE.vi, all from Makerhub/LINX pallete. do not mix LIFA and LINX VIs.
Wire your code as image bellow:
Open the Read.vi inside the while loop, and add a constant to Stimulus Pulse input, and set the enum to Active High.
Save and close this subVI. (Note: this will change your library file, keep that in mind)
Set the inputs: In this example, DO Channel = 2 (arduino pin) connected to Trig pin of HC-SR04 and DI Channel = 4, connected to Echo pin of HC-SR04.
You may want to put a filter or ptbypt mean before the Centimeters (or inches) Indicator, to dump a bit the reading rate. Also, set your loop wait function according to your application.
Here is the result of using a 30 CM ruler.
Also i am posting the VI, remember to edit the library file!
01-12-2022 03:49 AM
Hello Jorge,
Thank you for your comments. I am not able to obtain measurements unfortunately. I am running your code with labview 2021 community edition. Everything seems to work fine (no errors), but I am not obtaining measurements (even creating the constant to stimimulus singnal active high).
I am using linx libraries too. I attached a capture of the result of a probe inside de Digital Read Pulse VI. You will see that many of the elements of the array are cero.
I have tried with arduino IDE and the hardware works properly.
I think that the Linx libraries have another bug or the problem is with labview 2021 communitity edition.
Any idea?
Thank you
05-11-2022 02:29 PM
im using labview 2018 i face the same problem..
can you convert the version of the file you upload to labview 2018 and repost again!!
05-11-2022 02:52 PM
There you go
05-11-2022 04:08 PM
I try with the file you send it to me but it shows 0 as result..
Shoud i install the link you in the first of the topic ?
05-11-2022 04:13 PM
Have you edited the Linx subVI as shown in the pictures?
05-12-2022 05:13 PM
Thank you for the informations it's all done..
And sorry because it's too late to repsond.. because im new member and i have only two posts perday..
Also i need you in other things...
Can anyone show me how to make the programation of the color sensor tcs3200.. and if it's possible or no