From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -10401 occurred at AI Group Config


@vadim.santos wrote:

Speaking of channels...


See if setting the second device to a device ID of "2" helps with those virtual channels.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 21 of 29
(677 Views)

Tried it right now, still gives me the 10007 error.

0 Kudos
Message 22 of 29
(671 Views)

I'm pretty sure the red "X" on those virtual channels says that they aren't validly defined.  While there's still no guarantee, I'd definitely bet on the naming convention "T_2_10" being "T" for temperature or thermocouple, "2" for device #2, and "10" for channel #10.

 

See if you can look into one of those virtual channels, edit it to make sure it's assigned to the corresponding device and channel, and see if MAX then considers it to be valid.

 

If this doesn't seem to help, we might be a step closer to Jeff's reset suggestion (but not necessarily all the way there.  I don't presently have any other ideas, but others may.)

 

 

-Kevin P

 

CAUTION! New LabVIEW adopters -- it's too late for me, but you *can* save yourself. The new subscription policy for LabVIEW puts NI's hand in your wallet for the rest of your working life. Are you sure you're *that* dedicated to LabVIEW? (Summary of my reasons in this post, part of a voluminous thread of mostly complaints starting here).
0 Kudos
Message 23 of 29
(670 Views)

New posts arrived while I typed.

 

1. The fact that the virtual channels are invalid in MAX is *definitely* a problem.  That needs to be fixed first.

 

2. The double comma syntax in the code's list of channels for device #2 seems somewhat *likely* to be a problem.  (Although it's possible that "AI Group Config" handles it cleanly by treating it as a NULL channel and ignoring it.  It's a little bit similar to times when I write consecutive commas into a CSV text file -- I know Excel can handle it, treating it as a NULL entry and making an empty cell.)

 

 

-Kevin P

CAUTION! New LabVIEW adopters -- it's too late for me, but you *can* save yourself. The new subscription policy for LabVIEW puts NI's hand in your wallet for the rest of your working life. Are you sure you're *that* dedicated to LabVIEW? (Summary of my reasons in this post, part of a voluminous thread of mostly complaints starting here).
Message 24 of 29
(666 Views)

@Kevin_Price wrote:

I'm pretty sure the red "X" on those virtual channels says that they aren't validly defined.  While there's still no guarantee, I'd definitely bet on the naming convention "T_2_10" being "T" for temperature or thermocouple, "2" for device #2, and "10" for channel #10.

 

See if you can look into one of those virtual channels, edit it to make sure it's assigned to the corresponding device and channel, and see if MAX then considers it to be valid.

 

If this doesn't seem to help, we might be a step closer to Jeff's reset suggestion (but not necessarily all the way there.  I don't presently have any other ideas, but others may.)

 

 

-Kevin P

 


Yes, starting Fiddling" with those virtual channels to see what is wrong with them. That weird syntax may actually be using a range of inputs and not just two. Some devices (or was it all?) in traditional DA required channels be scanned in ascending order.

 

If you do decide to reset the MAX config, please save it off as a unique name or we could be singing a sad tune for a while trying to put it back to together again.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 25 of 29
(668 Views)

Guys, finally!!!

 

The problem was with the virtual channels all the time, each channel was targeted to each device but for some reason was invalid. To fix it I had to choose the channel again and it validated. Now that all the channels are working the program works like a charm.

 

Thank you to all of you who took the time to help me with this mystery. (special thanks to Kevin, I'll buy you a beer someday Smiley Very Happy)

 

Once again, thanks!!!

0 Kudos
Message 26 of 29
(665 Views)

@Ben wrote:
Yes, starting Fiddling" with those virtual channels to see what is wrong with them. That weird syntax may actually be using a range of inputs and not just two. Some devices (or was it all?) in traditional DA required channels be scanned in ascending order.

For those who haven't (or can't) see the code, the scan order appears to want to scan channels 10 through 15 first followed by channels 2 through 9.  So far I've been working on the presumption that the hardcoded (and non-ascending) scan order *used* to work before the motherboard change.  But the error text *does* suggest that scan order could be a possible culprit.

 

Below is a screencap (not a code snippet) with "ghosted" calls to traditional NI-DAQ functions which I don't have installed anywhere.  The first vi in the config chain is "AI Group Config" and I expanded the channel lists to make them more visible.

 

 

-Kevin P

 

[Edit:  solved while I was still typing.  Oh well, I'll leave the screencap anyway.]

 

 

AI Group Config.png

CAUTION! New LabVIEW adopters -- it's too late for me, but you *can* save yourself. The new subscription policy for LabVIEW puts NI's hand in your wallet for the rest of your working life. Are you sure you're *that* dedicated to LabVIEW? (Summary of my reasons in this post, part of a voluminous thread of mostly complaints starting here).
Message 27 of 29
(660 Views)

@vadim.santos wrote:

Guys, finally!!!

 

The problem was with the virtual channels all the time, each channel was targeted to each device but for some reason was invalid. To fix it I had to choose the channel again and it validated.

...

 

(special thanks to Kevin, I'll buy you a beer someday Smiley Very Happy)

 

Once again, thanks!!!


See my bad joke above here.

 

Then it is proper practice to mark his most useful post as the solution and any other post that was helpful gets a star.

 

Take care,

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 28 of 29
(656 Views)

@vadim.santos wrote:

Guys, finally!!!

 

The problem was with the virtual channels all the time, each channel was targeted to each device but for some reason was invalid. To fix it I had to choose the channel again and it validated. Now that all the channels are working the program works like a charm.

 

Thank you to all of you who took the time to help me with this mystery. (special thanks to Kevin, I'll buy you a beer someday Smiley Very Happy)

 

Once again, thanks!!!


Yup, the channel was expected on the old PCI bus.  Makes perfect sense in hindsight. 

 

Nice collaborative effot!

 

@Ben

Spoiler
GROAN!

"Should be" isn't "Is" -Jay
Message 29 of 29
(640 Views)