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

Detect 2 ms changes on USB-6509

$
0
0

Is it possible to use the USB-6509 to detect and read digital changes for 50+ channels. And the changes could be as small as only 2 milliseconds wide?

 

My first idea was to use the Change Detection feature of the 6509 to trigger a read DIO-event.

The data read could then be used to indicate which IO-port changed.

 

An alternate solution could be to poll the DIO continuously and detect the changes through software.

Although this would require a lot more processing. What data rates would be possible over USB?

 

Is this even possible over the USB-interface or do I need a faster interface, like the PCI?

 

Thanks,

JR


Need to know how to hook up a 9219 card to look at a contact . it has a 9 vdc battery and I need to wire it so that it reads the voltage and when I open and close the contacts it will give me an alarm on my system just not sure how to set it up to do this?

$
0
0

Need to know how to hook up a 9219 card to look at a contact . it has a 9 vdc battery and I need to wire it so that it reads the voltage and when I open and close the contacts it will give me an alarm on my system just not sure how to set it up to do this?

PXI-6509 - how to clear user accessible FLASH memory

$
0
0

How do I clear the user accessible FLASH  memory in the PXI-6509.  The NI Letter of volatility says “User settings  may be cleared through the API."  What is the API that must be used to do this  and how do I execute it via my PXIe Controller?

Set 9402 to output in Labview 2015

$
0
0

I am new to labview after being away from it for 3 or four years.

 

I am working with a cRIO-9035 and I am trying to set a 9402 module to output a digital signal.  From what I have read it is capable but I am having problems.  

 

In the project window I can select the module and right click to set the channel I want to output.  However when I drag the module into my project It is shown as an input .  How do I write to the output?

 

The documentation I have read says I need to use some FPGA IO Method nodes to enable output?

 

Thanks

Adding an air actuator to UMI-777R

$
0
0
I am doing my senior design project for college and am making a testing fixture for fishing reels. It consists of two motors and one air actuator. I have got it all hooked up and both motors working the actuator is wired into the digital io pin 8 which is output 0. The air valve just takes a 24 v direct to energize. How do I comunicate to the output I have max and labview up on front of me any and all help is needed

USB8452 - How to set a 20MHz clock in SPI Stream mode?

$
0
0

Hello everyone,
I can't really manage to set a 20MHz clock in SPI Stream mode.

To set the frequency I use this property node (see attached image)
[e.g. To set a 1MHz clock, I set:

  1. Wave1.Tmng.SclkLow=50 (500ns)
  2. Wave1.Tmng.SclkHigh=50 (500ns)]

And everything works fine.

 

When i try to set a 20MHz clock instead, I set:

  1. Wave1.Tmng.SclkLow=2.5 (25ns)
  2. Wave1.Tmng.SclkHigh=2.5 (25ns)

But, unfortunately, I get a 25MHz clock.
I know that the USB 8452 can generate a 20MHz signal so I'm guessing that I'm doing something wrong, but honestly I don't know what to do.
I see that the input for Wave1.Tmng.SclkLow/High is a U32, so maybe it truncates my 2.5 to a 2 (that means a 25MHz clock) but since the USB8452 can generate a 20MHz signal I honestly don't see the point of this.

 

Thanks for any advice/help,
Federico

SPI stream set.png

 

 

Can I power two separate devices using one NI 9474 (Digital o/p module)

$
0
0

I have written a code to use port0/line0 of the NI 9474 to supply current to a Thermoelectric heater which I pulse on and off using LabVIEW. 

 

Now, I want to power one more thermoelectric heater and heat them both to two different temperatures (so their controls in LabVIEW will be different cases). 

 

When I connect it to another port0/line x or even to a different NI 9474 (I have an extra), I get power to only one heater and the other doesn't function.

 

I am connecting all my modules to a cDAQ-9178 (can hold 8 modules).

 

Is there a way around this?

 

 

Can I power two separate devices using one NI 9474

$
0
0

I have written a code to use port0/line0 of the NI 9474 to supply current to a Thermoelectric heater which I pulse on and off using LabVIEW. 

 

Now, I want to power one more thermoelectric heater and heat them both to two different temperatures (so their controls in LabVIEW will be different cases). 

 

When I connect it to another port0/line x or even to a different NI 9474 (I have an extra), I get power to only one heater and the other doesn't function.

 

I am connecting all my modules to a cDAQ-9178 (can hold 8 modules).

 

Is there a way around this?

 

 


strobed words as digital output (PCIe-6323 -> BNC 2090a)

$
0
0

Hello forum,

 

first time post from a very inexperienced user (SOS help!)

 

I am trying to send digital strobed words as output from PCIe-6323 via BNC-2090a to another aquisition system (Plexon OmniPlex). Omniplex is expecting up to 15 bits for strobed data, although I won't need nearly that many.

Could someone advise me (in a very basic way (ELI5)) where (which terminals) to connect the bare wire end of the OmniPlex cable to the spring terminal block of the BNC-2090a and if there is anything further that I have to do to configure things in NI MAX.

happy to hear any feedback or nudges in the right direction.

 

cheers!

 

maybe this will help? OmniPlex Digital Input

 

SSR 9485, cannot set up in Tasks

$
0
0

I have 2 sets of 9178-9485 systems, recently, swtiched computers, and could not setup the SSR in the NI-DAQmx Tasks.

The original interface was like this:

0422e_SSR_correct.JPG

 

now, it's like this:

0422c_SSR.JPG

 

When I tried to change the physical channel, it pops only "port0", there's no line0 option.

0421r_MAX_Task_SSR_cfg.JPG

 

The 9485 runs fine in the Devices and Interfaces, Test Panel.

 

Any help is greatly appreciated!

 

Tiejun

matlab using usb6002

$
0
0

Dear all,

 

I am now using matlab2015a to control the digital ouput with usb6002.

I try to create a ditital pulse by using outputSingleScan function, but it can not control the duration of the pulse.

Are there one has the expereince to use this or some other code or function to control the duration of the digital output?

 

Thanks

 

 

Controlling Multiple Solenoid Valves using NI 9485

$
0
0

Hello all,

 

I am trying to control two (or more) solenoid valves continuously and simultaneously using a NI 9485 which has 8 SSR channels. I tried using two different VI's which apparently does not work because I am using the same hardware (although different channels). Using two DAQ assistants (in two separate loops) caused the same problem. Seems like my only chance is to control them using a single DAQ assistant. The problem with this method (appart from the inconvenience of using only one DAQ assistant) is that I get an error for a mismatch between the array dimensions between DATA and TASK. I tried assigning a 2D boolean array to the DATA but it did not work. I would appreciate it if someone can help me with some specific details as I am new to the LV.

MYRIO

$
0
0

Hi 

 

Can anyone help me figuring out what the update rate on D I/O is in MXP slot A on MYRIO?

 

 

How can I de-energize the channels at the end of the test?

$
0
0

Hello,

 

I am controlling multiple solenoid valves in a cyclic manner by energizing them cyclically inside a loop. I am new to the labview and I am not sure how I can have them all de-energized once a certain criteria is met. At this point, once the criteria is met, the loop stops, but some of the valves remain open. Any help would be appreciated.

 

Sia

Reading out a DIO Card by LV made dll using Visual Basic 6

$
0
0

Hey,

 

we have a Detector that is connected to a NI PCI-DIO-32HS Card. A Vi reads out the input using the DAQMX dll, and processes it. It contains a functions that can be called to read out the detector and computes the data arrays and lists we need. It is also important that the 10 Mhz clock is initialised beforehand. We got an application from the company that made the hardware to do this. We made a dll from this Vi to use this function from Visual Basic 6 since the rest of out measurement routine is written with it. The problem is we do not get any errors from Visual basic, but the function does not write anything into the return values.

 

The header from the dll is:

 

#include "extcode.h"
#pragma pack(push)
#pragma pack(1)

#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
int32_t dimSizes[2];
double elt[1];
} DoubleArrayBase;
typedef DoubleArrayBase **DoubleArray;

void __stdcall FPAS2UniversalScanAcquireMX(int16_t DIOPORT, 

LVBoolean SafeModeDISABLED, LVBoolean NoExternals, double Elements,
double TotalPointsToAcquireCHScans, double EXTInputsMEAN[],
DoubleArray *DetectorOutputALL, double DetectorOutputArrayMEAN[],
DoubleArray *EXTChAll, double DetectorOutputSTDDEV[], int32_t len1,
int32_t len2, int32_t len3)

#ifdef __cplusplus
} // extern "C"
#endif

#pragma pack(pop)

 

In Visual Basic we use this code to call the function:

 

'Function input parameters
Const intDIOPORT As Integer = 0 
Const bytSafeModeDisabled As Byte = 0 
Const bytNoExternals As Byte = 0 
Const dblElements As Double = 127 '128 pixels
Const dblTotalPointsToAcquireCHScans As Double = 1279 '10 laser pulses
Const lngLen1 As Long = 15 '16 external channels
Const lngLen2 As Long = 127 '128 pixels
Const lngLen3 As Long = 127 '128 pixels
 
'Function output parameters;The lists are initiated 1 element shorter as, because they start at zero.
Dim DetectorOutputSTDDEV(127) As Double 
Dim EXTInputsMEAN(15) As Double 
Dim DetectorOutputAll As Long 'Since This is C-Pointer this should Probably be long.
Dim EXTChALL As Long 'Since This is C-Pointer this should Probably be long.
Dim DetectorOutputArrayMEAN(127) As Double
 
'declare the function as sub; this is the way to go if a function is a void. Pointers have to be ByRef as well as Lists. All the inputs can be given as ByVal.
 Private Declare Sub callfunctionsub Lib "FPAS2UniversalScanAcquireMX.dll" Alias "FPAS2UniversalScanAcquireMX" _
 (ByVal intDIOPORT As Integer, _
 ByVal bytSafeModeDisabled As Byte, _
 ByVal bytNoExternals As Byte, _
 ByVal dblElements As Double, _
 ByVal dblTotalPointsToAcquireCHScans As Double, _
 ByRef EXTInputsMEAN() As Double, _
 ByRef DetectorOutputAll As Long, _
 ByRef DetectorOutputArrayMEAN() As Double, _
 ByRef EXTChALL As Long, _
 ByRef DetectorOutputSTDDEV() As Double, _
 ByVal lngLen1 As Long, _
 ByVal lngLen2 As Long, _
 ByVal lngLen3 As Long)
 
Private Sub callfunction_Click()
Call callfunctionsub(intDIOPORT, bytSafeModeDisabled, bytNoExternals, dblElements, dblTotalPointsToAcquireCHScans, _
EXTInputsMEAN(), DetectorOutputAll, DetectorOutputArrayMEAN(), EXTChALL, DetectorOutputSTDDEV(), lngLen1, lngLen2, lngLen3)
End Sub
 
Are we getting the communication between VB6 and LabView wrong? Please do not hesitate to ask if you need any additional files/code to clarify this matter.
 
Thank you in advance!

 


USB-8452 Read Speed is slower than expected

$
0
0

Hi,

 

I am trying to use the USB-8452 to repeatedly read a 2Mb SPI EEPROM, and I am finding the that read speed is much slower than expected.  I am running the SPI clock at 5MHz, so I would expect that the time to read the full EEPROM should be on the order of 0.5s.  Instead, I can not read the entire EEPROM faster than 1.3s regardless of using the LabVIEW basic or scripting models.  With a competing device using a Python programming interface, I reach a value closer to the nominal read speed (0.53s per dump).

 

Are there driver updates or other settings that I may need to change to approach closer to the theoretical speed?  Generally speaking, I don't need the timing granularity that the scripting model provides, so I would prefer to stick with the basic model if possible.

 

I am running LabVIEW2015, and the USB-8452 is running driver version 2.1.3.0.  Attached are the subVIs that I am using to read the EEPROM in my larger project as well as a simple wrapper VI to enable testing.

Acquisition avec Carte USB - 6501

$
0
0

Bonjour à tous.

 

Je dois acquérir des donnés d'un codeur analogique (signal sin cos) ou d'un variateur pour récuperer un trigger pour synchroniser cela avec un autre dispositif.

 

Je dispose juste de la carte USB 6501.

 

Cela peut se faire avec ce dispositif?

Dans le cas contraire il faudrait quoi pour faire cela?

 

Merci d'avance.

problem Labview executable connection with intan cards

$
0
0

Hello everyone,

 

I try to build a Labview executable program to control a Intan card (RHD2000). My program finds the intan board when I launch labview but can't find the Intan board when I launch the executable program.

The problem is located at the lavel of the initialize RHD2000 driver. You can find this vi on RHD2000 palette supply by Intan.

 

Can you help me with that?

 

Thank you,

 

Simon

My NI-MAX stop detecting USB-6501, Windows Device Manager does detect it

$
0
0

Hi Friends... 

Im beginner doing codes in labview and using USB-6501.

 

I have labView 8.2 version and I installed NIDAQmax9.1.1 and I did some programs and tests using USB-6501

 

But now, my NI-MAX does not detect any device that I connect including the USB-6501 that I used. But windows 7 Device Manager is able to detect it without showing any error.

Actually, the green led in the DIO is blinking as normal.

 

Do you recommend something to do or verify ??

Can I generate a 24kHz digital output signal using NI USB 6001?

$
0
0

Can I generate a 24kHz digital output signal using NI USB 6001? 

The manual states "All digital input and digital output updates and samples are software-timed"

 

I don't think I can write to the Digital Output port/line toggling between a 1 and 0 that fast.

 

Or is there another way to implement it?

 

Thanks!

Viewing all 2182 articles
Browse latest View live


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