LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

To connect a Power Supply over RS-232 in LabView

do you have a possibility to convert the codes to LabView 7.0 , I couldn`t see them.

thank you very much




Message Edited by Support on 11-09-2007 08:31 AM
0 Kudos
Message 11 of 23
(1,987 Views)
Dear CE,

I have save the VI with options. You must be able to open it with LV 7.0.
I have tested the VI it works.

Best regards

SebastianN
NI Germany
0 Kudos
Message 12 of 23
(1,982 Views)
Dear Sebastian,

Thanks for the convertion of the code. Since I am using an serial connection ( RS-232 ) , I need to change the connection type from GPIB to RS-232.
Is it possible to use VISA to change ? or which programm should I use ?

best regards



Message Edited by Support on 11-09-2007 08:31 AM
0 Kudos
Message 13 of 23
(1,978 Views)

@C.E wrote:
The specific power supply is from Agilent`s ,why do i need also drivers from NI ?
So far that you know what I am trying to do, please tell me what I exactly need.(softwares and drivers)




You actually don't need both sets of drivers. I haven't installed the Agilent drivers, so I don't know what they include. But I do know that if you install the drivers from the NI site, you should be able to do everything you need to fairly simply. It also includes example applications so you'll have a starting point.

My best advice right now would be to just give the NI drivers a try and see if you can get what you want.

Ed


Ed Dickens - Certified LabVIEW Architect
Lockheed Martin Space
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
0 Kudos
Message 14 of 23
(2,071 Views)
Hello,

I could open the file converted by Sebastian in LabVIEW 7.0 without problems.
I think he used File --> Safe with Options to downgrade the VIs.

For example you can change the VISA-Session from "GPIB::5" to "ASRL1::INSTR" to communicate with serial port.

Matthias K
0 Kudos
Message 15 of 23
(1,963 Views)
Hello Matthias and dear friends,

to send/recive data from my Agilent DC Power Supply , I first run "IO Config" from IO Libraries Control . There I choosed COM1 which is connected to my device with a RS-232 cable (COM1 - ASRL1) . was succesfull.

after this I run the "VISA Assistant" , the name is already assigned as string (ASRL1::INSTR) . But the rest configuration ( given in the attachment picture ) , I couldn`t manage to do. What did I do wrong ? Must I configure sth. else ?

My aim is just to write "hello" on my device ! please help...

with Best Regards



Message Edited by Support on 11-09-2007 08:31 AM
0 Kudos
Message 16 of 23
(1,945 Views)
Dear Edwin Dickens,

when I run Assistant for Instruments in LabView , and want to write hello on the devices display , this error message appears.
You have an idea , why ?

Best Regards




Message Edited by Support on 11-09-2007 08:32 AM
0 Kudos
Message 17 of 23
(2,044 Views)
Hello,

please have a look at the NI Example Finder (Help --> Find Examples) "IO --> Serial" and open "Serial Communication.vi". This is a simply vi in which you can write a string to a com port and recieve the answer of the device. You just have to know a command which your device will answer. You also can write "hello" and have a look what happens. In this example have a look to the "VISA Configure Serial Port.vi" for the correct settings.

Matthias K
0 Kudos
Message 18 of 23
(1,875 Views)
You should not have run the VISA Assistant. All you should have to do is run the driver you downloaded from NI or use the Instrument I/O Assistant in LabVIEW. In one of your other posts, you shown a screen shot from the assistant with an error code. You may have gotten the error because the resource (com1) was being used by another program. This may be something like Hyperterminal or the driver you got from Agilent. I would suggest that you start from the beginning. Close everything and use Hyperterminal to talk to the instrument. Send the command. If this works, then you know the serial cable and communication parameters are correct. Once this works, try the Instrument I/O Assistant to do the same thing. Once this works, you should try either the NI driver or one of the examples that other's posted. Any of the drivers (NI or otherwise) may need to be modified if they were originally written for a GPIB instrument. Most GPIB instruments do not require a termination character. Serial instruments do. Besides changing the VISA resource name to ASRL1::INSTR, you may also have to append the termination character to each VISA Write. The simplest way to do this is to use the correct constant that you can find on the string palette.
0 Kudos
Message 19 of 23
(1,934 Views)
Dear Dennis Knutson,

the thing is I really don`t know which programms actually I need to use. You mean the drivers from Agilent DC Power Supply or which one ?

So I want to start from the beginning, lets consider that now I just have; LabView 7.0 (evolution version) , a serial cable and Agilent E3631A DC Power Supply.Since my version is Evolution Verion of LabView and it is ending tomorrow, I will uninstall everything right now , and begin the whole proccess again

What I do I need now ? please tell me step by step from the beginning , up to now alot of friends wrote my answers , but non of them were concrete.

You know, I just want to send "hello" in the display of the device. Since now with what I did ,I always get RS-232 framing error, which I don`t know what it means.
It is my first time that I work with LabView and also the first time controlling a device via computer.

do I need Agilent IO Libraries Control ?
do I need MAX ?
do I need VISA ?
do I need IVI ?
do I need VXIPNP ? ( what is it for ? , has sth. to do with VISA? )
what do you mean by Hyperterminal and termination chracter ?

Thank you very much for your help, I REALLY need it, so far there is no body in my firm who can help me.

With Best Regards



Message Edited by Support on 11-09-2007 08:32 AM
0 Kudos
Message 20 of 23
(1,928 Views)