LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VI for current (mA) analog out (cdaq)

I'm having trouble making a VI work with a 9265 analog out (current) module

 

VI: (see attached)

1. DAQmx create channel AO-current-basic outside while loop

2. inside the while loop DAQmx write analog double 1 channel 1 sample

3.control wired to the data input that ranges from .004 to .020

 

I set up the task for analog output current for the module in measurement and automation explorer.

 

Thanks!

0 Kudos
Message 1 of 21
(1,761 Views)

Hi GBEN,

 


@GBEN wrote:

I'm having trouble making a VI work with a 9265 analog out (current) module


Which trouble do you have?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 21
(1,760 Views)

I don't think I am getting any current output from the module.

 

I also posted on the multifunction daq forum verifying that I have the wiring correct to the module, but I wanted to check on if I made a mistake on the VI as well.

 

Thanks for your help.

0 Kudos
Message 3 of 21
(1,728 Views)

Gerd does the way I used that write to analog output look OK to you?

Is feeding .004 to .020 as a double to the data input correct if I want the module to ouput 4-20mA? 

0 Kudos
Message 4 of 21
(1,715 Views)

Electrical connecting is equally important as how you implement the software.

 

Please share the exact circuit of how you connected stuff and share the VI in LV2016 version so that you can cover a larger audience.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 5 of 21
(1,705 Views)

wiring:

1. +24 V from power supply to Vsup on module

2. ground from power supply to COM on module

3. wire 1 from valve to AO1

4. wire 2 from valve to AO2

0 Kudos
Message 6 of 21
(1,699 Views)

What does the documentation of your valve tell about wire 1 and wire 2?

 

Regards, Jens

Kudos are welcome...
0 Kudos
Message 7 of 21
(1,696 Views)

input: 4-20 mA

impedance: 260 Ohms

 

black is positive, white is negative

0 Kudos
Message 8 of 21
(1,688 Views)

Since it is a current loop, the sensor/valve is always in series with the supply and measuring/generating device.

 

You should be connecting the valve positive to the AO of the instrument and negative to GND and not between 2 AOs

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 9 of 21
(1,683 Views)

Thanks for the reply.

 

On the 9265 module, the terminals are labeled AO0 and COM0 and I understand the datasheet as indicating that the device should be wired to these terminals, and the power supply should be wired to the Vsup and the Power Supply COM. You are saying to wire

 

Positive from valve (black) to AO0,

negative from valve (white) to negative of power supply,

Positive from power suppply to Vsup

negative from power supply to Power Supply Common

 

Correct?

GBEN_0-1633619045443.png

 

GBEN_1-1633619161249.png

 

 

0 Kudos
Message 10 of 21
(1,680 Views)