LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA test panel works but VISA Write does not.

Hello. I am using LabVIEW 2023 and I want to automate which includes an optical copper and a monochromator. I used the commands provided in the manual which works with the VISA Test panel but does work with VISA Write. I enabled the termination character to 13, for carriage return (\r), in VISA Configure Serial Port and even enabled " '\' Codes Display " for the string of  VISA Write but still it doesn't work.

 

I am using a USB connection (USB A to USB B)

 

I have attached one of my basic code where I want to run the chopper, for which the command is " enable=1 + carriage return ". I have also attached the manual of the chopper just in case.

 

Can anyone please help me out with this?

 

Download All
0 Kudos
Message 1 of 3
(105 Views)

According to the manual to attached (thanks) and the very tiny code snippet, it should have worked, but how would you know?  You only send an "enable=1\r" command to "some unspecified port", and then quit!  I didn't read enough of the manual to know what to expect, but I assume that the device would respond with an acknowledgement that you could observe with a VISA Read.

 

I should have bookmarked it, but there is an excellent video out there by Tim Robinson on how to (properly) use VISA.  [Found it -- search for "Reading VISA in LabVIEW Tim Robinson", and it will take you to the video in the LabVIEW Wiki].

 

Bob Schor

0 Kudos
Message 2 of 3
(40 Views)

I suggest you watch this video: VIWeek 2020/Proper way to communicate over serial 

 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 3 of 3
(16 Views)