From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

sine function using function generator ag33xxx

I have to make a .vi in LabVIEW which will control the function generator ag33xxx and generate sine wave function and show it on osciloscope... and I cant get it to work so please if anyone can help me 😞 I'm a total newbe in labVIEW

0 Kudos
Message 1 of 18
(2,914 Views)

Well, the function generator has the ability to generate the sine wave internally, right?

 

And you know how to turn that on manually, right?

 

So what you really need is a way to turn that function on from the GPIB, right?

 

Look up the specific model number of your generator and get the GPIB drivers for it from NI's website.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 18
(2,910 Views)

I've tried doing so but I get an error... I've attatched the screenshot...

And also I have no idea how to show VISA session on waveform graph...

0 Kudos
Message 3 of 18
(2,908 Views)

If it fails that quickly, there are a few things to check:

 

  1. Is the instrument turned on (don't laugh, it happens to the best of us)?
  2. Is the GPIB cable connected correctly?
  3. Is the GPIB address on the instrument the same as in the VISA session?
  4. Is the GPIB interface seleced? Some instruments will have both serial and GPIB interfaces but can only listen to one at a time.

Assuming all those things are good:

 

  1. Do you see the GPIB interface in MAX?
  2. Can you see the instrument in MAX?

Check these things out, and let us know how things are going.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 4 of 18
(2,894 Views)

Is there any other way to use this function generator and generate a sine function without phisical input(without GPIB cable)?  

 

0 Kudos
Message 5 of 18
(2,879 Views)

You can operate it manually, or if it has a serial interface you can use that to control it with a simple RS232 cable (available at any Best Buy -- for an obscene price).

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 6 of 18
(2,877 Views)

@mikeporter wrote:

a simple RS232 cable (available at any Best Buy -- for an obscene price).


That's why we have Amazon.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 7 of 18
(2,872 Views)

yeah the problem is I have to do this assignment until tommorow... 😕 so I can't get the cable

0 Kudos
Message 8 of 18
(2,870 Views)

Are you familiar with the term: "scrounging"... (especially the "by stealth" part)

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 9 of 18
(2,865 Views)

Make sure the generator is setup to communicate over the GPIB.  This is a manual process that you will need to go through whatever menus the instrument has to set up the communications.  Some will only talk over 1 kind of bus at a time.  So make sure GPIB is selected and make sure it is not sharing its address with anything else connected to the same GPIB bus.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 10 of 18
(2,862 Views)