Jump to content

As of July 17, 2015, the LabJack forums here at forums.labjack.com are shut down. New registrations, topics, and replies are disabled. All forums are in a read-only state for archive purposes.

Please visit our current forums at labjack.com/forums to view and make new posts. To post on the current forums, use your labjack.com login account. Your old LabJack forums login credentials have been retired. There are no longer separate logins for labjack.com and LabJack forums.


Running T7 with max msp revisited

  • Please log in to reply
4 replies to this topic

#1 Gusss

  • Members
  • 35 posts

Posted 27 May 2013 - 05:26 AM

so I am considering buying the T7 pro. As I said I will be reading TCP or UDP into max msp which can receive either protocol . What I want to know is how do I read in all the channels in seperately using this method. Ie how can I distinguish the data from channel 1,2,3,4,5 etc etc Can kipling communicate with other programs ? Can I use the & with labview and then send he data from labview ? MAtlab ? Direct ino max msp would be ideal - but I need to a) read the data, B) seperate the data from the different channel.... also how reliable is the wireless ? How often does it drop out ?

#2 LabJack Support

LabJack Support
  • Admin
  • 8677 posts

Posted 27 May 2013 - 12:47 PM

To read AIN0 you read a Float32 starting from address 0. That means you need to read 2 registers (4 bytes) starting from address 0.

To read AIN1 you read a Float32 starting from address 2.


So if you read 4 registers starting from address 0, you know the first 2 are AIN0 and the next 2 are AIN1.

To talk directly to the T7 over Ethernet or WiFi, you need to be able to:

- open a TCP socket
- send some particular bytes
- read back the response

The bytes you send and receive are in the Modbus TCP protocol. Perhaps a Modbus library is available to you, but if not it is not too hard to figure out the correct bytes to send and how to interpret the response. I don't see this in the T7 documentation yet, but for an explanation of the protocol see the "Modbus Protocol" section in the old UD-Modbus documentation.

Another consideration is to talk to the LJM library, rather than directly to the T7. Looking at the previous forum topic a see that we did a quick forum search on the Cycling '74 site on accessing a dll it looks like one way is through a Max external object.

The other option you describe is fine also. You can write a program in LabVIEW or other programming languages, and have that program provide the link between the T7 and max msp.

#3 LabJack Support

LabJack Support
  • Admin
  • 8677 posts

Posted 27 May 2013 - 01:01 PM

... also, WiFi on the T7-Pro is still called beta at this point:


We have been working more on other features of the T7, but will likely come back to WiFi this week. Right now it works great for some time, but then quits working and does not recover on its own.

#4 Gusss

  • Members
  • 35 posts

Posted 28 May 2013 - 04:42 AM

Hi, Can I have the link to the max msp forumn post ?

#5 LabJack Support

LabJack Support
  • Admin
  • 8677 posts

Posted 28 May 2013 - 10:48 AM

Here are a few posts I found about calling DLL functions from max msp:




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users