Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

LEP MAC 5000 controller vi

Thanks for all your replies, I checked my replacement of all the "port input" into VISA's again. However, when run the initialization of MAC 2000, which is said to be the same command set as MAC 5000, according to the company support, it only runs in simulation mode.  Here are my questions related to the controls:

1. The manual says to switch to high level(command type) by sending two bytes 255 (byte 1) and 65 (byte 2), and inside the set high.vi they offered, it sends FF41 only, it is right? I modified to the "Set high_modified.vi" by following the two-byte signal, can you help me check if it is correct?

2.  The termination character is combined into the command, but no reply from the equipment (I sent SLINIT, which is used to initialize MAC 5000, no rely at all)

3.  The VISA read always timeout (maybe I should put it as No.1 to ask), even with a timeout control.

 

Please help

 

Yongqian

 

PS. The .llb is converted to LV 8.6, just in case you need it for the vi's I attached.

Download All
0 Kudos
Message 11 of 16
(1,582 Views)

Here is the LEP MAC 5000 programming manual.

0 Kudos
Message 12 of 16
(1,575 Views)

Hi ygao,

 

Can you communicate with your device using VISA test panels through Measurement & Automation Explorer?  If you are having trouble, that is the first place to start.

 

1) I did confirm that you have set up Set_High Modified.vi to output two U8 bytes.

2) I don't understand what the question is.

3) What are you expecting to read? Have you requested information from the device?  Again, this is where VISA test panels are helpful.

 

I browsed your code and it appeared that you were trying to set the baud rate over the connection.  Is this true?  You need to make sure you start out on the same baud rate as the device, otherwise it will not be able to understand the command to change baud rates.

 

Have a great day,

 

Chris

 

Applications Engineer
National Instruments
0 Kudos
Message 13 of 16
(1,564 Views)

Chris, thank you for your suggestion.

 

We want to send a command to see if it is sent, such as the position of stage, which is "where x" in high level(command type), so far no luck.

MAX can see the port and says this port working properly, but the read always gives error (timeout error, which has been addressed here in many threads). 

The baud rate is set to be the same as the equipment default settings.

0 Kudos
Message 14 of 16
(1,560 Views)

Hi yqgao,

 

Are you sure that your device is sending out data?  Does it support the *IDN?\n command?  Does this work properly?

 

Have a great day,

 

Chris

Applications Engineer
National Instruments
0 Kudos
Message 15 of 16
(1,551 Views)

I checked the cable we are using again,and found that the cable they described is null moderm RS-232, but the connections are different.  I made one cable with the connections they draw in the manual, and it works now, communication is fine. All my previous problems seem to be not talking to the equipment. Thanks ,Chris, your suggestions are very helpful. Now, I am back to do programming.  

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