Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

xnet and shared variable

hello,

 

I've got some trouble 😞 already post in labview section)

 

i've many application (.exe) , and i add some shared variable into.

Some work correctly but 2 others which use X-NET  doesn't work.

It send this error (-1074384750  XNET Read (Frame CAN).vi:2 ,  it's the first X-NET Vi in the soft.

 

All drivers are correctly update, and i try with labview 8.6 and labview 2011.

 

When i suppress shared variable and librairy, it works .

 

have you an idea ?

 

 

thanks

0 Kudos
Message 1 of 11
(7,918 Views)

That error is nxErrSessionNotFound. Can you run (and attach) NI I/O Trace (NI Spy) to see the call flow that occurs when you get this error?

 

(Description of error):

You used an XNET Session IO name, and that session was not found in your LabVIEW project. Solution: Within LabVIEW project, right-click the target (RT or My Computer), and select New > NI-XNET Session. Add the VI that uses the session under the target. If you are using the session with a built application (.EXE), ensure that you copy the built configuration file nixnetSession.txt such that it resides in the same folder as the executable.

0 Kudos
Message 2 of 11
(7,916 Views)

hello,

Thanks for your answer

 

 

I join the NI trace. I see nothing new...

 

-I check the file : nixnetSession.txt  is in the folder of executable

-I try to do again the Xnet session in my project

 

i always had my probleme ....

 

 

0 Kudos
Message 3 of 11
(7,893 Views)

Hi,

 

Could you post your project or a similar project with only required elements which are necessary to reproduce the error?

 

Regards,

Jérémy C.
NI France

0 Kudos
Message 4 of 11
(7,889 Views)

Or at least the nixnetSession.txt file that you are including. We should verify that the exact session names are being used in both the file and in the executable. 

0 Kudos
Message 5 of 11
(7,877 Views)

Hello

 

Thanks everybody.

 

I'll try to do a "light" project with only the "problematics" elements, as soon as possible (tomorow).

 

I join 2 nixnetSession.txt files :

- the first which works properly (no database / no cluster) just let the defaut settings -> ni example database

- the 2nd i made a database just to check if it's not the 1st one which is bad (empty)

 

 

Download All
0 Kudos
Message 6 of 11
(7,875 Views)

Do you have aliases for your new databases?

 

Open the XNET Database Editor

Select File >> Manage Aliases

 

Makre sure that it lists. Otherwise, choose "Add Alias..." to make those connections.

 

[Edit: Made plural since there are two different databases in the txt file]

0 Kudos
Message 7 of 11
(7,873 Views)

HELLO,

 

Yes , i have the 2 sessions are into Datbase Editor.

 

nb : the devlopement computer isn't the same as the computer with the .exe

 

 

0 Kudos
Message 8 of 11
(7,864 Views)

Hello again,

 

I join a project (LV 2011) to show my problem :

 

-In "labview" no error

- with  executable -> error

 

thanks

 

0 Kudos
Message 9 of 11
(7,858 Views)

Do you have the database and alias setup on the machine with the .exe?

0 Kudos
Message 10 of 11
(7,847 Views)