LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use Linx Digital Read N Channel

Hi,  It is many years since I used Labview and I am coming back to it because I need to modify a programme I wrote almost a decade ago.  My problem is that I haven't used LabView since.  I used the programme to take numerous pressure, temperature and flow rate signals from an Arduino which I then displayed on a screen as an indicator of the health of some laboratories.  I would like to add more digital signals and I realise how much I have forgotten.  I would like to add more channels to the Digital Read N Channel vi and I see that there are two places for inputs.  Obviously one is for the number of channels to be read but I am wondering what the second is for.  Mine are currently set at 5 and 34.  I am reading outputs but I am not sure what the 34 was for.  In the past there was detailed information on each of the vis and I was wondering if this still exists.  The explanation on the website merely says that the Digital input connection is where you specify inputs.  I look forward to relearning the programme and applying it to some future projects.  Thanks.

0 Kudos
Message 1 of 4
(175 Views)

Hi doljam,

 

this is what I see about "Digital Read N Chans".

What exactly are you talking about?

Best regards,
GerdW


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

Hi GerdW,

 

Many thanks for your reply.  I think I figured it out. The two boxes that come up when one clicks on the DI Input terminal are for the array that the vi uses.  I think that the first number is the position in the array and the second is the DI channel number from the Arduino.

 

I could be wrong but I'll have a play to see if my theory is correct.

 

Thanks again for replying and I'm sure I'll have many more questions as I get back up to speed.

0 Kudos
Message 3 of 4
(128 Views)

Hi doljam,

 


@doljam wrote:

I could be wrong but I'll have a play to see if my theory is correct.


Unfortunately you still don't even provide an image of what you are talking about…

 


@doljam wrote:

I think I figured it out. The two boxes that come up when one clicks on the DI Input terminal are for the array that the vi uses.  I think that the first number is the position in the array and the second is the DI channel number from the Arduino.


In case you forgot how an array constant looks like in LabVIEW: note the learning resources offered in the header of the LabVIEW board!

(An array constant is an array constant and not "two boxes"…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(112 Views)