PS12DC | LabJack
 

PS12DC

8 posts / 0 new
Last post
Andrea
Andrea Eastham's picture
PS12DC

Hi Guys, 

I am using PS12DC as a relay to power solenoid valves on and off and it is working perfectly,

I need to use two terminals, for example, S10 and S11 to divert voltage signals between two instruments, the voltage signal is between 0 and 5v   so the voltage on VS6 might be as low as 0.001V.  the voltage signal source is U6 DAC1. if I switch relay S10 ON/ S11 OFF it should connect the DAC1 to device 1, S10 OFF/ S11 ON DAC1 is connected to device 2, Will that work? and will the voltage signal be affected by anything inside the relay that might lead to less acurracy 

File Attachment: 
LabJack Support
labjack support's picture
We would not recommend the

We would not recommend the PS12DC, it is specified to handle voltages between 5-28V. I don't think we have any accessories that would be a good fit for your needs, your best bet would probably be to use two separate DAC channels or use an external multiplexer controlled by a DIO.

We have an accessory called the LJTick-DAC that can provide additional analog output channels with -10V to 10V range. Note that the max current from the Tick-DAC is around 10mA:

https://labjack.com/accessories/ljtick-dac

Andrea
Andrea Eastham's picture
Hi 

Hi 

Thank you for your reply, I think the LJTick-DAC is a perfect solution, The Voltage generated is used as a signal so no load on it at all. 

Now I know how to set the DACs using the following commands :

DAQ is the U6

LJUD.AddRequest(DAQ.ljhandle, LJUD.IO.PUT_DAC, 1, 0, 0, 0);
LJUD.AddRequest(DAQ.ljhandle, LJUD.IO.PUT_DAC, 0, 0, 0, 0);
LJUD.GoOne(DAQ.ljhandle);

 

Considering the LJTick-DAC is connected to FI0 and FI1 as pictured

1-How do I set the voltage output?.

2-Do I need to use the screw terminals on the LJTick-DAC itself to access the signal?, I am using DB37 cable to access all the AIN and DAC channels and PS12DC is connected to the DB15 

 

Your help is much appreciated and thank you very much in advance.

LabJack Support
labjack support's picture
The Tick-DAC datasheet has a

The Tick-DAC datasheet has a section titled "UD Communication" that outlines the necessary configuration and write commands to set the voltage outputs:

https://labjack.com/support/datasheets/accessories/ljtick-dac

The Tick-DAC is meant to be connected directly to screw terminal blocks on the U6 or one of our breakout boards like the CB37. The Tick-DAC can be connected to any of the DIO:

https://labjack.com/support/datasheets/accessories/cb37-v21

Andrea
Andrea Eastham's picture
HI 

HI 

Thank you for your reply, I am a big fan of the LabJack, I made it as part of my project and I have just ordered 20 xU6 Pro, 20x PS12DC  and 10x Tick-DAC from my local LabJac distributor (www.audon.co.uk). I will be ordering lot more in the near future. 

I understand I am asking a lot but I have a deadline to meet and many things to do so your help will be very much appreciated. the documentation give example in python and I am not good in python, I use c# .net 

and I control the DACs using the following commands 

LJUD.AddRequest(DAQ.ljhandle, LJUD.IO.PUT_DAC, 1, 0, 0, 0);
LJUD.AddRequest(DAQ.ljhandle, LJUD.IO.PUT_DAC, 0, 0, 0, 0);
LJUD.GoOne(DAQ.ljhandle);

This will set zero on both DACs, now I have the Tick-DAC connected to FI0 and FI1  how do I control the voltage on A and B using the same principle above    your help will be much much appreciated. 

Regards 

Andrea

LabJack Support
labjack support's picture
The example in the Tick-DAC

The example in the Tick-DAC datasheet is pseudocode and not specific to any language. Any of ePut, AddRequest (and subsequent GoOne), or eAddGoGet could be used to process the commands:

https://labjack.com/support/software/api/ud/function-reference

We have a C# Tick-DAC example in our C# example archive:

https://labjack.com/support/software/examples/ud/dotnet

Our example uses ePut. Equivalent AddRequest commands are as follows:

LJUD.AddRequest(device.ljhandle, LJUD.IO.PUT_CONFIG, LJUD.CHANNEL.TDAC_SCL_PIN_NUM, pinNum, 0, 0);

LJUD.AddRequest(device.ljhandle, LJUD.IO.TDAC_COMMUNICATION, LJUD.CHANNEL.TDAC_UPDATE_DACA, valA, 0, 0);

LJUD.AddRequest(device.ljhandle, LJUD.IO.TDAC_COMMUNICATION, LJUD.CHANNEL.TDAC_UPDATE_DACB, valB, 0, 0);

 

Andrea
Andrea Eastham's picture
Hi 

Hi 

Thank you very much again for your amazing awesome products and support. 

  1. I have used the U6 pro,  PS12DC and Tick-DAC part of a product I designed and will be producing, You are not planning to discontinue any of the above products anytime soon, are you?
  2. I will be connecting the Tick-DAC to the pins in the DB37 cable (1-meter cable), DB37 plugged into the lab jack, the Tick-DAC is fitted next to the instrument and connected to the db37 pins accordingly. I have attached an image to illustrate what I mean. The question is, is there any issue with that setup, I can't access the screw terminals on the label jack everything must be accessed using the DB37  due to the lack of space where the lab jack is fitted. Tick-DAC only provide a signal with no power, the instrument has its own power source. 
  3. coding questions:  

 //set DAC0 to 1.1
LJUD.AddRequest(DAQ.ljhandle, LJUD.IO.PUT_DAC, 0, 1.1, 0, 0);

 //set DAC1 to 1.2
LJUD.AddRequest(DAQ.ljhandle, LJUD.IO.PUT_DAC, 1, 0, 1.2, 0);

//set DACA to 1.2, Tick-DAC is connected to FI0 and FI1

LJUD.AddRequest(DAQ.ljhandle, LJUD.IO.PUT_CONFIG, LJUD.CHANNEL.TDAC_SCL_PIN_NUM, 0, 0, 0);
LJUD.AddRequest(DAQ.ljhandle, LJUD.IO.TDAC_COMMUNICATION, LJUD.CHANNEL.TDAC_UPDATE_DACA, 1.2, 0, 0);
LJUD.GoOne(DAQ.ljhandle);

1: Can I send all the above requests in one GoOne

2: Do I have to repeat this line every time I try to change the DAC A and B Values? or I can just do it in the beginning once.
LJUD.AddRequest(DAQ.ljhandle, LJUD.IO.PUT_CONFIG, LJUD.CHANNEL.TDAC_SCL_PIN_NUM, 0, 0, 0);

 

Thank you very much in advance.

File Attachment: 
LabJack Support
labjack support's picture
We do not have plans to
  1. We do not have plans to discontinue any of those devices. The following page outlines our end of life plans:
    https://labjack.com/about/compliance#eol
  2. Connecting wires to the TDAC rather than using screw terminals should work fine as long as you can secure the device well. The TDAC uses I2C communications, so it is best to minimize the wire length, but I would not expect issues with a 1 meter cable.
  3. You could use a single GoOne command for all of your requests. You only need to set the SCL pin number at the start of your program.