02-01-2011 04:29 PM
Hi,
I have a USB 6221 and I want to create an analogue output of a sine wave, then a sawtooth wave then a sine wave again from the same connection. I want to be a seamless transition between the two and the signals are each about 500 milliseconds. How do I do this?
It won't allow me to associate multiple signals to the same output.
02-02-2011
02:51 PM
- last edited on
10-25-2024
11:37 AM
by
Content Cleaner
Hi Marksim,
There's no native way to create a waveform like this and export it at the same time in SignalExpress. If this is a project you're working on where you plan to modify your waveforms in the future, I'd recommend upgrading to LabVIEW.
You have to break this project down into two parts. First, you need to create the waveform and save it to a file (it may be HWS, ASCII, LVM, or SPICE). Second, you can load that file containing the data you wish to output, and send it to an output.
1) Creating the signal.
You could either create this in SignalExpress, but it's a little rougher. Use the "Create Analog Signal" step and specify the parameters for your sine wave, and then use the "Save to ASCII/LVM" step. Then change the parameters for a sawtooth wave, and save it to another file. Then, merge the files. This will probably take some re-working to make sure that it lines up seamlessly and that you have the time periods you're looking for.
You could also use the NI Analog Waveform Editor. It's a separate software package which makes creating custom waveforms easy:
Finally, you could use whatever other external software you want, just as long as you can export the data in a format SignalExpress can accept (HWS/LVM/ASCII/SPICE).
2) Generating the signal
Right-click in the Project area in Signal Express and select Load/Save Signals>>Analog Signals>>(whatever format you have). Then place your DAQmx Generate Step immediately after this one. SignalExpress should automatically link up this step to the previous step, so that it loads your preconfigured waveform from the file to the output of your 6221.
Hope this helps,
Andrew