10-15-2014 09:55 AM
Hello,
I have a PS 350 Stanford Research Systems High Power Voltage Supply. I neeed to generate a triangular wave using LabVIEW.
Does anyone know an efficient way to create a signal generator using LabVIEW to control the PS350?
All help is greatly appreciated.
10-15-2014 10:23 AM
This discussion board is mainly for discussion of National Instrument's Signal Generator devices.
Despite this, in order to generate your signal through LabVIEW, you should download the correct instrument driver for your device. I think you can find it here: http://sine.ni.com/apps/utf8/niid_web_display.model_page?p_model_id=605 The driver should have function calls that you can use in LabVIEW to control your instrument.
10-15-2014 10:28 AM
Hello,
Thank you for your response, and I apologize for posting in the wrong section.
I downloaded the drivers, and have he hardware hooked up and working. The problem I run into is actually creting a code where a signla generator is made using LabVIEW. Can you point me in a direction where I can find a sample program and mimic it to my needs?
Thank you for your help.
Andre
10-15-2014 10:28 AM
Also, from looking at that device's User Manual: http://www.thinksrs.com/downloads/PDFs/Manuals/PS300m.pdf , it does not seem obvious that the device is capable of generating Triangle Waves. You should doublecheck the capabilities of your device before proceeding.
10-15-2014 10:37 AM - edited 10-15-2014 10:37 AM
If you look at the Stanford Research P300.lvproj and open up the Stanford Research PS300 Series Configuration Display.vi in the example folder, I think this program uses 90% of the functions that are in the driver. The VI is pretty hard to follow, so I recommend just pressing CTRL + U to clean up the block diagram. It looks like you can only configure the High Voltage Switch (On/Off), highest voltage level for the source, and committing a voltage setting.
It may be possible to ramp up the voltage and ramp down the voltage, however it would involve constantly calling these functions. Latency over the GPIB/USB connection between your PC and device is inconsistent and most likely in the millisecond range, so your triangle wave will look very bad. You should probably use a function generator device, instead of a power supply device for your application.
10-15-2014 10:41 AM
Again thanks for your response.
I am doing a bit more reading, seems like there is a way to connect a low voltage function generator to a high voltage power supply to generate a function. I will try both methods.
Can you sned me a link to the Stanford Research P300.lvproj, is this on the main NI site?
Thanks again for your help.
10-15-2014 10:46 AM
No, the Stanford Research LabVIEW project comes with the driver you have installed. Most third-party drivers have something similar. If you have the driver installed, you can probably find it here: <LabVIEW>\instr.lib\Stanford Research PS300 Series\Stanford Research PS300 Series.lvproj where <LabVIEW> is where you have LabVIEW installed.
10-15-2014 10:48 AM
Thank you