Quantcast
Channel: Multifunction DAQ topics
Viewing all 6883 articles
Browse latest View live

Set Digital Out as Open Collector in NI MAX

$
0
0

I am not sure where the best place for this post should go since there isn't a NI MAX Board:

 

Is there a way to set a digital out as an open collector (assuming device supported) through NI MAX?  Via Global Channels/Tasks/Device Config?  I am currently using the USB-6001, but see no way of performing this in MAX.   I know there is the ability to do it via a channel property node within Labview (http://digital.ni.com/public.nsf/allkb/D9B4018C3E540CE4862570F30068C0DB)

 

If there is no way to do this, could this be a possible future feature (along with the ability to change other properties via MAX)?


cDAQ 9181 NI 9239

$
0
0

Hi I have a cDAQ9181 with a NI 9239 device inside as a network device. When I attach the cDAQ9181 to our corporate network the Measurement & Automation Explorer has no problem in finding the device, then I simply click "add device" and the drivers of the NI 9239 are installed and I can start collecting data.

This should also work when I directly connect with the device via an ethernet cable according to the documentation, however when I do this I can only get as far as finding the device and when I want to add the device so that I can see the NI 9239 I get the following error:no_connection with NI device.JPG

So I thought it might have something to do with my firewall settings so I turned everything off but I still got this message. Then I tried using a different switch but still got the same error. Could someone give me any fresh ideas to try?

PXI 6225 self calibration error 201294

$
0
0

Hi,

 

I try to revive a few PXI-6225 M series DAQ cards, which were on the shelf unused for a number of years. I can read voltages on a the AI channels  (I used a voltage source and shorting of analogue inputs) The zero is shifted significantly (by about 0.5 V), the slope seems OK.

 

I tried to run self-calibration, but I got the following error message:

 

-201294_error.jpg

 

-201294 Device could not complete the calibration operation

1. The actual reference signal applied for calibration was different from the value you specified. Ensure that the reference signal applied is the same as the values that were input.

2. The reference signal was not stable over the period of time that the hardware was being calibrated. Ensure that the reference signal specified is free of noise and does not drift over the duration of the calibration.

 

Strangely, the data from the last calibration is missing (N/A) and current temperature is -50 degree C.

 

properties.jpg

 

Can I fix this error somehow myself or should I send it to NI for calibration/repair?

 

Best regards

 

Marton

 

usb 6212 no power

$
0
0

I have a USB 6212 device which seems to have developed a problem. The device does not power up on connecting to the laptop USB port. I have tried to change the cable but the problem persists. The LED adjacent to the USB is not lighting up. Is there some fuse etc which might have blown up. How can i test this device. Kindly help

 

Deepak

Faulty readins when input voltage is above 1.1 VDC

$
0
0

i have a NI USB 6351 multifunction DAQ unit that has been working fine up uintil today.  Now I am getting strange behavior. Wondering if anyone has any ideas what could be up.

 

I am using the Measurement and Automation explorer Test Panels to look at analog input samples.  Input is configured for -10 to +10, Differnetial signaling.

My input is coming from a DC power supply.  Readings look good when the input voltage is below about 1.1 volts DC.  When I increase the voltage to about 1.2 VDC, the readings begin to jump to +10.5 (or so) and back to the correct value.  If I continue to increas the input to around 1.4 VDC, the reading jumps to about +10.5 and stays there.

 

Any Ideas what may be causing this behavior?

custom pcb for National Instrument PCI-6221 and PCIe-6321

$
0
0

Background information:

Build a custom test bench system with two PCIe-6321 national instrument DAQ Card connected together. Last year I build a custom test bench system with two PCIe-6321 national instrument DAQ and two BNC-2110 shielded connector lock and lead wire. The custom test bench system is working perfectly.

 

We need to expand the custom test bench system four our project.  We need to build five custom test bench system with exactly the same setup. This time a design a custom PCB with Eagle Cad-soft Software four this purpose. I find the proper SCSI connector on digikey corporation website. Reference number for this connector: Amplimite .050 Series 2-5174341-5

I can share the PCB design files with the community, please let me know.

 

 

To secure the National instrument cable, I need a proper standoff for this application.

Please send me the order number for this standoff. The same standoff that is installed of the BNC-2110 shielded connector would be exactly what I want four my project.

 

Thank you in advance   

How to Pause an Unpause two synchronized AO and AI tasks, everyN, using only software DAQmx

$
0
0

I'm using DAQmx with Python on a USB 6363.

I currently have AO an AI tasks synchronized as per the example code, "SynchAI-AO.c".

 

However I'd like to be able to pause the task every N samples so I can go and do some other stuff, then restart again later when that other stuff is done.

 

I started with something like the following function in a PyDAQmx task object:

def setEveryN(self, N):
""" Change how often the callback is called """
self.lenToRead = N
self.AutoRegisterEveryNSamplesEvent(pd.DAQmx_Val_Acquired_Into_Buffer, N, 0)
if N != len(self.data):
print('Configuring pause trigger')
self.SetPauseTrigType(pd.DAQmx_Val_DigLvl)
self.SetDigLvlPauseTrigSrc(....????????)

 

All the discussion about triggering is about physical wires, so I figured I could set the pause trigger to be when the AOTask has done N samples, but then I got very confused about what terminal and signal to connect, and I have no clue how to UNPause (ie restart) the sampling again with software control.

 

Can someone please provide some pseudo code, or actual C or Python code for this?  I don't have LabView, so I'm unable to interpret VI images.

Otherwise, I think I may have to manually re-arm the device every N samples.

 

(In most circumstances, N is actually 1, so I want to do something in between each DAQ sample).

 

It's conceivable I do the extra stuff within the EveryN callback, but this other stuff is slow, so I'd have to set DAQ sample clock to something very slow, which is probably fine, but then it's a matter of trying to find a suitable rate, which means some hand-tuning for overall timing.  I'd rather everything be sequential and serialized/synchronized on the same thread.

 

 

Thanks

 

블랙썬카지노//【AKC888、C0M】\\명품카지노

$
0
0

블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노블랙썬카지노//【AKC888、C0M】\\명품카지노


Is it possible to maintain the last AO value after the DAQmx task is done on device DAQ USB-6341 ?

$
0
0

Hi all,

 

I use the device DAQ USB-6341 to generate the desired voltage waveform by the "finite samples" sample mode.

I notice that the channel resets to zero volts after the DAQmx task is done and the DAQ USB-6341 does not have 

the property AO.idleOutputBehavior to select "Maintain Existing Value".

 

How can I maintain the last AO value after the DAQmx task is done on device DAQ USB-6341 ?

 

Thanks.

 

Godel

 

Saving DAQ logged TDMS file in Modified TDMS File

$
0
0

Dear, Measurement Background:

I had done measurement NI DAQ unit (Model: PXI1033, with NI-6143 measuring unit). Measurement type is Voltage.

I am saving the measurement file in to *.tdms file. I want to read and remove some waveform data from *.tdms file and I have to write back in to another file in *.tdms file. In the enclosed TDMS.vi, I was obtained data from measurement file and writing back to result file. Both are containing same data but, the file memory size are different.

My application requirement is, I want reduce the measurement file size by removing some unwanted data.

Kindly copy the Measurement.tdms file in to same VI location. Regards. Vinothkumar P

daqmx usb 6343

$
0
0

hi

 

i am using a usb 6343 card

how can i mantain the ao value after the task close

 

thanks

david

usb 6211 low pass filter c

$
0
0

I have a USB-6211 DAQ and am looking to add a lowpass filter at 1Hz. The code below shows my current implimentation however I am not sure what I am doing incorrectly as the filter is not being applied.

 

DAQmxSetAILowpassEnable(task_handle_, channel.c_str(), true);
DAQmxSetAILowpassCutoffFreq(task_handle_, channel.c_str(), 1);

 

 

// where:

// channel = "Dev1/ai0:5"

// task handle is being set via:

// DAQmxErrChk(DAQmxCreateTask("", &task_handle_));

// and started via:

// DAQmxErrChk(DAQmxStartTask(task_handle_));

 

The current order I am using is:

  - Create task

  - CreateAIVoltageChan

  - CfgSampClkTiming

  - RegisterEveryNSampleEvent

  ** SetAILowpassEnable

  ** SetAILowpassCutoffFreq

  - StartTask

Dynamically updating output waveform in .NET

$
0
0

Hello,

 

I would like to output a waveform and update its characteristics with minimum delay possible (without stopping the task).

 

So I tried to use EveryNSampleWritten event to trigger a writemultisample in an independent theread loop, but output doesn't change when I update the data with different values...Can anyone please tell me how to fix this?

 

Task configuration:

 

 

try
            {
                myTask = new Task();
                myTask.AOChannels.CreateVoltageChannel(physicalChannelComboBox.Text, "aoChannel",
                    outMin, outMax,
                    AOVoltageUnits.Volts);
                writer = new AnalogSingleChannelWriter(myTask.Stream);
                myTask.Timing.ConfigureSampleClock("", freq, SampleClockActiveEdge.Rising, SampleQuantityMode.ContinuousSamples, len);
                myTask.Stream.WriteRegenerationMode = WriteRegenerationMode.DoNotAllowRegeneration;           
                myTask.EveryNSamplesWrittenEventInterval = len;
                myTask.EveryNSamplesWritten += new EveryNSamplesWrittenEventHandler(NSamplesWritten_callback);                            
                myTask.Control(TaskAction.Verify);

                //Start output loop
                outData = Ramp(len, 5, 0);
                writer.WriteMultiSample(false, outData); 
                myTask.Start();

                Writer_loop_stop();
                Writer_loop_start();
              
            }
            catch (DaqException ex)
            {
                MessageBox.Show(ex.Message);
                return false;
            }
            return true;

 

Software event trigger:

private void NSamplesWritten_callback(object obj, EveryNSamplesWrittenEventArgs args)
        {
            nsampWritten.Set();
        }

 

Write loop thread:

 

private void Writer_loop()
        {
            while (!th_writer_stop)
            {
                writer.WriteMultiSample(false, outData);
                nsampWritten.WaitOne();
            }
        }

 

 

Data update:

 

        private void button_update_Click(object sender, EventArgs e)
        {
            GUI_get();            
            outData = Ramp(len, outMax, outMin);
        }

 

Thank you!

 

 

My DAQ, NI usb-6008, shows in devices and interfaces but not in NI-DAQmx Devices.

How to wire a 2 wire loop pressure transducer to NI 9949 RJ-50

$
0
0

I am new to NI and data logging.

 

I want to connect a 4/20mA, 2 wire loop-powered pressure transducer to an NI 9949 RJ-50 screw terminal ... which will then connect to an NI 9237 input module.

 

The NI 9237 module is installed into an NI compact DAQ 9174 chassis.

 

I will be measuring truck air brake system air pressures from Zero kPa (gauge) up to an allowance of 1000 kPa (gauge).

 

The 2 wires on the transducer are identified as:  + Power and + signal

 

I would appreciate advice on the correct terminals on the NI 9949 RJ-50 please


calibration of different channels of a daq to different values

$
0
0

I need to calibarte different channels of a daq. how i can do this. IN this VI all the channels are prescaled to a same prescribed value. But how to calibarte different  channels of a daq to different value.at.PNG

Fgen : Synchronisation + Delay insertion

$
0
0

Hello everybody !

 

I have a PXI system in which I have a 5422 FGen allowing me to generate a "10 periods sinusoidal burst".

The 5422 FGen also has the following connections : ch0 ; Clk in ; PFI 0 ; PFI 1

 

I would like to insert a "timing reference" signal (in PFI0 e.g.) and generate my burst "x" ms later. Is there a function directly related to the fgen allowing to perform such a thing (synchro + delay) ? Do I have to use DAQmx possibilities (I must admit I am a little bit lost with the DAQmx functions ...).

 

Here is the part of my code  where I assume I could insert the function I am looking for.

 

Capture.PNG

 

Can anyone help me ? Thank you in advance !

 

voltage change in NI PCI 6110 causes jumps

$
0
0

Hello!

We are using NI PCI 6110 along with  BNC 2110 to measure signals from 2 identical detectors (signals are slightly different; in a range 0.2-5V). We get signals from the detectors, subtract offsets and take the ratio. Depending on the signal voltages, we have to control the card input voltage range. When we change the voltage range, we always see a jump in the ratio. The jumps are quite small (<1%), but  they are very consistent and reproducible (i attached some example of the ratio as function of different incident power / voltage on the detectors). Can anyone suggest some ideas what causes those jumps and how to get rid of them? Thanks

long non periodic signal generation

$
0
0

Hello,

 

I am starting with daq so sory if question is obvious

 

In my project I have to set very long output controll signals (non periodic) at very low rate ( 1 sample per 5 sec) and acquire data at faster rate lets say 1kHz and I want these signals to be synchronised and later after aquisition I need to draw some characteristics and calculate parameters.

 

Untitled.png

 

So I think that I will start generation and start read by trigger. when generation is done I will stop reading and start processing.

Is it wise to create big buffer for my write function put all signal there and then start generation? In my case buffer size is up to 200MB per channel.

Or should I put generated signal in smaller buffers lets say 1MB and when generation is done insert next buffer and start generate again? What will be delay while I insert this next part of my signal into buffer? Documentation says that X series supports retrigger so I wouldn't have to reset my read task. 

 

Thanks in advice

 

generating two triggers with delay

$
0
0

Hi,

 

I need to generate two digital output triggers: for example, one trigger in channel 0 and the other in channel 1 with 0.25msec delay.

I'm using USB-6001 and looking for VC++ sample for a similar application.

 

Thanks,

Hyun

Viewing all 6883 articles
Browse latest View live


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