Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I set DIO-Assignment & LineDirection programmably?

Hi,


I want to set lineConfigure on port like this.
4-line IN, 4-line OUT

In delphi -----------
CWDIO.Ports.Item(0).Assignment := cwdioLineConfigured;
CWDIO.Ports.Item(0).Ports.Item(0).LineDirection := 15; // binary = 1111

But it does not work.

in Basic -----------
CWDIO1.Ports.Item(0).Assignment = cwdioLineConfigured
CWDIO1.Ports.Item(0).LineDirection = 15
MsgBox CWDIO1.Ports.Item(0).LineDirection

Also it does not work.

Only I can set this, by MAX.
Can I set this port line assignment in my program?
Any language (C, Basic, CVI) will be OK, except Labview.

TIA.

SJ Lee
0 Kudos
Message 1 of 4
(6,190 Views)
Have a look at the following knowledge base entry: http://digital.ni.com/public.nsf/websearch/B09727F89DA3A06C86256F430071D88E?OpenDocument
0 Kudos
Message 2 of 4
(6,182 Views)
Thank you for your answer.

But I am using Traditional DAQ (not DAQmx).

Comment on this, please.

SJ Lee
0 Kudos
Message 3 of 4
(6,180 Views)
I still would recommend DAQmx since it is very powerful and easier to use. However, if you want to work in Traditional, check out this example: http://venus.ni.com/stage/we/niepd_web_display.DISPLAY_EPD4?p_answer=&p_guid=CB69EAA06E1E36C8E034080020E74861&p_node=201226&p_rank=&p_source=Internal&p_submitted=N .
You can also search more examples by going to National Instruments' Developer Zone
0 Kudos
Message 4 of 4
(6,165 Views)