LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Attempting to initialize an array of MAX Aliases is throwing an error on first loop's iteration...

Solved!
Go to solution

Hey folks, 

 

I'm gonna ttach a photo of what's in place right now.

 

I think the DELAY init vi is good to go for this application because I have it working in another vi but it's just not applied in the same array/for-loop config.  

 

However inside that init vi, I get an error from the VISA Open. (Only when I try to execute the code in the looped fashion at the top of the picture).  Do any of you guys see anything I'm missing here?   It's almost like the string element (alias name) isn't being indexed into place?

 

Thanks for your time!

 

-pat

0 Kudos
Message 1 of 7
(2,582 Views)

What is the error you are getting?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 7
(2,575 Views)

HA! yea that might help huh...

 

"

Error -1073807343 occurred at VISA Open

VISA: (Hex 0xBFFF0011) Insufficient location information or the device or resource is not present in the system.

"

 

thanks!

0 Kudos
Message 3 of 7
(2,572 Views)

Ok, now what is the string that you are passing in for the resource?  The more details we have, the better.  Otherwise we will be grasping at straws.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 7
(2,553 Views)

The strings are the aliases that are configured with MAX. I think my issue is that I'm using the array of aliases with the same object- I'm going to try to do this with an array of objects the same size... I'll post up and let you know if it works.

 

Thanks

0 Kudos
Message 5 of 7
(2,537 Views)

These are two other attempts I couldn't get to work either (the init vi is the same).

 

 EDIT: just noticed that my error in isn't wired up... but it still doesnt work with it wired in, I thought maybe I got the old error on the first iteration... got excited.

Download All
0 Kudos
Message 6 of 7
(2,532 Views)
Solution
Accepted by topic author plyons.gks

HA!     

 

I got it to work with a setup very similar to the #2 jpg I posted.  It turns out over the weekend someone had pulled the unit with that IP from the system.  You don't need to initialize an array of the parrent like I did in the jpg though.

 

 

0 Kudos
Message 7 of 7
(2,520 Views)