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.


Photo

Labjack, Matlab and U3, parameter description

matlab U3

  • Please log in to reply
1 reply to this topic

#1 Martine

Martine
  • Members
  • 6 posts

Posted 18 January 2014 - 05:23 AM

Dear all,

 

I am using U3 with matlab using MATLAB .NET interface and the UD .NET assembly. The example codes run fine on my computer. However to understand the examples and modify it to my own project, I am looking for the documentation of the input output parameters.

 

For example

ljudObj.AddRequest(ljhandle, LabJack.LabJackUD.IO.ADD_STREAM_CHANNEL_DIFF, 1, 0, 32, 0);

 

Where can I find to which 1, 0, 32 and 0 refer to in this particular function. This is just an example, my question is general `where can I find the specific inputs for functions´.

 

Thanks in advance



#2 LabJack Support

LabJack Support
  • Admin
  • 8677 posts

Posted 18 January 2014 - 08:43 PM

First look at Sections 4.1 and 4.2.5:

 

http://labjack.com/s...users-guide/4.1

http://labjack.com/s...ers-guide/4.2.5

 

From these you realize that:

 

Channel=1  //The channel you are operating on.

Value=0      //Value does not matter because you are using a read iotype.

x1=32

UserData=0  //A parameter for you.  See Section 4.1.

 

Based on the iotype you are using, channel and value are pretty obvious, but what is x1 for?  Whenever x1 has meaning, it will be noted in Section 4.3.  In this case you are doing something related to analog inputs, so you look at Section 4.3.3 and it says that x1 specifies the negative channel for this differential analog input iotype:

 

http://labjack.com/s...ers-guide/4.3.3

 

To understand more about negative channels for a differential analog input, look at the analog input hardware docs in Section 2.6:

 

http://labjack.com/s...users-guide/2.6

http://labjack.com/s...ers-guide/2.6.1





Also tagged with one or more of these keywords: matlab, U3

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users