10-05-2011 12:27 PM
Hello,
I've been able to generate and output a square wave using the 6551 cards, however, it's only succesful on channel 0. I'm getting a very small periodic pulse from the other DIOs (1-19), but it's not the signal I 'm generating. I know I'm hooked up to the right channels.
I have a total of 4 cards, and the exact same is observed across all 4 (only channel 0 outputs defined signal).
What am I doing wrong?
Thank you in advance,
Dangelo
10-06-2011 10:16 AM
Hi Dangelo,
Thanks for posting. Could you provide more information about how you are configuring your generation? What channels are you setting to generate your signal? What kind of signal are you seeing from your other lines? Perhaps posting screenshots or portions of your code and the signals you are reading would be helpful. Thanks!
Regards,
Joe S.
10-07-2011 11:57 AM
Hi Joe,
thank you for your response. I have attached a picture of the code I'm trying to generate. My intent is to create two different waveforms and output them on two different channels of the same card. It seems that the "for" loop is critical in the generation, but confusing in the sense that it is the data; Without the "for" loop my card only generates on channel 0. My overall question is: how can I define and generate two different waveforms using the same card 6551?
PS: the code attached is based on the "Dynamic Generation and Acquisition Demo.vi" found in LabView examples (sans the acquisition portion).
Thank you in advance,
Dangelo
10-10-2011 10:13 AM
Hi Dangelo,
If I'm not mistaken, based on the screenshot of your code that you posted, I would expect to only see generation from channel 0 on your card. Your VI first configures output for channel 0, then sets that generation to repeat continuously and initiates the generation. At that point, it will generate the pattern on your channel 0 forever, until the program is stopped.
If you want a waveform to be output continuously from both channels, try combining your code into one generation session. Assign both channel 0 and 1 as inputs to "HSDIO Assign Dynamic Channels" and combine your data so that, based on the U32 representation of your data, it will output your desired waveform on each channel. Does this answer your question? Let me know, thanks!
Regards,
Joe S.