LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA: Using Comport instead of LAN

Solved!
Go to solution

Hello,

 

currently i am using only LAN to send SCPI commands to a instrument.

Here i have a connection string like TCPIP:10.0.0.100:INSTR

 

If i now use a instrument which has a comport instead of a LAN port then the string would look like ASRL2::INSTR


Is it correct that the rest of the vi should execute unchanged, only a different connection string?

Thanks

 

0 Kudos
Message 1 of 3
(847 Views)
Solution
Accepted by topic author OnlyOne

Hi One,

 


@OnlyOne wrote:

Is it correct that the rest of the vi should execute unchanged, only a different connection string?


Basically yes!

 

Read the manual of your device! Sometimes the device expects a (different) TermChar for serial communication…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 3
(825 Views)

Additionally, you may have to set the serial port settings such as Baud Rate, number of data bits, number of Stop Bits, parity, etc.  But other than the setup, you should not have to change anything else in your VI.  As already stated, that does depend on the instrument, but I don't think I have found one that uses a different command structure between the different interfaces.  This is especially true for instruments that use SCPI.


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 3
(815 Views)