02-17-2006 12:49 PM
I have attached the code and the image of the front panel. I am not able to record data after 5000 Hz eventhough the signal runs upto 10000 Hz. I would be greatfull for your help.
02-17-2006 12:55 PM
I have attached the code and the image of the front panel. I am unable to record frequency, power data beyond 5000 Hz, eventhough the signal runs upto 10000 Hz. I would be gratfull for your help.
02-20-2006 07:07 AM
02-22-2006 08:22 AM
Thanks for the help. I have made the sampling rate of the AI at 65536 ( see attached JPEG file of the front panel). I can acquire the data as a text file for the frequency range I have set up, ie from 0 to 14000 Hz ( see attached text file). But I don't get the spectrum in the same range (ie from 0 to 14000 Hz) in the X axis of the spectrum graphs (see spectrum dB and spectrum dB2 in the JPEG file) in the front panel. Can you help me to resolve this problem.
02-28-2006 10:47 AM
The reason that the spectrum plots did not have the same range as the initial frequency plot is that the initial frequency plot was of the entire power spectrum cluster. The later spectrum plots were only graphs of the magnitude, you need to re-bundle the cluster before plotting the spectrum plots if you want the same range as in the first graph.
I have tidied up your code for you and re-bundled the data before plotting.
Please bear in mind for the future that it is good practise to try and write your code left to right as it is easier to follow the codes flow, you might also consider using sub-Vis to compartmentalise your code in future.
I would also suggest you synchronise your output and input as posted earlier by SachaE:
“The AI would need starting before the AO; otherwise you'll lose some information.
If you want to do it repetitively putting a while loop around it will leave breaks in the data whilst it reconfigures.
Look at a continuous setup instead, and keep feeding the AO repetitively without reconfiguring after setting up for a continuous AI.Search for things like simultaneous AI and AO”
02-28-2006 10:49 AM
I have attached to this posting a piece of example from the NI Example finder: “Multi-function-synch AI-AO.vi”
This example demonstrates how to continuously acquire and generate data at the same time, synchronized with one another.
For your information this example can be found by clicking “help” on the toolbar within LabVIEW >Find Examples > Browse > Hardware Input and Output > DAQmx > Synchronisation > Multi-function > Multi-function-synch AI-AO.vi
If you follow this path there are instructions for running the example vi as well as a description of the block diagram steps executed by the vi in the information box to aid understanding of the workings of the example code.
I hope this information helps,
NIUK & Ireland
03-01-2006 10:57 AM
Thanks for the help. Can you please post the JPEG image of the front pannel+block diagrams of the attached programmes. I have labview 7.1 so I can't open them as they are in Labview 8 .
03-02-2006 07:13 AM
I've rebuilt my previously posted modifed version of your code in 7.1 for you.
Make sure that you set all the graphs so that they have autoscale X enabled - or you won't be able to see the full ranges.
Let me know if this answers your problem.
NIUK & Ireland
03-04-2006 12:16 PM
Thanks. I think I have got it now.
Thanks for all the help.