01-28-2015 09:07 AM
Hi
I am new to labview and have been trying to figure out a way to introduce a few milliseconds delay between two operations within the same write buffer of a single visa write block. Following is what I want it to be like:
CURR: LEV 1.5
wait for some 50 ms
CURR: LEV 2.0
wait again
Actually I have to apply an AC signal to a coil with a certain frequency through an Agilent e3631a power supply source. So if there's an another alternative to it, then please let me know.
Thanks
Regards
Solved! Go to Solution.
01-28-2015 09:11 AM
01-28-2015 09:16 AM
01-28-2015 09:24 AM - edited 01-28-2015 09:27 AM
Here's two approaches. First being the simplest, just put a time delay between VISA writes. The second being a more robust because it allows you to build a series of commands by simply adding them to the string array. You could forget the case in the loop if you do not mind the 50mS delay before th first command is sent.
01-28-2015 09:27 AM
01-29-2015 10:15 AM - edited 01-29-2015 10:17 AM
Hey, hi again
Thanks for the help last time, but this time am facing a little bit of problem in storing the read buffer's values in an array. I would be getting values of current which I need to store, so that later I can plot them with time.
Have tried the shift registers but couldn't get it done.
And also the read buffer shows me the value as 8.45112, while the real value is 0.845112. While it shows the other value of 1.71590 as correct. Any suggestion?
I've attached the vi file as well.
Thanks again
Regards
01-29-2015 11:37 AM
01-29-2015 12:36 PM
Are you trying to communicate with 1 instrument? If so, then why are you using a second VISA Session?
If you are trying to talk to multiple instruments, then that VISA open should NOT be inside of your loop.
Other small notes:
1. No need to wire up the 2 to the N of your FOR loop. The autoindexing input tunnel will limit the number of times the loop runs.
2. You need to close your VISA sessions.
01-29-2015 01:06 PM
Hi
Here's the image of the VI.
Am using two instruments, I apply a dc signal through one and then measure the corresponding current with a multimeter. I've put the multimeter in the same loop as I have to measure the current at every applied value. And AC signal is off the table, am applying DC pulses now.
it has to be like this.
I apply 1A of current and then measure at the other end.
2A of current and measure again.
Hence, in the loop. Outside the loop I was only able to measure the current of 2A only, and not 1A.
Thanks yet again.
01-29-2015 01:54 PM
You should only OPEN the DMM session outside of the loop. It only needs to be opened once. And your wait should be done AFTER the current is set. You need to allow the supply to react before you take the measurement.