08-25-2018 04:53 PM
Hello guys, I am pretty new in eletronics and automation and I would like to learn more about Labview. I would like to measure, write on screen and in a .txt file 2 channels with hall effect sensors. I want to measure RPM. I am using Arduino Uno, Lynx and USB serial cable. I attached the file that I started and I don't know how to add a block to inform the rpm and neither how to export in .txt file. Please help me if you can. Thanks!
08-26-2018 09:15 AM
Suppose I said to you "I generated some data with my LabVIEW Program, and want to send it to a C++ routine written with Visual Studio. Please help me -- I know nothing about C++, including the difference between an Integer, a Float, and a [whatever the C++ name is for a Boolean]." What would you advise? Probably "Spend some time, at least a few days, learning as much about C++ as you can, and write some simple C++ routines, worrying nothing about your "real" task, but learning how the language works".
Some comments on your code:
Bob Schor
08-26-2018 03:32 PM
Thanks Bob for replying. As my knowledge is very limited I will follow your suggestion and spend more time in basic labview training.
My program just is considering one channel because if works for one it will be easier copy for another one. I am using digital read because it worked to detect the magnet. I assumed that for calculate RPM will work too. Thanks again.
08-26-2018 04:17 PM
Think about what RPM (spell it out) means, and think what this meaning says about what you need to measure. What are you measuring with your digital signal? Is that enough? [Feel free to guess at the answer, knowing I wouldn't be going on like this if there wasn't a problem somewhere].
Bob Schor
08-26-2018 08:44 PM
I am measuring pulse (digital signal = 0 or 1) and one pulse every second give me a result of 1Hz. Is that right? I think now I am closer.
08-26-2018 10:30 PM
Now we are getting somewhere! How do you know you are getting one pulse per second? Where is the "per second" coming from? Not at all obvious in your code. Whose "clock" are you trusting?
Bob Schor