LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Send output current on multiple channels - NI9265

Hello,

 

It is very silly problem that I am having. I am trying to get 0-40mA from NI 9265. I have connected AO0 & AO1 in parallel. When I operate the module via NImax everything works as it should be. However, I try to do the same through my Labview program I can not get any output.

 

gregorian7_0-1604060412234.png

 

 

Stay Safe.

 

Thanks,

gregrorian777

0 Kudos
Message 1 of 7
(1,396 Views)

Hi gregorian,

 


@gregorian7 wrote:

When I operate the module via NImax everything works as it should be. However, I try to do the same through my Labview program I can not get any output.


So you did something different than MAX…

 

Do you get any errors from your VI when trying to output data? If yes: which?

 

And why do you need to create channels and start the task in each iteration of your loop? Why don't you execute this stuff once before the loop?

(You need to write as many "data" array elements as you have channels configured in the task! For safety you should write a "0" to both channels before killing the DAQmx task…)

Best regards,
GerdW


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

Thanks for reply. My mistake with putting create/start channel inside the loop. I do not have any errors when VI runs.

 

It works when I only use one channel / input.

gregorian7_0-1604064494886.png

, but when I try to add another one I can not send any out  signal from unit.

gregorian7_1-1604064621780.png

 

Thanks,

gregorian7

0 Kudos
Message 3 of 7
(1,364 Views)

Hi gregorian,

 


@gregorian7 wrote:

but when I try to add another one I can not send any out  signal from unit.


Why don't you define both channels with just one channel constant?

How many elements are there in the "data" array?

Did you probe the error wire in the loop when running the VI?

You don't need DAQmxStart when Autostart==TRUE at DAQmxWrite…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 7
(1,358 Views)

Thanks for you help. I have sorted the issue.  

 

Have a good weekend.

 

Thanks,

 

gregorian7

0 Kudos
Message 5 of 7
(1,339 Views)

Hi gregorian,

 

there are (atleast) two options to select two channels:

  • type "Dev1/ao0:1" to select two channels
  • right-click the channel control/constant to open the selction dialog, then select two channels…
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 7
(1,333 Views)

@gregorian7 wrote:

Thanks for you help. I have sorted the issue.  

 

Have a good weekend.

 

Thanks,

 

gregorian7


So what was the issue?

 

Telling people how you solved your issue will help future people reading your message who have the same problem be able to solve theirs.

0 Kudos
Message 7 of 7
(1,298 Views)