Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

serial communication testing

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 Smiley Indifferent

 

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...

block.PNG

front.PNG

 

i just edited this post, to inform you that, after waiting for 15 to 20 mins, the change is shown below

addd.PNG

 

In error out, we can see VISA Read in serial, but still this timeout error persists.. actually wats happeneing..

Every Expert was once a Beginner!!
0 Kudos
Message 1 of 12
(4,809 Views)

P.S..

 

http://de.rs-online.com/web/p/schnittstellenadapter/5140844/?searchTerm=USB+auf+Seriell%2FParallel+A...

 

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

Every Expert was once a Beginner!!
0 Kudos
Message 2 of 12
(4,802 Views)

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 3 of 12
(4,797 Views)

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

Every Expert was once a Beginner!!
0 Kudos
Message 4 of 12
(4,795 Views)

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?

0 Kudos
Message 5 of 12
(4,785 Views)

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

 

 

Every Expert was once a Beginner!!
0 Kudos
Message 6 of 12
(4,751 Views)

Okay. Let's hope that nothing was damaged when you hooked the instrument up to the parallel port.

0 Kudos
Message 7 of 12
(4,745 Views)

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

0 Kudos
Message 8 of 12
(4,696 Views)

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.

0 Kudos
Message 9 of 12
(4,692 Views)

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

0 Kudos
Message 10 of 12
(4,686 Views)