LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Increment of pulse gens & measuring xtalk

I am not so sure how I should do this.
Perhaps, someone may have experienced with similar case.
 
I have 8 pulse gens they are all active. They are mainly used for aggressor function.
Now, what if I would like to measure and export (both in spreadsheet and front panel waveform graph) a signal level in a victim port with increment of 1 to N number of aggressors?
I guess this is two fold question.
 
1. How to turn on/off already powered-up pulse gens?
2. How should I graph this with 1 to N aggressor(s) (X-axis) and % of crosstalk (Y-axis) and display in a graph in the front panel?
    I guess I am trying to write to a spreadsheet (text file) as well.
 
Thanks for all LabVIEW experts out there!
 
0 Kudos
Message 1 of 39
(3,253 Views)

Hello!
I have a couple questions for you.  Are you asking how to set this up in LabVIEW or are you needing to know how to get your instrument to respond to commands sent by LabVIEW?  I am trying to see if this is more LabVIEW related or instrument/device response related.  When you ask how to turn on/off an already powered instrument, are you needing to do this while your program is running or before/after?  Some of this may depend on how your instrument works, but if they are working as needed, then we can focus on how to program this in LabVIEW.  Any additional information you can provide will be very helpful.  I will then be able to help you further.  Have a great day!

Chris R.
Applications Engineer
National Instruments

Chris R.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 39
(3,225 Views)

Hello Chris,

I think my question is related to both LabVIEW and instrument control. Basically, I have 8(hp8133A) pulse gens powered on and externally triggered by a signal generator. So, here are my questions.

1. Since all pulse gens are powered on, how should I turn on only those pulse gens that are selected by a user?

2. Can this be controlled using LabVIEW program? If so, how can I do this?  I would like to show all 8 pulse gens in the front panel so that a user can select instruments.(please see the attached doc).

Thanks,

 

0 Kudos
Message 3 of 39
(3,215 Views)
In the driver for the instrument is a function called HP8133A Output Chanel Selec. According to the VI description "This VI is used to enable the selected channel output and configure the frequency divider for the selected channel.". This sounds like it will do what you want. You should turn on Show Context Help from the Help menu and examine the top level example VIs to what the various functions are and how they are used.
0 Kudos
Message 4 of 39
(3,208 Views)
I cannot think of how I can break the array of GPIB addresses with individual component that can be individually controlled. Do I have to have individual GPIB/VISA session outside for loop? How can I use 'boolean control' individual GPIB/VISA session? (please see the attached)
 
Thanks,
 
 
0 Kudos
Message 5 of 39
(3,190 Views)
Your for loop is already indexing the array of VISA resources. All you have to do is pass an array of Booleans that's the same size as your VISA resources and put a case statement inside the loop. In the attachment, I also modified the creation of the output array.
0 Kudos
Message 6 of 39
(3,187 Views)

Thanks alot for your help!

I have another question. I have modified an instrument VI and created another VI. How can I save this file as a subVI? (plz see the attached)

 

0 Kudos
Message 7 of 39
(3,175 Views)
You don't have to anything. Assuming that you've got all of the controls and indicators wired to the connector pane, all you have to do to use it as a subVI is use it in another VI. The only thing that defines a subVI is that it is being called in another VI. Every VI you write can be either a top level VI or a subVI. It's not like other languages where you define the beginning and end of a function call or subroutine
Message 8 of 39
(3,171 Views)

I tried to save the above VI and try to bring it as a subVI, but no success. I can see you point, but I think it is not working for me.

 

 

0 Kudos
Message 9 of 39
(3,166 Views)
What do you mean by no success? That doesn't tell me anything. Please be specific.
0 Kudos
Message 10 of 39
(3,161 Views)