Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

How to trigger automatic input data changes

hi I am very new to labview, as a part of an experiment i need to control an agilent N6700B mainframe voltage controller using labview. I had established all the comm using GPIB . At the moment I am able to control the output voltage by using the attached labview program (this is a modified version of the example program i got from agilent). Whenever i give a voltage input in labview (marked as red in block diagram) I am getting the same voltage at hardware output.  

 

Following are my questions

 

1) how I can change this manual voltage entry to an automatic mode . For example when i click run output should change to 5 V then without pressing anything it should change to 15 V after some seconds,later change to another Voltage. 

 

2) when I press stop ,labview is stop working.but the hardware is stillgiving an output voltage, how can i reset my hardware (change voltage to zero) by pressing stop button

 

3) this program iscontrolling only one channel of my hardware. my hardware has multiple channel outputs. How I can controll all simoultaneaosly . I tries to copy and paste the block s to create another branch. But allchannels not working when I did so. 

 

 

My quistions might be silly as I am really new in labview. But it will be really helpful if you can give a hand 

0 Kudos
Message 1 of 8
(6,059 Views)

Ok, time to step away from the example.

 

You need to initialize your connection ONCE.  Do no do that inside of the loop.  Same for closing the connection.

There should be an input to those VIs for which module you are talking to (the N6700 can hold 4 modules).

If you step away from the example some and think about what you need to do and when, it will become obvious what you need to do.  Think about how you would do it manually.  Then think about each step you took and concider what code you have to do that step.


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 2 of 8
(6,041 Views)
Thank you crossrulz for the reply.

I didn't really get some of your inputs.
# what is do no do inside the loop ?
# can I use a timer or counter for making it automatic ?

Kindly help
0 Kudos
Message 3 of 8
(6,034 Views)
Unless you are trying to externally trigger the instrument with an NI DAQ card, I don't know why you posted here.

You really need to take one of the free tutorials or classes. Understand that it is s waste to repeatedly initialize and close the instrument and the only thing that should be inside a loop is your set voltage function. For example, put it inside a for loop and pass in an array of voltage values. A simple wait would control the duration. Once you have it working for s single channel, you would add an array of channel names and perhaps nest a couple of for loops.

0 Kudos
Message 4 of 8
(6,021 Views)

Hi 

 

 

 

0 Kudos
Message 5 of 8
(6,008 Views)

Hi 

 

0 Kudos
Message 6 of 8
(6,006 Views)
The best thing would have been to click on Options and request the moderator to move the post.
0 Kudos
Message 7 of 8
(5,996 Views)

Hi Dennis_Knutson 

 

i had requested the moderator to remove my post. Sorry again

 

 

0 Kudos
Message 8 of 8
(5,989 Views)