16 channels including Frequency et al? | LabJack
 

16 channels including Frequency et al?

4 posts / 0 new
Last post
marc426
marc426's picture
16 channels including Frequency et al?

Hi everyone,

I'm currently playing with my new T7-Pro, great toy for the price!
My only concern right now is : 

I'm trying to log the 16 analog channels at the highest frequency possible (it seems I'm bottoming around 80mS loop cycle, so a bit more than 10Hz) AND also log some frequencies at the same time.

Using Log or Stream, I take it I can only swap an analog channel for a Register read or such.
So that means I can only log 16 "informations" at a time, not 16 analog channels + DI/O + Frequencies etc...

Or am I wrong?

Also, if I'm gonna use 2 T7-Pro for that purpose, how can I "sync" them?

Last question : on the .dat files created, what is the big first number of each acquisition line? I know it's time but what does it refer to? I thought I'd see : year/month/date + time + µS or such.

Thanks for the help,

Marc

LabJack Support
labjack support's picture
I'm trying to log the 16

I'm trying to log the 16 analog channels at the highest frequency possible (it seems I'm bottoming around 80mS loop cycle, so a bit more than 10Hz) AND also log some frequencies at the same time.

To estimate timing see Section A-1.  The default ResolutionIndex=0 corresponds to 9 for a T7-Pro in command-response mode, and the default Range=+/-10V, so from Table A1.3 that equates to about 3.5 ms per sample.  16 channels then would be about 56 ms plus overhead.

Using Log or Stream, I take it I can only swap an analog channel for a Register read or such.
So that means I can only log 16 "informations" at a time, not 16 analog channels + DI/O + Frequencies etc...

Correct.  Those sample applications are limited to 16 registers from 1 device.  To read more registers or multiple devices, some options are:

1.  Develop your own app:

https://labjack.com/support/software/examples/ljm

2. DAQFactory:

https://labjack.com/support/software/examples/ljm/daqfactory

3.  3rd party SCADA program using direct Modbus TCP:

https://labjack.com/support/software/modbus-client-applications

Also, if I'm gonna use 2 T7-Pro for that purpose, how can I "sync" them?

In command-response mode it is pretty simple.  Software controls timing, so software just scans all channels from all devices at the same time and grabs a host timestamp at the same time.

In stream mode it is more complex.  You can do a master-slave stream where the master outputs a clock so all slaves scan at the exact same time as the master, or you can include some sort of sync signal in the stream data.  Either way you have to develop software to read the stream data from multiple devices.

Last question : on the .dat files created, what is the big first number of each acquisition line? I know it's time but what does it refer to? I thought I'd see : year/month/date + time + µS or such.

Seconds since 1904.  See "Write To File" here:

https://labjack.com/support/software/applications/ljlogm

Parker Stenberg
Parker Stenberg's picture
"In stream mode it is more

"In stream mode it is more complex.  You can do a master-slave stream where the master outputs a clock so all slaves scan at the exact same time as the master, or you can include some sort of sync signal in the stream data.  Either way you have to develop software to read the stream data from multiple devices."

But can you sync a command-response and stream signal on the same device?
I'm able to read both and log them, but can't get the two sets of data to match up.

Labview 2015 64bit

LabJack Support
labjack support's picture
We replied here: