I would like to have a digital waveform on my digital output. Let's say I use Dev1/port0/line1 to generate the signal to trigger a camera. For this I need to send a digital waveform to the this digital output. I looked through examples and tried several things, but without any success. Could anyone help me?
Could you maybe provide the DAQ board you are using and little bit more information than you didn't have any success? Did you get any error code? Also, do you really need a waveform to trigger the camera or would a simple write 0, write 1, write 0 work?
The card I use is a PCI-6030E. I think I need to use a waveform, because I want to be able to turn the camera on and off using this output as a trigger. Furthermore it needs to be synchronized with two analog outputs. Until now I used a counter to trigger the camera, because I only needed it to be activated at regular intervals. Now however I need to be able to take a few images, then wait for some time and then take images again. I don't think this is possible with a counter (is it?) so that's why I need some other output, in this case digital because all the analogs are taken.
I have come up with an idea that might be easier to implement. I will use one counter to generate pulses with a long time interval, let's say a few seconds. These pulses will then be used as a trigger to another counter which generates then for example 4 fast pulses and waits then for the next pulse from the first counter. All my other outputs/inputs then will be synchornized to the second counter. Is this at all possible??
You've got a board with static digital I/O. You cannot use a digital waveform. You can only using software timing so you would have to use a series of digital writes to create your pattern. I don't think you can synchronize the digital output with the analog either. It may be possible to do it with a counter however. I'm not at all familiar with the counter capabilities. You might want to re-post your question to the counter forum.