10-13-2011 07:35 AM
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
10-13-2011 07:48 AM - edited 10-13-2011 07:49 AM
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.
10-17-2011 01:44 AM
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 ....
10-17-2011 02:36 AM
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
10-17-2011 08:31 AM
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.
10-17-2011 09:00 AM
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)
10-17-2011 09:08 AM - edited 10-17-2011 09:09 AM
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]
10-18-2011 01:16 AM
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
10-18-2011 04:23 AM
Hello again,
I join a project (LV 2011) to show my problem :
-In "labview" no error
- with executable -> error
thanks
10-18-2011 07:04 AM
Do you have the database and alias setup on the machine with the .exe?