04-27-2021 03:12 AM
Hello,
I'm a student and I have a project in labVIEW but i am not very good in working with IV and arduino.
I want to connect the 4x4 keypad to arduino and use it as input in my project to write the date.
Do you have any tips? Thank you!
04-27-2021 05:52 AM
Hi obiken,
@obiken wrote:
I'm a student and I have a project in labVIEW but i am not very good in working with IV and arduino.
I want to connect the 4x4 keypad to arduino and use it as input in my project to write the date.
Do you have any tips?
Suggestion: Learn LabVIEW and Arduino IDE, especially when you are "not very good" at it!
More suggestions:
04-30-2021 04:51 AM
Thank you for your time, GerdW.
I have a difficulty with your last step "Handle that input data as needed by your program".
I do not know how to connect these 2 programs. 😞
04-30-2021 04:59 AM
Hi obiken,
@obiken wrote:
I have a difficulty with your last step "Handle that input data as needed by your program".
I do not know how to connect these 2 programs.
So the Arduino sends you that "1" character.
What should happen with this character? what do you want to achieve with that character?
(I guess you want to collect several of those chars in a string so you might think about using shift registers with a ConcatString function…)
04-30-2021 08:53 AM - edited 04-30-2021 08:58 AM
I made it work how I wanted but after approximately 15 sec of running, I get this error. When i press stop, it highlights the "Scan from string". I tried switching arduino port but no luck.
Also i do not know what is with that square after the input.
Possible reason(s):
LabVIEW: (Hex 0x1) An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @.
=========================
Command requires GPIB Controller to be Controller-In-Charge.
04-30-2021 10:48 AM
Hi obiken,
@obiken wrote:
Also i do not know what is with that square after the input.
Switch the string indicator to \-code (or hex) display mode to see what it is…
@obiken wrote:
When i press stop, it highlights the "Scan from string".
Possible reason(s):
LabVIEW: (Hex 0x1) An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @.
When ScanFromString gives an error an input to that function does not contain the expected data…
Have you tried to debug that case?
Also there is a different error for your COM port as shown in that other image: you don't need to wire all those default values to SerialPortInit! (Check which property it doesn't like…)