From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
06-27-2014 04:24 AM
Hello Everyone,
I am Using MKS Mass flow controller(type MF1 see the attachment) and instrument has USB setup interface and USB process interface, the problem is that I can recognise the device in NI-max as serial and I used the VISA example to send the ASCII message but in return I am not getting any response. I am stuck and everything is coming to squareone.
Anyone can help me as where I might be going wrong.
06-27-2014 08:07 AM
@pari89 wrote:
Hello Everyone,
I am Using MKS Mass flow controller(type MF1 see the attachment) and instrument has USB setup interface and USB process interface, the problem is that I can recognise the device in NI-max as serial and I used the VISA example to send the ASCII message but in return I am not getting any response. I am stuck and everything is coming to squareone.
Anyone can help me as where I might be going wrong.
Is baurdrate, etc. set up correctly?
06-27-2014 08:08 AM
06-27-2014 08:11 AM
I programmed a very old MKS MFC a long time ago. It was a very bad interface and I hope that they have updated it. If you have the baud rate, number of stop bits and data bits and parity correct then it may be the command terminator character. I remember something funky about needing that as part of the command string.
06-27-2014 08:22 AM
yes the baudrate is set to default 115200 with parity none and data bit 8 , stop bit 1
for writing I am using byte to array combination and concatenating it with CR and wire it to the write terminal
for reading i am jst connecting a string. I suppose in reading I should get the value bt it showing error as " timeout before reading"
06-27-2014 08:30 AM
aper the manual I have to send @01--as address C--command which can change, 1.00000---value to set CR- carriage return
so it becomes "@01C1.00000 and CR
06-27-2014 08:32 AM
Are you addressing it correctly? What is the exact string you are sending. This is an RS-485 emulation so you need to address each device on the serial bus which has a master/slave kind of addressing scheme.
So each command needs to be prefaced with "@XX" where XX is a two byte ascii reprsentation of the device address as set by the high and low rotary switches. This is followed by 1 byte command and then an optional value.
You should probably create this as a string not a byte array.
06-27-2014 08:42 AM
I guess we are cross posting.....
The "C" command does not take a value. So "@01C1.0000\r" is an invalid command but you should get an error.
What about the communication indicator lights? I assume this device is showing up as a serial port correctly and can be opened and the port name read as a property?
Is the "OP" status LED showing activity? I think it should.
06-27-2014 08:43 AM
yes I think you are right bt what about reading if it has to read the same kind of ASCII code
06-27-2014 08:46 AM