LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

SCPI command check

Solved!
Go to solution

Vijay, most of us don't just upgrade to the latest LV version for work reasons, you can assume that majority of the audience have at least LV2016 installed, if you share any VI in the latest version, they CANNOT open it.

 

I would recommend saving the VI in 2016 so that a larger audience can open and provide feedback.

-Santhosh
Semiconductor Validation & Production Test
Soliton Technologies
NI CLD, CTD
LabVIEW + TestStand + TestStand Semiconductor Module (2013 - 2020)
NI STS for Mixed signal and RF
0 Kudos
Message 11 of 26
(216 Views)

Hi,

 

Thank you so much for your reply. I am attaching my LV code of earlier version, could you please check and let me know your valuable suggestions on my code. Looking forward to hear from you soon.

 

Thanks

Vijay

Download All
0 Kudos
Message 12 of 26
(193 Views)

Your implementation should be functional (implementation is simple enough for any VISA based read/write), the actual loop implementation could have been made efficient by using an event structure so that you don't perform read/write operations too frequently (some devices do not like that and may not keep up with providing replies).

 

Were you able to establish communication using Interactive VISA control? - https://zone.ni.com/reference/en-XX/help/370131S-01/ni-visa/interactivecontrolvisa/

 

-Santhosh
Semiconductor Validation & Production Test
Soliton Technologies
NI CLD, CTD
LabVIEW + TestStand + TestStand Semiconductor Module (2013 - 2020)
NI STS for Mixed signal and RF
0 Kudos
Message 13 of 26
(181 Views)

Hi,

 

Yes with the help of "NI MAX2" and "Interactive VISA control" trying to establish a communication between Gaussmeter and PC. I am concerning about the code. Could you please check code, will it be possible to read data continuously with SCPI command via RS232 with my code. 

 

Thanks 

Vijay

0 Kudos
Message 14 of 26
(152 Views)

Hi,

 

Yes with the help of "NI MAX" and "Interactive VISA control" trying to establish a communication between Gaussmeter and PC. I am concerning about the code. Could you please check code, will it be possible to read data continuously with SCPI command via RS232 with my code. 

 

Thanks 

Vijay

0 Kudos
Message 15 of 26
(151 Views)

Hi,

 

I am trying to establish a communication between gaussmeter and pc with RS232. I have installed the RS232 driver information (CD) on my PC. When I opened the NI max, its not detecting the device just its showing something has connecting but not the exact device. I have done NI troubleshoot for your reference I am attaching the figures. Could anyone please assist me regarding the NI MAX.

 

Thanks & Regards

Vijay

Download All
0 Kudos
Message 16 of 26
(152 Views)

Hi vijay,

 

there is a "COM3" serial port shown in your MAX screenshot: this is all you need for your RS232 communication!

Best regards,
GerdW


using LV2020 on Win8.1+cRIO
0 Kudos
Message 17 of 26
(143 Views)

Hi Vijay,

 

Looks like you opted to duplicate the topic on another board.

 

Anyway, RS232 shows up as COM port - that is good, beyond that, typically VISA tries *IDN? query to detect the instrument looks like the instrument did not respond back to that command.

 

Have you verified that the RS232 cabling or convertor you use is functional? Does your device come with any software to test with?

I would suspect that the TX and RX might have been swapped.

-Santhosh
Semiconductor Validation & Production Test
Soliton Technologies
NI CLD, CTD
LabVIEW + TestStand + TestStand Semiconductor Module (2013 - 2020)
NI STS for Mixed signal and RF
0 Kudos
Message 18 of 26
(141 Views)

An instrument MUST BE IEEE488.2 compliant for NI-MAX to identify it.

 

Because NI-MAX uses the IEEE 488.2 common command #IDN? to identify instruments.

 

So your device will probably not show up anything but a Com port.

 

You can give your instrument a VISA Alias to make it "show up" as something you recognize  in NI-Max and the VISA resource drop downs in LabVIEW

 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 19 of 26
(137 Views)

Hi Santhosh,

 

Thank you so much for your reply, I was trying to communicate directly with RS232 cable (Gaussmeter to PC). Since, I have read the Gaussmeter IGM11 manual, I got to know that I have to use Null modem cable for direction communication to computer. Actually, I was trying to communicate directly with RS232 cable without using Null modem cable. Does it the reason for not detecting the device. 

 

"Could you please let me know do I need to use Null modem cable+RS232 cable"?

 

Yes, the device come up with software to test with Ethernet and US. It works and getting connected with those interface. I am concern about RS-232 cable since I have to send SCPI commands to read continuous data from the Gaussmeter so that's why I preferred to use VISA.

 

Could you please let me know your response. Looking forward to hear from you soon.

 

Thanks 

Vijay

0 Kudos
Message 20 of 26
(53 Views)