11-07-2020 12:32 PM
Hello all
I have a tachometer and I would like to have a simple counter but I have some problem on my programs. I used two ways:
1- I use Daq assist (please see below picture).
I have number one when tachometer can see label but I have zero when it is normal and zero number
make the shift register zero again.
What should I do to have only number one and in off time having nothing?
02- I used Daqmax in this program and you can see my program in attached picture :
I didn't have any counter. Would you please help me to know what is the problem in second program?
I check tachometer signal with NIMAX and it is ok.
Thank you
11-07-2020 03:28 PM
Pictures of LabVIEW code are almost useless to many of us -- we need to see actual LabVIEW code, i.e. files that have the extension ".vi". When dealing with DAQmx, it is extremely useful to know what NI hardware you are using. You mention a "counter", but I can only see (again, in a "picture", so I can't learn much more) that you might be using an A/D converter (and if so, why?). What is the nature of the device generating the signals you are trying to measure with your unknown DAQ device?
Bob Schor
11-07-2020 07:58 PM - edited 11-07-2020 08:09 PM
As a first step you should do some basic LabVIEW tutorials and look at the shipping examples. While as Bob already said we cannot tell much from a picture (express Vi configuration (DAQ assistant, from dynamic data) not visible).
There are some glaring issues with what we can see:
When you do a comparison with dynamic data, the result will be dynamic data containing only zeroes and ones. Why are you carrying everything as dynamic data and 1D array if all you are interested is a single scalar (i.e. he first element that can only have two possible values)? Why is the shift register not initialized?
11-08-2020 02:21 PM
I am sorry, I know it is hard for professionals to work with amateurs like me.
I am using USB6009
I attached files here.
Thank you
11-08-2020 03:04 PM
Can you step us through your though process. How does the signal look like? What are you actually trying to measure and how should it end up as a counter result? Please be specific.
11-23-2020 01:58 PM - edited 11-23-2020 01:59 PM
Hi to all
I brought this thread up again to make it end.
I finally programmed my request.
It is like this :
Thank you
11-23-2020 02:26 PM - edited 11-23-2020 02:28 PM
Hi Sml,
@Sml2010 wrote:
I finally programmed my request.
Using SimulateSignal instead of DAQAssistent: