T7 multiple AIN channels with different ranges. | LabJack
 
Friday May 29th 2020
Support: LabJack engineers available through email and chat.
Shipping: We are processing and shipping all orders.
Stock: 51 of 56 products are in stock. More details.
Supply Chain: Minor impacts. More details.

T7 multiple AIN channels with different ranges.

4 posts / 0 new
Last post
Rednecknerd
Rednecknerd's picture
T7 multiple AIN channels with different ranges.

In the examples I get two multi channel examples.  One uses AIN_ALL_RANGE the other uses AIN#(0:254)_EF_READ_A

Both of these read or set all the AIN channels.

Does it carrie over to be able to do something like this?   

AIN#(8:11)_EF_INDEX

AIN#(8:11)_EF_CONFIG_A

I ask because it hasn't worked for me, but as I am new to the T7 I just may be doing it wrong.

LabJack Support
LabJack Support's picture
I'm not really sure what you

I'm not really sure what you are asking, but I will point out that the following is the exact name of a single register.  You write to this 1 register and it sets the range of all analog inputs:

AIN_ALL_RANGE

The following is not the actual name of a register you write to:

AIN#(0:254)_EF_READ_A

Rather that is just a shorthand notation for 255 different register names:

AIN0_EF_READ_A
AIN1_EF_READ_A
AIN2_EF_READ_A
.
.
.

 

Rednecknerd
Rednecknerd's picture
My question is can to use AIN

My question is can to use AIN#(8:11)_EF_READ_A to reference just the AIN channels I need.

Is is an all or 1 type of situation.

LabJack Support
LabJack Support's picture
AIN#(8:11)_EF_READ_A is not a

AIN#(8:11)_EF_READ_A is not a valid name that can be passed to the LJM name functions, if that is what you are asking.

Perhaps post a code snippet of what you are trying to do and we can comment on it.