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.


Using FIO4 in matlab

  • Please log in to reply
1 reply to this topic

#1 Susi

  • Members
  • 31 posts

Posted 10 August 2012 - 08:56 AM

Helo I'm controling a servo with the a pwm signal I'm generating in simulink, then I send that signal, is actually a vector, using DAC0, but it haven't work so I wanted to read that signal using the FIO4 port, the code I'm ussing is this one [codebox] [Error FIO4] = ljud_eGet(ljHandle,LJ_ioGET_FIO,0,0,0); Error_Message(Error)[/codebox] the error of matlab saids Undefined function or variable 'LJ_ioGET_FIO', so I wanted to know if someone can tell me how is the fuction or maybe past me an example.... Please Thanks

#2 LabJack Support

LabJack Support
  • Admin
  • 8677 posts

Posted 10 August 2012 - 10:28 AM

I think you are looking for LJ_ioGET_DIGITAL_BIT.

Check out section 4.3.5. for digial IO related driver constants.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users