Instrument Control (GPIB, Serial, VISA, IVI)

取消
顯示結果 
搜尋替代 
您的意思是: 

MITUTOYO DIGIMATIC INDICATOR RS232 COMMUNICATION

已解決!
前往解決方案

I am trying to communicate With Mitutoyo Digimatic Indicator Model: 543-564E, using RS232 communication for that i am using standard Cable from Mitutoyo Model: 21EAA131.

i have tried with hyper terminal it is giving proper response to all commands. but when i am reading this device from NI MAX VISA it is giving error (Hex 0xBFFF001D) The specified Attribute is not defined or supported by the reference resource.

i have done all setting in MAX as given in the manual : Baud rate: 9600,Data bits: 07, Stop bits: 02, Parity: Even

please reply with the solution if anyone has used this combination with running code.

 Thanks!

0 積分
1 條訊息(共 7 條)
7,753 檢視

Hi

2 possibilities:

1) Did you add a Cr or Lf in Max? Sometimes people forget this and sometimes the instrument needs it.

2) Hyperterminal is slow in sending out characters (and always adds CR and LF). I've solved communication problems a few times by sending strings in LabVIEW byte by byte instead of a full string.

But I never did this in MAX. I used the serial communications example for that.

greetings from the Netherlands
0 積分
2 條訊息(共 7 條)
7,751 檢視

Thanks for your reply, can you please send me example code for this device that will resolve my problem, i have tried all possible combination with CR and LF.

0 積分
3 條訊息(共 7 條)
7,742 檢視

I don't know this specific device but you should try the Continuous Serial Write and Read.vi.

In my 32 bit LabVIEW 2017 version it can be found as:

C:\Program Files (x86)\National Instruments\LabVIEW 2017\examples\Instrument IO\Serial\Continuous Serial Write and Read.vi

This vi although not perfect can help you communicate in the same way as the hyperterminal.

The only thing it does not is send a cmd byte by byte but that is easy to handle.

Use the attached subvi instead of the normal visa write:

.

greetings from the Netherlands
0 積分
4 條訊息(共 7 條)
7,729 檢視
解決方案
接受者 anujsaini
5 條訊息(共 7 條)
7,725 檢視

i have tried with that example already, program is running with no error but data output is not received.

0 積分
6 條訊息(共 7 條)
7,713 檢視

Hi albert i have tried that example also, when i am writing command GA00\r to digimatic indicator it reply 15 byte data, CH01, Error 52, but instrument data not received. i have tried all combination of command but received same error.

Thanks..

0 積分
7 條訊息(共 7 條)
7,711 檢視