11-08-2007 10:02 AM
11-08-2007 10:57 AM
11-09-2007 03:50 PM
Welcome to the discussion forums, pd_engineer!
In addition to the NI-DAQmx C Reference Help, you can also find the NI-DAQmx C API Visual Basic 6.0 Help in the same path (Start » National Instruments » NI-DAQ).
In these help files you will find all the functions available for reading and writing digital lines/ports. A great way to get started is by using the examples, already pointed out by Austin.
Voltage is always measured and generated in reference to something. The digital lines will output 0-5 volts in reference to the card’s GND pins. So if you want to ensure that you are reading the value you are outputting, you’ll need to connect the GND signals.
11-16-2007 08:10 AM
11-19-2007 04:16 PM
Hi pd_engineer,
To output digital pulses on the digital line you don’t need counters. In fact, as you’ve already pointed out, you only have 2 counters. (If you want to do continuous digital generation it only requires 1 counter, but finite requires 2.) Either way, you can only do digital generation in software with the PCI-6040E.
Start with the digital generation examples. Basically you are going to have Boolean arrays that represent the desired pattern and you will send in one element each iteration of a for loop to generate a high or low signal. The timing would be set with a timing VI inside the loop.
The pinouts of any device can be found in Measurement & Automation Explorer (MAX) by right-clicking the device and selecting “Device Pinouts”.
I hope this helps.
12-12-2007 06:18 AM - edited 12-12-2007 06:18 AM
12-13-2007 01:34 PM
02-19-2009 12:26 PM
Hey all,
I am trying to generate three digital pulses at the DIO port of SCB-68 using NI PCI 6024-E/NI PCI MIO 16E-1 (i have 2 cards) ....but some how not able to figure it out how to do this.....I have attached the timing diagram of what i need to do .....ALso i need to do this N number of times which should be user defined..Can any one please help me with this...
thank you,
regards,
Sandesh R
02-20-2009 12:53 PM
Hello Sandesh!
Thank you for posting to the NI forums! Just to clarify, are you programming in LabVIEW or in a text based programming Language? We have many examples that will direct you on how to execute your application, but they are found in different places depending on the programming enviroment you are using. Please let me know what you are programming in and I will be able to direct you to the location of the examples as well as what example would be a good starting point. Have a great day!
02-20-2009 12:56 PM
Hey Margaret,
Thankyou for replying.I am doing it using labview and I was able to do it today...
regards,
Sandesh R