09-29-2007 04:32 AM
09-29-2007 08:49 AM
The LabVIEW Plug and Play drivers says it supports GPIB, USB, and Ethernet. If your scope has a USB connection, plug it in and and try it. If you do want to try to use an RS-232 connection, modifications to the driver are usually trivial. A driver that ships with every version of LabVIEW is the 34401. Look at how that is written for both serial and GPIB.
As far as conversion, you could download the driver and then post it and ask for help in converting it. You would probably have better luck posting the request to the LabVIEW board. Your other options are to get the driver from Tektronix or create a 7.0 IVI driver youself. You do that by downloading the CVI version of the driver and running Tools>Instrumentation>Import CVI Instrument Driver. I don't know if either the Tek or CVI driver support RS-232. A USB connection might work with them.
09-30-2007 07:53 AM
09-30-2007 10:23 AM
09-30-2007 11:36 AM
09-30-2007 11:52 AM
09-30-2007 12:14 PM
I don't understand why some of the VIs would have been broken. I did a save for previous version of the VI Tree and I can open that just fine. What did you have to do to the initialize to fix it? Post the VI if you can.
What I did to make the VI work for serial was to just paste in some code from the shipping 34401 driver. Looking at it again, I see the term char settings are enabled for write but I don't see the actual term char being set. You might need to do this. Try adding the property Message Based Setting:Termination Character and wiring a xA to it. This is the LF character. You might also want to add the property Message Based Settings:Termination Character Enabled and wiring a True to it. Look at block diagram of VISA Configure Serial Port to see how this is done. Also verify that the com settings in the initialize function match what the instrument is set to and what you used in Hyperterminal.
09-30-2007 01:44 PM
09-30-2007 06:08 PM
I guess the first step should have been to verify that serial control is even possible with the instrument. This scope is basically a pc with a custom data acquisition card. The fact that you open Hyperterminal on the scope and can communicate with Hyperterminal on the pc would lead me to believe that the scope's serial port is not for external remote control by a pc but so the scope can control a different instrument. I think this is one of the Tek scopes that you can install LabVIEW on.
Presumably, you have the manual for the instrument. What does it say about the serial port?
09-30-2007 11:29 PM
I serached through the manual. It does say it's possible to control via GPIB but I am not sure abt serial. This is what the manual says:-
"The hard drive and CD-ROM provide access to stored waveform data and software to customize your oscilloscope with your measurement needs. The GPIB port allows for external control of the oscilloscope. You can make hardcopies on the GPIB, RS-232, and Centronics ports. The PC Interface board includes a VGA connector for an external monitor to display the oscilloscope screen."
So why did they actually give that serial port on the scope?!!..
It also has a USB type A port. Can I use such a port for transferring waveform data to LabVIEW.My PC also has two Type A USB ports. But NI MAX doesn't detect them. If I plug a USB drive in, WinXP detects it but why can't MAX see the ports?...
Can I get any Type A to Type B usb convertors and use them?