11-26-2007 11:59 AM
11-26-2007 12:07 PM
11-26-2007 12:15 PM
Hi Wei,
I think you are missing on the simple fact that you have to do a write first to make a read. what i mean is that , you have to write the query to the instrument and then do a read.
Eg: if you want to measure voltage on the insturment.
you write MEAS:VOLT?
and then perform a read function, thus the instrument will return your query.
You dont get this problem when you do a write because you are not going to query anything further, instead you are just setting the device.
Hope it helps.
11-26-2007 03:10 PM
Hi :
Thanks for your replying, I try to change the structure based on your ideas, but it is still not working.
I attached a example to this meassage
1. In this example, when I used the normal string input box to manually input the command string to "GPIB write", it works. But after I change it to the boolean button. no response.
Dravi99 wrote:
Hi Wei,
I think you are missing on the simple fact that you have to do a write first to make a read. what i mean is that , you have to write the query to the instrument and then do a read.
Eg: if you want to measure voltage on the insturment.
you write MEAS:VOLT?
and then perform a read function, thus the instrument will return your query.
You dont get this problem when you do a write because you are not going to query anything further, instead you are just setting the device.
Hope it helps.
Thanks a lot
Wei
11-26-2007 03:38 PM - edited 11-26-2007 03:39 PM
You are saying that if you enter "calculate1:data?" into the Characters to Write string, you will get a response but if you then change the wiring so that output of the concantenate to string is wired to Characters to Write and you change Characters to Write to an indicator (as shown below), it does not work?
Also, do you know that there is a driver for this instrument at the Instrument Driver Network?
11-26-2007 04:32 PM
11-26-2007 05:30 PM
This example is different than the last. The first example you were doing a query. The last one you are not and a read would not apply. What is the exact syntax per the manual. What is the exact syntax of the command you send without the Boolean. I'm also assuming that you run the VI only once and aren't doing something silly like run continuous mode.
And what do you mean where is the instrument driver network. I posted and you just reposted the link.
11-26-2007 06:43 PM
hanwei wrote:
Hi Dennis:Thanks for your replying.I just directly connected "output of the concantenate" to input of "GPIB wirte".I attached the example on this message. there is just such a little change to official GPIB's example, could you check it for me.I guess, maybe there is a confict between the boolean buttons and the "GPIB writing and read"Thanks again.WeiPs: where can find the Instrument Driver Network?, I suppose the driver is ok, because I could implement the basic communication between the Labview and Agilent 35670 Analyzer. Just boolean control buttons do not work.
11-27-2007 10:13 AM
I didn't give the information clearly enough, sorry about the confusion.
I am just a beginner for Labview, perhaps there are some silly problems on my project. sorry about that.
11-27-2007 10:33 AM
Let's just try to review exactly how you run the VI. You have the output of the concatanate string wired to the GPIB Write input. You make the command1 button true, command 2 button false, Operation to 'Write then Read', and then you click the run button on the LabVIEW toolbar. If this is exactly what you do, what happens? Do you get anything read, something read, an error code generated? If this does not work, disconnect the wire from the concatanate string and have a control wired to the GPIB Write input. This should be exactly like the first VI you posted. Copy the string from the true case and paste it into the control. Run the VI. You've implied that this works. Can you confirm that this does in fact work or not? If it does work, I am at a total loss to explain why.
Also, why don't you want to use VISA? There is nothing in your program that would make using the lower level GPIB commands necessary.