Read Multiple AIN | LabJack
 

Read Multiple AIN

12 posts / 0 new
Last post
MADY
MADY's picture
Read Multiple AIN

hi , 

I am trying to read a multiple AIN , and the example is fantastic and its work very well, but the problem is i need more than 4 input and in the sample there is only 4 in put in array  channels, so the question is how can i add more input to this array ? in addition a have a CB37 Terminal Board to get more AIN input. i use labjack t7 pro

many thanks

File Attachment: 
LabJack Support
LabJack Support's picture
Quick answer:  In your

Quick answer:  In your screenshot the array is showing 6 elements.  The first 4 elements are "AIN0", "AIN1", "AIN2", and "AIN3", and then the last 2 visible elements are empty.  You can simply type any register names you want into those elements.  You can also drag at the corner to expand the control so it shows more elements.

Complete answer:  This is really just a LabVIEW question, nothing specific to LabJack.  I suggest going through some tutorials to learn more about arrays in LabVIEW.  The following looks good:

http://www.ni.com/white-paper/7571/en/

MADY
MADY's picture
many thanks,

many thanks,

i want to add a servo to this project, i just want to control it by close/open. and im lost can any one help me

LabJack Support
LabJack Support's picture
Do you have a servo picked

Do you have a servo picked out?  What sort of signal/power does it need to close or open?

MADY
MADY's picture
for example 

for example 

i have a water level sensor and its range from 0 to 4, what i need that when i reach 4 send a signal to close the servo

many thanks 

LabJack Support
LabJack Support's picture
When you say "send a signal

When you say "send a signal to close the servo", we need to know what sort of "signal" you are talking about.  Do you have a servo picked out?  What sort of signal/power does it need to close or open?

MADY
MADY's picture
HI , Yes ,servo picked out . 

HI ,

Yes ,servo picked out . 

LabJack Support
LabJack Support's picture
What sort of signal/power

What sort of signal/power does it need to close or open?  Perhaps post a link to electrical specifications.

MADY
MADY's picture
JUST 0/1

JUST 0/1

MADY
MADY's picture
Hi ,

Hi ,

i have another problem , i try to add AIN 4 to the channel array , and its work perfect but when i close the program and open it again it disappear

many thanks  

LabJack Support
LabJack Support's picture
I am afraid 0/1 has meaning

I am afraid 0/1 has meaning in the virtual computer world, but in the electrical world 0 & 1 can mean many different things.  Without electrical specs we really have no idea what sort of control signal your servo needs.

If you want to try with a digital output, connect the desired DIO & GND to your servo, then use the Dashboard in Kipling to set it to Output-High and Output-Low and see if the servo acts as desired.

LabJack Support
LabJack Support's picture
Look at our example "Stream


Look at our example "Stream Basic.vi".  It has some LabVIEW tips for
array operations on the front panel:


To remove an element, right-click
on it, select Data Operations =>
Remove Element.

To empty an array, right-click
near the edge, select Data
Operations => Empty Array.

Other useful operations:  From the
Operate menu are "Make Current
Values Default" and "Reinitialize
To Default".


Also, I did a google search and found the following from NI:

http://digital.ni.com/public.nsf/allkb/7963E70E234FD0D585256448004B40E6