LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

setting frequency in HP 83752A sweeper

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.

Regards
RobinHood
0 Kudos
Message 1 of 10
(4,341 Views)
Termination character missing?  \r  \n  or \r\n  ??
0 Kudos
Message 2 of 10
(4,339 Views)

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

 

Message Edited by Robin Hood on 03-10-2010 12:27 AM
Regards
RobinHood
0 Kudos
Message 3 of 10
(4,334 Views)

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.

0 Kudos
Message 4 of 10
(4,319 Views)
It's still not working. see the attached code
Regards
RobinHood
0 Kudos
Message 5 of 10
(4,311 Views)

Mathan,

               It seems Ravens and Dennis are offline.can you please correct my code

 

Regards
RobinHood
0 Kudos
Message 6 of 10
(4,308 Views)

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

Regards
RobinHood
0 Kudos
Message 7 of 10
(4,305 Views)
Thanks Ravens and Dennis. Now the code is working.I've not used any \codes.However, the code is working.See the attached code for reference.
Message Edited by Robin Hood on 03-10-2010 02:33 AM
Regards
RobinHood
0 Kudos
Message 8 of 10
(4,304 Views)

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.)

 

Message Edited by Ravens Fan on 03-10-2010 09:35 AM
0 Kudos
Message 9 of 10
(4,287 Views)

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.

 

 

 

Message Edited by Dennis Knutson on 03-10-2010 08:32 AM
0 Kudos
Message 10 of 10
(4,282 Views)