LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

compatibility labwindows-labview for rs232 commands

hello ,  i would like to know if it was possible to use the RS232 commands of labwindows(ComWt,ComRd) used in DLLs,and  in the same time, the open and  close serial port commands directly in labview
 
 
TheGame
0 Kudos
Message 1 of 4
(2,792 Views)

I don't understand your question.

Do you want to use the same port at the same time from 2 different programs? You probably can't, and if you can open a connection to the port from both programs, you will probably get meaningless data.

Do you want to mix this in the same program? To start a connection with LV and to read and write through DLLs? If so, why? Why not use LV or CVI all the way?

Write some more details about what you're trying to accomplish and why you want to do whatever it is you want to do.

P.S.
I don't know anything about CVI, so I hope I didn't misunderstand something basic.


___________________
Try to take over the world!
0 Kudos
Message 2 of 4
(2,782 Views)

Sorry for my bad explanations,

i have developped dll thanks to labwindows  where  i send  and  receive  frames with serial ports , and especially  RS232 library (openCom, ComWrt, ComRd)

Now i want to integrate these dlls in a labview environnement, so i want to continue to use the controls of read 

and write frames in my dll , but i would like to manage the opening and closing of the serial ports directly with the labview controls,
and i don't know if it is possible
 
TheGAme
 
0 Kudos
Message 3 of 4
(2,780 Views)

Hello,

The best and more logical method is to use only the VISA LabVIEW VI's in your application to handle the opening, reading, writing and closing communication sessions. You can use a CVI DLL with an exported function for each operation (open, read, write, close) but do not try to mix the VISA VI's calls with your DLL calls.

Greetings from Paris.

Matthieu G. , NIF

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