Servos and HC-SR04 in a code (arduino)

Hi guys,.

How can we use servos and HC-sr04 in the same code?

I'm in a situation of catch 22 where I can't use both of them as LINX supports HC-SR04 but no servos, LIFA media servos but not the HC-SR04.

I am stuggling to make a Subvi pulseIn for this.

Is there any solution for this?

It's the easiest way to do it! In fact, the hardest part is written the Arduino for the custom code. From the link I sent you, there's a Subvi, which already exists to invoke the custom command you defined.

The toolkits Arduino, both work in the same way - you run a firmware pre-compiled on the Arduino which is the interface between the hardware and it speaks to LabVIEW using a protocol series. The Toolbox said, you don't need to write LabVIEW code for the serial Protocol, nor do you need to write the Arduino Sketch yourself. The fact that you can change the sketch to add custom commands is a very powerful feature and saves you more having to write your own sketch (or LabVIEW code) from scratch!

Tags: NI Software

Similar Questions

Maybe you are looking for