07-07-2011 09:22 AM
Hi, frnds!
I have designed a labview program for measuring the power current characteristics of a laser diode. I want to save the current and power arrays measured at different temperatures in different groups. I tried to implement this but I was not successful. The current and power measurements at different temperatures are being saved only in the first group and the rest are being empty! Please help me save the measurements in different temperature groups.
I need this urgently!
Thanks in advance!
Kumar
07-07-2011 10:10 AM
Perhaps a snippet of the code you are using would help. When you write to the TDMS file with the low level functions, you just need to specify the separate group names. Have you read over the NI TDMS File Format, Introduction to LabVIEW TDM Streaming VIs, and Writing TDM and TDMS files articles? Have you tried any examples out of the Example Finder?
As a basic example:
07-08-2011 05:30 AM
Oh sorry I forgot to upload my program! Well! thanks for the immediate reply.
Actually, my problem is I have a current array and a power array which contain different set of measurement readings for every different temperature selected. I tried to group them in 5 different temperature groups but I was not successful. I hope you understand my problem. I have now attached my program with this message. Please have a look and help me get the desired result!
Thanks a lot!
Kumar
07-08-2011 08:55 AM
You need to explain more of how your data is formatted. It is hard to understand what you are trying to do based on the VI you sent. Why do you need to use the local variables in the manner you are using them? I would recommend taking a step back with a very simplistic version of your problem and try to code it from there. Once you have that working, build upon it. You are saying that you have a current and power array for every different temperature selected but I fail to see where you get th different value sets. You have a TSet control that you can change, but that has no operation in relation to your current or power arrays.Finally, you do not have any data in your arrays, especially since they are set as indicators and have not been populated.
07-08-2011 08:55 AM
You need to explain more of how your data is formatted. It is hard to understand what you are trying to do based on the VI you sent. Why do you need to use the local variables in the manner you are using them? I would recommend taking a step back with a very simplistic version of your problem and try to code it from there. Once you have that working, build upon it. You are saying that you have a current and power array for every different temperature selected but I fail to see where you get th different value sets. You have a TSet control that you can change, but that has no operation in relation to your current or power arrays.Finally, you do not have any data in your arrays, especially since they are set as indicators and have not been populated.
07-08-2011 11:06 AM
Dear Sir,
I have modified my program a little bit so that my problem could be clearly understood for you!
Thankyou!
07-08-2011 11:46 AM
It looks to me as though you are not properly passing your references for the different levels of the hierarchy. When you create a channel group using the express VI, you should notice that it gives you a storage refnum (channel group) in addition to the storage refnum (file) output. The channel group refnum need to be passed as the refnum input on the write channel express VI.