Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

xantrex XG 60-14 Powersupply reading errors

Hi Experts,

 

I'm using XanXTR Example from Labview (Labview2012) and I can turn ON/OFF the power supply including setting the output voltages OK.

However when I tried to read the output voltage back I always got different "random"errors messages and sometime a good reading.

Could someone please shown me how to fix the errors. ! See attachment for more details.

 

I did changed the I/O time in MAX but no different.

 

Thanks

 

 

0 Kudos
Message 1 of 8
(4,289 Views)

Hi NotHon

 

You should check the configuration VI for the xantrex, if you this VI is configuring the port even if you change the settings in MAX the configuration in your main VI is not going to change. Let me explain you a little more if you change the time in MAX but the configuration on your VI says that the time is X it won’t matter how many times you change the time in MAX the time will be the same.

 

Also try to check with the Xantrex manual the read command and use the I/O trace to check that you are writing the correct command.

 

Regards

Esteban R.

0 Kudos
Message 2 of 8
(4,245 Views)

Hi Esteban,

 

I only tried MAX since I ran out of option. 😞

Below is the I/O trace that you recommended and I don't see anything wrong with it.

Do you have any idea or anyone out there that can help me to tackle this reading measurement error?

I can see there is a time delay between EVENT "5000" for this case "Maybe" do you know how where and how I can change this time?

 

This is my first time using LabView and Xantrex powersupply therefore the more details help the better!

 

Thanks

 

IO Trace.png

 

 

0 Kudos
Message 3 of 8
(4,238 Views)

Hi NotHon

 

Could you attached a screenshot of your code? Or a VI snippet?

Use VI Snippet to Store and Share Reusable Code Sections

 

Could you tell me the operating system of your computer and LabVIEW version?

 

Where did you get that instrument driver? Do you have the link?

 

In the future please also attached the image if it is not very clear because sometimes is a little hard to read.

 

 

Regards 

Esteban R.

 

0 Kudos
Message 4 of 8
(4,223 Views)

Hi Esteban,

 

Here is the link for the powersupply driver I'm using http://sine.ni.com/apps/utf8/niid_web_display.model_page?p_model_id=11964

 

Ater installed I have to copy from C:\Program Files\National Instruments\LabVIEW 8.6\Instr.lib\XanXTR into C:\Program Files\National Instruments\LabVIEW 2012\instr.lib in order for me to see the instruments in labview.

PC is Windows7 and LabView 2012 and I'm using the Xantex example provided which you can open from Labview"Block diag/Inst IO/Xantrex_XT.."

 

 

 

Xantrex_XTR example.png

 

In the XanXTR-MEASURE block I think there is a called to the function and in this case I think it's a XanXTR.dll and I'm not sure if I can get into it a modify the timing if neccessary. As I already told you that Labview is first time for me therefore still alot for me to learn. 🙂

 

Thanks

 

0 Kudos
Message 5 of 8
(4,202 Views)
It looks like the driver is from xantex/sorenson/ametek. You should be asking them. It also looks like its an IVI driver so you aren't really using LabVIEW at all. You would need LabWindows/CVI in order to edit it.
0 Kudos
Message 6 of 8
(4,187 Views)

Hi Dennis,

I do have Labwindows/CVI 2012 installed but never use them before. Do you have any information that can help me to reverse the XanXTR.dll and editing them.

 

Thanks

0 Kudos
Message 7 of 8
(4,181 Views)
You don't reverse the dll. Look for the source code. NI always includes the source code for IVI drivers it writes but I don't know about this one. I'm posting from my phone and I don't remember the normal location of IVI files. Look in the program files folder for IVI. There would be a .c file.
0 Kudos
Message 8 of 8
(4,178 Views)