How to make Labview Program for AI Differential connection In streaming mode? | LabJack
 

How to make Labview Program for AI Differential connection In streaming mode?

7 posts / 0 new
Last post
Sabari
SABARINATHAN's picture
How to make Labview Program for AI Differential connection In streaming mode?

Hi Labjack Team:

            I am doing program for  differential analog input connection in stream mode. Here I attached screen shot for Single ended configuration. If i am connecting two differential connection how to configure (what should give in LJM_eWrite Names and LJM_NamesToAddresses) in labview program.

Example: Sensor1,Sensor2

Sensor1 Output +Ve    - AIN0

Sensor1 Output -Ve     - AIN1

Sensor2 Output +Ve    - AIN2

Sensor2 Output -Ve     - AIN3

For Sensor1 how sould I configure( what should I enter in aNames and aValues of "LJM_eWrite Names" and What shuld I enter in aNames of LJM_NamesToAddresses).

Kindly Help me 

File Attachment: 
Sabari
SABARINATHAN's picture
Example:

Example:

This is correect for  "LJM_eWrite Names", in which {(AIN0,AIN1),(AIN4,AIN5),(AIN6,AIN7)} are differential connection and remaining are single ended.

File Attachment: 
LabJack Support
labjack support's picture
It sounds like you figured

It sounds like you figured out that you need to write to AIN#_NEGATIVE_CH and you can continue reading AIN#. More details here:

https://labjack.com/support/datasheets/t-series/ain#differential

Sabari
SABARINATHAN's picture
Any Example Program For

Any Example Program For Differential Mode in labjack. Kindly Share it

LabJack Support
labjack support's picture
I do not believe we have any

I do not believe we have any examples that explicitly do differential readings, but all you need to do is set the AIN#_NEGATIVE_CH to the appropriate channel and read the positive channel AIN as normal.

For example, in the dual AIN Loop.vi example under Examples\More\AIN, you could set up a differential reading by changing the "Config Values" entry for AIN0_NEGATIVE_CH from 199 to 1. That small change would leave you with a program that takes a differential reading between AIN0 and AIN1 and a single ended reading from AIN1 to GND. Following the negative channel change, removing AIN1 from "Channel Names" would leave you with a program that only takes a differential reading between AIN0 and AIN1.

Sabari
SABARINATHAN's picture
Thanks LabJack Team,

Thanks LabJack Team,

This Configuration Will Applicable in Streaming Mode.

And I have one More Query, is it possible to Both differential and single Ended Connection at a Time. 

Example: 

Senor 1(Differential Mode):

Sensor 1 Output positive -AIN0

Sensor 1 Output Negative -AIN1  

 

Sensor 2(Single Ended):

Sensor 2 Output positive -AIN2

Sensor 2 Output Negative -GND  

 

Is it Possible Bro

 

And If it Possible,What should I enter in  "Channel Names"  will be {AIN0,AIN1,AIN2} OR {AIN0,AIN2} 

LabJack Support
labjack support's picture
The negative channel
The negative channel configuration works the same with stream mode. The only configurations that change are settling time and resolution index. This is documented on our stream mode page:
 
Your channel names should only contain AIN0 and AIN2 since you are not interested in directly measuring AIN1, AIN1 is just the negative channel for your differential reading with AIN0. AIN1 does not have a valid negative channel other than 199(GND); any direct reading of AIN1 would be a single ended reading from AIN1 to GND.