LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I am using XNET CAN on a PXI system. When I modify the can database I get the error "the interface has already been opened.."

I have tried both building the XNET session from project explorer and by building a signal list in the VI.

 

Any suggestions? Thanks in Advance.

0 Kudos
Message 1 of 4
(2,555 Views)

Have you tried not opening the interface?  Close everything LabVIEW and MAX, then run the Database Editor (it's in your start menu under XNET).  Edit the data base there.  Obviously you should be able to edit the database while LabVIEW is running if you haven't opened the interface yet.  But without seeint your code I'll just assume the interface was opened somewhere and the easiest way to edit it is by closing everything.

0 Kudos
Message 2 of 4
(2,549 Views)

Thanks for the reply. I don't think I have any interface open. But to be sure, I rebooted everything - same result.

 

Is there some step in the project config that I am failing to do? In the PXI systems I had before XNET, I had to setup some CAN configuration stuff in MAX to get it to work, but I don't see that option anymore with XNET.... 

 

I have been sucessful in running XNET CAN VIs reading and writing the data from my database, but I stumble every time I add a signal or rename the database. 

 

I made a simplified VI to illustrate, using a previously working database I now get the empty name message.(screen capture attached)

 

This is connected to a working CAN link, and I can see these signals in MAX properly.  

 

Thanks in advance for your assistance!

0 Kudos
Message 3 of 4
(2,531 Views)

I see in your picture that on the far left you are feeding in an array that is at index 1. It looks from the error message that index 0 is not set. Check this and if it is the case, remove the empty array element. 

 

Of course I could check myself if you attached a VI instead of a picture of one. . . 

 

I hope that this helps, 

Bob Young

 

0 Kudos
Message 4 of 4
(2,505 Views)