02-01-2013 04:58 AM - edited 02-01-2013 05:10 AM
Hi!!
I just want to test the serial communication i am using.. but i am getting error as shown in the picture.. please help me out.. as i am new to the visa, if possible explain the program as well
i used this http://de.rs-online.com/web/p/schnittstellenadapter/5140844/?searchTerm=USB+auf+Seriell%2FParallel+A... i connected usb side to my laptop and no connection in the other end...
i just edited this post, to inform you that, after waiting for 15 to 20 mins, the change is shown below
In error out, we can see VISA Read in serial, but still this timeout error persists.. actually wats happeneing..
02-01-2013 05:50 AM - edited 02-01-2013 05:54 AM
P.S..
the USB side is connected to the laptop and DB25 pin is connected to the DAQ.... In datasheet it stated that, DB25 is parallel port... Now my question is that, should I use serial VISA or is there anything for parallel port communication??
thanq
02-01-2013 06:30 AM
You error looks like there is something wrong with your communications. More specifically, you are not getting any data back.
VISA can handle parallel ports as well. It should be named something like "LPT1". You don't need to configure the serial port if you are using a parallel port.
02-01-2013 06:34 AM
Hi crossrulz!! thanq for the reply.. yes, u r correct, there is LPT3 and COM5 activated in my device manager when i installed drive...
So I can program as normal using serial VISA except for the configuration... thanq once again
02-01-2013 09:10 AM - edited 02-01-2013 09:13 AM
You need to ignore the parallel/serial part of that adapter and find out what the instrument requires. A serial port on the instrument could be a DB25. If you are using a parallel port on the adapter and the instrument's is really a serial port, nothing will work. Once you find out what the instrument requires, then pick the port on the adapter and use the correct cable type (null modem or stratight through).
You also need to verify that the instrument supports the *IDN? query. Is it listed in the programming manual?
02-04-2013 08:21 AM
hi dennis,
actually my daq is serial!!!
in the instrument manual, it mention as
Interfaces: Analog; IEEE488, RS-485, RS-232, Ethernet, PC-card slot, hard disk, CAN bus, ProfibusDP
02-04-2013 09:19 AM
Okay. Let's hope that nothing was damaged when you hooked the instrument up to the parallel port.
02-07-2013 12:07 PM
Can you tell me what version of Labview you are using? I am also making VISA commands, and having problems, but, I do not think I have the "Configure VISA" function...I wonder if I need it. I have LV2012.
Thanks,
Dave
02-07-2013 12:11 PM
You should really start a new thread for a new and unrelated question.
There is no such thing a Configure VISA. There is VISA Configure Serial Port (Instrument I/O>Serial palette) and yes, you should have that for serial communication unless you are using something as old as LabVIEW 4.
02-07-2013 12:36 PM
Thanks, Dennis,
In fact, I did start a new thread yesterday, right here in this forum, including posting the code. I am hoping for some advice to resolve my VISA-related errors. So far, nobody has responded to the posting.
In the meantime, I was searching through the forums for similar issues, and found this one. Earlier, last week, while I was gettting some coaching from NI people on the telephone support line, nobody every mentioned adding the "VISA Configure..." function, so, I was wondering if that was a function of older Labview versions. I am quite desperate to solve this problem, so, I am looking everywhere I can for some clues.
Dave