LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Ayuda con DLL

hola amigos del foro.

les comento lo que quiero realizar, pero no tengo conocimientos de archivos DLL o DDE por eso solicito vuestra ayuda para que me orienten.

 

tengo un software de una bascula que por medio del puerto serial lee censores de peso, lo que necesito es implementar un VI que solo lea el valor de peso que muestra el software.  que según su manual de usuario, se puede extraer el valor de peso atreves de un archivo DLL o DDE.

el manual muestra algunos comandos y rutas que se tiene que hacer, pero no se como implementarlo en VI.  vi ejemplos de DLL en labview pero ninguno se asemeja a lo que estoy necesitando. adjunto la parte del manual de usuario que menciona el desarrollo del DLL. 

 

espero que me puedan ayudar. gracias 

Download All
0 Kudos
Message 1 of 7
(1,580 Views)

A link to the entire manual would be more helpful if you want help.

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

First, we can't really do anything with pictures. Second from when is this device? It describes a DDE interface to retrieve information from the program. That is literally last century technology!!! LabVIEW 32-bit still has an undocumented and unsupported DDE library in vi.lib\Platform\dde.llb, but use of that was always at least cumbersome and not always easy to get to work. It is however your best bet to communicate with this ancient software because the remainder of that second page is NOT about how you can call this software with a Call Library Node, but instead this program turns that upside down! You have to provide a DLL with a specific name and interface and their software will call that DLL function with the parameters as described in the DDE interface!

 

Now the problem is that while you can create DLLs in LabVIEW, you can not easily create parameters with structures that correspond exactly to an already defined C structure, and that C structure is not even properly defined, just vaguely described in text (at least in the page you provided a bitmap off, which is about as useful as sending your auto mechanician a picture of your car and asking him to fix your car).

Rolf Kalbermatter
My Blog
0 Kudos
Message 3 of 7
(1,528 Views)

Hola. Gracias por responderme. Adjunto el manual en PDF. Cómo dije, no tengo ninguna práctica  en archivos .dll 

Existe un   ejecutable en C que hace el enlace con el programa el cuál lee el peso en el la pantalla y lo guarda en un archivo .txt  

Quiero saber si existe la forma de hacerlo desde labview.

0 Kudos
Message 4 of 7
(1,511 Views)

As mentioned, your best bet is the DDE interface.

 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019LMUSA2

https://lavag.org/old_files/post-923-1100172166.pdf

 

But there are several gotchas with this. The DDE library in LabVIEW was depreciated many years ago by NI. They do not have the necessary people who still would know how this worked and therefore can not provide support for it anymore. It is an old and outdated technology from Windows 3.1 times, so about 30 years old.

 

And it was depreciated before LabVIEW 64-bit was ever released, so the functionality was never ported to the 64-bit platform and is therefore not present at all there. 

 

You can try to work with these documents, if it works great for you, if it doesn't I'm very much afraid that you are on your own here. Nobody is using DDE for the last 20 years anymore!

 

Rolf Kalbermatter
My Blog
0 Kudos
Message 5 of 7
(1,503 Views)

@Victorfasanando wrote:

Hola. Gracias por responderme. Adjunto el manual en PDF. Cómo dije, no tengo ninguna práctica  en archivos .dll 

Existe un   ejecutable en C que hace el enlace con el programa el cuál lee el peso en el la pantalla y lo guarda en un archivo .txt  

Quiero saber si existe la forma de hacerlo desde labview.


Instead of focusing on the TRADE software, you should be looking at the hardware.

 

The manual for that software says:

Suitable HBM Hardware
• C16i – Digital load cell with RS–485 output
• AED9101x – Digital transducer electronic (PCB AD101B required)
• AD104 – Measuring chain 2

 

We don't know what hardware you have.

If your load cells have some sort of RS232 or RS485 interface, you should be able to use LabVIEW to communicate with them.

 

.

0 Kudos
Message 6 of 7
(1,490 Views)

Trade es una tecnología antigua, pero aún la están usando. Creo que ya saldría del presupuesto desarrollar un  nuevo programa. Jeje.

De todos modos gracias. 

0 Kudos
Message 7 of 7
(1,465 Views)