03-26-2019 07:55 AM
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 highlighted
i would be thankfull for any help
Solved! Go to Solution.
03-26-2019 08:03 AM
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,
03-26-2019 08:47 AM
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 ?
03-27-2019 05:58 AM
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 ?
03-27-2019 06:06 AM
@achouch wrote:
when i click 'open testpanel Visa' i get this :
Error opening resource:
ASRL1::INSTRVISA: (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.
03-27-2019 07:43 AM
now it works and i get this after clicking on 'query'
but i still don't know how to visualise the functions on my generator ...
03-27-2019 08:19 AM
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.
03-27-2019 09:33 AM
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.
03-28-2019 02:27 AM
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.
04-03-2019 07:34 AM
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'