Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

How to write voltage and frequecy to PCI-6731?

Hi ! i wanna write digital input to port0 of 6221.how can i? for example i want to enable the pin p0.2 and p0.4 and others to diable. i saw an example but i don't understand. in example they have taken line as Dev1/port0/line0:7 some thing like that. what is that? i don't understand what it line0:7. for what it is used. i got struck in that.... please help me... its urgent.. Thanx..
0 Kudos
Message 11 of 15
(5,464 Views)
Hi NI_DAQ,

Usually, it's a good idea to start a new thread if the subject changes. It helps your question get more visibility in the community.

The colon ':' is used to specify a range of channels or lines, so port0/line0:7 means all lines (0 through 7) on port 0. There is more detail in the KnowledgeBase:

What is the Syntax for Physical Channel Strings in DAQmx?
http://digital.ni.com/public.nsf/allkb/9A2AF5E10E0C893386256FE8006807DF?OpenDocument
Joe Friedchicken
NI Configuration Based Software
Get with your fellow OS users
[ Linux ] [ macOS ]
Principal Software Engineer :: Configuration Based Software
Senior Software Engineer :: Multifunction Instruments Applications Group (until May 2018)
Software Engineer :: Measurements RLP Group (until Mar 2014)
Applications Engineer :: High Speed Product Group (until Sep 2008)
0 Kudos
Message 12 of 15
(5,459 Views)
Hi !
        i want to read data from analog input channel i.e AI-0 to AI-15.but  i used "DAQmxReadAnalogF64" function . it is giving some garbage value.physically i have connected to some voltage level for example 4.5 or 8.2 or 5.6 like that.when i measure from multimetre i can see exact voltage.but when i use this function  to read from particular pin getting some negative values. what i am doing wrong.
              its urgent...
     hople will get reply soon..
Thanx..
 
0 Kudos
Message 13 of 15
(5,370 Views)
Hi NI_DAQ,

For future reference, you may want to start a new thread since this is a different topic than the original post.

I was wondering how you have your channel configured in terms of hardware connections (where is your input signal and where is your ground) and software configuration (input terminal configuration in the DAQmxCreateAIVoltageChan function). This is to make sure everything is connected and grounded correctly. This article has many good tips for making a good analog measurement.

Also, have you tried reading these values in Measurement and Automation Explorer? You can quickly get the analog input values by opening the test panels for your particular device. You can learn more about test panels here.

Regards,
Kent
Applications Engineer
0 Kudos
Message 14 of 15
(5,346 Views)

Hi,

 

I need to display the device name of all the devices connected to my pc.I have a PXI chassis with DAQ,Digitizer and Function generator card.

I am using Labview 8.5.I have used "DevName" property of DAQmx driver to list the DAQ device name.Similarly i need to display the other two cards device name.Pls tell me how to do this?

 

Regards

Meenatchi

0 Kudos
Message 15 of 15
(4,551 Views)