ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Controlling LVDT using LabView

I would like to control a LVDT using LabView. The LVDT has a  RS232 port for communication. I'm new to using LabView software.

I used the Basic Serial Write and Read.vi from the examples in LabView and got a I/O error. Please see attached picture. Could someone advise how I should proceed?

0 Kudos
Message 1 of 13
(5,872 Views)

Hi,

No picture attached Smiley Sad

Have a look at this http://forums.ni.com/ni/board/message?board.id=140&message.id=17644&jump=true

Maybe this will get you started.

 

0 Kudos
Message 2 of 13
(5,864 Views)
Sorry. I'm unable to upload files for some reason.
 
But, here is what the error is: Error - 1073807298 occoured at VISA Read in Basic Serial Write and Read.vi
 
Possible Reason(s)
 
VISA: (HEX 0xBFFF003E) Could not perform operation because of I/O error.
0 Kudos
Message 3 of 13
(5,845 Views)

Can you post your VI ?

You should be able to read the posted VI's if you are using LV7.0 or up

Message Edited by K C on 06-09-2006 03:55 PM

0 Kudos
Message 4 of 13
(5,852 Views)
Lets see if this works. I'm uploading the document without previewing it.
0 Kudos
Message 5 of 13
(5,822 Views)

The picture is nice but I like to know how you wired it.

Can you post your VI ?

0 Kudos
Message 6 of 13
(5,809 Views)
In picture you posted, what string are you trying to send to the instrument?  Is it hex?  Should the "0X" be part of that string?
0 Kudos
Message 7 of 13
(5,797 Views)
What type/brand of LVDT?
Can you run it with a terminal program?
 
Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 8 of 13
(5,790 Views)

I'm including the wiring diagram. I used the Basic Serial Write and Read example from LV.

 

 

 

0 Kudos
Message 9 of 13
(5,771 Views)
The start code for the instrument is S<LF> = 0x530A, which is what I'm trying to send to the instrument. The instrument is suppose to transmit back 250 reading/sec when the start code is received. I dont know if I'm using the correct string Syntax to send the start signal.
0 Kudos
Message 10 of 13
(5,766 Views)