LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to receive message back from yokogawa

Hi,

I would like to get the torque and the speed from yokogawa wt1800 for my test bench for frquency conveter controlled asyunchronous machine.

 

I am unable to get it from the preset as it is not present there. I tried sending a string to yokogawa to return torque and speed but i am not getting any response from yokogawa it is not returning anything. the connection is made as i can get other values from the yokogawa but not this one 

 

i would leave pictures so you can see what i am talking about.

 

Thanks in advance.

 

Carmihaleo_0-1625130025783.png

 

Carmihaleo_1-1625130073558.png

 

0 Kudos
Message 1 of 10
(3,731 Views)

You are not allowing any time for the Data to reach the Yokagawa instr.
Let alone for it to be processed for a response.
Check the manual and I suspect you will find you need to allow 100ms or something like that between sending a cmd and reading the response.
(Also check to see what the error code you are getting back means - Help > Explain error in the LabVIEW window)

CLD; LabVIEW since 8.0, Currently have LabVIEW 2015 SP1, 2018SP1 & 2020 installed
0 Kudos
Message 2 of 10
(3,706 Views)

Hi James,

 


@James_W wrote:

You are not allowing any time for the Data to reach the Yokagawa instr.
Let alone for it to be processed for a response.


The error already comes from VISAWrite - so it's not related to response time of the Yokogawa.

 


@James_W wrote:

(Also check to see what the error code you are getting back means - Help > Explain error in the LabVIEW window)


Yes, definitely! You even could show us the full error number…

 

Does the command string include the TermChar expected by the device?

Can you ping the device on that IP address?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 10
(3,693 Views)

Why don't you download the LabVIEW drivers for your WT1800?

 

There are Vi's for configuring speed and torque measurements as well as VI's for retrieving measurements form the instrument.   

 

Even if you don't want to use the pre-fab VI's, you can use them as an example of how to properly use the instrument's SCPI commands.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 4 of 10
(3,649 Views)

Hey thank you i will try that 

but like this is the error code there below

Carmihaleo_0-1625216720247.png

 

0 Kudos
Message 5 of 10
(3,622 Views)

yes i can ping the device to that ip address cause i am able to comunicate with the yokogawa and get results from another VI

0 Kudos
Message 6 of 10
(3,618 Views)

Hi Carmihaleo,

 

well, the "session connection has been lost"…

 

Did you close the connection somewhere/somewhen?

How do you call the shown (sub)VI?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 10
(3,604 Views)

Hey,

I have not closed the connection at any time 

0 Kudos
Message 8 of 10
(3,539 Views)

@Carmihaleo wrote:

Hey,

I have not closed the connection at any time 


You haven't really opened it either. While that usually works with VISA it may be useful to do an explicit VISA Open first before attempting to communicate with the device. Or just use the instrument drivers Initialize VI.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 9 of 10
(3,535 Views)

Thank you! I just used  the instrument drivers Initialize VI and the error went away now i am wondering how to get the torque out 

0 Kudos
Message 10 of 10
(3,530 Views)