Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to include an additional channel in AFG 3102 series standard waveform driver

Solved!
Go to solution

To Dennis.

I tried to copy the channel. I placed the 2 chnnnels and tried to connect them with different operators like OR, AND , SUM , MERGE,etc...but was not able to get both the outputs simultaneously.

If by duplication, u means something else, then plz suggest me the same.

Thanku for ur reply.

Regards,

Alakh.

0 Kudos
Message 1 of 15
(4,714 Views)
Solution
Accepted by topic author Dreamliner

Continued from here.

 

None of those funtions are useful. You just need duplicate VIs like I mentioned and that are already in your code.

 

 

This all presumes that the instrument will allow both outputs to be on at the same time. You can quickly check this by attempting to turn both on manually.

 

 

Message Edited by Dennis Knutson on 02-07-2010 08:15 PM
Message 2 of 15
(4,711 Views)

thank you Dennis. Its working now.

But, i am not able to get the waveform from both the channels of my oscilloscope.

I haev attached a file here. Please look at it

0 Kudos
Message 3 of 15
(4,698 Views)

Hi

 

You added the while to the blockdiagram but probably did not realize that LabVIEW is executing both parts of the diagram (upper and lower) at the same time. You probably are questioning the scope things that are not ready yet.

Make two separate vi's or make sure that only one of the parts is running at the same time.

greetings from the Netherlands
0 Kudos
Message 4 of 15
(4,694 Views)

hi..

my task is to integrate both oscilloscope and function generator in sinle program.

could you please expalin as how I can achieve that with 2 VI's.

Regards,

Alakh

0 Kudos
Message 5 of 15
(4,687 Views)

Hi..

My progg is working fine.

I have to include some features in it, like knob for controlling the vertical and horizontal position of signal, that is there in the front panel of oscilloscope .Also I want to add one autoset button of oscilloscope in my prog.

How can I wire these buttons. Please advice.

I ahve attached a file.plz look have a look in it.

0 Kudos
Message 6 of 15
(4,677 Views)

Hi

 

You probably needs to configure the waveform generator first and then measure with the scope.

So there is a dependency in time.

Each of these should be handled in its own rights.

I advise to start with a big while. In this while you only put the vi's needed for changing the signals on user input.

Before that while but wired into the while with the visa resource name and errorcode, you place the initialisation vi's that are needed only once.

In the while you also do nothing when no user input has been performed (maybe use an event structure together with a case sturcture...)

or even better start studying on action engines as described by Ben Rainer

 

http://forums.ni.com/ni/board/message?board.id=170&thread.id=240328&page=1&view=by_date_ascending

greetings from the Netherlands
0 Kudos
Message 7 of 15
(4,667 Views)

I agree with Albert. The event structure is the best way to go.

 

The code you have now can only do a single acquisition. Do NOT use the run continuous button. It's also silly to use front panel controls for the channel selection. Use constants like I did. Anything else and you are just asking for user errors.

0 Kudos
Message 8 of 15
(4,658 Views)

Hi..

In this VI , I have tried to include the knobs for horizontal and vertical scaling and also for selection of channel.

The above case structure, refers to the channel slection. Here I am unableto connect the wire from single waveform vi to waveform graph.

Below it are two case structures for scaling thw waveforms. Here I am getting error related to propery node as "broken terminal or or bad wire"

Also i have tried do  data logging. Plz tell me wether its correct.

Also pla try to answer the above problemd

Thanku.

0 Kudos
Message 9 of 15
(4,641 Views)
For some reason, you converted the Write to Measurment File to a regular VI and then for some reason, you posted that.
0 Kudos
Message 10 of 15
(4,629 Views)