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

Set-up for Micromanager

$
0
0

I am trying to send TTL signals with micromanager to control devices via NIDAQ USB-6008 .
The micromanager version is (Windows v1.4)

The NI 100X drivers are installed and are visible when adding  them to the hardware configuration of micromanager. (see screenshot)

However, There is a dialogue box that asks for some input: IOChannel value is undefined.

 

But apparently I should put some name here specific to USB-6008.
Does someone know what to put for the IOChannel name?

 

Thank you!

 


Help integrate hardware trigger in a while loop

$
0
0

Hi NI Community,

 

I created an example code to trigger on rise and fall edge on the PFI0 channel and calculate the pulse width of IO0 bit flips. However, I'm having a hard time trying to put this in to a while loop.

 

Here is what I'm trying to do. I'm measuring bit flip of a device and the device output is constant low (0V). Randomly, there will be a bit flip. That means that it could happen at any time during the test.

 

The test is set up so that channel IO0 is tied with PFI0 and that can work as a hardware trigger and capturing data.

 

The problems I'm having:

1. The way I set this up, it looks like the Acquire VI times out when it nothing is triggered. This could be fixed by increasing the timeout of the acquire VI. However, I'm not sure how this will work in a while loop.

2. I want to put this in to a while loop so that this can run more than once. But I have not figured out how to do that. Please help!

3. How do I append the 2 waveforms into 1 plot so it shows the rising edge and falling edge of the waveform?

 

Thank you for your help!

ni-usb 6000怎么采集TTL信号??端口该怎么连线??

HSDIO initializing acquisition and generation tasks in parallel while loops

$
0
0

Hi NI Community,

 

I'm using the example “Dynamic Generation and Acquisition Demo.vi” to write this program.

 

I'm trying to set 2 while loops. One for acquiring data and one for generating high/low logic. 

 

However, I'm having issue with the generation loop. Please see attached for my program.

 

HSDIO_AcqGen_Issue.PNG

 

Here is the example VI I'm talking about

hsido example.PNG

 

Thank you!

Choice NI equipment for many(512) channels measurement

$
0
0

Hello! I need some advice about NI PXI or compactDaq.
Our laboratory testing electronic chips. We want by some new equipment. Our manager want to buy system with 512 channels to check big FPGA chip. But for me use PXI for this task is no logical. We do not need high speed measurement, we can test it consistently step by step, but how ? Use some multiplexor module its a bad idea, because their have own resistance. Maybe we do not now something about PXI or compactDAQ?  We need to by 4 module with 128 channels each? If we not need tested all channels for one time maybe we can do it use 32 channels and switch their ? How NI equipment can work with so many channels with low speed ?

Connecting Digital output of a sensor to Analog input.

$
0
0

I have connected the digital output of the PNP type sensor to Analog input in Single-ended mode. I am getting a Square wave. 

Expected: Ideal case 0v should be obtained. When an obstacle crosses the sensor 10 V signal should come. 

Actual     : Pulse waveform is obtained ideal condition and 10 V signal is obtained when the obstacle cross the sensor

 

Please help me to resolve the issue.

 

 

Thanks,

Anbarasan.

 

Questions for NI9401

$
0
0

Hi everyone,

 

I have two questions regarding NI9401:

1. Is there a signal breakout board for NI9401 module (for separating channels from the d-sub connector) available for purchase, or we need to design our own breakout board?

2. Does anyone have experience using NI9401 to input to Power Integrations gate driver core?

 

I look forward to your reply, thanks!

DAQ problems

$
0
0

I'm trying to write a data acquisition program in Visual Basic 6.0 running on a Windows 10 platform.
I have a DAQ system with a USB6251 OEM board installed and a microphone acting as an acoustic sensor.

I have stripped my VB program down as far as possible so as to remove any potential causes of error.

It looks like this:
**************************************************************************
Option Explicit
Dim taskHandle As Long
**************************************************************************
Private Sub btnStart_Click()
Dim data(1000) As Double
Dim numRead As Long 'variable stores the actual number of samples read
Dim terminalConfig As Long

terminalConfig = 10106

' Define error checking function
'#define DAQmxErrChk(functionCall) if( DAQmxFailed(error= (functionCall)) ) goto Error; else

'// Create Task
DAQmxErrChk (DAQmxCreateTask("", taskHandle))
DAQForm.Print ; "Done Create Task"

'// Create voltage input channel
'DAQmxErrChk (DAQmxCreateAIVoltageChan(taskHandle, "Dev1/ai0", " ", DAQmx_Val_Cfg_Default, -10, 10, DAQmx_Val_Volts, " "))
DAQmxErrChk (DAQmxCreateAIVoltageChan(taskHandle, "Dev1/ai0", " ", terminalConfig, -10, 10, DAQmx_Val_Volts, " "))
DAQForm.Print ; "Done Create Channel"; DAQmx_Val_Cfg_Default; DAQmx_Val_Volts

'// Configure sample clock timing
DAQmxErrChk (DAQmxCfgSampClkTiming(taskHandle, "", 100, DAQmx_Val_Rising, DAQmx_Val_ContSamps, 1000))
DAQForm.Print ; "Done Configure"; DAQmx_Val_Rising; DAQmx_Val_FiniteSamps

'// Start Task
DAQmxErrChk (DAQmxStartTask(taskHandle))
'DAQForm.Print ; "Done Start Task"

'// Read data
DAQmxErrChk (DAQmxReadAnalogF64(taskHandle, 100, 10, DAQmx_Val_GroupByChannel, data, 1000, numRead, ByVal 0&))
DAQForm.Print ; "Done Read Analog"


'// DAQmx Stop Code
DAQmxErrChk DAQmxStopTask(taskHandle)
DAQmxErrChk DAQmxClearTask(taskHandle)

End Sub
**************************************************************************
I have 2 modules linked in.

The first is NIDAQmxErrorCheck.bas whch contains the DAQmxErrChk function.
The second module is NIDAQmxBase.bas which handles the calls to the NI-DAQmxBase library.

At the Create Voltage Input Channel line, I run one or other of the commands to see if either works. The outcome is the same.

I get either a DAQmx Error Code 201003 Device cannot be accessed or else it prints out the diagnostic prints after each DAQ command then the program crashes.

 

I can't understand why I get the 201003 message. When I plug in my DAQ system, I call up the NI Device Monitor. It is set to Differential mode and when I move the microphone, the output voltage waveform jumps all over the place - which is entirely what I would expect. That confirms to me that, at least, a signal is getting into the laptop. So why does my program say the input device is absent or unpowered?

 

If I don't get the 201003 message, then the program executes the diagnostic print statement at DAQForm.Print ; "Done Configure"; DAQmx ... then the program crashes out.


Can someone kindly explain to me what I need to do to ensure that the program continues through the Start Task and beyond without crashing?


'/Zl' and 'Gy-' incompatible error when programing NI-845x in C/C++

$
0
0

Hi, 

 

I'm trying to use the C example codes (basic reading and writing) of the NI USB-845x in MS Visual Studio 2019 Community. 

 

The basic writing example runs correctly with no error. But when I try to compile the reading code, it shows one error that is '/Zl' and '/Gy-' command-line options are incompatible'. The error seems not origin from the .c code file but the whole project. The compiler shows the error is at line 1 of the file 'cl', but I cannot find a file called 'cl' in the path the compiler shows to me (it shows the path of the project).

 

Screenshots are attached for both the error of the Reading code and the correctly compiled Writing code. My computer runs the Windows 8.1 and the 845x driver version is 17.0.

 

Do you have any suggestions that how can I solve this issue?

 

Thanks,

Eric

 

 

845x_C_Reading_Error845x_C_Reading_Error845x_C_Writing845x_C_Writing

NI 9472 PWM Custom Frequency

$
0
0

Good day.

I want to know how can I create a PWM signal in CRIO 9075 with module NI 9472.

On the module properties in Labview for PWM is only, 1hz 10hz 50hz 250hz 500hz 1k 5khz 10khz 20khz. 
What I want to do is to create a Function Generator where I can vary the Duty Cycle and Frequency 1hz to 5khz.

Which digital output module for ~5v logic level output

$
0
0

Hello.

 

I have a group of people that are putting together a switchbox for controlling a large amount of relays. We have typically used NI-6353 DAQs to activate a MOSFET which would then activate a relay inside the switchbox for each channel, but have recently switched over to a cDAQ. We bought in an NI-9477 module thinking that it would do a similar job as the DO ports on the 6353, but realized very quickly that the 9477 is not meant for this purpose, and is more similar to the switchbox itself.

 

As we need to use the switchbox so that we have a way of either manually activating a channel, or remotely activating a channel, it seems that we need to get a different card. I understand that the 9477 could be hooked up to an external 5v power supply, and therefor be used as a workaround, but my engineers only want 24v in the area, since they will be running everything through a 24v battery.

 

So, my question is which cDAQ module would be best for what we need? We need at least 16 channels, and since it is driving a MOSFET rather than the relay directly, we only need 3-5v, with essentially no current. I was looking into a 9403, but must admit that I am not well enough versed to make the call.

 

Thank you in advance.

NI5450 , generating timed output triggers via PFI0, PFI1

$
0
0

Hi,

 

We have an NI5450 arbitrary function generation. We use Channel 0 to send a signal to be captured by an ADC and an FPGA downstream for online processing.

 

Would like to use the PFIs as trigger outputs to the FPGA , with a given sequence with respect to the output data stream (see attached).

 

I am trying to figure out from the documentation what functions to use. From the NI5450 user guide I think I need:

 

1- niFgen_ConfigureDigitalLevelScriptTrigger. 

2- Export these triggers to PFIs.

3- reset triggers when exiting application.

 

But I can't manage to find examples of level script triggers that I can use.

 

How do I define the wait periods between triggers? And how to define a delay between setting a first trigger and start generating data out?

 

For convenience , these delays should be in units of the sampling clock that the NI5450 uses to generate data. 

 

Regards

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

6570 Compatibility with Third-party PXI Controller

$
0
0
Hey guys, I have one set of NI PXI Platform, the PXI chassis is PXIe-1082, and there're several cards inside it, such as PXIe-6570, PXIe-6368 and PXIe-4142. I have replaced my NI controller with Adlink' PXIe-3985, but self-test in Max has failed. When I run the examples, error occurs in "burst pattern.vi". Besides, when I new a pin map, I can't find the related modules. All the other NI PXI hardware can communicate successfully with PXIe-3985, except for the 6570. The NI PXI controller also works well with 6570. Has anyone encountered this problem? It seems there's some incompatibility between 6370 and 3985, such as SMBus communication. The driver version is NI-Digital 18.0, both NI and Adlink controller run 64-bit Windows 7.

USB NI-8451

$
0
0

Hi 
I got an old USB 8451 box where GND pins on the connector and USB connector GND is shorted.
I also got a brand new one where the two connections id isolated from each other.

Is the deferens because the first one is defect or has NI changed this over time?

I have search the HW manual, but it gave me no answer.

 

Thanks in advance

 

Bjarne

How to detect and send digital I/O using matlab?

$
0
0

How to use matlab to detect and generate digital input output form a NiDAQ using matlab?
I do not want to use simulink. Is that even possible? I have a sensor and a LED light. When I put my figure near the sensor the LED turn on, when I let go the LED will go off. IS that even possible in Matlab? I believe matlab don't run things continuously.


PCI-DIO-32HS Win10 Replacement

$
0
0

Hi,

 

I'm currently looking to design an upgraded system that will run on Win10 using a similar card to the PCI-DIO-32HS as this is the card that was used on the original system back on WinNT. Is there a direct replacement that is currently being manufactured and can run on Win10?

 

Thanks.

Ni-XNET Bus Monitor - Settings and Signals Configuration save location

$
0
0

Hello,

 

I am using the NI-XNET to sniff the can bus. I have the CAN port and "Interface and Database" selected. I have also setup all of the signals the way I want it. It works great.

 

When I close the program and restart it, the information I previously put in is still configured based on the CAN Port I select.

This tells me the configuration information is saved to file somewhere.

 

Does anyone know where this information is saved? Is it possible for me to "export" or "save" this configuration? 

 

There are other members of my team that would benefit from this, so they do not have to take the time to configure it themselves. 

 

Regards,

Red 

Recommended wiring for unused/open digital input channel on NI 9425 Digital Input Module

$
0
0

I am wondering the best way to wire unused/open digital input channel on a NI 9425 digital input module being used in a real-time compact RIO system. I would prefer the unused inputs be logic low. Do I need to use a pull-down resistor? If so, what value resistor would you recommend?

 

Thank you.

5DCV TTL(such as USB-6501) to/from 24DCV PLC IO

$
0
0

I am looking for converting device between 5V TTL, such as USB-6501 DIO signal, and 24DCV used in PLC DIO.

I use PLC to control test system, and use PC for DAQ.

By analyzing DAQ data, I need to cut into control sequence.

Also I like to keep records of system status, such as pump and motor running signals.

I like to communicate with PLC through DIO signals, so that, I do not need to care which manufacture or what model used.

I like to purchase converter board, not making one.

 

Reverse Polarity on DC Power Supply

$
0
0

Hello, I am currently attempting to reverse the polarity from a DC power supply. Basically, I want to create an option in labview which can switch the polarity of a voltage at a given step. I was wondering if there was a way to do this through a DAQ? or should I look at making a whole circuit like an H-Bridge? The application is to a semi-conductive material which behaves differently at different voltages, and when polarity is switched. just trying to automate my test.

Viewing all 2195 articles
Browse latest View live


Latest Images

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