LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Power supply E3648A sample code

Ho Moti,

 

AFAIK GPIB:0 is not a valid device address. Change the device address to a number between (including) 1 and 30...

(Zero and 31 are reserved adresses and shouldn't be used for devices.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 11 of 26
(2,849 Views)

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

Message 12 of 26
(2,841 Views)

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?

Message 13 of 26
(2,827 Views)

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.

Download All
0 Kudos
Message 14 of 26
(2,817 Views)

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.

0 Kudos
Message 15 of 26
(2,803 Views)

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.

0 Kudos
Message 16 of 26
(2,811 Views)

Hi Dennis,

 

VI_output_only.jpg

 

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.

 

0 Kudos
Message 17 of 26
(2,803 Views)

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?

0 Kudos
Message 18 of 26
(2,791 Views)

Driver is too complicated for a simple read I need.

 

Moti.

0 Kudos
Message 19 of 26
(2,787 Views)

Hi All,

 

Just wanted to update I have basic vi working, with a gauge and a text to indicate the reading.

 

 

vi_read_curr.jpg

 

 

 

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.

 

0 Kudos
Message 20 of 26
(2,763 Views)