Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

help Reading Pulse from a function generator using RS232

Hi,
My name is Joshua. I am fairly new to labview and i needed a great deal of help with my program. Before i go into the interface i made i should explain what it should do. Basically I am trying to read binary pulses from a function generator through RS232 and Plot that data in the graphical user interface. It should plot it over real time. I took a basic read and write example and i did a little modification. But it's not working. I think it's because the pulses are Binary and my program's not reading it. So i guess the logic is receive the binary data convert it to numbers and plot it. So it would be great if someone could help me build this. My phone number's 2678791918. Any help is greatly appreciated.  Thank you.
 
Sincerely,
Joshua Varghese
0 Kudos
Message 1 of 2
(2,990 Views)
The vI you posted reallly doesn't explain much since it is just a slightly modified shipping example. You don't provide any information on the make and model of instrument or the actual commands you are sending. I also don't understand what you are trying to read from a function generator. These instruments output a waveform that must be measured by something else. What is connected to the output to physically measure it? You can command a function generator to do an output and query what it is doing but you normally can't take an actual measurement with one. If you are trying to command it to do something, have you tried to look for an existing driver for the instrument? There are thousands available at http://www.ni.com/devzone/idnet/default.htm. Go there and do a search. Also, with serial instruments, there are a lot of things that you can do wrong. You can have the wrong cable or the wrong settings for the serial port. You should always first try communicating with it in either MAX or Hyperterminal before trying to write your own program.
0 Kudos
Message 2 of 2
(2,985 Views)