LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error at Configure Serial Port at Property Node(arg 17)

Solved!
Go to solution

Dear all,

 

i try to connect with an old temperature measurement device. I use an USB-RS232 Apdater.

I was able to read out the temperatures with the Visa Test Panel from the NI Max, after i tried several different settings.

Sending_receiving.JPG

So i tried to copy the attributes from the NI Max and set them also in the Configure Serial Port.vi

In the end i have a problem with the Property Node(arg 17). This is the setting in the NI Max:

Attributes P515.JPG

Here are the settings in the Labview.vi ; the numbers of the property node i hope are right?!Her

Configure Serial.JPG

Here you can see the error in the Labview program. 

Error Init.JPG

I tried also the other possible settings at arg 17 but i always get this error code.

Can someone help me with that? Why there are this differences in VISA test panel and Labview?

 

Best regards

0 Kudos
Message 1 of 5
(2,576 Views)

You are setting too much properties. Use the VISA Configure Serial Port.vi.

I never needed anything else in the last 14 years.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 2 of 5
(2,560 Views)

Hi Paolo,

 

thank you for you reply. At the beginning i was trying it like your propose; in Labview and also in VISA test panel. 

Read out was in both programs not possible, but i got no error with VISA Configure Serial Port.vi

 

I got this device with a short description:

.BaudRate = 2400

                .Parity = IO.Ports.Parity.None

                .DataBits = 8

                .StopBits = IO.Ports.StopBits.Two

                .DtrEnable = False                          ' PIN 20 = -12V, DTR (PIN 4 SUB-D9)

                .RtsEnable = True                           ' PIN  4 = +12V, RTS (PIN 7 SUB-D9)

                .Handshake = IO.Ports.Handshake.XOnXOff

                .WriteTimeout = 2000

                .ReadTimeout = 2000

 

It is important to set DtrEnable and RtsEnable right.

 

The original communication with this device was done with visual studios.

 

So i think i have to set more properties to be able to talk with the device....

0 Kudos
Message 3 of 5
(2,551 Views)
Solution
Accepted by topic author hansgeorg

Then use the properties to set the DTR and RTS states.  But don't set all of them.  Apparently your serial port doesn't like the RS-232/DTE setting, so you should definitely NOT try to set that property.

0 Kudos
Message 4 of 5
(2,543 Views)

You are right... i was only pulling out arg for arg of the property node and not setting the args which i needed.

Now i set it right and read out is working well.

 

Thank you for your help!

0 Kudos
Message 5 of 5
(2,529 Views)