Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

cann't communcate with my serial port device?

Solved!
Go to solution

I am connecting E-753 controller of the Physik Instrument to controll the nanopositioning piezo stage through RS232 serial port, when  I communicate with the device using the interface that it comes with it is ok, but I couldn't manage to configure it through the MAE nor labview, when i tried to use Visa test panel I always receive return status  BFFF0015.

Please any help

 

Thanks

Aneece

0 Kudos
Message 1 of 17
(5,556 Views)
You will get a timeout for any number of reasons. You could have the incorrect cable, mismatched com settings between the pc and instrument, or you are sending an incorrect command. Since the provided software works, we can eliminate an incorrect cable. Double check the com settings that you are using in MAX and in LabVIEW. You have not provided any details on the commands you are trying to write so make sure the command is listed in the manual and that you are appending the correct termination character. Use a \n for a LF (LF) or \r for a CR (carriage return).
Message 2 of 17
(5,553 Views)

Thanks a lot for your assistance, I check already the boude rate and all setting, I tried visa write to send a command and when i excute i am getting return status 0, when i try visa read i get the error of timeout. i am following the commands that stated in the manual but i did not appended any thing to the command , e.g. i send POS? to read the position of the stage.

there is a command by default will come out when you open visa test pannel which is Identification *IDN?\n, i tried this also and i am getting the same result.

Message 3 of 17
(5,537 Views)
Solution
Accepted by Aneece
Thanks it is solved, it was due to a setting, now I tried to write and read using labview, so i couldn't manage to communicate, for the visa resource i wire only the port # COM1, shall I need to do the serial setting in order to get in through. please advice
0 Kudos
Message 4 of 17
(5,525 Views)
If your serial settings are exactly the same as the defaults in MAX, then setting them in your program is optional but recomended to use the VISA Configure Serial Port. Look at one of the examples (Help>Find Examples).
Message Edited by Dennis Knutson on 04-06-2009 08:02 AM
Message 5 of 17
(5,505 Views)

Hi Dennis,

I have already tried with Labview to communicate with the device with same as the defaults in MAX, but still cannot read, writing OK but reading error will be comming out. please advice

in additional, could you please click Here to go through it, your assistance will be highly appreciated

 

Thanks

 

Aneece

0 Kudos
Message 6 of 17
(5,443 Views)

I'm confused. You marked the question as solved. Are you or aren't you able to communicate to the instrument? If you are, what are you using to communicate? If it just fails LabVIEW, then what are you using there? One of the examples or code you wrote yourself? If it's new code, please attach it - the actual code and not an image. It may be a simple matter of you not sending the correct termination character.

 

Also, just because you don't get an error on a VISA Write, it does not mean that the writing is OK. You will seldom get an error on a write because there are few things that will actually cause an error. Sending something completely invalid to an instrument will not cause an error.

 

 

Message Edited by Dennis Knutson on 04-10-2009 11:38 AM
0 Kudos
Message 7 of 17
(5,440 Views)

Sorry to trouble you, it is solved with MAX, but not Labview, I was thinking no problem since MAX can communicate with the device, I have done the same setting in MAX with Labview but still getting error, i don't know how to attach file because no icon for attachment , please advice

 

Thanks

0 Kudos
Message 8 of 17
(5,426 Views)

Right below the message body is 'Add Attachments'.

 

It sounds like you might not be sending the correct termination character. You need to right click on the string control/indicator and select '\' Codes display if you want to send a \r or \n.

0 Kudos
Message 9 of 17
(5,416 Views)

Thanks Dennis, I assume that I am sending the correct termination character, please check my setting as it is in my attachment.

 

 

0 Kudos
Message 10 of 17
(5,413 Views)