ni.com checkout is currently experiencing issues.
Support teams are actively working on the resolution.
ni.com checkout is currently experiencing issues.
Support teams are actively working on the resolution.
10-02-2020 05:12 AM
Hello All
I know this question has been asked for millions of times, and after looking at the forum I still Can not solve my issue.
I have a very simple arduino program that receives "1" or "2" as input.
I have tested the code in aruino comm consle and other comm app and it is working fine.
Then I built a small Labview program that uses visa to send 1 or 2 to the arduino but it does not work. I get no response from the aruino code.
Can you please look at my VI and tell me what I am doing wrong?
Thanks!
P.S
I have tried all of the option of cr+clf...
Gil,
10-02-2020 07:01 AM
@GilMaor wrote:
Can you please look at my VI and tell me what I am doing wrong?
No VI posted. It would also help if you posted your Arduino code so we are certain what needs to be sent.
10-02-2020 07:06 AM
Hi All
Here with attached code.
10-02-2020 07:51 AM - edited 10-02-2020 07:53 AM
In your VI, you are sending 1\r or 2\r, as in a literal 1or 2, backslash, r.
I assume you meant to send a carriage return. You need to right click on your constants and set them to \code display. Also set the display style to visible so it is obvious that is \code display.
I can't look at your Arduino code. For some reason you attached a .rar file which requires other 3rd party software to view. Next time attach an actual .zip file which Windows can handle natively.
The opening and immediate closing of the VISA port at the beginning is unnecessary. And without much work, you can eliminate the need for the sequence structure.
10-12-2020 06:23 AM
Hi,
I am sorry for the late reply.
I did solve the problem using the "End of line" constant.
Though I do not understand the difference between "End of line" and using "concentrate string" on CR and line feed.
Thanks!
Gil,