jim85 Posted January 29, 2009 Report Share Posted January 29, 2009 Hi Guys, I want to control a stepper motor through PM341 controller via GPIB cable. Is anyone have sample coding or tutorials, which is help me learn and design the VI?? Regards jim Quote Link to comment
AnalogKid2DigitalMan Posted January 29, 2009 Report Share Posted January 29, 2009 Have you read the manual of the 341? If you did you would have realized that you cannot use GPIB. Quote Link to comment
jim85 Posted January 30, 2009 Author Report Share Posted January 30, 2009 QUOTE (AnalogKid2DigitalMan @ Jan 28 2009, 06:51 PM) Have you read the manual of the 341? If you did you would have realized that you cannot use GPIB. Yes, I read through the PM 341 handbook already. But I don’t understand, why you are saying that I cannot use GPIB to control the stepper motor? Could you please explain for me? Thank you very much for your kind reply. Regards Jim Quote Link to comment
Francois Normandin Posted January 30, 2009 Report Share Posted January 30, 2009 QUOTE (jim85 @ Jan 29 2009, 06:46 AM) Yes, I read through the PM 341 handbook already. But I don’t understand, why you are saying that I cannot use GPIB to control the stepper motor?Could you please explain for me? Hi Jim, GPIB is a communication bus, so the PM341 would need to have a IEEE488 connector and be able to interpret the syntax. From the manual, PM341 uses RS-232 communication protocol. Now, while some instruments have the same command structure for GPIB and RS-232, this one doesn't. (Page 20 of the manual) Quote Link to comment
jim85 Posted January 31, 2009 Author Report Share Posted January 31, 2009 QUOTE (normandinf @ Jan 29 2009, 01:44 PM) Hi Jim, GPIB is a communication bus, so the PM341 would need to have a IEEE488 connector and be able to interpret the syntax. From the manual, PM341 uses RS-232 communication protocol. Now, while some instruments have the same command structure for GPIB and RS-232, this one doesn't. (Page 20 of the manual) Hi, Thanks for your kind reply. Actually I want to communicate with 2 device at the same time. With the PM341 through the RS232 cable and HP 8350B sweep oscillator through the GPIB cable connection. I have designed a very simple VI to communicate with this oscillator, but unfortunately my VI showed some error message called "error 30 occurred at GPIB initialization". And it says possible reasons: LabView: Bad print records NI-488:No GPIB address input. I do not know how to sort out this problem. I'll attach my VI with this mail. Can you help me with this? Regards Jim Quote Link to comment
Francois Normandin Posted January 31, 2009 Report Share Posted January 31, 2009 QUOTE (jim85 @ Jan 30 2009, 10:07 AM) Hi,Thanks for your kind reply. Actually I want to communicate with 2 device at the same time. With the PM341 through the RS232 cable and HP 8350B sweep oscillator through the GPIB cable connection. I have designed a very simple VI to communicate with this oscillator, but unfortunately my VI showed some error message called "error 30 occurred at GPIB initialization". And it says possible reasons: LabView: Bad print records NI-488:No GPIB address input. I do not know how to sort out this problem. I'll attach my VI with this mail. Can you help me with this? Regards Jim You might not have a proper GPIB address for your device. I suggest you use VISA to communicate with the generator. You should see any GPIB devices available when you refresh the VISA resource name control. Call the IDN function to make sure the communication is well established. If you don't see it, then you might want to make sure your GPIB card is properly installed, that you can detect the presence of your generator in Measurement Automation Explorer (MAX). If you still can't communicate with your instrument, please come back. Note that you can also use VISA as a mean to communicate with your RS-232 PM341 controller... http://lavag.org/old_files/post-10515-1233338629.vi'>Download File:post-10515-1233338629.vi Quote Link to comment
jim85 Posted February 5, 2009 Author Report Share Posted February 5, 2009 QUOTE (normandinf @ Jan 30 2009, 06:04 PM) You might not have a proper GPIB address for your device.I suggest you use VISA to communicate with the generator. You should see any GPIB devices available when you refresh the VISA resource name control. Call the IDN function to make sure the communication is well established. If you don't see it, then you might want to make sure your GPIB card is properly installed, that you can detect the presence of your generator in Measurement Automation Explorer (MAX). If you still can't communicate with your instrument, please come back. Note that you can also use VISA as a mean to communicate with your RS-232 PM341 controller... http://lavag.org/old_files/post-10515-1233338629.vi'>Download File:post-10515-1233338629.vi Hi, Thanks a lot for your help. I have a problem with the opening your GPIB_call.vi, because your coding in LabView 8.6 version.But i'm using 8.5.1 and 8.0. Could you please able to send in one of my versions? It'll really great if you send it to me. Regards Jim Quote Link to comment
Francois Normandin Posted February 5, 2009 Report Share Posted February 5, 2009 QUOTE (jim85 @ Feb 4 2009, 05:06 AM) Hi,Thanks a lot for your help. I have a problem with the opening your GPIB_call.vi, because your coding in LabView 8.6 version.But i'm using 8.5.1 and 8.0. Could you please able to send in one of my versions? It'll really great if you send it to me. Regards Jim Your profile says 8.6. You should change that. I assumed you could open it. It's a simple query using "visa". Change COM1 to whatever GPIB address your equipment is at. http://lavag.org/old_files/monthly_02_2009/post-10515-1233754156.png' target="_blank"> Quote Link to comment
jim85 Posted February 12, 2009 Author Report Share Posted February 12, 2009 QUOTE (normandinf @ Feb 4 2009, 01:30 PM) Your profile says 8.6. You should change that. I assumed you could open it.It's a simple query using "visa". Change COM1 to whatever GPIB address your equipment is at. http://lavag.org/old_files/monthly_02_2009/post-10515-1233754156.png' target="_blank"> Hi, Now I have updated my Labview version to 8.6. Thanks for you help. And I have a another doubt. I'm trying to get marker reading from the Agilent 8720ES s-parameter network analyzer. I want to get serval reading to draw a graph through my vi. When i asked the analyser to send 2 data or 2 marker reading, i can able to read only the last value from my vi. I want serval reading to draw the graph. How I can improve it take many readings? i have attached my vi with this mail. Again, thanks for your help. Regards Jim Quote Link to comment
Francois Normandin Posted February 12, 2009 Report Share Posted February 12, 2009 Hi Jim, you can download the driver from NI's site. Your problem is likely a configuration issue. I have no personal experience with this equipment. good luck. PS: May I suggest you start a new thread if you want help with programming for a network analyzer? Quote Link to comment
jim85 Posted February 14, 2009 Author Report Share Posted February 14, 2009 QUOTE (normandinf @ Feb 11 2009, 06:05 PM) Hi Jim, you can download the driver from NI's site. Your problem is likely a configuration issue. I have no personal experience with this equipment. good luck. PS: May I suggest you start a new thread if you want help with programming for a network analyzer? Hi, Thank you very much for your kind help. I have solved that problem with the drivers, you have send me. Then I have a another problem with storing the data and retrive. As you said I have started a new thread and attached the link for you. If you have some idea about this, please let me know. http://forums.lavag.org/Draw-a-graph-from-...lts-t13241.html Regards Jim Quote Link to comment
dallas Posted February 26, 2009 Report Share Posted February 26, 2009 hi i know this might be a little outdated, im using labview 7.0 for a project to be able to change the GPIB address in a spectrum analyser using labview, could somebody help me with this? regards, dallas QUOTE (dallas @ Feb 25 2009, 10:19 AM) hi i know this might be a little outdated, im using labview 7.0 for a project to be able to change the GPIB address in a spectrum analyser using labview, could somebody help me with this?regards, dallas i know it may seem a little easy but i am only new at this so any help would be very much appreciated. Quote Link to comment
Neville D Posted February 26, 2009 Report Share Posted February 26, 2009 QUOTE (dallas @ Feb 25 2009, 02:33 AM) hi i know this might be a little outdated, im using labview 7.0 for a project to be able to change the GPIB address in a spectrum analyser using labview, could somebody help me with this? As far as I remember you can't change the GPIB address programmatically. You have to do it from the front panel of the instrument. Why would you want to change it programmatically? Once set, just send commands to that address. You can do a *IDN? query and then based on the response from all the instruments, you can figure out what instrument is at what address. Neville. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.