LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with Datalogging using a SubVI

Hello!
I have a big Program, that uses a SubVI to collect/send Data via a ISM111. But i doesnt work - i doesnt comunicate with the ISM!
I tried a single prog, that only uses this sub, then it works.

Where could be the error? Is it perhaps te use of Local var?

Need Ur Help!
Thx
Zwitsch
0 Kudos
Message 1 of 4
(2,606 Views)
I think there are just some coding problems in your application. Maybe some-one can review your code or just your subvi.
I also use a single subvi to read/write data to an external device in applications.
Generally it should be no problem, but it can be that detail you overlooked.
0 Kudos
Message 2 of 4
(2,606 Views)
I agree with PdB. You need to be especially careful when using those local and global variables in any program. You may want to check that you are actually writing to these variables before you read from them. However, it is always best to avoid using these unless absolutely necessary.

Mike
NI
0 Kudos
Message 3 of 4
(2,606 Views)
Okay, so i should avoid using Locals...
Okay, thanks, if i have further probs i post 'em. Tomorrow i can try that.

Thanks 4 ur postings!
Zwitsch
0 Kudos
Message 4 of 4
(2,606 Views)