Home > Hardware > DATAQ Starter Kit Support > Forum > DI-149 Digital Output to activate a solenoid

DI-149 Digital Output to activate a solenoid

Jan 15, 2015
Branson Darnell wrote
I'm trying to activate a Skinner B2DA1175 using the digital output from the DI-149. I have bought a SSR model# G3MC-101PL that is activated with 5V. I have already wired it up, and it worked for a couple of days, but now it's not working. Is there someway I can check the digital output of the DI-149 to see if it's working correctly? I attached my circuit diagram, hoping someone can understand it and help me out. Thanks.
Reply
9 Answers
Jan 15, 2015
Shawn agent wrote
Hi Branson,

I assume that you've written a program to toggle the digital output?

You can place a voltmeter across the digital output. You should see the voltage toggle on and off as the state changes.

Regards,
Shawn MacDonald
Application Engineer
DATAQ Instruments Inc.
Jan 15, 2015
Branson Darnell wrote
I'm programming it with Labview, using the ActiveX object dataqsdk control. It doesn't seem to respond when I write to the DigitialOutput a binary 11111111, it just returns a 0. Is there another program I can download to test the Digital outputs? Just to turn on and off?
Thanks
Branson
Jan 15, 2015
Branson Darnell wrote
I don't if this helps diagnosis this issue I'm having, but...when I plug in the USB cable into my pc, then DI-149 powers on (PowerLED ON, ActiveLED OFF, RemoteLED OFF) and the DO-D3 all show 5VDC. Shouldn't the digital outputs initial power on state be OFF or 0VDC?
Jan 15, 2015
Shawn agent wrote
Branson,

You'll need to set the direction of all the digital outputs before you can toggle then individually.

You'll find documentation (with VB6 examples) at:
http://www.dataq.com/resources/techinfo/articles/AnaDigAcq.html

Regards,
-----------------------
Dataq Instruments Support
-----------------------
Jan 16, 2015
Branson Darnell wrote
Thanks for the help Shawn. Unfortunately, I don't have VB6.

I did read the DataqSDK for Setting Bidirectional Digital Bits (even though the DI-149 's Digital Outputs are not bidirectional) and inserted the code into my Labview programming. Now, the DI-149 Digital Output is returning the same 16bit integer that I am writing to it.

Also, my digital multimeter shows 5VDC when the Digital Output is set to 0 and 0VDC when the Digital Output is set to 1.
Jan 16, 2015
Shawn agent wrote
Branson,

I'll run this by one of our software engineers.

Unfortunately our programming support is limited to the documentation and example programs on the DATAQ Developer webpage at:
http://www.dataq.com/data-acquisition/software/developer-network/lv.html

Another alternative to interfacing with the DI-149 programmatically is our .NET class. For more information, go to:
http://www.dataq.com/blog/data-acquisition/programming/net-class-for-data-acquisition-starter-kits-beta/

Regards,
Shawn MacDonald
Application Engineer
DATAQ Instruments
Jan 16, 2015
Shawn agent wrote
The second part should read:

Another alternative for interfacing with the DI-149 programmatically is our .NET class. For more information, go to:
http://www.dataq.com/blog/data-acquisition/programming/net-class-for-data-acquisition-starter-kits-beta/
Jan 16, 2015
Branson Darnell wrote
Hey Shawn,
My last post was trying to say that it IS working. I just don't have VB6 to try the example programming. I have also modified my original circuit so that when I plug in the DI-149 into the USB port, it does not turn on my solenoids. The default state of the Digital Outputs is a binary 0 and 5VDC.
Jan 16, 2015
Shawn agent wrote
Branson.

Thanks for heads-up. Glad to hear you're up and running!

Regards,
DATAQ Instruments Support