08-17-2005 11:03 AM
08-18-2005 07:26 PM
Hello LW-s,
There is a good tutorial on www.ni.com that might get you started. Here is the link:
Using the Parallel Port in LabVIEW
http://zone.ni.com/devzone/conceptd.nsf/webmain/72C6FC6CE4AD4D1386256B1800794596?opendocument
Good luck!
Chris J
08-22-2005 06:08 AM
i think i have done parallel port communication correctly. i can see correct shapes of the waves that i give through parallel port on the display. i see square wave when i send square wave from the signal generator and sinus wave when i send sinus etc.
but the problem is that the waves i see on the display are not smooth as i see on the osiloscope.
i think there is a sampling rate problem. but i couldn`t find a way to state my sampling frequency on the code. would you help me to smooth the waves.
here i attach the square wave i acquire.
08-23-2005 05:30 PM - edited 08-23-2005 05:30 PM
Hi LW-s
There isn't really a way to set the sampling rate for these VIs. You will have to use software timing. The only way to do this is with 'wait' functions inside your loop. You can also implement some logic to smooth/adjust your waveforms. For a square wave the logic is pretty simple. If the input value is above a threshold store it as the max and if it is below the threshold store it as the min. (See the example below). For sine waves this is a bit more difficult and if I were you I would probably try to implement some sort of averaging.
Best Regards,
Chris J
Message Edited by ChrisJ on 08-23-2005 05:31 PM