Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

LEP MAC 5000 controller vi

Does anyone here use this system ? We are trying to build our own program, however, the commands cannot be recognized by this equipment, even the communication port is working.

 

Thank you very much.

 

 

0 Kudos
Message 1 of 16
(5,249 Views)

Hi yqgao,

 

How are you trying to communicate with this device? GPIB? Serial?

 

What hardware do you have to accomplish this?

 

How are you currently sending the commands?

 

What are you building the program in? LabVIEW? What version?

 

Have a great day,

 

Chris

Applications Engineer
National Instruments
0 Kudos
Message 2 of 16
(5,237 Views)

Thanks for your reply. We use USB-RS 232 converter, Labview 8.6 on Win 7 (64 bit). We have an old version labview vi's from the company, howeve, this is not easy to read. The Port can been seen from MAX, and run basic serial prot write and read is ok, MAC 5000 was set low(not exactly sure).

0 Kudos
Message 3 of 16
(5,233 Views)

In this case you need serial (visa) drivers. That it is a usb connection is irrelevant except when it has an incomplete driver.

greetings from the Netherlands
0 Kudos
Message 4 of 16
(5,222 Views)

I have installed USB-SR 232 driver, if I unstand the word "driver"right.

0 Kudos
Message 5 of 16
(5,219 Views)

Hi

 

The real problem with serial is, most of the time anyhow, cabling and portsettings.

Do you have tested with a straight and a cros cable? And are you sure that endcharacter, baudrate and other settings are correct?

greetings from the Netherlands
0 Kudos
Message 6 of 16
(5,215 Views)

Hi yqgao,

 

What Albert is referring to are the VISA drivers that can be downloaded from here: http://www.ni.com/nisearch/app/main/p/bot/no/ap/tech/lang/en/pg/1/sn/catnav:du,n8:3.25.123.1640,ssna...

 

And I agree, it's important to make sure that the cabling is all correct so make sure that all of those settings (end character, baud rate, etc.) are set correctly according to the MAC 5000 manufacturer specifications.

 

Have a great day,

 

Chris

Applications Engineer
National Instruments
0 Kudos
Message 7 of 16
(5,203 Views)

Thank you for the reply, however, I could not find the driver before I posted it here. As the company replied, they stopped using Labview in their development for long. The .llb labview files they offered are based on labview 4.0.  Finally some helpedm me upcovert them into 8.2 (thanks to the thread about upconversion in this forum). The write port is not visa address, and some vi's are not inside the 8.6, I tried to replace these vi's with VISA, no luck yet. Does anyone help me?

0 Kudos
Message 8 of 16
(5,193 Views)

All of the VIs are in either the llb or in 8.6. The lowest level serial functions are actually wrappers around VISA functions. You have not shown your attempt to replace the old serial functions so I don't know what to say.

 

The old serial functions used port 0 to refer to Com1, port 1 was Com2, etc. Be sure to set the values in MAC2000 Globals.vi to match what you have before running anything.

0 Kudos
Message 9 of 16
(5,184 Views)

Hi yqgao,

 

Could you restate the problem you are having now?  The Library seems to open up just fine for me and everything seems to be in order.

 

Have a great day,

 

Chris

Applications Engineer
National Instruments
0 Kudos
Message 10 of 16
(5,167 Views)