Digital output issue


Guest David Allen

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

Link to comment
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.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.