LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

More shared variable help

Solved!
Go to solution

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,

 

snippet.png

 

Thanks for any help,

 

-Ian

0 Kudos
Message 1 of 4
(2,644 Views)
Solution
Accepted by topic author iyeager

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,

Allison M.
Applications Engineer
National Instruments
ni.com/support
0 Kudos
Message 2 of 4
(2,598 Views)

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

0 Kudos
Message 3 of 4
(2,592 Views)

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!

Allison M.
Applications Engineer
National Instruments
ni.com/support
Message 4 of 4
(2,568 Views)