LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Communication with VWR balance using LabVIEW and VISA

Im trying to connect to VWR balance using visa. Its works just fine in C# but when I try to convert the code to LabVIEW its does not work

The c# setup is:

port= new SerialPort("COM4",9600, Parity.Odd,8);
port.DtrEnable = true;
port.RtsEnable = true;
port.Handshake = Handshake.XOnXOff;

 

in LabVIEW :

snip.png

Any suggestions?

0 Kudos
Message 1 of 6
(1,138 Views)

Hi Michael,

 


@Michael.Koppelgaard wrote:

Any suggestions?


Please explain what exactly "does not work"…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(1,129 Views)

I'm noget getting any data from the VISA READ buffer

0 Kudos
Message 3 of 6
(1,120 Views)

Any error on the error cluster?

Do you get something if the lenght if 1 instead of 100?

0 Kudos
Message 4 of 6
(1,087 Views)

No error on the error-cluster. And I can’t explain why but now it works😊

0 Kudos
Message 5 of 6
(1,041 Views)

Also show the C# code that actually sends the command, and enable the "Display Style" glyph on the string constant in LabVIEW if you really have to post an image/snippet, or post the VI instead, preferably backsaved to LabVIEW 2018 or similar.

Rolf Kalbermatter
My Blog
0 Kudos
Message 6 of 6
(1,029 Views)