07-04-2007 08:49 AM
Hi Joseph,
You can get the 6528 to generate a pulse train - you'll just have to generate and time this in software. There is no hardware timing on the card. So it just depends what you are trying to acheive, and how you want to run the system.
So you'd need to build up a 2D array of the digital pattern (1 column per channel - number of rows would be number of samples) and then iterate through these using software timing to give you the pulse widths. - software timeing means that potentially the pulse widths won't be consistent.
If you need more concrete and deterministic timing, then you will need to look at a card that you can run the digital lines from a clocking source with.
Regards
Hannah
NIUK & Ireland
07-05-2007 08:40 AM
07-06-2007 04:25 AM
07-06-2007 08:10 AM
Hi,
I tried using the VI that i had mentioned above,but there are wiring errors on the true false basis and the input are not specified.Dose anyone have any clue what the problem could be.
Kind regards
Joseph
07-06-2007 08:43 AM
07-06-2007 08:55 AM
Hi,
here is the link for the discussion. http://forums.ni.com/ni/board/message?board.id=250&message.id=14793&requireLogin=False
Regards
Joseph
07-06-2007 09:15 AM
07-06-2007 09:25 AM
07-09-2007 04:06 AM
Hi,
As suggested by Hanna I tried working on that VI on the other thread: Just have some things to clear about that (please bear with me as this is the first time I am using this software ) there seems to be an error on the true false logic part,from the boolean to the 2D arrary.Also is it possible for me to decide which channels I should give this pulse to.Kindly do let me know what you guys think about the VI ive tried to put up.i have attached the VI ive tried out.Also you mentioned that it software trigerring would be fine for low frequencies( is 1000 hz low or high ?).
I also what to create a 0-24V digital output to the PLC,can i use the DAQ assistant to do it,or should i use the DAQmx to do it.Is there any example code where i can refer to.
Kind regards
Joseph
07-09-2007 10:25 AM
You can use the DAQ Assistant or just use the DAQmx functions directly. Either way you'll get to the same point. The DAQ Assistant is just a wizard to create a VI for you, but you might not get what you want. For example, I ran the DAQ Assistant on my LabVIEW 8.20 and the VI I got has a loop that sets the each digital out line via an internal for-loop rather than just calling the "Digital 2D Bool NChan 1Samp".For digital I/O, you can specify a range of ports with a colon between two port numbers:
Dev0/port0:1You also can specify a range of lines:
Dev0/port0/line0:4
Dev0/line0:31You can specify channel ranges in reverse order:
Dev0/ai4:0
Dev0/ai4:Dev0/ai0
Dev0/port1/line3:0