Logon Posted October 20, 2022 Share Posted October 20, 2022 Hello team, I have purchased a usb-234 and now I need to use this board to output two Pulse signal via the AO port. you know ,one AO port will output one pulse. But I can not output the 2 Pulse at the same time via my LabVIEW VI. I also attached my VI , can you give me an example VI which can output 2 Pulse at the same time or how will I revise my VI ? thanks USB-234.rar Link to comment Share on other sites More sharing options...
DAQman Posted October 20, 2022 Share Posted October 20, 2022 Hello, There is only one time base for the analog output subsystem and it has a maximum update rate of 5k S/s. To use both channels, make the buffer twice as big and interleave them - for example, ch0, ch1, ch0, ch1...etc. The analog output is good for continuous waveforms or static values, but not so go if you're trying to control something like a motor. The driver maintains a sizeable buffer and any changes to the data will encounter a delay. Best regards, John Link to comment Share on other sites More sharing options...
Logon Posted October 21, 2022 Author Share Posted October 21, 2022 (edited) I only see that there is a buffer set in the control of NI, but I don't see that in MCC UL-labview library. Which step does interleaving refer to? It would be nice if you could just write a demo program to my project? what‘s more,Can I use two DO channel to achieve this ? I just want to ouput two pulse wave at the same time. Edited October 21, 2022 by Logon Link to comment Share on other sites More sharing options...
DAQman Posted October 21, 2022 Share Posted October 21, 2022 Hi Logon, What is the pulse signal amplitude and timing requirements? Thanks, John Link to comment Share on other sites More sharing options...
Logon Posted October 24, 2022 Author Share Posted October 24, 2022 hello John, No, these two parameters is not important for this case, we need to control or change the signal time by time, please look into the attachement, it is from DAQami, you see, we want to have such kind a VI panel to control the two AO in the board USB-234. can you help to code such a VI or tell us how to ? we still can not output square signal at the same time via the two AOs in USB-234. Link to comment Share on other sites More sharing options...
DAQman Posted October 24, 2022 Share Posted October 24, 2022 Hello, Have a look at the attached VI. I have saved it as a LabVIEW 2018 file in case you have an older version of LabVIEW. Change the Points Per Waveform number to 480 to get a frequency closer to 10Hz. best regards, John AnalogOutScan2ChannelSquareWave_2Ch.vi Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now