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

BiSS encoder simulation using a PXI card

$
0
0

I am trying to simulate BiSS encoder position data from a PXI system. The primary purpose of this activity is to have the ability to simulate faulty encoder data to ensure that our software responds in an appropriate way. Is there a card that is capable of doing this, or would I have to implement all of this inside of an FPGA card?


Informations about USB 6343

$
0
0

Hello, 

 

I have got some questions about the way to controlling motors and other instruments with a USB 6343.

I'll controlling this card with python 3 and the lib nidaqmx.

I have to control 2 CC motors. I just have to control the on / off, no use to control the speed. 

The specifications of these 2 motors are: 

Voltage 12V cc, current 50mA.

Is it possible to wire these motors directly on the board or should i use something like a mosfet transistor and finally control the mosfet with the NI USB-6343 ?

 

I've got another motor to control. This one is a little more complicated.

Here the specifications of this motor: https://soda.crouzet.com/pn/?i=80140004
This motor was previously used and some wire are already wired into the box. 

I would know more informations about the way to use it.

 

-Wire 1 (Power ground supply) -> connected to D GND

-Wire 2 (24 V Power supply) -> connected to AO 1

-Wire 3 (Signal ground) -> not connected

-Wire 4 (On/Off input) -> connected to P 0.1

-Wire 5 (Direction input) -> connected to P 0.0

-Wire 6 (PWM speed setpoint) -> not connected

-Wire 7 (0-10V speed setpoint) -> not connected

-Wire 8 (12 points/rev encoder output) -> not connected

 

Does the USB-6343 is able to provide 24V CC to the motor or should i use an external power supply ? 

 

Is it possible to control this material with the nidaqmx lib ?

 

Thank's to anyone would take time to help me. 

 

Best,

 

 

 

 

Triangle Wave Generation in NP PXIe-7821R FPGA

$
0
0

I am a novice and I have only recently started to learn about LabVIEW and NI PXIes.

 

In my lab we have a NI PXIe-1078 (Chasis), NI PXIe-8840, NI PXIe-7821R and NI PXIe-6723. I am trying to generate a 1kHz triangle wave using NI PXIe-7821R. But I the VI placed in the NI PXIe-7821R does not support any triangle wave vi. The only waveform vi available are sine wave and square wave vi in the FPGA control menu. 

 

The added requirement is that I do not want to generate a triangle waveform (waveform data or dynamic data) but I just want to get the triangle waveform in the form of double data.

 

How can I generate a 1kHz wave in this case?

 

 

NI 9512 replacement/ repair

$
0
0

We are using NI 9512 stepper driver modules in 130 pieces of equipment and this is now obsolete. 

 

Is there a direct alternative or is our only option to try and get them repaired if they fail or source from 3rd party companies?

 

Thanks

sbRIO-9627 use of digital channels in combination with NI-9697

$
0
0

Hello,

 

I am currently using an NI-sbRIO-9627 with IDC connector breakout that gives me 4 digital ports and also i am using both RS-232 ports. I am wondering what would be a solution to expand both my digital channels and RS-232 ports ? 

 

 I also have the NI9694 DIGITAL I/O breakout board that i can use for expanding my digital ports but it is not clear to me what is shall to in order to use an aditional RS-232 port on my sbrio-9627.

 

Can you please advice me ?

 

Thanks 

Kleanthis 

Cad-file

$
0
0

Hi,

 

I'm lokking for cad-files (dwg or similar) with 

 

NI cDAQ-9189 CompactDAQ Chassis (8-Slot Ethernet)

 

Best regards

Patrik Rosengren

Using I2C API with cRIO-9048

$
0
0

Hello,

 

I have a cRIO-9048 and an NI-9402 module. I'd like to use the SPI and I2C Driver API to communicate I2C between the NI-9402 module and an external chip. I installed the package and am trying to compile the example code but the compiler is throwing the following code generation errors:

 

Clock domain crossing is not selected for the memory item.

- Memory Read 'Memory Method Node'

- Memory Write 'Memory Method Node'

 

Details:

The memory Read and Write interfaces are located in different clock domains and the Dual Clock Interface option is not selected. Either place both interfaces in the same clock domain or place a checkmark in the Dual Clock Interface checkbox in the Memory Properties dialog box.

 

I found where the memory item is initialized in Initialize Port (I2C).vi, but when I open up the properties for the memory item the "Dual Clock Interface" checkbox is grayed out (this is after I figured out I have to hit Ctrl-M to actually be able to edit the VI). I can activate it by changing the implementation to Block Memory instead of Lookup Table, but doing that breaks the VI and I'm not sure how to fix it. Something about disagreeing data types...

 

The other suggestion in the details is to match the clock domains of the reading and writing nodes. I'm not really sure how to do that either. I don't fully understand the structure of this demo application, I just want to write some I2C... It's also not obvious to me how to make my own implementation that would be any simpler than this example one.

 

Any ideas? It seems the example project is set up for an sbRIO-9631. Is there something special about that device that my cRIO-9048 doesn't have? Some hidden setting somewhere that I'm supposed to know about? In my previous thread on this topic I was lead to believe that everything would work smoothly if I bought a NI-9402 module, but so far that has not been the case.

 

Thanks,

Mitcham

 

 

Unavailable encoder pins on myRIO

$
0
0

I've the program controlling one DC motor using the motor adapter connected on myRIO.

The problem turns out when I try to connect second engine and it turns out that I only have pins DIO18-20, DIO0-2 and DIO4-6 to choose on encoder. But on the NI Motor Adapter the output is connected to pins 19 and 21. I was hoping that I can to change it in file after creating subVI from encoder block. Inside it I see Smart Open block with channels on input and without that I'm not able to change anything. All file looks like a photo and I can only move it.

How can I connect second motor with encoder.

The program with DC motor is in attachment


Use a USB-6002 to simulate a button press

$
0
0

I have a USB-6002 I would like to connect to a MAX6816 switch debouncer to simulate a button press for testing, and would like to leave the physical button in place in the circuit so that either the physical button or the USB-6002 could generate a button press.  To do this I need the USB-6002 DIO line in a high impedance state.  The MAX6816 has a very weak pull-up, in the 100kOhm range.   If I understand the USB-6002 digital input specs correctly, there's a 47.5kOhm pulldown in the digital input circuit.  This effectively pulls down the the MAX6816 input if I try to configure the USB-6002 DIO as an input or tristated output.   Is there any way to get the USB-6002 to switch the 47.5k pull-down out, or to remove it from the board?   Or is there a better way to configure the USB-6002 so that I don't have to drive the DIO line high and effectively prevent the physical button in the circuit from being used?

Using USB-6509 digital IO as Arbitray Waveform Gen but output signal too slow.

$
0
0

Hi, i am trying to read a set of arbitrary waveform data from an csv file and converting the data to boolean type before it to USB6509 for signal generation. The generated arbitrary signal looks ok but the frequency is only about 40-120Hz. The original signal is an almost periodic digital waveform of 1000Hz. How do i make 6509 generate the signal faster?

Linx Digital write to AO

$
0
0

I've been running Makerhub Linx to control a Arduino nano for quite a few years and it works great for SPI and DO pins. I've been tasked with using the AO pins as Digital outputs. I know the nano will do this as I've tested with standard Arduino code. I can't get it to work in Labview. I hope someone here can help.

Thanks

Richard Hutchings

Cbale 781293-01 in 10 m

$
0
0

Hi,

is there NI cable 781293-01 available in 10m length?

Thanks,

USB6501 Digital output to trigger 5vdc relay

$
0
0

Hi All,

 

I am using USB6501 to trigger a 5vdc relay 

when i pull high, i not see the relay triggered. 

after troubleshoot i found that my USB6501 at port P0.0 only give 3.3 v instead of 5v.

are they any setting that i need to do to increase the voltage from 3.3v to 5v?

thanks in advancee7c04056-b806-4716-96ce-14c2b619df4f.jfif

RoboRIO STATUS blinking continously

$
0
0

Hello

I am the mentor of FRC Team 5451

 

When we apply power to the RoboRIO, the STATUS led start to continuosly flashing.

We can not be able to comunicate via USB cable with the roboRIO Imaging Tool 2020.

 

M/N:NI roboRIO

P/N:155213F-01L

S/N:30DBD07

MAC 1: 00802F25750C

No test panel button

$
0
0

I try to use a PCI-6542 with my computer. After intalling the drivers, I can't fint the front panel button in NI-max. What should I do to fix that?

NoTestPanelButton.PNG


USB-6509 RHEL 7

$
0
0

I have a USB-6509 that I would like to control using a RHEL 7 computer. Ideally, I would use the nidaqmx Python library to do so. I'm currently having trouble getting the computer to recognize the device. Can anyone help me with this?

Temperature control with NI USB-6001 - Huge fluctuation at the setpoint

$
0
0

Hi all,

 

I'm using NI USB-6001 to control the temperature of two rope heaters in the system. But I have a hard time controlling the temperature in two situations:

 

1. The setpoint for one heater is 280 C. But, it reaches only 270 C and maintains 270 C (applying PID control). I tried to use only P control to check if it reaches a higher temperature when I set a higher setpoint, but it always reached 270 C and was maintained even when the setpoint was 280, 290, and 300 C.

2. The other heater shows huge fluctuation at the high-temperature setpoint (> 270 C). When the setpoint temperature is less than 270 C, the temperature control works well. However, if I set the setpoint to 270 C or higher, it starts to fluctuate with the range of ±20 C. I tried to use P control to see if it reaches a steady-state at the setpoint more than 270 C, but it couldn't reach a steady-state and just started to fluctuate around the set point.

 

I'm wondering if this is a programming issue or others. I inherited this system from my senior and am quite new to Labview and DAQ systems so any direction would be greatly appreciated.  

 

 

Modulate the LED to realize the switch function,  and acquist temperature from the type-K thermocouple

$
0
0

I plan to buy the NI product to modulate the LED to realize the switch function(on/off) in different time periods,  and acquist temperature(0℃-400℃) from the type-K thermocouple. I also want to add a fan to the system, when the temperature reaches the settled value, the fan will start to work and close when the temperature decrease to room temperature. My budget  is 20,000$.

I find a paper that uses the National Instruments (NI) 6009 8-channel module and 9212 16-channel thermocouple modules for voltage power supply to the white LED and temperature acquisition from the type-K thermocouple, respectively.

Here is my question.

1. In order to achieve high accuracy measurement, I want to by USB temperature measurement kit with NI-9213 and cDAQ-9171. I plan to buy this type-K thermocouple (see in the picture). Does this connection type of thermocouple suitable for NI9213?

 

QQ截图20211210010357.png

 

 

2. Which product of USB-6XXX serious suitable for controlling the LED and fan a the same time? In my experiment, the sample is illuminated by the LED, when the temperature reaches the settled value, the fan will start and the led will close. when the temperature decreases to room temperature, the led will open again and the fan close.  Also, the intensity of led can be controlled by the USB-6XXX.

 

3. What type of LED should I buy to connect the USB-6XXX? The LED connection cab has 4-Pin M8 Connector on one Side and 4 Bare Wires on other Side(see in the picture). How should I do to connect it with the USB-6XXX? 

 

 

 

4. Which product of USB-6XXX has the PWM function? I can use it to control the fan's speed. Of course, this is not necessary. The open and close of the fan are enough for me.

 

5. I see the product of USB -6XXX can output the 5V voltage(Maximum). does this mean the voltage of the LED and fan should be smaller than 5V? 

 

6. If the voltage of the LED and fan is larger than 5V, what should I do to connect the USB-6XXX? Which product of USB-6XXX can provide the larger voltage 10V or more?

 

7. I will buy the USB-6XXX and USB temperature measurement kit with NI-9213 and cDAQ-9171, Can these products connect to the computer at the same time? So I can use the NI-9213 and cDAQ-9171 to measure the temperature and use the USB-6XXX to control the fan and LED.

 

8. Can I use the USB-6XXX to connect 2 LEDs and 2 fans at the same time?

 

9. How could I buy the product of NI? I am from Saudi Arabia, Can NI assign a person to contact and to discuss and place the order.

 

10. After I buy the product from NI, will NI help me to design the code in Labview to control the LED and fan?

Using DIO as Arbitrary Waveform Gen but limited by loop iteration of 1ms

$
0
0

Hi, i tried using a FOR loop to read out a set of data (spaced out at 0.1ms interval) from a file and converting it to Boolean before sending them to a DIO card to generate a arbitrary waveform. But found out the each loop took 1ms to execute and ended up with a waveform that is 10x slower. I tried using pxie and USB DIO cards but the FOR loop still executes at 1 loop per ms.

 

How can i make each FOR loop execute faster? Should i use a Waveform Generator card instead or switch to LV CVI? 

 

 

PXIe 8431/16 Termination Resistors

$
0
0

Does the PXIe 8431/16 have termination resistors (100ohm) required for RS-422/RS-485 RX lines? Can't find anything on this in the datasheet/manual.

Viewing all 2182 articles
Browse latest View live