LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

my program doesn't graph

Hey Dennis

 

It has to be the time elasped multiplied by 1.52 every time. It's part of the specs for the program but I can't get it to work properly. Also, is there any way to control which channel from the Daq I want to collect data from. Like control when the DAQ starts collecting from each channel?

 

thanks in advance

 

Moe

0 Kudos
Message 31 of 49
(1,525 Views)
anyone have any ideas? Don't hesitate to put them on please.
0 Kudos
Message 32 of 49
(1,507 Views)
But you are not calculating elapsed time multiplied by 1.52. You are not calculating elapsed time at all. You have a couple of front panel controls (Start time and Last Read time) that do nothing. They read 0 and never change. You need to use a time function such as Get Current Date/Time or Tick Count before the loop starts and wire it to a shift register. Inside the loop, you subtract the previous time from the last time. You can also use the Elapsed Time function. Whatever function you choose to use, it needs to make use of a shift register.
0 Kudos
Message 33 of 49
(1,494 Views)
I think that worked. Now I understand how to use the shift registers the right way. Did you know how to control which channel you want to collect data from. Like I wanna start data acquisitions from the 4 channels at different times. Is that possible?
0 Kudos
Message 34 of 49
(1,485 Views)
The only way I know of to really acquire at different times is to acquire sequentially. That means that you would start and stop a task for channel 2, then start and stop a task for channel 2, etc. With your current code, you could also just take a subset of each channel. Sticking with Express VIs, the Extract Portion function sounds like it might work.
0 Kudos
Message 35 of 49
(1,481 Views)

Hey Dennis

 

how would I go about implementing that it only starts graphing when it finds a peak. what kind of algorithm should I put in the program. I'm assuming I have to go with a while loop?

 

0 Kudos
Message 36 of 49
(1,457 Views)

Oli Oli Oxin Free wrote:

Hey Dennis

 

how would I go about implementing that it only starts graphing when it finds a peak. what kind of algorithm should I put in the program. I'm assuming I have to go with a while loop?

 


Only if what you think of a while loop, everyone else that uses LabVIEW calls a case statement.Smiley Very Happy

0 Kudos
Message 37 of 49
(1,447 Views)
haha. How would that work?
0 Kudos
Message 38 of 49
(1,432 Views)
Could I just add in the case structure with a peak search in it only or the tone measurements too?
0 Kudos
Message 39 of 49
(1,426 Views)
?
0 Kudos
Message 40 of 49
(1,381 Views)