‎06-24-2020 10:24 AM
Hello everyone. I've started to learn about LINX and how it can be used to connect LabVIEW with the Arduino board. I noticed that when using the LINX Firmware Wizard, it erases the Arduino programming and uploads its own firmware. Can I use LabVIEW with the Arduino IDE programming?
For example, LabVIEW is good at creating a UI for the user to interact with, but I'd like LabVIEW to run certain subroutines I've already programmed in the Arduino using the IDE. Is there a way to do that?
Solved! Go to Solution.
‎06-24-2020 10:38 AM
Hi Umerator,
@TheUmerator wrote:
Can I use LabVIEW with the Arduino IDE programming?
For example, LabVIEW is good at creating a UI for the user to interact with, but I'd like LabVIEW to run certain subroutines I've already programmed in the Arduino using the IDE. Is there a way to do that?
You can have "best of both worlds" when you use the (virtual) COM port provided by the Arduino. You can send/receive messages using serial communication in LabVIEW and the Arduino…
‎06-25-2020 04:46 AM - edited ‎06-25-2020 04:53 AM
Edit: wrong post
‎06-25-2020 04:52 AM
Hi Umerator,
@TheUmerator wrote:
- Whenever I serially print a string, the original string is overwritten, how do I print different information without the previous information being overwritten?
- I've made the Arduino communicate with LabVIEW, how do I make LabVIEW send a command back to the Arduino?
- The code I've made is for handling basic strings. How can I use this code to work with numerical values?
- I used LINX before moving on to NI-VISA. But LINX would overwrite the original Arduino firmware and I wouldn't be able to use my arduino code with LabVIEW. Is there a way for me to send serial commands to LabVIEW, using the LINX library?
1. You need to collect the received data. This is basic LabVIEW knowledge and done using a shift register and ConcatString (or BuildArray)…
2. Use VISAWrite to send data from PC to Arduino…
3. There are a lot of string functions, and several to convert between numeric values and strings. I recommend to use ScanFromString and FormatIntoString…
4. No. You either use LINX without the ArduinoIDE or you use the ArduinoIDE with VISA functions…
‎08-30-2020 05:13 AM
Hello Gerd,
I am trying to control the button of Arduino via VISA from Labview. The button is in the pin 13 and inside an IF statement. If butt== 1 ( do nothing) elseif butt = 1 (motor start working in specific RPM)
I have built a simple code in Labview, but unfortunately is not working. I have looked the code of this post, and my code is similar https://forums.ni.com/t5/LabVIEW/quot-visa-write-quot-to-arduino-only-works-when-EXECUTION-is-ON/td-...
I am not sure where I need to put the pin number, and also if it needs an if statement..
Regards,
Alexis