Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Activex serialRS232

Hello,

I'm new on this forum so hello everyone.
Well again in Labview that I just discovered with my engineering school.

I come to you today for the following reason. I have an optical measuring system which is send me speeds and lengths.
To access this data, I use a library of ActiveX objects that was given to me (. Dll)
I want to communicate with my system by RS232 serial port.

I however errors or communications, or that I can not get my values!
However I do not see my mistake!

Could you help me?
find attached my VI is under labview 2011. If you wish you can complement it with me PLEASE make under the same format.
The RS232 I is usb -> RS232 I previously initialized with MAX that detects ect ... so do not understand.

Thank you for all your help

0 Kudos
Message 1 of 17
(4,814 Views)

If you have a dll than that dll should take care of the rs232.

If you want to use visa find the commandset of the instrument and use that directly.

Most of the time that is easier than using a weird dll.

greetings from the Netherlands
0 Kudos
Message 2 of 17
(4,808 Views)

Thank you so much for this very (very very) quick answer!

 

I will test it tomorow. I hope than one day I can help you as well as you have helped me.

 

Thank you from Paris, France 🙂

0 Kudos
Message 3 of 17
(4,804 Views)

Excuse me, just one more question ;).

 

I have used, as you said me, a specific serialcomm.dll you can see it on my .vi attached.

But on automation open block, one of the input is "machine name" what is it exaclty? I don't know what i have to connect on this input?

 

I connect my system by RS232 as you can see...can you confirm me that my connection and block diagram is better now.

 

Thx you so much!

0 Kudos
Message 4 of 17
(4,801 Views)

Do NOT use both the VISA serial and a dll. Pick one or the other. Quite frankly, I don't understand the point of using a dll and I don't think any of your automation opens are at all correct. If you got an ActiveX driver for some device, using a separate dll for a serial connection is just bizarre. What makes you think you even need an input to 'Machine Name"? You certainly should not be passing a VISA reference to the first Automation Open. The second one is just as senseless.

0 Kudos
Message 5 of 17
(4,796 Views)

Hi,

I have again modify my vi without using VISA.

In fact to explain you my project as correctly as possible :

- I have a sensor, it's a laser velocimeter (you can find it on internet).

- I can connect this sensor by ethernet or RS232.

- With this sensor I can have velocity or lenght measurement.

-I have .dll for the serialcomm, for Lancomm and for data(lenght, velocity...ect).

 

I want to connect this sensor to labview by RS232 (after by ethernet), and save in real time each data (lenght and velocity) into .csv file.

I think that i'm close to finish my labview program but i can't established any connection yet.

 

As you can see in my VI I have the DLL for the data and an other DLL for the serial comm, i don't know exactly why (i'm not the producer of the sensor 🙂 ).

Is it more explicit now? ;).

 

Thx again!

 

0 Kudos
Message 6 of 17
(4,788 Views)

You are still not making any sense to me.

 

I can find lots of things on the Internet but since you did not provide the make and model of this sensor, I can't find anything for it.

 

The dll you are using for the serial is not a dll provided by the vendor of the sensor. It is just a generic RS232 communication. If the other dll is what you got from the vendor, then I would imagine that is the only dll that you would require but since you have not posted any details on the vendor or the dll that is provided, I (nor anyone else) cannot help beyond saying wiring the rString to the Machine Name is silly. You typically do not wire anything to the Machine Name and I don't understand your reasoning for doing that. I'm pretty certain your SerialComm ActiveX is something you made up for some reason.

0 Kudos
Message 7 of 17
(4,782 Views)

I understand,

 

this is a POLYTEC LSV-1000 velocimeter.

This sensor is provided with the .DLL which is attached (it contain activeX objects).

 

So, as I should understand, i don't need to use any VISA or serial communication or serial DLL so...how can I get the data from the sensor?

 

My final goal is to get velocity and lenght with the library which is attached by RS232. How do you do that?

 

If I need to restart completely my VI it's not a problem or if you provide me an example or a modify VI with your knowledges it will be great for me :).

 

PS : change the .txt extension to .dll because i can't send .dll by this forum

 

 

0 Kudos
Message 8 of 17
(4,774 Views)

The dll does me no good.

 

How you use the dll is going to depend on the documentation from the vendor. If you are going to attach anything, that is what you should attach.

0 Kudos
Message 9 of 17
(4,769 Views)

Hi,

 

please find attached the documentation of the library and the user manual of the LSV. From page 83 to 109 you have everything for the interface.

Do you need anything more?

Download All
0 Kudos
Message 10 of 17
(4,765 Views)