11-03-2007 10:19 PM
11-03-2007 11:03 PM
11-05-2007 04:46 AM
11-06-2007 12:36 PM
Hi latlov,
Thanks for contacting National Instruments. I have been looking into your question and I have some information for you. Like it was mentioned earlier, the data inside of the table is simply passed as a 2-D array of strings and that is why you are able to handle it in that way when you pass the 2-D array. This is very similar to if you are using a slider as a control and passing the value as a global variable. When reading the data from that variable, it is just output as a Double value, not as a slider output. This is expected behavior for the LabVIEW environment. However, there may be a workaround for you. One thing you can do is create a custom control that is a 2-D array of strings and save it as a type def. Then, when you create your variable, you can make the data type for that variable a custom control and then select the custom 2-D array of strings that you saved previously. Next, when you want to read data from this variable, you can place a table on the front panel of a VI and then go to the block diagram and right-click on the table and select "Change to Indicator." You can then wire the variable into this table indicator and it will read the data properly. In this case, the data is not passed through the variable as an actual table, but this may help you if you want to display the data in a table on the front panel of a VI. Also, we are always very appreciative of feedback and product suggestions that we receive and you can provide us with some if you go to www.ni.com and select "Contact NI" from the top menu. On this page, you can click on the link to provide some feedback to us. I hope some of this helps you with your application. Thanks!
11-07-2007 04:33 AM
Many thanks, Noah! I solved the problem by using 2D arrays of strings. However, a similar problem appeared when I wanted to store a waveform in a global variable. After measuring voltage I get a waveform output where the dimensions (number of measurements and channels used) are dependent on the parameters, defined in a database. This data is supposed to be stored in a global variable and analysed later separately, channel by channel, depending on the testing procedure (also defined in the database and diferent for each product). What happens is that when I direct the waveform output into the global variable, where I put a waveform graph variable, the data cannot be read in a waveform form. Is there a way to be able to read such data from a global variable, say, I store a 24-channel waveform and then read 2nd and 4th channel when its demanded by the procedure?
Regards,
Simon
11-08-2007 01:45 PM
11-09-2007 09:01 AM
Thanks, Noah. I tried the proposed solution and it works!
Regards, Simon
11-09-2007 09:27 AM
11-09-2007 09:38 AM - edited 11-09-2007 09:40 AM
Hi, graziano!
It happens the moment I drag an empty table into the VI of my global variable and release the mouse button 😉 As soon as I do this, LV crashes with no warning whatsoever. I use 2 GB of RAM so I don't suppose it should cause any problems. I've tried this routine several times on both XP and Vista and there were no differences every time I tried it. That's why I wanted to know if this is a common thing that was fixed in higher LV versions or it's just my installation of LV that causes it. However, as I mentioned before, I can't use higher LV versions due to the limitations of the company I'm doing this project for.
Thanks for the comment anyway!
Simon
11-09-2007 09:45 AM