12-22-2011 06:50 AM
Yep, I'm attempting a large shared variable project, so, I guess it's time to get active on the board again.
Anyway, so I had this problem;
http://forums.ni.com/t5/LabVIEW/Getting-a-list-shared-variable-references/td-p/1817829
but we got that figured out.
Now, when I go to write the data to the variables, I can watch it go from 'No Known Value' in the distributed system manager to ' ', and yes, I mean blank. Granted, the data is coming from a simulated DAQ currently, but I can probe the data line in the .vi and there's numbers there, they're just not getting to the shared variable. Any ideas as to what I'm doing wrong? I've got the variables deployed and the shared variable engine is running on the computer. Is there something I need to do programmatically prior to writing to them?
Here's the snippet so you don't have to switch between tabs to look at it,
Thanks for any help,
-Ian
Solved! Go to Solution.
12-27-2011 03:47 PM
Hi Ian,
Have you tried passing in another data type such as doubles to see if this works? It's possible that the DSM cannot display an array of waveforms, hence the data appearing blank.
Regards,
12-27-2011 04:13 PM
Exactly right. DSM does not display waveforms.
I wrote a .vi to actually look at the variable and see what showed and lo and behold, there was data there. Guess I should have tried that first.
So, are there gonna be issues pulling from my citadal database if I store everything as waveforms? Hmmm.... I wonder?
-Ian
12-28-2011 02:50 PM
Hi Ian,
It is hard to tell exactly how the data will display when pulling from a citadel database. One recommendation I have for you is to use the Read Trace/Write Trace .vi's which will allow you to break up the waveform and handle the data apart from the timestamps they are associated with.
Hope this helps!