11-08-2012 05:25 PM
Hi every body,
I'm using LabView to create a simple READ and WRITE VISA Serial for MKS 146. I typed in the WRITE buffer a commend @6081?CR which mean asking the pressure at the sensor, I received in the READ buffer a message was @6081:E111 which mean wrong syntax commend. I think I just followed exact commend in the instruction manual. Any body know what my mistake was and how can I fix it?
11-08-2012 05:58 PM
11-09-2012 03:39 PM
whatever commend I typed in the Write Buffer, it just answered that wrong syntax commend
For example:
commend @6011?CR answered @6011:E111
commend @60811:OFFCR answered @60811E111
Any body was sucessfull communicate to MKS-146 throught LabView, Please help!
Attached are the MKS-146 commend category and Simple Visa Read/Write which I created (but could not communicate to MKS)
11-09-2012 05:40 PM
As Albert explained, you have to first right click on the string control and select '\' Code Display and then enter \r to get a CR. Typing CR itself does nothing except send the characters 'C' and 'R' instead of the actual escape code.
You did not attach anything. Also, There are drivers for other MKS products (i.e. MKS 647C) available from NI's instrument driver network. Did you look at any of them?
11-12-2012 03:42 PM
Thanks for the reply. Dennis- that makes sense and so I followed your directions. I right clicked and selected "\" Code Display and instead of typing CR at the end of the command, I entered \R. I did look at the the driver page on NI's page but there isnt any drivers for MKS 146 Vacuum Training System. Do you have any suggestions on what else we could try to get this to work?
When I send @6081?\R========== E11 comes up in the read window, which according to the manual means it is an unrecognized command due to the command syntax being incorrect. Should checksum be enabled or disabled? Should the write buffer string be converted in order for the instrument to recognize the command? We are complete newbies and would appreciate your help on this!
I have attached the project as well, maybe that will help...
11-12-2012 04:11 PM
The VI you posted does not have the control set for '\' Codes Display. And, if you entered \R instead of the \r that was said, that is also incorrect.
Since the checksum is optional, you can skip that. I would suggest you try a program such as Hyperterminal before writing any code yourself and before you write any code yourself, use one of the shipping examples for serial communication. You need to verify the com settings and the type of serial cable is correct. There are two types - null modem and straight through.
11-16-2012 03:05 PM
Hello there,
I have some VI which were created by LabView 4.0 and 5.0. They already converted into LabView 2010. When I opened it, I saw some palates like 146-INITIALIZE, 146 TRANS, 146-CLOSE. I want to use them but I could not find them in plalates' LabView 2010. Does LabView not support for those palates any more? What should I do if I want to use them? Attached is the file which I saw them. (go to 146xtra\hello world source)
11-16-2012 03:31 PM
In order for functions to appear on a palette, you must install them onto the palette manually or place them in the correct folder. You don't mention doing either but not having them on a palette will certainly not prevent you from using them. You just have to browse to where ever you did install them.
Look at Tools>Advanced>Edit Palette set for customizing your palette.
11-16-2012 04:07 PM
Sorry Dennis for not mention clearly. A friend sent that VI to me so I don't know where he got that. I tried to browse it (146-initialize, 146-trans) in pallete browse but they did not show up. Maybe I don't have them in the libary!
11-16-2012 06:56 PM