06-07-2013 06:00 AM
Thank you RavensFan. I agree with your modifications.
I want to create another similar VI for a Daqmx card. I was wondering if it possible to achieve advanced triggering options using something like a PXIe-6124 card, similar to niScope? I will use this card because of its higher bit resolution.
I will eventually have it in a P-C arcitecture but on a stand alone VI rather than complicated project and I would use a simple binary/ spreadsheet data format for data files instead of more advanced tdms, simply beacaue I am more familiar with the former, especially while analysing in MATLAB.
Any idea of where should I start? I watched this youtube video on P-D loop but it has a problem- incomplete,without proper termination.
There is a standard template I am tempted to use but I need to know few pointers to beign with. I must incorporate my data acquisition vi into this form of template to push data into the queue in the producer loop. And, I must use perhaps two consuemer loops, one for display and one for data write.
Also, I must create a typedef for the queue, which I am bit unsure what should that be.
Some pointers would be of immese help for me give it a good dash.
Thanks very much!! 🙂
06-10-2013 09:54 AM
Hi sm81,
The PXI-6124 supports both digital and analog triggering, so you should be able to use advanced triggering with DAQmx, which could be a little different from the options you find in niScope. I would recommend checking the manual for further information on how to set these triggers.
Best Regards,
06-10-2013 11:55 AM
Hi Guys,
I have just found this link: https://decibel.ni.com/content/docs/DOC-2431
The vi given here looks incredibly clear to understand, and for all practical purposes does runs and exits gracefully. Except, there is one problem that I encountered. When I try to read the file, I can't load it. It loads up (in MATLAB,LabVIEW, Excel) as loads of gibrish.
Is there anything I should do to make sure I can see the file in a readable manner?
06-11-2013 11:44 AM
Hi SM81,
I checked the link you post and I think you are talking about open TMDS files, is that correct?
You need a plug-in to open those files with excel, please check the link below.
TDM Excel Add-In for Microsoft Excel Download
Regards
06-11-2013 12:52 PM
Hi feomm8, My link refers to a VI saving in binary format, I think.
It would be very nice for me to be able to work with simpler format such as bin or txt, which I can easily open in MATLAB.
I have just started a concersation here. Comments are welcome.Have alook and please do comment!
Thanks
06-13-2013 07:40 AM
You might consider going back to TDMS and use the Excel Add-IN for Excel and the C-DLL for MATLAB.
For all options on using TDMS in 3rd party, please refer to:
06-14-2013 04:02 AM
Thanks. I don't quite get how I can use MATLAB to read tdms files using c-dll though. Any suggestion? I just find it way too much work just to be able read a data file. I am so much familiar with the text/lvm files as they are incredibly easy to work with in MATLAB, or perhaps I never tried to use any other format before. I find it somewhat frustrating really.
I would be grateful, if you can point me to a soem straight forward instruction for loading such a file in MATLAB.( I am not familair with pure software engineering conceps in great details)
06-14-2013 10:11 AM