02-08-2011 12:45 AM - edited 02-08-2011 12:48 AM
02-08-2011 04:49 AM
hi
it seems that the gpib board, does not "see" the device . what is the manufacturer of the board ? do you have any passports enabled ?
you can still use the gpib addressing by using 4 in the gpib address.
N
02-08-2011 08:23 AM
GPIB 0 is valid for the controller and MAX has clearly found the instrument at address 4. Not sure why the VISA drop down does not list it. If it's not listed, you will continue to get an invalid resource error. What version of NI-VISA is installed?
02-08-2011 09:19 AM
Dennis, GerdW and nitad,
Thanks a lot for your help so far.
When I set the value of the visa to const according to my instrument address this error not happening.
Please find attached vi in jpeg and source:
I have several problems with this vi.
1. I would like to toggle the switch between 2 output ( it is dual output power supply ). When toggling the switch I expect the true/false value to be sent, and then accordingly set the correct string using GPIB. This is not working.
2. Is there really a reason for a visa device each time I would like to control the power supply ( currently I have 3 visa devices ).
That's all for now.
Your help is very much appreciated!
Thanks,
Moti.
02-08-2011 10:35 AM
Sorry, but there are major problems with your code. You need to understand data flow. The way you have it, LabVIEW will attempt to perform parallel operations and the instrument cannot do that. Wire the reference out and error out of the VISA Write where you select the output to the reference in and error in of the other VISA Write. Do the same with the VISA Read. If you're not going to use the driver, at least look at the block diagrams.
I also find it difficult to believe the instrument is returning data in octal format.
02-08-2011 10:40 AM
Dennis,
Thanks for the explanation.
I am now changing the code to have non-parallel work. Will appreciate if you can take a look at it once I will upload it.
Thanks again,
Moti.
02-08-2011 11:21 AM
Hi Dennis,
In this code I want to send "INST:SEL OUT1" or "INST:SEL OUT2" only once, when the knob is set to on. Will that code do it?
Thanks,
Moti.
02-08-2011 12:09 PM
You are the one with the hardware. It should work but run it and see.
p.s. Is there a reason for not using the driver?
02-08-2011 12:35 PM
Driver is too complicated for a simple read I need.
Moti.
02-09-2011 07:22 AM
Hi All,
Just wanted to update I have basic vi working, with a gauge and a text to indicate the reading.
Question: I would like to increase the font size of the String indicator marked in orange, so reading from the screen will be easy from distance as well. Could not find how to enlarge it. If possible even a digital clock display would be great, as long as I can make it big.
Thanks,
Moti.