07-11-2019 05:20 AM
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.
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:
Here are the settings in the Labview.vi ; the numbers of the property node i hope are right?!Her
Here you can see the error in the Labview program.
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
Solved! Go to Solution.
07-11-2019 06:09 AM
You are setting too much properties. Use the VISA Configure Serial Port.vi.
I never needed anything else in the last 14 years.
07-11-2019 06:24 AM
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....
07-11-2019 06:55 AM
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.
07-11-2019 07:16 AM
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!