10-09-2013 10:21 AM
Hello all! I'm using a GW Instek PST-3202 DC power supply to apply a voltage to a cartridge heater to heat an aluminum block. I want to apply a sine wave that varies the voltage by +0.05 V to -0.05 V centered around 15 V (from 14.95 V to 15.05 V). I can manually set the voltage of my power supply to 15 V using the analog controls on the power supply itself, but as soon as I turn on my VI it resets to 0 V, which I don't want. Also, it says there is a read timeout, and I'm not sure why. I'm very new to LabVIEW so this may be a very easy fix, but any input would be greatly appreciated! My VI is attached, as well as the VI I am using to monitor the temperature, just for completion.
10-09-2013 11:07 AM
You can add your offset (15 v in your case) to the output of your sine wave function.
10-09-2013 11:45 AM
This is probably dumb, but I don't know how to do it. The output of the sine waveform only has the functions for the sine wave, phase out, and error.
10-09-2013 12:27 PM
Try adding an offset to the generated waveform. 😉
/Y
10-09-2013 01:14 PM
I reiterate, I don't know how to add an offset to the waveform, it is not an option on the sine wave object. I found the function I'm using in Signal Processing -> Signal Generation -> Sine Wave. Perhaps I'm using the wrong function for what I want to accomplish?
10-09-2013 01:18 PM
10-09-2013 01:39 PM
I've followed all of the advice ITT, but I'm still getting a timeout error on VISA Read. I added a wait between the write and read functions, as a tutorial told me I should, but I'm still having a problem. Also, I feel like the sine pattern function isn't creating a continuous sine pattern, but that may be because the VISA Read is timing out still. My VI is attached. I know I need to take a free tutorial, but I haven't had the time yet.
10-09-2013 02:15 PM
Working a good online tutorial or two will take you much less time than it's taking you now thrashing around without getting anywhere. I'd suggest starting with the ones I stole the links for to put on the bottom of my signature.
Cameron
10-09-2013 02:37 PM
You've added the 15v to the Phase Out, it needs to be added to the Sine Wave output array.
10-09-2013 02:46 PM
If you go to Help, Find Examples and search for the 'Basic Serial Write and Read.vi', that should help you with your code.