05-01-2007 08:38 AM
05-02-2007 06:51 AM - edited 05-02-2007 06:51 AM
Dear Mr Nice
There are plenty of tutorials available on our website which cater for different levels of programming experience. I have provided links below to a couple that I would reccomend. Feel free to follow links off these pages to explore other areas of counting/timing behaviour. There is also a good degree of information in the help menu in LabVIEW aswell as some excellent examples which can be found in the example finder, also in the Help menu.
I hope this will provide a solid foundation for you.
Regards
Rob
Links:
Counting edges - http://zone.ni.com/devzone/cda/tut/p/id/2735
10 handy things to Know - http://zone.ni.com/devzone/cda/tut/p/id/2835
Pulse width measurement - http://zone.ni.com/devzone/cda/tut/p/id/2875
Period measurement - http://zone.ni.com/devzone/cda/tut/p/id/2868
Frequency measurements - http://zone.ni.com/devzone/cda/tut/p/id/3619
Pulse Train Generation - http://zone.ni.com/devzone/cda/tut/p/id/2760
Message Edited by Rob L on 05-02-2007 06:52 AM
05-02-2007 07:29 AM
Thanks Rob L for you reply I hope after all this time I am fairly decent at LabVIEW but what that actually means I have no idea as I have no one I can compare it with.
Specifically what I want to do is that I have inherited someone elses code for setting up a 6602 timer at work and it is written using the traditional daq drivers. I want to learn about the timers and re-write using daqmx.
I have theorised that the card must be setup via this LabVIEW program which sets up 8 waveforms, the program itself just sets up the channels but has nothing to do with generating the wavform as the card in order to be accurate must work independantly of operating system and software (can you imagine trying ms resolution if Bill Gates decideds to check if the printer it is still ok at the vital moment), The card must wait for a trigger and then just output the wavform. The figure basically shows it is not a pulsetrain I require and that the length of the wavefoem can be a couple of minutes and it is important to accurately turn high or low with resolutions of ms.
05-04-2007 10:57 AM
Nice
I totally understand how it must be frustrating you that our data sheets do not contain the kind of informtaion that Microchip data sheets do. I am familiar with their data sheets and yes they do provide good information on the underlying behaviour of the card. However, our data sheets are specifically that, they provide the hardware specifications and some basic attributes of the device. What we do have however, is an extremely detailed and versatile set of tutorials on our website. We have tried to make it as user friendly as possible and provide information on the core behaviour of our hardware and also programming styles and techniques that will be of use to our customers. NI offers a range of hands on course for our customers also.
Updating the original legacy code into the DAQmx style will take time, but I believe that the versatility that DAQmx offers makes it worthwhile. I would strongly reccomend using the help menus, but I am guessing you have tried these already. I have therefore tried to find specific links for you which will hopefully answer those specific requests in your last post and hope that these will be of more use to you. They include information on hardware timed acquisition as I totally know what you mean about Windows eating resources at critical moments!
http://zone.ni.com/devzone/cda/tut/p/id/5438 - This is an excellent tutorial on the basic principles of programming with DAQmx.
http://zone.ni.com/devzone/cda/tut/p/id/5434 - this page is the main DAQmx page with information on all aspects of DAQmx.
http://zone.ni.com/devzone/cda/tut/p/id/4342 - Good information on the transition from legacy to DAQmx.
http://zone.ni.com/devzone/cda/tut/p/id/4359 - this tutorial provides the core principles of the Hardware architectures etc.
http://zone.ni.com/devzone/cda/tut/p/id/3397 - some basics on the hardware limitations and capabilities that affect the accuracy of your data acquisition.
I hope this information is relavant and will really help you in developing your code. Keep me posted on how you get on.
Regards
Rob
05-10-2007 12:54 PM
05-17-2007 09:49 AM - edited 05-17-2007 09:49 AM
The Source and Gate signals can be input on any of the PFI lines but there are default pins assigned which are specified in the DAQ assistant when you set up a counter task, you can also find that information on the pinout for the device.
The source and gate can be used in different configurations for multiple applications. I need to have a look at your code but from my initial glance it looks like it's setting up a retriggerable pulse train.
I'll find some more resources and post back with an explanation of how that type of counter application works.
Message Edited by SarahB on 05-17-2007 09:55 AM
05-18-2007 09:05 AM
05-25-2007 03:44 AM - edited 05-25-2007 03:44 AM
Hi there,
How are you getting on with this? Here's a picture that indicates the part of a counter you use for pulse generation. The Source uses a time base to generate the signal. You can control when the pulse is generated via the Gate input.
I'm still not sure exactly what you want to achieve but you're looking for either a retriggerable pulse train or a pause triggered application. There are examples in the example finder for both of these. Go to File >> Find Examples in LabVIEW. Then browse to Hardware Input and Output >> DAQmx >> Generating Digital Pulses then check out the pause trigger and retriggerable examples. The VIs will tell you the pins to connect your signal/scope to.
Message Edited by SarahB on 05-25-2007 03:44 AM
05-25-2007 07:51 AM
Thanks SarahB, Just had a NI guy turn up and he showed me the right place to look in the examples. The follwoing VI is actually what I needed
Thaks for all your help
05-25-2007 08:35 AM