LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Ports séries CRIO 9870 n'apparaissent pas dans fichier exécutable

Solved!
Go to solution

Bonjour à tous,

 

Je suis en train de créer une application sous Labview avec un module COMPACRIO 9870.

J'utilise les ressources VISA pour venir lire ce qui est écrit sur ces port séries.

Tout fonctionne sans problème lorsque je suis sur le PC de programmation, j'ai accès aux ports disponibles.

Lorsque je compile l'application pour l'exécuter sur un autre poste, ces ressources n'apparaissent pas à l'exécution sur l'autre poste, l'application ne fonctionne pas (même Labview fermé sur le poste de programmation).

Remarque: lorsque j'exécute le même exécutable sur le poste de programmation (LABVIEW fermé), les ressources apparaissent bien et l'application fonctionne.

 

Auriez-vous des pistes sur la marche à suivre pour que les ressources des ports série soient accessibles sur le deuxième poste?

 

Vous en remerciant par avance,

 

En pièce jointe, le code qui lit le port série (un autre l'initialise avant)

0 Kudos
Message 1 of 5
(2,655 Views)

Hello,

 

You're in the English section of the forum so please post in English or post on the French section.

 

Regarding your issue, is LabVIEW installed and all the necessary drivers on the other computer?

 

Do you detect your serial ports in MAX from the second computer?

Did you try to use error clusters and the highlight mode in order to detect which function causes an error and which one?

 

For your information, you can show the diagram of your application by unchecking the following elements in the properties of your specification :

 

Diagram.jpg

 

 

I suggest you to use the "VISA Open" and "VISA Close" functions in your VI instead of directly read serial resources.

 

Regards,

Jérémy C.
NI France

0 Kudos
Message 2 of 5
(2,627 Views)

Thanks Jeremy for your answer.

 

Sorry if i posted on the english forum, it was a mistake,

 

No, Labview is not installed on the second computer, and that's the goal.

I have one computer on witch i make the .exe files, and i need to work with the same application on different computers. I can read all the analog and digital channels (the datas are globals) with the other computers, but i can't detect the four serial ports of the 9870 Module, nore the serial of the computer himself, and so not read on them.

 

Have you an other idea?

 

Thank you in advance,

PhilippeDOS

 

 

0 Kudos
Message 3 of 5
(2,621 Views)
Solution
Accepted by topic author PhilippeDOS

Hello PhilippeDOS,

 

If you didn't install LabVIEW on the other computers, that's the reason why your application is not running.

Exe files are used only if you need to build an application from your VI. If you want to use it on a computer which doesn't have LabVIEW installed, you need to build an installer. Installer allows to package an .exe file and other elements as the Runtime of LabVIEW which is necessary to run a LabVIEW application on a computer which doesn't have LabVIEW installed.

 

Regarding the types of functions that you use in your VI, you'll maybe need to add additional installers in the build specifications.

Take a look in LabVIEW help and other forums, you'll find the procedure which will allow to build an installer (in fact, it's quite similar to building an .exe file).

You can search for the keywords "construction", "specification" for example in the help of LabVIEW ("Liste de construction d'applications" in french)

 

Regards,

Jérémy C.
NI France

Message 4 of 5
(2,615 Views)

Yes, That is the solution.

 

With the installer, it works!

 

Thank you Jeremy for your help.

 

0 Kudos
Message 5 of 5
(2,609 Views)