Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Transistion from tradational NI-DAQ to DAQmx

 Hello,
 
Can anyone help my transfer the attached tradational DAQ vito a DAQmx vi.
 
Thanks,
Rajesh.
0 Kudos
Message 1 of 6
(3,827 Views)
Hello Rajesh,

This example looks to be a timed digital output example for a single line.  The data looks like it is written twice.  I recommend starting with a LabVIEW Example Program found in the Example Finder (Help>>Find Examples).

Depending on whether you are working with Static (software timed) DIO or Hardware Timed hardware you may want to look at "Write Dig Chan.VI", "Write Dig Chan -Int Clk-Dig Start.vi" or "Write Dig Chan- Ext Clk.vi"

To use an internal clock (2nd example), you will need a board with DIO clocking built in such as an NI-653x board. If you do not have one of these boards, but have a board capable of hardware timing, you can try the external clocking option. One of these examples should be able to be easily modified to accomplish the same task as I see in your Traditional DAQ picture.

If you have any questions or need help getting started with one of these examples, do ask. It would be helpful if you post the model of hardware you are using so that help can be directed towards your particular application.

Regards,

Jennifer O.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 6
(3,803 Views)

Hello,

I currently have a PCI 6534 card installed.  I am having problems getting started.  Can you offer some more help in getting started.  I looked at some of the examples and I'm still having problems.  Thanks for all your help.

Sincerely,

Rajesh.

0 Kudos
Message 3 of 6
(3,801 Views)
Hi Rajesh,

The NI-6534 will be able to run hardware timed DIO.  Try the internal clock example previously mentioned.  This should at least run on your board.  It may not do exactly what you are looking for but it is a great place to start.

Please post if you are having problems with this example -or if it works and you would simply like recommendations on how to modify it, please describe what problems/questions you are having in modifying the code to perform in the way that you would like.

Regards,

Jennifer O.
0 Kudos
Message 4 of 6
(3,775 Views)
I'm attempting to use the DAQmx code, however, I'm stuck.  Can you help me out.  Please see attached file.
 
Thanks,
Rajesh.
0 Kudos
Message 5 of 6
(3,758 Views)
Hi Rajesh,

Looks like you have a great start there.  One thing to keep in mind with translating code is that it will rarely translate one-to-one.  Similar to languages: translating directly from one language to another such as English to Spanish or French, the translation will not make sense if it is translated word for word.

That being said, I think the fundamental puzzle piece you are missing is the timing function.  To write out all of your digital samples you will want to place a DAQmx Timing.vi before you write your samples with the DAQmx Write.vi.  You will see this function in the internally clocked example. I referred to previously.

The second minor change I believe you will want to make is with the polymorphic instance of the DAQmx Write.vi.  It looks like you would like to write multiple samples to a single line on the board.  For this you will want to click on the text below the vi, and select 1 Channel, N Samples.

If you are still having difficulties, please be specific regarding the problem you are facing (i.e. if you are encountering a specific error, or if the code is acting "this" way, and you expect it to act "that" way).

Regards,

Jennifer O.
0 Kudos
Message 6 of 6
(3,734 Views)