Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

mks 146

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?

Download All
0 Kudos
Message 1 of 12
(4,525 Views)

probably the CR should be a real carriage return

If you show \codes in your string display you can type  \r meaning CR

 

greetings from the Netherlands
0 Kudos
Message 2 of 12
(4,520 Views)

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)

0 Kudos
Message 3 of 12
(4,505 Views)

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?

0 Kudos
Message 4 of 12
(4,501 Views)

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...

0 Kudos
Message 5 of 12
(4,484 Views)

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.

0 Kudos
Message 6 of 12
(4,479 Views)

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)

 

 

 

0 Kudos
Message 7 of 12
(4,443 Views)

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.

0 Kudos
Message 8 of 12
(4,439 Views)

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!

 

0 Kudos
Message 9 of 12
(4,435 Views)
You don't understand. When I said browse, I meant by selecting the VI option and not searching your palette. Where did you place the llb?
0 Kudos
Message 10 of 12
(4,427 Views)