Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Programming the NI (PCI-8433/4) RS 422 in Labwindows CVI

Hi,

 

Am trying to receive RS422 serial data from my UUT in all 4 ports.

 

i downloaded and installed NI-Serial 3.90,but i couldnt locate any RS422 header file or the library.

can please some one help me to locate the Header and Library file.

 

Thanks in Advance!!!!

0 Kudos
Message 1 of 13
(6,662 Views)
I used VISA and its properties for configuring.
0 Kudos
Message 2 of 13
(6,657 Views)

 Thanks for the reply,

 so the NI-Serial is not required at all , i can control using the VISA directly?

 i found a header named rs232.h , i wonder if there is a similar header for RS422 as well

 

Thanks in advance!!

0 Kudos
Message 3 of 13
(6,653 Views)
No, you still need NI-Serial but you can configure basis rate, etc. with VISA and use VISA for reads and writes.
0 Kudos
Message 4 of 13
(6,644 Views)

Thanks

but VISA library functions seems to be generic functions.

i dint find any fucntion to control the input and output buffers properties.

using VISA is the only way to communicate with the RS422 card?

 

 

 

Thanks

0 Kudos
Message 5 of 13
(6,639 Views)
What input and output properties are you talking about?

No, CVI has a separate serial library. I've always used VISA as it is the standard for instrument drivers and is portable - no code changes If the interface ever changes to something else such as Ethernet, USB, GPIB.
0 Kudos
Message 6 of 13
(6,634 Views)

setting up the queue size and flushing the queue on conditions like that...

 

if so can you please  point me the CVI library for RS422 , where it will be available

 

however i installed NI-serial 3.9 package but i coudnt locate the Library in that.

 

 

Thanks in advance

0 Kudos
Message 7 of 13
(6,630 Views)
VISA certainly has functions for setting and clearing the queue.

If I recall, it's called the Com library. This is for all serial port communication. There are not dedicated libraries for RS-232, RS-422, etc.
0 Kudos
Message 8 of 13
(6,624 Views)

Thanks a lot.

 

can you help me with a sample VISA code if you have any.

 

Thanks

0 Kudos
Message 9 of 13
(6,618 Views)
Have you looked at the examples that come with CVI? I don't have it installed right now so I can't pony to anything specific. There are also numerous CVI instrument drivers you can look at.
0 Kudos
Message 10 of 13
(6,615 Views)