LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to read an Excel File AND SEND TO GENERATOR

Hi 

I want send the datas from Exel file to my device, I have one part in mu code which can read my data from exel but I don t know how can I send this data to ny divice?

 

I  really nead your suggestion, please.

 

I attached my code also my Exel file.

Download All
0 Kudos
Message 1 of 8
(3,159 Views)

Can you elaborate more on your device?

0 Kudos
Message 2 of 8
(3,141 Views)

My device is the function generator (Rigol, DG5071) so as you see in my code, this program able to send the different ferequency or amplitude or ...  to divice, but I want to send bunch of numbers as a arbitrary wave to it. My exel file include this arbitray wave , so how can I send this datas to device.

 

Best regards

0 Kudos
Message 3 of 8
(3,138 Views)

Here is a list of instrument drivers that NI has for Rigol. Howeever, I have not found your specific device there. I believe you need the instrument driver to communicate to your device. I am not sure how to program your own driver, but I think you can use the existing drivers as references if you want to program your own.

 

 

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

Thanks but non of them help me,

 

 is there another way to send this data to divice?

 

0 Kudos
Message 5 of 8
(3,115 Views)

@vsa wrote:

Thanks but non of them help me,

 

 is there another way to send this data to divice?

 


How are we suppose to know?

 

Download the manual and read it.

Look at the rear panel on the instrument.

Simple.

 

0 Kudos
Message 6 of 8
(3,105 Views)

There are FAQs on the Rigol site that discuss interfacing with LabVIEW (using IVI drivers).

0 Kudos
Message 7 of 8
(3,096 Views)

Hello vsa,

 

I checked the specifications of this Function Arbitrary Waveform Generator and I found that it is GPIB complaint. Instruments with GPIB protocol can be controlled using GPIB commands, but each instrument could have different GPIB commands. Despite this, most providers have "standard" commands among its products.

I checked some documentation and found a help file that describes the GPIB commands used by this device, so the options are:

1. Wait for someone to develop an Instrument Driver for this instrument.
2. Check if you find any other Function Arbitrary Waveform Generator of the same brand that uses the same commands and for which there is already an instrument driver.
3. Create your own instrument driver.

If you choose option 3 I share with you the following links that you may find useful:

 

Developing LabVIEW Plug and Play Instrument Drivers:

http://www.ni.com/white-paper/3271/en/

 

Connecting Instruments via GPIB:

http://www.ni.com/getting-started/set-up-hardware/instrument-control/gpib-connect

GPIB Instrument Control Tutorial:

http://www.ni.com/white-paper/2761/en/

 

Using IVI Drivers in LabVIEW:

http://www.ni.com/white-paper/4556/en/

 

Instrument Control in LabVIEW Tutorial:

http://www.ni.com/white-paper/3511/en/


Best regards.

 

David P.
National Instruments
Applications Engineer
www.ni.com/soporte
0 Kudos
Message 8 of 8
(2,983 Views)