Quantcast
Channel: Digital I/O topics
Viewing all 2182 articles
Browse latest View live

Configure routed PFI as output on PCIe-6536B using NIDAQmx C interface

$
0
0

I have an NI PCIe-6536B, which I am interacting with using the NIDAQmx C API and NI MAX.

PFI5 takes input to the NI card. I want to route that signal to PFI1 and drive that signal out from the NI card. Whatever PFI5 reads, I want PFI1 to drive.

Now, when I call

 

DAQmxConnectTerms("/Dev1/PFI5", "/Dev1/PFI1", DAQmx_Val_DoNotInvertPolarity);

PFI1 still does not react to stimulus on PFI5.

 

 

I am guessing that I need to configure PFI1 as an output. How do I do that?

I tried creating and starting a digital output task for /port4/line1 which is apparently another name for PFI1. But when I then called DAQmxConnectTerms as above, I got:

 

Specified route cannot be satisfied, because it requires resources that are currently in use by another route.
Source Device: Dev1
Source Terminal: PFI5
Destination Device: Dev1
Destination Terminal: PFI1

Required Resources in Use by
Task Name: task
Source Device: Dev1
Source Terminal: Software
Destination Device: Dev1
Destination Terminal: PFI1

Status Code: -89137

How do I configure PFI1 as an output?

 


Analog and Digital clock synchronization error (

$
0
0

I'm currently working on a project where my digital and analog outputs must be done simultaneously. I wanted to setup a basic test file in C but I keep getting an error message, namely code -200077.

 

DAQmx Error: Requested value is not a supported value for this property. The property value may be invalid because it conflicts with another property.
Property: DAQmx_SampTimingType
Requested Value: DAQmx_Val_SampClk
Possible Values: DAQmx_Val_OnDemand

 

The code I have thusfar:

#include <NIDAQmx.h>
#include <stdio.h>
#include <math.h>

void errorCheck(int func)
{
	if (!DAQmxFailed(func)) return;

	char errBuff[2048] = { '\0' };
	DAQmxGetExtendedErrorInfo(errBuff, 2048);
	printf("DAQmx Error: %s\n", errBuff);
}

int main(void) 
{
	float64 dataAO[1000] = { 0 };
	float64 dataDO[1000] = { 0 };

	// Analog
	TaskHandle taskhandleAO = 0;
	errorCheck(DAQmxCreateTask("Analog", &taskhandleAO));
	errorCheck(DAQmxCreateAOVoltageChan(taskhandleAO, "Dev1/ao0", "", -10, 10, DAQmx_Val_Volts, ""));
	//errorCheck(DAQmxSetWriteRegenMode(taskhandleAO, DAQmx_Val_DoNotAllowRegen));
	errorCheck(DAQmxCfgSampClkTiming(taskhandleAO, "", 100.0, DAQmx_Val_Rising, DAQmx_Val_ContSamps, 1000));

	// Digital
	TaskHandle taskhandleDO = 0;
	errorCheck(DAQmxCreateTask("Digital", &taskhandleDO));
	errorCheck(DAQmxCreateDOChan(taskhandleDO, "Dev1/port0/line0", "", DAQmx_Val_ChanPerLine));
	//errorCheck(DAQmxSetWriteRegenMode(taskhandleDO, DAQmx_Val_DoNotAllowRegen));
	errorCheck(DAQmxCfgSampClkTiming(taskhandleDO, "ao/SampleClock", 100.0, DAQmx_Val_Rising, DAQmx_Val_ContSamps, 1000));

	errorCheck(DAQmxWriteAnalogF64(taskhandleAO, 1000, 1, 10.0, DAQmx_Val_GroupByChannel, dataAO, NULL, NULL));
	errorCheck(DAQmxWriteDigitalLines(taskhandleDO, 1000, 0, 10.0, DAQmx_Val_GroupByChannel, dataDO, NULL, NULL));

	errorCheck(DAQmxStartTask(taskhandleDO));
	errorCheck(DAQmxStartTask(taskhandleAO));

}

 What am I doing wrong?

NI USB-6525

$
0
0

Hallo ,

 

I am very new to this NI USB 6525 environment. I have installed NI MAX for USB-6525. I would like to ask you all the can somebody please recommend me how to perform test on USB-6525 initially just to check I/O's ???

Also my other question was that, is it necessary to have Labview, Labwindows installed for this NI USB-6525 ??

 

Thank you in advance

NI USB-6501 and "DO.Output Drive Type" parameter

$
0
0

Hi all.

 

I have a box, integrated in a TE, that houses a USB-6501 card.

DI and DO are properly conditioned and can be accessed by a custom connector.
A LabVIEW application controls the whole TE and, at start up, configures USB-6501 to work as "Active Drive", following the hints of the article

 

How Do I Configure My NI Device to Be Open-Drain (Open Collector) or Push-Pull (Active Drive)?

 

Now, that box needs to be tested out of the TE, as a standalone device, to release a simple PASS/FAIL report.

Usually, the test procedure for boxes like these, are simple.
HW Requirements:
- Power Supply
- PC (to connect to USB6501)
- DMM
SW Requirements:
- NI MAX.
But unfortunately, in this case, NI MAX is not enough to test the box.

OK. I can write a couple of VIs to carry out the task.

 

Anyway, I have three simple questions:
1) will it be possible, one day, to set default value for "DO.Output Drive Type" parameter, so that USB-6501 will remember his configuration at power-on ?
2) will it be possible, one day, to access "DO.Output Drive Type" from MAX Test Panel ?
3) Where can I find an NI official standalone SW to configure "DO.Output Drive Type" and configure/manage Digital I/O on USB 6501 board?

 

I hope no one will get angry for this post.

 

I thanks you in advance for the answers.

 

Bye

Looking for Discrete Card

$
0
0

Hello everyone

I'm looking for a card that will have the following minimum I/O requirements:

24x GND/Open 

2x 28Vdc/Open

 

Could anyone suggest me something from where I can start digging?

Need Examples using USB-8452 with C#

$
0
0

I would like to use the NI USB-8452 with Microsoft C# and Visual Studios 2013.

I found the  NI Knowledge Base paper: "How Can I Access USB-845x API Function from a C/C++ Program?"

 http://digital.ni.com/public.nsf/allkb/F997E364CFAA63F6862573540064C028

Although This was very helpful, I am still having trouble converting it to C#.

Does anyone have any examples, specific to C#, that they can share with me?

Thanks,

Ken

Treiber in Installer integrieren macht probleme (NI Usb-6008 + Redlab Temp)

$
0
0

Hallo liebes Forum,

ich schreibe zur Zeit an meiner Bachelorarbeit.

Thema:

Konzeption und Bau eines Lehrversuchs (...)

Ich habe den Lehrversuch gebaut und mit Messtechnik vollgestopft. Soweit, so gut!

Auch mit Labview 15  habe ich dafür eine schöne Oberfläche entworfen (hat sehr viel Spaß gemacht), die Auswertung der Daten Funktioniert Wunderbar..... Also wenn man das so liest ein echter Traum!

Jetzt die Schattenseite!

Mein Professor hätte gern eine Standalone Version, sodass man nicht Labview direkt auf dem PC haben muss und sich andere Professoren das Gerät ausleihen können. Also plug and play...

USB-Stick zur Programm Lagerung ist im Gerät verbaut über ein hub angeschlossen, genau wie das Usb-6008 und Redlab Temp.

Das eigentliche Problem

Die "EXE" kann ich erstellen, geht es dann zum "Installationspacket" kann ich es erstellen und auf einem anderen Pc installieren ABER ich bekomm keine Werte geliefert, bzw. er holt sich Werte irgendwo her die nichts mit dem Lehrversuch zu tun haben. Im Bild zu erkennen wirft er hier irgendwelche Kurven raus.Forum1.JPG

Den Uni-Laptop hatte ich erst einmal ein paar Stunden Updaten lassen, hat aber nicht soviel gebracht.

Könnte mir Jemand erklären welche Einstellungen ich vornehmen muss und welche Treiber ich wie einbinden kann (Bitte auch für das NI Fremde Produkt der Firma Meilhaus)?

Heut ist der 23.10.17........ Meine Abgabe ist am 25.10.2017 Smiley Very Happy

 

Liebe Grüße

The cable model SHC68-C68-RDIO2 can be replaced by SHC68-C68-D4?

$
0
0

Hi

 

Is it possible to use the cable SHC68-C68-D4 in to a NI PXIe-7821R board?

 

Thanks,


How to Upgrade my Digital Thermometer Clock?

$
0
0
The Digital Thermometer clock used a DS1302 RTC chip which isn’t really very accurate and mine tends to lose a few minutes every month, so I started looking around to see if I could find a better alternative.

The DS3231 is billed as an “Extremely Accurate I2C-integrated RTC”. These are supplied in 16 pin surface mount DIL packages and from the limited research I did, seemed a little bit expensive. It would also mean that if I wanted to create a simple upgrade to my clock, I’d have to either make an new PCB, or a small piggy-back PCB board to hold just the chip.
Ebay to the rescue.

I found these:
 
 
A search for "DS3231 for Pi" revealed many sellers selling these tiny modules that have a backup battery, the IC, associated discrete components and an interface connector all for very little money but it took a bit of fiddling to figure out the pin connections as the documentation on the Ebay sellers site was just plain wrong, however with the aid of a multi-meter I managed to “tap out” the pins.

Unfortunately they are supplying a lithium backup battery rather than a super-capacitor. This means that the battery will probably need to be replaced at some point.

The conversion of the existing clock is really quite simple.

First, you need to de-solder and remove the following components:
  • Battery BT1
  • KY270-38002-0331 Jumper
  • IC5 (RTC Chip) and its socket if you used one
  • X2 32KHz Crystal
The topside of your PCB should now look something like this:
Picture
 
In place of the J2 jumper you've just removed, you will need to solder in a wire link as the existing jumper is too tall and will get in the way of the replacement RTC module.

Next there are three modifications to the underside of the PCB board required.
Picture
 
A small wire link needs to be soldered as shown in the yellow circle on the right of the image. This allows +5v to flow to one side of the soldered J2 jumper and eventually into the new RTC module.

Next carefully solder in two 4.7K resistors as shown. These act as +5v pull-ups for the I2C bus connections to the new RTC module. I’ve outlined where the original RTC IC chip was.

The last activity is to modify a 5-pin Molex connector to accommodate the new RTC module. You could just use a strip of 5-header pins instead.
Picture
 
Solder a small length if wire to the right-hand pin. This will be used for the modules GND connection.

The modified connector needs to be soldered into the top row of 4 holes left by the original RTC IC. You may need to carefully drill these holes a bit larger of your connector pins won't fit.

The wire from the connector is soldered into the bottom right pin hole left after the removal of the original RTC chip - pin 4.

The module can now be inserted into the connector as shown in the lower picture.
Picture
 
The last activity is to load the new firmware .HEX file into the PIC and then switch on.

I do have a re-vamp of this project planned that will include the DS3231 module as standard, but this quick conversion does the job nicely.

The below .ZIP file contains the new .HEX file firmware, and the project source code for those of you who want to make your own modifications.

real time binary data transmission using USRP and PSK modulation, labview communications suite

$
0
0

I have been working with the student lab manual and learning materials for the USRP by Bruce A Black.
Included with this are a few labview communications suite examples, showing how to BPSK/QPSK modulate and demodulate data - however, these Vi's use the MT Generate Bits function, which to my understanding generates a random bit-sequence to then modulate and send.

i am interested how to modify the transmitter / receiver programs in order to a accept real time binary input of data and thus modulate it via BPSK or QPSK (depending on the example), send this across a channel, then receive and demodulate the said data stream on the output in real time.

...basically, how do i replace a 'MT Generate bits' function, with an input real-time binary data-stream?
and would i also need to modify anything else? or is it just a case of swapping out the bitstream generator for actual data?

Thank you very much




Digital Output 6052E BNC-2111

$
0
0

I am trying to generate digital signal using 6052E DAQ and BNC-2111. I used NI-MAX test panel to make sure that I can generate Digital output using this DAQ and BNC, but the problem is that the output of the channels do not change when I set them from Low to High. I am trying to control a 4 way relay with this DAQ so I need 4 different DOs. I can use the 2 AO to simulate DO. The problem is that PFI0, CTR1, AO EXT REF, AO 0 and AO 1 are always 0 Volt and PFI2, PFI7 and CTR 0 are always 5 Volt.

Looking for Frame Grabber

$
0
0

We are looking fo Mateor2 Dig 64L REV.A (601version) which will be embedded in Retcam2 medical device.

We once tried with Meteor2-DIG/4/L REV02 but it seems it is not compatible to each other.

No matter it is used or new product.

 

Thank you

 

LVDS from NI5782

$
0
0

Please tell me how to make a digital signal output from NI 5782 via AUX to the LVDS receiver. Interested in the electrical circuit connections and an example of a VI for the supply of test signals.

Compact Daq cDAQ maximum PWM outputs? PWM output module availability?

$
0
0

Hello.  Is the cDAQ limited to 4 hardware PWM outputs?  I realize that there are 4 counters available on cDAQ chassis and these can be accessed with a digital I/O module.  I am currently using a NI-9401 to access the chassis counters to generate 4 hardware PWM outputs.  I would like to add a 5th...  Is there a cDAQ module that can accommodate hardware/PWM output?  Thanks.  Dan

PXI-6541 Configuring Input/Output Channels

$
0
0

We have a test system with PXI-6541 digital waveform card that has never been used.  I'm helping the test person debug the Labview program. 
It appears the channels being used as inputs always have the 50 ohm driver active.  In the product specification in the Generation Channel table,  I see reference to "Data channel driver enable/disable control - Per Channel - Software Selectable".     So does that mean if we need a DIO to be input only with high impedance the driver needs to be disabled?   I am new to Labview so am not entirely clear on how the person is setting up the DIO as inputs and outputs but he described it as simply assigning a channel as IN will turn off the associated driver.

 

 


9402 maximum Output Current for driving Broadcom HFBR-1521 LWL Transmitter

$
0
0

Hello,

I would like to connect a Broadcom HFBR-1521 LWL Transmitter to the NI 9402 DIO in a cRIO-9063 cabinet.

What is the maximum Output Current of the 9402?

If it is below 20mA I'm going to use an additional driver.

 

Best Regards,

Chris

Reboot resets NI 9476

$
0
0

I am using an NI-9476 module in a cDAQ system (NI cDAQ-9133 Controller) to control some pneumatic valves.  My software "environment" is Labview 2015 and Windows 7 embedded.  My problem is that when the operating system is re-booted, the NI-9476 outputs are reset.  I would prefer that they be un-altered during a re-boot so that the valves remain in their state at the time of reboot -- instead of all closing.  Is there any way to disable the reset-on-reboot feature?

PXIe 6547, inverse the reference clock (CLKIN) edges

$
0
0

PXIe 6547, how to inverse the reference clock (CLKIN) edges? is there any HSDIO function to inverse/control the ref clock?

PCI-1720U

$
0
0

Hi, I bought the PCI-1720U  analog output card . During the laboratory's investigation, due to an error,   15 volt DC connected to the output of a card channel , and then I could not get data from card again. Is there a serious problem with the card? 

 

PCI-6519 compatibility with Real Time OS (pharlab)

$
0
0

Hi

I want to buy PCI-6519. but I have two question:

1) Is this card compatible with labview real time OS (Pharlab)? On the other hand, I have a real time desktop PC and I want to insert the PCI card to this PC.

2) Does this card has Earth to ground Isolation? On the other hand, Does the body of the PCI card connected to the GND of the card?

Regard

Viewing all 2182 articles
Browse latest View live


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