I started with LabVIEW in last year. I have a short question for you with my little trouble. In first of all my VI must counting up and down in the range 45 to 145. On first program step, two case structures will stop count, if we get number out of range. In case of we writes a good number, last procedure will launch counting from zero to number on input, but I want to start incresing/decreasing from last number on output not from zero like in this case. Have anyone problem like me ever? Thanks for respond and support.
This one caused me a day of grief.
Turns out an error in the start up logic of one of my applications would request a duty cycle of NaN to a counter output I'm using for pulse width modulation. The problem is the NaN request goes through without returning an error. But the next request to update the duty cycle hangs the DAQmx write VI. After hanging, there's no way out, aborting the calling VI leaves LabVIEW in a sorry state.
WARNING: Running the snippet above can leave LabVIEW in an undefined state. Save your work before you do so!
Now obviously a NaN duty cycle makes no sense, but I'd expect DAQmx to be able to handle such requests gracefully, either by ignoring them, or preferably issuing an error.
I've observed this behavior on the USB-6343 device.
I need some help.
I have a motor that moves a tray.
During the movement of the tray, 2 switches will change value.
I want to read out the counter value / motor position when the signal of the switches changes. (rising and falling edges)
At this moment the only thing I can think off is a loop vi that reads the value of the swicthes and motorposition and evaluate the swicth states... But i'd rather have the position reading triggered by the digital lines.
I'm running LV2010SP1, DAQmx 9.4
cDAQ chassis: 9178
NI 9401 module => encoder signals are connected to this one.
NI 9403 module=> 2 digital inputs(so the switches) are connected here.
Thanks in advance for your help.
By Neville D
working on my first reconfigurable IO project using a PXI 7811R with LabVIEW RT. I am building a quadrature encoder counter using a couple of the NI examples, and was wondering if there were any caveats to changing it to use an I-64 as the counter output? The NI example uses a 32 bit integer for the count.
In my version, I changed it to an I64 count output and added a speed (counting ticks between pulses) output as well.
It seems to work fine, but would appreciate any cautions that experienced FPGA users might have.
PS. Cross posted to info-LabVIEW as well.
I wrote the following program trying to output a series of 100 samples of pulses whose frequency is ramping up from 10 to 100. Device: PCI-6229.
I got error: -201291: Pulse specifications cannot be written to a finite counter output task on this device.
I do not know what was wrong.
Basically I have no idea how to use the vi, DAQmx Write: Counter Freq NSamp 1Chan or NChan
I do know how to use property node to change frequency and duty cycle on the fly. However, In this particular post I would like to know how to use this NSamp VI.