Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

temperature control in Labview using serial communication

I don't understand how you were doing the NI Hyperterminal/Loopback test at all. You HAVE to short the pins. It doesn't make any sense to do it any other way.

If you tried using Hyperterminal to communicate to the instrument, are you sure that one of the cables matches what the vendor specifies? One of the major reasons I mentioned using Hyperterminal is that you can (and probably should) contact the vendor and explain your problems. A lot will have nver heard of LabVIEW but they should all now how Hyperterminal works. I treally doesn't make a lot of sense trying LabVIEW until you can get Hyperterminal to work.

0 Kudos
Message 11 of 17
(1,947 Views)

Hi

 

I did the loopback test by shorting the pins 2 & 3 of DB 9 connector.

 

It gave me expected results.

Please tell me how to proceed further.

I tried to send commands to Power supply through measurement & automation explorer'r VISA test panel.

 

I tried to set voltage of power supply. But i was not able to.

 

To set the voltage, i used commands given in power supply reference manual.

I tried these commands through  vi write  window.

 

Please guide me.

 

Vaibhav

0 Kudos
Message 12 of 17
(1,912 Views)
Now that you know that the serial port in the pc works, you need to go back to something like Hyperterminal to verify the com port settings and that you are using the correct cable. Do you have an electronic copy of the programming manual that you can post? That would help a great deal. And, as I mentioned earlier, it would be worthwhile contacting the vendor to see what they have to say about your inability to communicate with it. It really does not make any sense to mess around with any LabVIEW code until you can get Hyperterminal to work. MAX is orkay but I have no idea how you are using it. You may not be sending the correct termination characters. In the VISA test panel, there is a \n. Are you sending that? Did you try with a \r? Did you try it with a \r\n? These are CR and LF characters and you probably need to send them. Hyperterminal does this for you. That's one of the reasons I think a beginner should should do the basic troubleshooting there.
0 Kudos
Message 13 of 17
(1,907 Views)

Hi

Please review the following links

http://www.lambdapower.com/ftp/Manuals/zup_usermanual.pdf

http://www.lambda-hp.com/product_html/drivers.htm.

 

I am using brand new cables procured from manufacturer of power supply. Hyper terminal test is sucessful.

I have tried to use commands ending with \n & \r . But i am not able to talk to power supply.

 

Please guide me.

 

 

0 Kudos
Message 14 of 17
(1,898 Views)

Glad you got Hyperterminal to work. Do you know why it would not work before?

Well, one of those links has LabVIEW drivers. Have you downloaded those?

If you are writing your own code, you need to post what you've written. It's important that you send control characters in the correct way. You cannot simply enter in a \n or \r into a normal string control. Fro a string control, you should right click on it and select '\' Codes Display. Best thing though, is to try the driver.

0 Kudos
Message 15 of 17
(1,895 Views)

hi

 

I am already having drivers.

 

I need instructions for using them.

 

Thats why i forwarded the link to you.

I am begineer as far as LABVIEW is considered.

 

Vaibhav

0 Kudos
Message 16 of 17
(1,889 Views)

1). There is a readme that comes with the driver.

2). Read what a driver is and how to use it at http://www.ni.com/devzone/idnet/

3.) Start with something simple. There is an Initialize function. This sets up the com port and addresses the instrument. It then issues a *IDN? query to the instrument and reads the response. Run this VI and see what happens.

0 Kudos
Message 17 of 17
(1,885 Views)