LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a User Interface to visualise generated Functions with a HAMEG HMF2525 Arbitrary Generator using LabView

Solved!
Go to solution

Hi,

i started using LabView two weeks ago at my university, so i'm not that good at it, my task is to controll HAMEG HMF2525 Arbitrary Generator and visualise the resulting functions in LabView i think i already all installed: library, Drivers.. I can now controll the generator with LabView but i cannot visualise the resulting functions, actually i cannot get any information from the generator at all with the driver.

(i saw that someone had to do the same thing and wrote it in the forum 3 years ago but the problem wasn't solved)

do someone have an idea of how i could see the functions in Labview ? or maybe someone knows video tutorials that could help ?

these are the Visa functions that i have the possibly relevant ones are highlightedhameg driver VIs.png

 

i would be thankfull for any help

0 Kudos
Message 1 of 10
(2,867 Views)

The drivers usually come with examples that could get you started. In LabVIEW go to the menu>>help>find examples, and in the search tab enter HAMEG and see what comes up.

 

Have you established a connection to the instrument? How is the instrument connected to the PC? Have you checked in NI MAX that the instrument can be found? In NI MAX, if the instrument is found in "devices and interfaces", you can click the instrument and then "Open VISA test panel" and on the input/output tab you can click "query" to see if the instrument responds to the ID-query, 

Certified LabVIEW Architect
0 Kudos
Message 2 of 10
(2,863 Views)

yes i already connected it to the PC serial, i don't find the instrument in NI MAX what do i have to do to find it ?

0 Kudos
Message 3 of 10
(2,853 Views)

when i click 'open testpanel Visa' i get this :

Error opening resource:
ASRL1::INSTR

VISA: (Hex 0xBFFF0072) The resource is valid, but VISA cannot currently access it.

how can i fix this ?

 

 

0 Kudos
Message 4 of 10
(2,817 Views)

@achouch wrote:

when i click 'open testpanel Visa' i get this :

Error opening resource:
ASRL1::INSTR

VISA: (Hex 0xBFFF0072) The resource is valid, but VISA cannot currently access it.

how can i fix this ?

 

 


If you are sure that this is the com port to the instrument, then the  most likely reason is that some other  application is using that com port. E.g. that you have both LabVIEW and NI MAX communicating with that com port.

Certified LabVIEW Architect
0 Kudos
Message 5 of 10
(2,814 Views)

now it works and i get this after clicking on 'query' query.png

but i still don't know how to visualise the functions on my generator ...

0 Kudos
Message 6 of 10
(2,808 Views)

I'm guessing that by "visualise the resulting functions" you want to create a GUI that has some controls to turn the output on/off, and do other stuff that the driver allows. If so, and you did not find examples for the driver as I suggested you searched for in the LabVIEW menus, start with the most simple and add an Init and Close from the driver, and in-between, put the Output VI from the driver. After the three VIs, put a "simple error handler". Run and see if the output turns on.

 

When you got that working, learn some basic concepts like how to use the event handler and look into the "simple state machine" project on the "create project". Then you can add some UI components and have them run your driver VIs.

 

Certified LabVIEW Architect
0 Kudos
Message 7 of 10
(2,803 Views)

what I ment is to be able to see the generated waveforms in Labview , i didn't find a VI that could do this.

I know I could do this maybe with a DAQ but my boss thinks it's possible without  it.

all VIs in the library controll the generator but there is no VI that gives any information back from the generator (just the one I highlited)

the output function just controlls a button 'output' in the generator.

0 Kudos
Message 8 of 10
(2,796 Views)
Solution
Accepted by achouch

If it's an arbitrary waveform, then you already have it in LabVIEW, since you sent it to the instrument. If you set settings via other VIs then you know what output you will get. So for an arbitrary waveform, I guess there is not much use and therefore it is not in the driver (or not easily found), but you could pick up the manual and see if there is a command for it or ask the supplier of the driver (Rohde-Schwarz?).

 

If you set the output via other settings then there's probably no magic feature to read back what comes out. I'm not sure how this instrument works, but I'm guessing it wont translate to a waveform that you can read back. But the manual will give more info on that.

Certified LabVIEW Architect
0 Kudos
Message 9 of 10
(2,779 Views)

thank you so much for your replies

you're right , it gives nothing back so I just did it with an oscilloscop

PS:i called the supplier and they were unproffessional they told me to go ask National instrument because 'we don't explain how the library works we can just tell you that it's possible and if you want the person that created it to explain it to you so you have to pay them'

Smiley Mad

0 Kudos
Message 10 of 10
(2,736 Views)