12-03-2019 10:53 AM
Dear LabVIEW programmers,
A friend asked me to help him to setup RS232 communication with an MKS PR4000B single channel pressure sensor controller. The problem is that, recently I have very limited time, I do not have access to the device, and testing through phone is a bit slow 🙂 I have found some old discussion threads about this model, but it did not really help much so far. Well, my capabilities are very limited lets say 😉
Therefore I ask for some help: has anyone dealt with this MKS model in the past? I used a lot the "F" dual channel subversion, which has a very simple RS232 comm protocol, and easy to use. However, this S-model protocol confuses me. We already tried different commands to send to the device, and no success so far (like using the "!" 0x21 command in different combinations). We used MAX to test the comm, and the settings are correct, the device replies with "\r", meaning could not parse our sent commands. I have attached the manual in pdf, the relevant part comes from page 45.
The required action is very simple: we just need to read out the single pressure transducer readings in a loop.
Thanks for any help or hints! 🙂
Solved! Go to Solution.
12-04-2019 04:06 AM
Ok, after some more search in the forum, I have found the solution:
https://forums.ni.com/t5/LabVIEW/Command-syntax-for-PR4000B/m-p/1818401/highlight/true#M624343
We need to send a "%1" command first, to activate ASCII mode. An undocumented feature, pfff 😄
What is strange that, using NI MAX we still cannot make it work via the VISA Test panel (all settings are ok, term char set to CR). However, PuTTY worked, typing in "%1" then Enter, then "$" and Enter nicely displayed the measured pressure value. Lost some time due to MAX (i helped friend via phone/chat), next time I start testing with only using PuTTY.
Tomorrow a LV VI will be tested, if it works, I will mark this post as solution (solution from the above link).