LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Arduino Linx Labview Use Analog Input as Digital Output

Hi I using Arduino as a DAQ of Labview. 
Im using Arduino LINX Module. 

My problem is i need to use the Analog input as Digital Output in my Arduino Mega 2560 board.

In Arduino IDE i can do this by calling the analog pin A0 as pin 54. 
Here in LINX i got error when i use the pin 54 it says:

The specified Digital Output channel (54) is not available on the Arduino Mega 2560. The following channels are available: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53].

0 Kudos
Message 1 of 3
(284 Views)

Hi popul,

 


@popul wrote:
My problem is i need to use the Analog input as Digital Output in my Arduino Mega 2560 board.
In Arduino IDE i can do this by calling the analog pin A0 as pin 54. 
Here in LINX i got error when i use the pin 54 it says: …

Then you should use the ArduinoIDE with all its options to program your Arduino!

 

LINX isn't made the provide the most flexibility, but to provide a fixed set of supported functions.

When you want to go beyond that fixed set you need to use something different than LINX…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(141 Views)

You can still use an Arduino as a DAQ in LabVIEW, but you'll have to write the functions yourself and transmit them via serial. I'd recommend using JSON to format the values going between the two systems.

0 Kudos
Message 3 of 3
(125 Views)