Quantcast
Viewing all articles
Browse latest Browse all 2182

NI 6509 Digital PullUp PullDown setting

 

hello

 

I want to set the pull down of PCIe-6509 as shown in the picture above.

I want to use the DAQmxSetDigitalPowerUpStates() and DAQmxGetDigitalPowerUpStates() functions in the NI-DAQmx library.

1. For PCIe-6509, is there a sample program (C# or .net)?
2. What values should be entered in the deviceName, channelNames, and state items of the parameters below?
- For example, between P0.0 and P0.7
     P0.0 -> Pull up, P0.1 -> Pull down, P0.2 -> Pull up, P0.3 -> Pull down, P0.4 -> Pull up, P0.5 -> Pull down, P0. 6 -> Pull up, P0.7 -> Pull down

 

best regard.

 

 

https://www.ni.com/docs/ko-KR/bundle/ni-daqmx-c-api-ref/page/daqmxcfunc/daqmxsetdigitalpowerupstates.html

 

 

Image may be NSFW.
Clik here to view.
kang_youk_0-1714394761006.png

 

Parameters

Input
NameTypeDescription
deviceNameconst char []Specifies the name to assign to the device. If unspecified, NI-DAQmx chooses the device name.
channelNamesconst char []The digital line or port to modify. You cannot set power-up states for dedicated digital input lines. You can specify a list or range of channels.
stateint32The power-up state to set for the channel(s) in channelNames.
Value Description
DAQmx_Val_High High logic
DAQmx_Val_Low Low logic
DAQmx_Val_Tristate High-impedance state. You can select this state only on devices with bidirectional ports, and you can select it only for entire ports. You cannot select this state for dedicated digital output lines.
moreChannelsAndStatesany type (passed by value)Pairs of additional channels and the states to set the channels to when the device powers up or when the device is reset. You must pass NULL at the end of the argument list.
If you do not want to pass additional channels and states, the function call can be similar to the following example:
DAQmxSetDigitalPowerUpStates ("Dev1", "Dev1/do0", DAQmx_Val_High, NULL);
If you pass additional channels and states, the function call can be similar to the following example:
DAQmxSetDigitalPowerUpStates ("Dev1", "Dev1/do0", DAQmx_Val_High, "Dev1/do1", DAQmx_Val_Tristate, NULL);

Return Value

 

 

NameTypeDescription
statusint32The error code returned by the function in the event of an error or warning. A value of 0 indicates success. A positive value indicates a warning. A negative value indicates an error.

 

 


Viewing all articles
Browse latest Browse all 2182

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>