LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Supply load trough thyristor

Hello

I manage to build a build a part of program - so I'm able to see light at the end of tunnel.
I found some strange phenomena. When I build waveform with amplitude 1 and I send it to DO 0 I get desired output (TTL) on P0.0.
But when I send the same waveform to P0.1 I get nothing – I must have amplitude of waveform 3 to get the output on P0.1.
For P0.3 the amplitude of waveform must be 5. But if I send the Waveform with amplitude 5 to P0.0 then on that port I have no output.
That’s why I put multiply function before waveform build function –but this could not be the solution.
I also produce a 1 kHz square wave on AO 0 and wire it to PFI 0 for DO clock.
I also try to build waveform with True and False elements but then I’m not capable to write them into DO write.

I need all 8 pins of Port0 – one at a time. So could some one tell me what could be the cause of that strange behaviour?
0 Kudos
Message 11 of 12
(394 Views)

Hello 1over0,

 

I think that the behavior you’re seeing is because you're using 0's and 1's with numeric representation rather than as Boolean true and false values.  If you wire a numeric 0 or 1 to a Boolean write it will use an integer output value (meaning that it will output that number in binary).  In your program I would recommend changing your integer 0 to a Boolean false and the integer 1 to a Boolean true.  Then you can replace the Build Waveform VI with the Build Digital Waveform VI and change the polymorphic instance of the DAQmx Write to be Single Channel» Multiple Samples» Waveform.  I think that this will give you the behavior that you expect--a single digital value for each "true" or "false" value that you write.

 

I hope this helps and have a great day!

 

Cheers,

Brooks
0 Kudos
Message 12 of 12
(376 Views)