LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

acton serial

hi, I have the same spectrapro 500 and tend, to connet it as Juanni had made with the RS232 port . As noticed in the usual manual I used the cables and connection. The main problem is that I can’t receive any data from the device. In order to communicate with, I use the Visa without any success.

Do you have any idea on the origin of my problems.
0 Kudos
Message 11 of 16
(1,447 Views)

Can you communicate via the Acton software?  Have you tried communicating with hyperterminal?  I had good luck communicating via hyperterminal, but no luck with visa for quite some time.  You say that you cannot receive info from the mono... I seem to remember having this difficulty.  Does the grating respond if you tell it to go to a wavelength?  I wrote a vi to scan mine, but it is quirky and on an old computer with an old version of labview.  Among the quirks that I remember:

1) don't forget that the serial communication is case sensitive (you have to use all caps).  Hyperterminal seems to take care of this for you, but you have to do it yourself in labview

2) I couldn't make the /n codes work in the serial com, so I had to append the carraige return character using concatenate strings and the CR character on the strings palette

3) sometimes it took longer than others for the controller to return the OK response (depending on the command/query), so I just made a VI that looped reading the port and checking the string for "OK".  I seem to remember a few random spots where I had to throw in a couple of ms of delay to keep things from hanging

If you don't have any luck, I can post my VI, but it is really quirky.  Good luck with getting any help out of PIActon with such an old instrument. 

J



Message Edited by juanni on 05-14-2008 10:54 AM
0 Kudos
Message 12 of 16
(1,444 Views)


juanni wrote:

2) I couldn't make the /n codes work in the serial com, so I had to append the carraige return character using concatenate strings and the CR character on the strings palette



Remember that if you use slash codes, they should show up as /n if you have the constant set for / codes display  (right click menu).
 
/n is the new line or linefeed character (ASCII decimal 10 hex 0A).  /r is the carriage return character and is ASCII decimal 13 hex 0D.
0 Kudos
Message 13 of 16
(1,439 Views)

one other issue I just remembered:

4) I threw in a few random visa "reads", (e.g. after opening the visa serial) since the whole thing stopped up if I didn't get a message from the controller.  This is probably just my ignorance of serial com, not a quirk. 

0 Kudos
Message 14 of 16
(1,435 Views)
Is there anyone could share the vi of SP-150? I read the manual, but couldn't understand how to use the command ? Thanks a lot!
0 Kudos
Message 15 of 16
(1,335 Views)

i have some trouble as you...

juanni , can you post your vi for me?  thanks a lot

0 Kudos
Message 16 of 16
(1,305 Views)