Labjack & Stepper Pulses


Recommended Posts

I have a project with a Labjack T7 and a T4 operating a machine and collecting data. My client wants to add a stepper motor to the machine. I setup the labjacks on ethernet and the channels on DaqFactory are device type LabjackM, D# is 192.168.1.207 and 204. How can i add a pulse output to one of my channels.

Channels.png

Link to comment
Share on other sites

We support a PWM output feature that runs continuously until stopped and a pulse output feature for a discrete number of pulses. For either feature you will need to do some configuration via a sequence in DAQFactory, or a startup configuration on the device. Also note that these features are only supported on certain FIO terminals for each device as described at the start of the feature documentation. Please see the following documentation:

https://labjack.com/support/datasheets/t-series/digital-io/extended-features/pwm-out

https://labjack.com/support/datasheets/t-series/digital-io/extended-features/pulse-out

If you wanted to set up the feature as a startup configuration, you could use the following guide to set the feature up in our Kipling software, then use the power up defaults tab in Kipling to save it as a startup configuration:

https://labjack.com/support/software/applications/t-series/kipling/register-matrix/configuring-pwm-output

To do the configuration in a sequence, you can use the StartUp sequence in our LJM_Basic.ctl example as a starting point. You could remove the "AIN#_RANGE" LJM_eWriteName calls and add in your feature config calls. For example, to set the feature to pulse output on FIO0 (only valid on a T7) you would do make the following call:
LJM_eWriteName(identifier, "DIO0_EF_INDEX", 2)

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share