LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LV DC Power driver power line frequency error

Solved!
Go to solution

Hi All,

 

I'm trying to use the power line frequency vi in the niDCPower driver. If I use the Initialize with channels vi and define a single channel then I have no problems but if I try to define multiple channels then the PLF vi gives an error "BFFA0044 Channel or repeated capability name required." Can anyone explain why this vi gives this error when multiple channels are defined in the initialize phase? I checked the DC Power SFP and this attribute is only settable in one place and applies, as you would expect, to all channels so I'm a bit confused why this error occurs.

 

Thanks,

 

Nick

0 Kudos
Message 1 of 8
(3,351 Views)

Hi Nick,
Can you tell me what hardware you are using? Could you also please post your code so that I can see exactly what you have done.
Thank you

 

NabilahF
Applications Engineer
0 Kudos
Message 2 of 8
(3,303 Views)

Hi Nabilah,

 

I'm using a 4140 but this issue can also be seen if you simulate this device. You can see this issue if you place the Initialize with channels.vi, configure power line frequency.vi and Close.vi on your block diagram, wire up the error and instrument handle clusters. Create a  resource name constant on the initialize vi and a power line freq constant on the config vi. Create a channels control on the initialize vi and set it to 0 (single channel) now run this vi and you will see no error. Now change the channels value to 0:1 (two channels) and run it again, there's the error.

 

Thanks,

 

Nick

0 Kudos
Message 3 of 8
(3,282 Views)

Hi Nick,

I have tried to replicate your problem and below is a snippet of the code that I used which gives error on running. I have used a simulated PXIe-4140. I am not sure if I'm missing out something, let me know.

 

NabilahF
Applications Engineer
0 Kudos
Message 4 of 8
(3,277 Views)

Sorry, I meant to say the code attached doesn't give an error on running.

NabilahF
Applications Engineer
0 Kudos
Message 5 of 8
(3,269 Views)

Hi Nabilah,

 

Your code snippet is exactly what I have with the exception that I have an error cluster on the output of the close vi. Strangely I get an error every time I try to run with more than one channel defined. Maybe it's down to SW versions? I've listed mine below:-

 

MAX - 5.4.0f0

LV - 12.0.1f2

DCPower - 1.7.5

 

Thanks,

 

Nick

0 Kudos
Message 6 of 8
(3,259 Views)
Solution
Accepted by topic author nickstorton

Hi Nabilah,

 

Just to let you know I've updated to the latest versions of MAX and DC Power and the problem has gone so it was to do with SW versions somehow. Interesting that the upgrade notes do not mention this in the list of fixes the new version brings but anyway it's all good now.

 

Thanks,

 

Nick

0 Kudos
Message 7 of 8
(3,235 Views)

Hi Nick,

Glad to know that you problem is resolved. 

 

Good luck with your application.

 

Kind regards,

NabilahF
Applications Engineer
0 Kudos
Message 8 of 8
(3,232 Views)