LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

understanding what is going on

Hello,
 
I am new to Labview so I was just wondering if you could help me to determine if my program is actually doing what I believe it is doing.
 
I am reading Channels 6 and 7 from Device 1 continuously and writing this information to a file.  i am time stamping it everytime I put it into the file
so that I can recreate the waveform graphs.
I think I am going wrong with respects to the timing issues, I dont' think the time that I post is the correct call time for the continuous scan function and am
really unsure why I have the millisecond wait command, I put it in because I saw it in examples. I just want an accurate time corresponding to each voltage value
but am unsure if this is what my program actually does.
 
Is there a way to take the data from my Transpose waveform graph and put it into a file, with the x-y for both channels.
I really dont' understand why the data I am putting in teh file doesn't have the same x values as the graph, it only has a counter from 0-999.
 
I have attached a zip file with screen shots of the front panel, block diagram, and the block diagram itself.
The Cont Scan VI that I have on mine is exactly the same as NI's, but it is made by Keithley to work with my DAQ card.
Thank you for your time,
 
Keith
 
 
0 Kudos
Message 1 of 3
(2,418 Views)
Keith,
 
I don't know if I can answer all your questions but heres what I know.  You put the millisecond wait command in while loops to limit CPU utilization.  When you place a while loop in VI it run as fast as possible unless you have a wait inside.  The way you have it now this wait dictates how often your scan vi runs which may effect the performance of your VI.  If you want the VI to run as ofton as possible take this out.  As you have it know it runs every 100 miliseconds.   Also, I like to use the Wait Until Next ms Multiple vi in a while loop, instead of the wait vi,  its a little different than a regular wait vi.  Look in the help for the difference.
 
Hope this helps,
Brian

Message Edited by BrianPack on 08-16-2005 05:29 PM

0 Kudos
Message 2 of 3
(2,406 Views)
Thanks for the help.
0 Kudos
Message 3 of 3
(2,372 Views)