03-09-2010 11:46 PM
Hi
I've connected HP 83752A synthesized sweeper to PC via GPIB cable.I've installed LabVIEW 2009 and NI device drivers.I've written code to set the frequency on sweeper.But it's not working.I've attached the vi here.Can anyone help me correct the code.
03-10-2010 12:04 AM
03-10-2010 12:23 AM - edited 03-10-2010 12:27 AM
No Raven it is still not working.I've even used end of line constant and I've converted the number to string format which I didn't do earlier.still it doesn't work
03-10-2010 01:14 AM
No, you are sending the characters '\','r','\', and 'n'. You have to right click on the string constant and select '\' Codes Display.
In an earlier post, you were going to use MAX. Does it work there. Do that first and only once it works there, write your LabVIEW code. It's also quite unnecessary to place that code in a while loop that spins constantly.
03-10-2010 01:59 AM
03-10-2010 02:03 AM
Mathan,
It seems Ravens and Dennis are offline.can you please correct my code
03-10-2010 02:16 AM
Hi
I'm able to set the power in HP 83752A.but not frequency.see the atached code for power setting.It is working properly
03-10-2010 02:32 AM - edited 03-10-2010 02:33 AM
03-10-2010 08:33 AM - edited 03-10-2010 08:35 AM
I don't know how your latest VI is working if your original VI wasn't. It really doesn't look any different other than you have a second command set being sent.
Here is the modification to the code where Dennis had told you that you weren't using the \codes properly. For the string constant that says \codes, I had right clicked on the constant and chose it to display \ codes, then fixed it to say \r\n (no space either like you had had.)
03-10-2010 09:31 AM - edited 03-10-2010 09:32 AM
The working one does not have a space between the frequency and Mhz.
Robin,
That whole concantanate string code is way too complicated and rube goldbergish. Use a simple Format Into String.