Sign in to follow this  
Guest David Allen

Digital output issue

Recommended Posts

Guest David Allen

I've setup a digital output channel on the Labjack 12.

If I use a toggle button or descriptive text object and click on it, the channel toggles on and off OK and the device connected operates in turn.

If I try to set the channel in a sequence (i.e. Dout1.Addvalue(1) ) it doesn't. When the sequence is running, the toggle button or object updates correctly, but the device doesn't turn on or off.

Any idea why?

da

Share this post


Link to post
Share on other sites

The AddValue function is not used for writing values to output channels, it is meant for writing values to a channels history. To simply use code to set your output channel use the following:

Dout1 = 1

If your output channel is a digital output this will set it to digital output high. If your outut is an analog output it will set it at 1 volt.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this