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,406 Views)

Can you elaborate more on your device?

0 Kudos
Message 2 of 8
(3,388 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,385 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,379 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,362 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,352 Views)

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

0 Kudos
Message 7 of 8
(3,343 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:

https://www.ni.com/en/support/downloads/instrument-drivers/tools-resources/developing-labview-plug-a...

 

Connecting Instruments via GPIB:

https://learn.ni.com/learn/article/getting-started-with-instrument-control-hardware-and-labview

 

GPIB Instrument Control Tutorial:

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x2YDCAY&l=en-US

 

Using IVI Drivers in LabVIEW:

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x2fECAQ&l=en-US


Best regards.

 

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